/* Base */
body:has(.section-description) h1 {
  margin-bottom: 0.417em;
}
.section-description {
  width: 100%;
  max-width: 1272px;
  margin-bottom: 3.3em;
}
.section-description p {
  line-height: 1.3;
}
.section-description p:last-child {
  margin: 0;
}
.section-description a {
  text-decoration: underline;
  color: #374785;
}
body.page-template-page-equipment .blog__img + .blog__content {
  margin-top: 1.25em;
}
.gallery__title {
  font-size: 1.125em;
  line-height: 1.3;
  margin: 1.11em 0 0;
}

/* Portfolio */

body.archive.post-type-archive-portfolio .blog__img {
  height: auto;
  aspect-ratio: 384 / 270;
}

/* Portfolio Single */
.portfolio {
  margin-bottom: 3.75em;
}
.portfolio__meta {
  margin-top: 3.75em;
  margin-bottom: 1.875em;
}
.portfolio-gallery {
  position: relative;
  margin-bottom: 3.75em;
}
.portfolio-gallery .swiper-button-prev,
.portfolio-gallery .swiper-button-next {
  background-color: unset;
  border: 1.5px solid #374785;
}
.portfolio-gallery .swiper-button-prev:after,
.portfolio-gallery .swiper-button-next:after {
  color: #374785;
}
.portfolio-gallery .swiper-button-prev.swiper-button-disabled,
.portfolio-gallery .swiper-button-next.swiper-button-disabled {
  opacity: 0.2;
}
.portfolio-gallery__src {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 518 / 367;
  cursor: pointer;
  object-fit: cover;
  /*object-fit: contain;*/
  border: 1px solid #bebebe;
  border-radius: 6px;
  overflow: hidden;
}
.portfolio__description {
  line-height: 1.3;
}
.portfolio__description p {
  font-size: 1em;
  margin-bottom: 1.25em;
}
.portfolio__description ul {
  list-style: disc;
  padding-left: 1.75em;
  font-size: 1em;
  margin-bottom: 1.25em;
}
.portfolio__description ul li::marker {
  color: #374785;
}
.portfolio__reviews {
  display: flex;
  margin-top: 2em;
  justify-content: center;
}
.portfolio-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.portfolio-navigation a {
  text-decoration: none;
  color: #374785;
  font-weight: bold;
}


	.gallery__modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.gallery__modal_active {
  display: flex;
}


.gallery__modal-slider {
  width: 100%;
  max-width: 90vw;
  max-height: 90vh;
}

.gallery__modal-slider img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.gallery__modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 32px;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  line-height: 1;
  padding: 0;
  transition: transform 0.2s;
}

.gallery__modal-close:hover {
  transform: scale(1.2);
}

.partners-gallery__slider {
	overflow: hidden;
}


@media screen and (min-width: 992px) {
  .portfolio__content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .portfolio__description {
    width: 100%;
    flex: 1 0 0%;
  }
  .portfolio__form {
    width: 30%;
    flex: 0 0 30%;
    margin-left: 10%;
    background-color: #fff;
    box-shadow: 0px 10px 110px 0px #0f0f0f1a;
    border-radius: 6px;
  }
  .portfolio__reviews {
    width: 100%;
    flex: 0 0 100%;
    margin-top: 3.75em;
    justify-content: flex-start;
  }
	.partners-gallery .swiper-button-prev,
	.partners-gallery .swiper-button-next {
		background-color: #ffffff36;
	}
	.portfolio-gallery .swiper-button-prev,
	.portfolio-gallery .swiper-button-next {
	  background-color: #ffffff36;
	}
}

@media screen and (max-width: 680px) {
	.portfolio-navigation {
        flex-direction: row;
        gap: 2rem;
        align-items: flex-start;
        justify-content: space-evenly;
	}
	.portfolio-navigation .nav-previous,
	.portfolio-navigation .nav-next {
		display: flex;
		width: 50%;
   		 gap: 1rem;
	}
	.portfolio-navigation .nav-previous {
		text-align: left;
	}
	.portfolio-navigation .nav-next {
		text-align: right;
	}
}
.page-template-page-svarka .why {
	background:#f1f1f1;
}
.page-template-page-svarka .services__list {
	padding-top: 5em;
}
.page-template-page-svarka .services__list .section-title {
	margin-bottom: 1.2em;
}

/* Equipment */
.equipment-items {
  position: relative;
  margin-bottom: 3.75em;
}
.equipment-items__nav {
  position: absolute;
  bottom: 100%;
  right: 0;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5em;
  gap: 1.25em;
}
.equipment-items__nav .swiper-button-prev,
.equipment-items__nav .swiper-button-next {
  position: relative;
  left: unset;
  top: unset;
  right: unset;
  margin: 0;
  background-color: unset;
  border: 1.5px solid #374785;
}
.equipment-items__nav .swiper-button-prev:after,
.equipment-items__nav .swiper-button-next:after {
  color: #374785;
}
.equipment-items__nav .swiper-button-prev.swiper-button-disabled,
.equipment-items__nav .swiper-button-next.swiper-button-disabled {
  opacity: 0.2;
}

body.page-template-page-equipment .blog__img {
  height: auto;
  aspect-ratio: 384 / 270;
}

body.page-template-page-equipment .blog__title {
    margin-bottom: 0.4166667em;
    font-weight: 600;
    font-size: 1.5em;
    line-height: 1.3;
    color: #333333;
}

section.blog-page {
    padding-top: 6.875em;
}

.blog-spoiler:not(.is-expanded) .blog-spoiler__description {
  -webkit-line-clamp: 6;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-spoiler__description {
  line-height: 1.3;
}
.blog-spoiler__description p {
  font-size: 1em;
  margin-bottom: 0.625em;
}
.blog-spoiler__description ul {
  list-style: disc;
  padding-left: 1em;
  font-size: 1em;
}
.blog-spoiler__description h5 {
  text-transform: uppercase;
  font-size: 1em;
  margin-bottom: 0.625em;
}
.blog-spoiler__action {
  display: inline-block;
  outline: none;
  border: 0;
  background-color: unset;
  padding: 0;
  cursor: pointer;
  font-size: 1.125em;
  line-height: 1.56;
  font-weight: 600;
  color: #374785;
  margin-top: 1.11em;
}
.blog-spoiler__action:before {
  content: attr(data-expand-text);
  font-size: inherit;
}
.blog-spoiler.is-expanded .blog-spoiler__action:before {
  content: attr(data-hide-text);
}
/* Partners */
.partners {
  background-color: #f2f2f2;
  padding-top: 9.4em;
  padding-bottom: 9.4em;
  text-align: center;
  overflow: hidden;
}
.partners .section-description {
  max-width: none;
}
.partners-gallery {
  position: relative;
}
.partners-gallery .swiper-button-prev,
.partners-gallery .swiper-button-next {
  background-color: unset;
  border: 1.5px solid #374785;
}
.partners-gallery .swiper-button-prev:after,
.partners-gallery .swiper-button-next:after {
  color: #374785;
}
.partners-gallery .swiper-button-prev.swiper-button-disabled,
.partners-gallery .swiper-button-next.swiper-button-disabled {
  opacity: 0.5;
}
.partners-gallery-item {
  position: relative;
  background-color: #fff;
  border: 1px solid #F1F1F1;
  border-radius: 6px;
  overflow: hidden;
}
.partners-gallery-item:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.partners-gallery-item__image {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}