/*Афиша на главной*/
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}
button,
input,
optgroup,
select,
fieldset,
textarea {
  margin: 0;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background-color: transparent;
}
*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.button {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.175px;
  text-align: center;
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
}
.button span {
  line-height: 14px;
}
.primary-button {
  background: #9e9e9e;
}
.primary-button:hover,
.primary-button:focus {
  text-decoration: none;
}

.secondary-button {
  border: 1px solid #383838;
}

.thirdy-button {
  background: transparent;
  padding: 12px 8px;
}

.primary-button.icon,
.secondary-button.icon,
.thirdy-button.icon {
  padding-left: 38px;
  position: relative;
  transition: all 0.3s ease-in-out;
}
.primary-button.icon svg,
.secondary-button.icon svg,
.thirdy-button.icon svg {
  position: absolute;
  left: 12px;
  top: 10px;
  transition: all 0.3s ease;
}
.container-wrapper {
  max-width: 1528px;
  padding: 0 16px;
  margin: 0 auto;
}
.afisha-wrapper {
  width: 100%;
  border-radius: 2px;
  background: inherit;
  /* padding: 0 0 24px; */
  color: #383838;
}
.afisha-swiper.swiper {
  padding-top: 48px;
  padding-bottom: 16px;
  height: max-content;
}
.afisha-wrapper h2 {
  text-align: center;
  font-size: 33px;
  font-weight: 400;
  line-height: 46px;
  letter-spacing: 0.0025em;
  text-align: center;
  margin: 13px 0;
}
.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;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  /* flex: 1 0 0; */
  align-self: stretch;
  flex-grow: 1;
  border: 2px solid transparent;
}
.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.30);
  cursor: pointer;
}
.afisha-item .thirdy-button {
  position: relative;
  left: -8px;
}
.afisha-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  padding: 13px 32px 16px 0;
}
.afisha-content h3.main-title {
  font-size: 21px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px; /* 133.333% */
  letter-spacing: 0.032px;
  margin-bottom: 4px;
}
.afisha-extrafields {
  width: 100%;
  padding: 24px 0 0;
  margin-top: 20px;
  border-top: 1px solid #dfe2e2;
}
.afisha-extrafields ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  gap: 18px;
  margin: 0;
  padding-left: 0;
}
.afisha-extrafields ul li {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}
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: 11px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: 0.015em;
  text-align: left;
  text-transform: uppercase;
  margin-bottom: 13px;
}
.afisha-description p {
  margin-top: 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-extrafields ul li {
  font-size: 17px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.005em;
  text-align: left;
  position: relative;
  padding-left: 32px;
}
.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: -1px;
  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: 341px;
  border-radius: 2px;
}
.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: -16px;
  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;
}
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 {
  left: 0;
  top: 0;
}
.filter-buttons .thirdy-button.icon svg {
  top: 10px;
}
.field-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.afisha-search-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.afisha-search-wrapper > .afisha-item > img {
  width: 312px;
  height: 443px;
  margin-bottom: -5px;
}
.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-search-wrapper {
    display: grid;
    grid-template-columns: 1fr;
  }
  .afisha-search-wrapper .afisha-item {
    width: 100%;
    justify-content: flex-start;
  }
}
@media screen and (max-width: 767px) {
  .afisha-item {
    justify-content: flex-start;
    gap: 0;
  }
  .afisha-item > a {
    float: left;
    display: block;
  }
  .afisha-item img,
  .afisha-search-wrapper .afisha-item img {
    width: 80px;
    height: 112px;
    margin-right: 16px;
    margin-bottom: 16px;
  }
  .afisha-content {
    padding-top: 8px;
  }
  .filter-row {
    flex-wrap: wrap;
  }
  .filter-field {
    width: 100%;
  }
  .filter-field.date-field,
  .filter-field.text-field {
    margin-bottom: 10px;
  }
}
@media screen and (max-width: 576px) {
  .afisha-item {
    /* border-right:1px solid #E3E3E3; */
  }
  .afisha-search-wrapper .afisha-item {
    border-bottom: 1px solid #e3e3e3;
    border-right: none;
  }
  .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-wrapper {
    /* margin-bottom: 16px; */
    padding: 0;
  }
  .filter-buttons {
    flex-wrap: wrap-reverse;
    margin-top: 24px;
  }
  .afisha-extrafields ul li {
    flex-wrap: wrap;
  }
  .afisha-extrafields {
    width: calc(100% + 96px);
    position: relative;
    right: 96px;
    margin-top: 8px;
  }
}
@media screen and (max-width: 420px) {
  .afisha-extrafields {
    border: none;
    padding: 16px 0 0;
    margin: 0;
  }
  .afisha-description hr {
    display: none;
  }
  .afisha-content h3.main-title {
    margin-bottom: 42px;
  }
  .afisha-content h6 {
    margin-top: 18px;
  }

  .afisha-description {
    position: relative;
    right: 96px;
    width: calc(100% + 96px);
  }
}

/* Модалка */
body {
  position: relative;
}
.noscroll {
  /* position: fixed;  */
  overflow-y: scroll;
  width: 100%;
}
.modal {
 display:none;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #333;
  opacity: 0.5;
  z-index: 995 !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: 1000 !important;
  background-color: #fff;
  z-index: 4;
  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.30);
}
.modal .afisha-item:hover {
  box-shadow: none;
  border: 2px solid transparent;
  cursor: default;
}
.modal .afisha-description p {
  -webkit-line-clamp: initial;
  overflow: visible;
}
.modal .afisha-content {
  padding: 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;
    height: 264px;
    margin-right: inherit;
    margin-bottom: inherit;
    position: absolute;
    top: 80px;
    left: calc(50% - 92px);
  }
  .modal .afisha-content .main-title {
    margin-bottom: 285px;
  }
  .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;
  }
}