.news-detail {
}

/*region POST FORMATS */
.news-detail-img,
.news-detail-audio,
.news-detail-video,
.news-detail-slider {
  position: relative;
  margin-bottom: 20px;
  text-align: center;
}

.news-detail-slider img,
.news-detail-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

.news-detail-video {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: block;
  background: url(images/bx-video.png) no-repeat center;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.news-detail-video:hover {
  opacity: 1;
}

/*region POST FORMATS /// SLIDER */
.news-detail-slider {
  overflow: hidden;
  padding-bottom: 22.25%;
  width: 100%;
  height: 0;
}

.news-detail-slider-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

.news-detail-slider-slide {
  z-index: 100;
  float: left;
}

.news-detail-slider-arrow-container-left,
.news-detail-slider-arrow-container-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  cursor: pointer;
}

.news-detail-slider-arrow-container-left {
  left: 0;
}

.news-detail-slider-arrow-container-right {
  right: 0;
}

.news-detail-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 110;
  margin-top: -24px;
  width: 20px;
  height: 48px;
  color: #fff;
  vertical-align: middle;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  font-size: 48px;
  line-height: 34px;
  opacity: 0.5;
  cursor: pointer;
}

.news-detail-slider-arrow-container-left:hover .news-detail-slider-arrow,
.news-detail-slider-arrow-container-right:hover .news-detail-slider-arrow {
  display: block;
  color: #fff;
  opacity: 1;
}

.news-detail-slider-arrow-container-left .news-detail-slider-arrow {
  left: 20px;
}

.news-detail-slider-arrow-container-right .news-detail-slider-arrow {
  right: 20px;
}

.news-detail-slider-control {
  position: absolute;
  bottom: 10px;
  z-index: 110;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
  word-spacing: -4px;
}

.news-detail-slider-control li {
  display: inline-block;
  margin: 0 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  word-spacing: -4px;
  opacity: 0.5;
}

.news-detail-slider-control li:hover,
.news-detail-slider-control li.current {
  background: #fff;
  opacity: 1;
}

.news-detail-slider-arrow,
.news-detail-slider-control li {
  -webkit-transition: opacity 0.3s ease;
  -moz-transition: opacity 0.3s ease;
  -ms-transition: opacity 0.3s ease;
  -o-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

/* endregion */

.news-detail-body {
}

.news-detail-title,
.news-detail-title a {
  margin: 0;
  padding: 2px 0 15px;
  border-bottom: none;
  color: #000;
  font-weight: 600;
  font-size: 18px;
  font-family: "Open Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.news-detail .card-title a:hover {
  border-bottom-color: transparent;
  text-decoration: none;
}

.news-detail-view,
.news-detail-date,
.news-detail-comments,
.news-detail-author,
.news-detail-other {
  padding-bottom: 5px;
  color: #a4a4a4;
  white-space: nowrap;
  font-size: 13px;
}

.news-detail-view i.fa,
.news-detail-date i.fa,
.news-detail-comments i.fa,
.news-detail-author i.fa,
.news-detail-tags i.fa,
.news-detail-other i.fa {
  width: 13px;
  color: #b4b4b4;
}

.news-detail-tags {
  padding-bottom: 5px;
  color: #a4a4a4;
  font-size: 13px;
}

.news-detail-content {
  margin-bottom: 5px;
  font-size: 14px;
}

.d-flex {
  display: flex;
}

.portfolio-detail-slider .portfolio-slider-image {
  padding: 0 30px 0 21px;
  margin-bottom: 10px;
}

.news-list-slider-arrow-left {
  position: absolute;
  top: 50%;
  left: -5px;
  transform: translateY(-50%);
  width: 20px;
  height: 48px;
  color: #fff;
  vertical-align: middle;
  text-shadow: 0 0 2px rgb(0 0 0 / 50%);
  font-size: 48px;
  line-height: 34px;
  opacity: 0.5;
  cursor: pointer;
}

.news-list-slider-arrow-right {
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  width: 20px;
  height: 48px;
  color: #fff;
  vertical-align: middle;
  text-shadow: 0 0 2px rgb(0 0 0 / 50%);
  font-size: 48px;
  line-height: 34px;
  opacity: 0.5;
  cursor: pointer;
}

.news-list-slider-arrow-right {
  color: #80355f;
}

.news-list-slider-arrow-left {
  color: #80355f;
}

.news-list-slider-arrow-right:hover {
  opacity: 1;
  transition: all 0.3s ease-out;
}

.news-list-slider-arrow-left:hover {
  opacity: 1;
  transition: all 0.3s ease-out;
}

.slick-slider {
  padding: 0 20px;
}

.news-detail-img {
  padding: 0 20px;
}

.portfolio-detail-slider {
  margin-bottom: 20px;
  float: left;
  padding-right: 15px;
}

.top_contacts {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  border: 2px solid #f6f6f7;

  margin-bottom: 15px;
}

.top_contacts .text {
  width: 55%;
  padding: 10px 15px;

  height: calc(100% - 20px);
}

.top_contacts .text a {
  text-decoration: underline;
  color: #863964;
}

.top_contacts .links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  width: 295px;
}
@media (max-width: 900px) {
  .top_contacts .links {
    width: 200px;
  }
}
.top_contacts .links a.phone {
  display: flex;
  flex-direction: row;
  align-items: center;

  margin-bottom: 10px;
  color: #863964;
  font-weight: bold;
}

.top_contacts .links a.phone span {
  margin-right: 10px;
}

.top_contacts .links a.mail {
  margin-bottom: auto;
  color: #863964;
  font-weight: bold;
}

.top_contacts .links .socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;

  max-width: 165px;
  min-width: 165px;
}

.top_contacts .links .socials a {
  width: 31px;
  height: 31px;
  display: block;
  background: url(/bitrix/templates/aspro_optimus/images/svg/social.svg) -2px -2px
    no-repeat;
  transition: opacity ease 0.5s;
}

.top_contacts .links .socials a.inst {
  background-position: -122px -122px;
}

.top_contacts .links .socials a.whatsapp {
  background-position: -283px -42px;
}

.top_contacts .links {
  padding: 10px;
  /* background-color: #eee; */
}

.top_contacts {
  position: relative;
}

.top_contacts::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  background-color: #eee;
  width: 40%;
  height: 100%;
}

.bottom_detail {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  margin-top: 15px;

  clear: both;
}

.bottom_detail .like_project,
.bottom_detail .bottom_contacts {
  background-color: #eee;

  width: 50%;
  height: 140px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 10px 15px;
  padding-right: 40px;
}

.bottom_detail .like_project .text,
.bottom_detail .bottom_contacts .text {
  margin-bottom: auto;
}

.bottom_detail .like_project .title,
.bottom_detail .bottom_contacts .title {
  font-size: 20px;
  color: #383838;
  line-height: 20px;
  font-weight: 500;
  margin-bottom: 5px;
}

.bottom_detail .like_project .buttons {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.bottom_detail .bottom_contacts .links {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bottom_detail .bottom_contacts .links a {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 5px;

  font-size: 16px;
  font-weight: bold;
}

@media (max-width: 900px) {
  .d-flex {
    flex-direction: column;
  }
}

@media (max-width: 1205px) {
  .portfolio-detail-slider .portfolio-slider-image {
    padding: 0 21px 0 21px;
    margin-bottom: 10px;
  }

  .top_contacts::before {
    width: 50%;
  }
}

@media (max-width: 1066px) {
  .bottom_detail {
    flex-direction: unset;
    justify-content: unset;
    align-items: unset;
    width: 100%;
  }
  .bottom_detail .like_project,
  .bottom_detail .bottom_contacts {
    width: auto;
    height: auto;
    flex: 1;
  }
  .bottom_detail .bottom_contacts .links {
    flex-direction: column;
    margin-top: 20px;
    margin-bottom: 0;
  }
}

@media (min-width: 900px) {
  .bg-width-6 {
    width: 50%;
  }

  .portfolio-detail-body {
    /* padding-left: 20px; */
  }
}

@media (max-width: 900px) {
  .portfolio-detail-body {
    padding: 0 21px 20px 21px;
  }

  .portfolio-detail-slider {
    float: unset;
    width: 100%;
  }

  .top_contacts::before {
    width: 30%;
  }
  .bottom_detail {
    flex-direction: column;
  }

  .bottom_detail .like_project,
  .bottom_detail .bottom_contacts {
    /* width: auto; */
  }
  .bottom_detail .bottom_contacts .links {
    flex-direction: row;
  }
}

@media (max-width: 800px) {
  .top_contacts::before {
    width: 35%;
  }
}

@media (max-width: 670px) {
  .top_contacts::before {
    width: 40%;
  }
}

@media (max-width: 600px) {
  .top_contacts::before {
    width: 45%;
  }
}

@media (max-width: 580px) {
  .top_contacts .links {
    padding: 45px;
  }
  .top_contacts {
    flex-direction: column;
  }
  .top_contacts::before {
    width: 100%;
    top: 50%;
    height: 50%;
  }
  .top_contacts .text {
    width: 90%;
  }
  .bottom_detail .bottom_contacts .links,
  .bottom_detail .like_project .buttons {
    flex-direction: column;
    align-items: unset;
  }
  .bottom_detail .bottom_contacts .links {
    margin-top: 20px;
  }
  .bottom_detail .like_project,
  .bottom_detail .bottom_contacts {
    height: unset;
  }
  .callback_btn {
    font-size: 16px !important;
    font-weight: 400 !important;
  }
}

@media(max-width:500px){
	.bottom_detail .bottom_contacts .links,
	.bottom_detail .like_project .buttons > .button {
	  font-size: 16px !important;
	}
}

@media (max-width: 420px) {
  .top_contacts::before {
    top: 55%;
    height: 45%;
  }
}
.detail-gallery_new {
  margin-bottom: 20px;
  float: left;
  padding-right: 15px;
  width: 50%;
}
@media (max-width: 900px) {
  .detail-gallery_new {
    margin-bottom: 20px;
    float: none;
    width: 85%;
  }
}
