/*Афиша на главной*/
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}
body:has(.afisha) .left-inner-sidebar {
  display: none;
}
body:has(.afisha) .content-category__wrapper .container-wrapper {
  padding: 0;
}
*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.container-wrapper {
  max-width: 1440px;
  padding: 0 16px;
  margin: 0 auto;
}
.afisha-v3 .container-wrapper {
  padding: 0;
}
.afisha-container > .primary-button{
  color: var(--accent-1);
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--accent-2);
  background: rgba(242, 245, 248, 0.30);
  transition: 0.4s ease;
}
.afisha-container > .primary-button:hover{
  box-shadow: 0 0 0 2px var(--accent-1);
  background: rgba(255, 255, 255, 0.30);
}
.afisha-container > .primary-button:active{
  background: var(--accent--2);
}
.afisha .modal {
  display: none;
  position: static;
  width: auto;
  height: auto;
}
.afisha .modal .afisha-item {
  justify-content: flex-start;
  border: 2px solid transparent;
}
.close img {
  width: 24px;
  min-width: 24px !important;
  max-width: 24px !important;
  height: auto !important;
}
.afisha-wrapper {
  width: 100%;
  border-radius: 2px;
  background: inherit;
  /* padding: 0 0 24px; */
  color: #383838;
}
.afisha-swiper.swiper {
  padding-top: 48px;
  padding-bottom: 16px;
}
#block_afisha {
  margin-bottom: 24px;
}
.afisha-v3 h2 {
  display: none;
}
.filter-block {
  border-radius: 2px;
  background: #c9c9c9;
  padding: 16px;
}
.filter-block h5 {
  text-align: center;
}
.swiper {
  width: 100%;
}
.swiper .swiper-pagination-bullet {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #767676;
}
.swiper .swiper-pagination-bullet-active {
  background: #767676;
}
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: auto !important;
  top: 16px !important;
}
.afisha-item {
  display: flex !important;
  align-items: flex-start;
  gap: 24px;
  align-self: stretch;
  flex-grow: 1;
}
.afisha-v3 .afisha-item {
  justify-content: center;
  border: 2px solid transparent;
}
.afisha-search-wrapper .afisha-item:hover {
  border: 2px solid #e3e3e3;
  box-shadow: 0px 0px 1px 1px rgba(214, 212, 210, 0.75),
    4px 4px 16px 0px rgba(51, 43, 36, 0.15),
    1px 1px 2px 0px rgba(51, 43, 36, 0.3);
  cursor: pointer;
}
.afisha-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  flex-grow: 1;
}
.afisha-v3 .afisha-content {
  padding: 13px 32px 16px 0;
}
.afisha-content h3.main-title {
  color: var(--neitral-3);
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}
.afisha-extrafields {
  width: 100%;
  padding-top: 14px;
  margin-top: 20px;
  border-top: 1px solid var(--main--2);
}
.afisha-extrafields ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  gap: 16px;
  margin: 0;
  padding-left: 0;
}
.afisha-extrafields ul li {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  margin: 0 !important;
}
li.time,
li.time > div {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

li.time span {
  margin: 0 8px;
  background-color: #e22831;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.afisha-content h6 {
  font-size: 10px;
  font-weight: 400;
  line-height: 12px;
  letter-spacing: 0.015em;
  text-align: left;
  text-transform: uppercase;
  margin-bottom: 13px;
  color: var(--neitral-3);
}
.afisha-description p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0.0025em;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.afisha-description p:empty {
  margin: 0;
}
.afisha-extrafields ul li {
  font-size: 17px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.005em;
  text-align: left;
  position: relative;
  padding: 2px 0;
  padding-left: 32px !important;
}
.afisha-extrafields ul li.date::after {
  content: "";
  background: url(../images/calendar-2.svg) no-repeat left center;
  background-size: contain;
  width: 24px;
  height: 24px;
  position: absolute;
  left: 0;
  top: 0;
}
.afisha-extrafields ul li.place-afisha::after {
  content: "";
  background: url(../images/arena.svg) no-repeat left center;
  width: 24px;
  height: 24px;
  position: absolute;
  left: 0;
  top: 0;
  background-size: contain;
}
.afisha-extrafields ul li.ticket::after {
  content: "";
  background: url(../images/ticket.svg) no-repeat left center;
  width: 24px;
  height: 24px;
  position: absolute;
  left: 0;
  top: 0;
  background-size: contain;
}
.afisha-extrafields ul li.artist::after {
  content: "";
  background: url(../images/mask.svg) no-repeat left center;
  width: 24px;
  height: 24px;
  position: absolute;
  left: 0;
  top: 0;
  background-size: contain;
}
.afisha-extrafields ul li.time::after {
  content: "";
  background: url(../images/clock.svg) no-repeat left center;
  width: 24px;
  height: 24px;
  position: absolute;
  left: 0;
  top: 0;
  background-size: contain;
}
.afisha-extrafields ul li.price::after {
  content: "";
  background: url(../images/price.svg) no-repeat left center;
  width: 24px;
  height: 24px;
  position: absolute;
  left: 0;
  top: -2px;
  background-size: contain;
}
.afisha-extrafields ul li.web::after {
  content: "";
  background: url(../images/website-24.svg) no-repeat left center;
  width: 24px;
  height: 24px;
  position: absolute;
  left: 0;
  top: -2px;
  background-size: contain;
}
.web a {
  text-decoration: none;
  color: inherit;
}
.afisha-item img {
  object-fit: cover;
  width: 240px;
  height: 328px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid #c3d6c9;
}
.afisha-button {
  text-align: center;
  padding-bottom: 24px;
  padding-top: 24px;
}
.filter-field.checkbox-field {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  position: relative;
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 16px;
}
.filter-field label {
  margin-left: 14px;
  margin-top: 4px;
}
.filter-field label {
  position: absolute;
  left: 2px;
  bottom: -24px;
  color: #6e6e6e;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px; /* 116.667% */
  letter-spacing: 0.048px;
}
.filter-field {
  /* flex-grow: 1; */
  width: 33.33%;
  position: relative;
}
.filter-field.date-field {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.filter-field.date-field input {
  width: calc(50% - 10px);
}
.filter-field input.date {
  background-image: url(../images/calendar.svg);
  background-repeat: no-repeat;
  background-position-x: calc(100% - 12px);
  background-position-y: center;
  /* background-image: url(../images/calendar-button.png);
    background-repeat: no-repeat;
    background-position-x: calc(100% + 1px);
    background-position-y: center; */
}
.filter-field input,
.filter-field select {
  border-radius: 2px;
  border: 1px solid #f2f2f2;
  background-color: #fff;
  padding: 0 16px;
  height: 48px;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; /* 125% */
  letter-spacing: 0.08px;
}
.filter-field.select-field select,
.filter-field.text-field input {
  width: 100%;
  /* max-width: calc(100% - 16px); */
  height: 48px;
}
.afisha select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -o-appearance: none;
  background-image: url(../images/expand-arrow.svg) !important;
  background-position: 98% center;
  background-repeat: no-repeat;
}
.filter-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 8px;
}
.filter-buttons .thirdy-button {
  color: var(--accent--2);
  background: transparent;
  text-decoration: none;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.4s ease-in-out;
}
.filter-buttons .thirdy-button svg path {
  stroke: var(--accent--2);
}
.filter-buttons .primary-button svg path {
  fill: #fff;
  transition: fill 0.4s ease-in-out;
}
.filter-buttons .primary-button:hover svg path {
  fill: var(--accent--1);
}
.filter-buttons .thirdy-button:hover,
.filter-buttons .thirdy-button:focus {
  color: var(--accent--2);
  background: #fff;
  text-decoration: none;
}
.afisha .thirdy-button:active {
  color: var(--accent-1);
  background: var(--accent--2);
}
.field-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.afisha-search-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.afisha-search-wrapper .afisha-item img {
  min-width: 312px;
  max-width: 312px;
  height: 443px;
  object-fit: cover;
}
.afisha-search-wrapper .afisha-description p {
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media screen and (max-width: 1220px) {
  .afisha-v3 .afisha-search-wrapper {
    display: grid;
    grid-template-columns: 1fr;
  }
  .afisha-v3 .afisha-search-wrapper .afisha-item {
    width: 100%;
    justify-content: flex-start;
  }
}
@media screen and (max-width: 767px) {
  .afisha-v3 .afisha-search-wrapper > .afisha-item {
    justify-content: flex-start;
    gap: 0;
    flex-direction: column;
  }
  .afisha-item > a {
    float: left;
    display: block;
  }
  .afisha-v3 .afisha-item img,
  .afisha-v3 .afisha-search-wrapper .afisha-item img {
    width: 80px;
    min-width: auto;
    height: 112px;
    margin-right: 16px;
    margin-bottom: 16px;
  }
  .afisha-v3 .afisha-item .close img {
    width: auto;
    height: auto;
    margin: 0;
  }
  .afisha-v3 .afisha-content {
    padding-top: 8px;
    padding-right: 0;
  }
  .filter-row {
    flex-wrap: wrap;
  }
  .filter-field {
    width: 100%;
  }
  .filter-field.date-field,
  .filter-field.text-field {
    margin-bottom: 10px;
  }
  .afisha-search-wrapper .afisha-item:hover {
    box-shadow: none;
    border: 2px solid transparent;
  }
}
@media screen and (max-width: 576px) {
  .afisha-v3 .afisha-search-wrapper .afisha-item {
    border-bottom: 1px solid #e3e3e3;
    border-right: none;
  }
  .afisha-v3 .afisha-search-wrapper .modal .afisha-item {
    flex-direction: column;
    gap: 16px;
  }
  .afisha-v3 .afisha-item .thirdy-button {
    left: -104px;
  }
  .filter-field label {
    margin-left: 8px;
  }
  .field-row {
    flex-grow: 1;
  }
  .filter-field.checkbox-field {
    gap: 16px;
  }
  .filter-field.date-field {
    display: flex;
    flex-direction: row;
    max-width: 100%;
    gap: 6px;
    align-items: center;
    max-width: 100%;
    margin-bottom: 14px;
    position: relative;
  }
  .filter-field input[type="date"] {
    padding-left: 8px;
    padding-right: 6px;
    max-width: 120px !important;
  }
  .afisha-v3 .afisha-wrapper {
    padding: 0;
  }
  .filter-buttons {
    flex-wrap: wrap-reverse;
    margin-top: 24px;
  }
  .afisha-v3 .afisha-extrafields ul li {
    flex-wrap: wrap;
  }
  .afisha-v3 .afisha-extrafields {
    position: relative;
    margin-top: 8px;
  }
}
@media screen and (max-width: 420px) {
  .afisha-v3 .afisha-extrafields {
    border: none;
    padding: 16px 0 0;
    margin: 0;
  }
  .afisha-v3 .afisha-description hr {
    display: none;
  }
  .afisha-v3 .afisha-content h3.main-title {
    font-size: 17px;
    line-height: 21px;
  }
  .afisha-v3 .afisha-description {
    position: relative;
    right: 0;
  }
}

/* Модалка */
body {
  position: relative;
}
.noscroll {
  overflow-y: scroll;
  width: 100%;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #333;
  opacity: 0.5;
  z-index: 1100 !important;
}
.close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 99;
  cursor: pointer;
}
.modal__wrapper {
  position: fixed;
  top: calc(50% - 344px);
  left: calc(50% - 600px);
  width: 1200px;
  height: 688px;
  padding: 16px;
  z-index: 9900 !important;
  background-color: #fff;
  z-index: 4;
  border-radius: 4px;
  border: 2px solid #e3e3e3;
  box-shadow: 0px 0px 1px 1px rgba(214, 212, 210, 0.75),
    4px 4px 16px 0px rgba(51, 43, 36, 0.15),
    1px 1px 2px 0px rgba(51, 43, 36, 0.3);
}
.modal .afisha-item:hover {
  cursor: default;
  box-shadow: none;
  border: 2px solid transparent;
}
.modal .afisha-description p {
  -webkit-line-clamp: initial;
  overflow: visible;
  margin: 8px 0;
}
.modal .afisha-description p:empty {
  margin: 0;
}
.modal .afisha-description p:last-child {
  margin-bottom: 0;
}
.modal .afisha-content {
  padding: 0;
  overflow-y: auto;
  max-height: 650px;
  padding-right: 32px;
}
.modal .afisha-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}
@media (max-width: 1250px) {
  .modal__wrapper {
    top: 16px;
    left: 16px;
    bottom: 16px;
    right: 16px;
    width: auto;
    height: auto;
    overflow: scroll;
  }
  .modal__wrapper::-webkit-scrollbar {
    scrollbar-width: 0;
    display: none;
  }
  .modal .afisha-item img {
    width: 184px;
    min-width: auto;
    height: 264px;
    margin-right: inherit;
    margin-bottom: inherit;
    flex-shrink: 0;
  }
  .modal .afisha-content h6 {
    margin-top: 0;
  }
  .modal .afisha-description {
    right: auto;
    width: auto;
  }
  .modal .afisha-extrafields {
    width: auto;
    right: auto;
    margin-top: 20px;
    padding-top: 24px;
  }
}
