/*--style-for-blog--*/
.promo-block {
  box-shadow: var(--box-shadow);
}

.promo-block__content {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  height: 100%;
  margin-bottom: 2rem;
}

.promo-block__info {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  padding: 2rem;
}

.promo-block__pic {
  position: relative;
  display: flex;
  width: 50%;
  border-right: 3px solid var(--primary-color);
  aspect-ratio: 4/3;
}

.promo-block__img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.blog-contacts {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 20px;
}

.blog-contacts__item {
  margin-bottom: 10px;
}

.blog-contacts__item:last-child {
  margin-bottom: 0;
}

.blog-contacts__item:empty {
  display: none !important;
}

.contacts-content {
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.5rem;
}

.contacts-content:empty {
  display: none !important;
}

.contacts-content[class*="phone"] {
  font-weight: 600;
}

.contacts-content[class*="phone"],
.contacts-content--email {
  white-space: nowrap;
}

.contacts-content::before {
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  position: relative;
  z-index: 1;
  left: 0;
  width: 1rem;
  height: 1rem;
  content: "";
  background-color: var(--primary-color);
  background-repeat: no-repeat;
}

.contacts-content[class*="phone"]::before {
  mask-image: url("../img/icons/contacts/phone.svg");
}

.contacts-content--email::before {
  mask-image: url("../img/icons/contacts/email.svg");
}

.contacts-content a {
  color: v var(--font-color);
}

.contacts-content .phone {
  font-size: 1.2em;
}

.order-list {
  display: flex;
  flex-direction: column;
  margin: 0;
  margin-bottom: 2rem;
  padding: 0;
  padding-top: 1rem;
  list-style: none;
  counter-reset: order;
  gap: 1rem;
}

.order-list:last-child {
  margin-bottom: 0;
}

.order-list li {
  position: relative;
  padding-left: 2.5rem;
}

.order-list li::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  content: counter(order, decimal);
  counter-increment: order;
  transform: translateY(-50%);
  text-align: center;
  color: #fff;
  border-radius: 0;
  background-color: var(--primary-color);
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.5rem;
}

.features {
  --gap: 2rem;
  text-wrap-style: balance;
}

.features__item {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 0.5rem;
}

.features--col-2 {
  --count: 2;
}

.features--col-3 {
  --count: 3;
}

.features--col-4 {
  --count: 4;
}

.features__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 3.5rem;
  margin-bottom: 0.5rem;
}

.features__icon::before {
  filter: brightness(0.5);
  position: absolute;
  top: 0;
  right: 0;
  width: 2rem;
  height: 2rem;
  content: "";
  background-image: url("../img/icons/box.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.features__icon .icon {
  --size: 3.5rem;
}

.icon--analisys {
  mask-image: url("/wp-content/uploads/icons/analisys.svg");
}

.icon--calculator {
  mask-image: url("/wp-content/uploads/icons/calculator.svg");
}

.icon--call {
  mask-image: url("/wp-content/uploads/icons/call.svg");
}

.icon--choises {
  mask-image: url("/wp-content/uploads/icons/choises.svg");
}

.icon--delivery {
  mask-image: url("/wp-content/uploads/icons/delivery.svg");
}

.icon--diplom {
  mask-image: url("/wp-content/uploads/icons/diplom.svg");
}

.icon--discount {
  mask-image: url("/wp-content/uploads/icons/discount.svg");
}

.icon--document {
  mask-image: url("/wp-content/uploads/icons/document.svg");
}

.icon--factory {
  mask-image: url("/wp-content/uploads/icons/factory.svg");
}

.icon--handshake {
  mask-image: url("/wp-content/uploads/icons/handshake.svg");
}

.icon--like {
  mask-image: url("/wp-content/uploads/icons/like.svg");
}

.icon--medal {
  mask-image: url("/wp-content/uploads/icons/medal.svg");
}

.icon--pin {
  mask-image: url("/wp-content/uploads/icons/pin.svg");
}

.icon--schedule {
  mask-image: url("/wp-content/uploads/icons/schedule.svg");
}

.icon--scheme {
  mask-image: url("/wp-content/uploads/icons/scheme.svg");
}

.icon--shield {
  mask-image: url("/wp-content/uploads/icons/shield.svg");
}

.icon--star {
  mask-image: url("/wp-content/uploads/icons/star.svg");
}

.icon--target {
  mask-image: url("/wp-content/uploads/icons/target.svg");
}

.icon--tool {
  mask-image: url("/wp-content/uploads/icons/tool.svg");
}

.icon--wallet {
  mask-image: url("/wp-content/uploads/icons/wallet.svg");
}

.features__title {
  font-size: 1.2rem;
  font-weight: 600;
}

.features__text {
  opacity: 0.7;
}

.blog-gallery {
  --count: 4;
  --gap: 1rem;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  gap: var(--gap);
}

.blog-gallery:last-child {
  margin-bottom: 0;
}

.blog-gallery__item {
  width: calc((100% + var(--gap)) / var(--count) - var(--gap));
}

.blog-gallery__pic {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border: 1px solid var(--border-color);
  aspect-ratio: 4/3;
}

.blog-gallery__pic::before,
.blog-gallery__pic::after {
  position: absolute;
  top: 50%;
  left: 50%;
  visibility: hidden;
  width: 2.5rem;
  height: 2.5rem;
  content: "";
  transition: all .4s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.blog-gallery__pic::before {
  z-index: 2;
  background-image: url("../img/icons/plus.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 45%;
}

.blog-gallery__pic::after {
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary-color);
}

.blog-gallery__pic:hover::before,
.blog-gallery__pic:hover::after {
  visibility: visible;
  opacity: 1;
}

.blog-gallery__pic > img {
  transition: 0.3s;
}

.blog-gallery__pic:hover > img {
  filter: brightness(0.5);
  transition: 0.3s;
}

.blog-gallery__img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.feedback {
  --gap: 2rem;
  --count: 2;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0;
  list-style: none;
  gap: var(--gap);
}

.feedback:last-child {
  margin-bottom: 0;
}

.feedback__item {
  width: calc((100% + var(--gap)) / var(--count) - var(--gap));
}

.feedback__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

.feedback__name {
  position: relative;
  z-index: 1;
  display: block;
  order: 1;
  margin-bottom: 1rem;
  color: var(--header-color);
  font-size: 1.2rem;
  font-weight: 600;
  font-style: normal;
}

.feedback__time {
  z-index: 1;
  order: 2;
  margin-bottom: 1rem;
  opacity: 0.5;
  color: var(--secondary-color);
  font-size: 0.7rem;
}

.feedback__info {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  background-color: #fff;
  box-shadow: var(--box-shadow);
}

.feedback__info::before {
  position: absolute;
  top: 2rem;
  left: 0;
  display: block;
  width: 2px;
  height: 1.5rem;
  content: "";
  background-color: var(--primary-color);
}

.feedback__info::after {
  position: absolute;
  z-index: -1;
  top: 2rem;
  right: 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  content: "";
  opacity: 0.1;
  background-image: url("./img/icons/quote.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.feedback__text {
  order: 3;
  margin: 0;
}

.single-post article h2 {
  text-align: center;
}

@media(max-width: 991px) {
  .features.flex-list {
    --count: 2;
  }

  .blog-gallery {
    --count: 2;
  }
}

@media(max-width: 767px) {
  .promo-block__pic {
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 3px solid var(--primary-color);
  }

  .promo-block__info {
    width: 100%;
  }

  .features {
    --gap: 1rem;
  }

  .feedback {
    --gap: 1rem;
    --count: 1;
  }
}

@media(max-width: 600px) {
  .features.flex-list {
    --count: 1;
  }

  .blog-gallery__item {
    --count: 1;
  }
}