/* .max-width-2.cases-archive{
    max-width: 1350px;
} */

.cases-archive .archive-desc {
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: rgb(25, 25, 25, 0.85);
  max-width: 740px;
}

.labels-filter {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 30px;
  column-gap: 20px;
}

.labels-filter .btn.btn_green,
.labels-filter .btn.btn_green:hover {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 768px) {
  .labels-filter .btn {
    font-size: 12px;
    line-height: 15px;
    padding: 10px 14px;
  }
}

.labels-filter-item {
  width: 100%;
}

.labels-filter-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 27px;
  color: #191919;
  margin-bottom: 20px;
}

.labels-filter-title span {
  color: #777;
  font-weight: 500;
}

.labels-filter-values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.labels-filter-value {
  padding: 10px 14px;
  border: 1px solid #5c5c5c;
  border-radius: 50px;
  font-size: 16px;
  line-height: 20px;
  color: #191919;
  font-weight: 400;
  cursor: pointer;
}

.labels-filter-value.active {
  background-color: #1FC3B0;
  text-decoration: none;
  border-color: #1FC3B0;
  color: #fff;
  font-weight: 600;
}

.labels-filter-value:hover:not(.active) {
  background: #1fc3b0;
  color: #fff;
  border-color: #1fc3b0;
}

.case-item.service-hidden,
.case-item.direction-hidden {
  display: none;
}

.case-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.case-image {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.case-image img:not(.case-item__logo) {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* 
.case-logo{
    display: flex;
    justify-content: flex-end;
} */

.case-name {
  width: 100%;
  font-weight: 700;
  font-size: 24px;
  line-height: 27px;
  color: #191919;
  margin-top: 20px;
  display: block;
}

.case-url {
  display: block;
  font-weight: 500;
  font-size: 16px;
  line-height: 27px;
  color: #5c5c5c;
  opacity: 0.75;
  margin-top: 6px;
}

.case-link {
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 1px;
  color: #191919;
  display: inline-flex;
  flex-direction: column;
  margin-top: 11px;
}

.case-link:hover {
  text-decoration: none;
}

.case-link:hover:after {
  background-color: #1fc3b0;
}

.case-link:after {
  content: "";
  display: block;
  background: #191919;
  height: 1px;
  width: 100%;
}

.case-info {
  display: none;
}

.c-footer {
  margin-top: 0;
}

.front-form {
  margin-top: 80px;
  background: #181818;
  padding: 80px 0;
  margin-bottom: 0;
}

.front-form-content {
  max-width: 100%;
}

.front-form-title {
  font-weight: bold;
  font-size: 48px;
  line-height: 55px;
}

.front-form-title:before {
  background: #5c5c5c;
  display: block;
  content: "";
  width: 68px;
  height: 3px;
  margin-bottom: 25px;
}

.front-form-desc {
  display: flex;
  align-items: center;
}

.front-form-desc .req_after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ff5858;
  margin-left: 8px;
}

.front-form input,
.front-form textarea {
  background: transparent;
  padding-top: 18px;
  padding-bottom: 18px;
  line-height: 18px;
  border: unset;
  border-bottom: 1px solid rgb(241 241 241 / 50%);
  border-radius: 1px;
  padding-left: 0;
  padding-right: 0;
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  color: #ffffff;
  margin-bottom: 0;
}

.front-form input::placeholder,
.front-form textarea::placeholder {
  color: transparent;
}

.form-seo {
  max-width: 1200px;
}

.form-seo__input-3,
.form-seo__input {
  position: relative;
}

.form-seo__input-3 {
  max-width: 360px;
}

.form-seo__input-3 input,
.form-seo__input textarea {
  transition: border-color 0.5s ease;
}

.form-seo__input textarea {
  height: 55px;
  resize: vertical;
}

.form-seo__input-3 .placeholder,
.form-seo__input .placeholder {
  display: flex;
  align-items: center;
  position: absolute;
  top: 18px;
  color: rgb(255 255 255 / 50%);
  font-size: 14px;
  line-height: 17px;
  font-weight: 400;
  cursor: text;
}

.form-seo .placeholder-req {
  width: 6px;
  height: 6px;
  background: #ff5858;
  border-radius: 50%;
  margin-left: 8px;
}

.form-seo__input-3.focused .placeholder,
.form-seo__input-3.hasValue .placeholder,
.form-seo__input.focused .placeholder,
.form-seo__input.hasValue .placeholder {
  display: none;
}

.form-seo__input-3 input:focus,
.form-seo__input textarea:focus {
  border-color: #1fc3b0;
}

.from-seo__wrap-vertical {
  max-width: 780px;
}

.front-form .check-proccesing {
  font-weight: 300;
  color: rgb(255 255 255 / 50%);
  margin-bottom: 0;
}

.front-form .check-proccesing a {
  color: inherit;
  font-weight: 600;
  transition: color 0.5s ease;
}

.front-form .check-proccesing a:hover {
  color: #1fc4b0;
}

.form-seo__submit-new {
  width: 360px;
}

.from-seo__wrap-vertical,
.form-seo__submit-new {
  margin-top: 55px;
}

.form-seo__submit {
  display: none;
}

.form-seo__submit-new {
  display: block;
}

.front-form .wpcf7-not-valid-tip {
  margin: 0;
}

.form-seo__submit-new input[type="submit"] {
  border-radius: 50px;
  border: 1px solid #5c5c5c;
  font-weight: bold;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 1px;
  text-transform: uppercase;
  max-width: 291px;
  transition: background-color 0.5s ease, border 0.5s ease;
  padding-top: 16px;
  padding-bottom: 17px;
  padding-left: 0;
  padding-right: 0;
}

.form-seo__submit-new input[type="submit"]:hover {
  border-color: #1fc4b0;
  background: #1fc4b0;
}

.case-labels {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 1350px) {
  .case-transition-back {
    position: absolute;
    background: #fff;
    opacity: 0.7;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
  }

  .case-info {
    transition: all 0.3s ease-in-out;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: block;
  }

  .case-info-content {
    position: relative;
    z-index: 2;
  }

  .case-label {
    /* background: #fff;
    border: 1px solid #8e8e8e;
    border-radius: 50px;
    padding: 10px 15px;
    color: #191919;
    font-weight: 500;
    font-size: 12px;
    line-height: 14px; */
  }

  .case-desc {
    font-weight: 500;
    font-size: 16px;
    line-height: 27px;
  }

  .case-desc-item {
    display: flex;
    align-items: flex-start;
  }

  .case-desc-item:before {
    content: "";
    width: 3px;
    min-width: 3px;
    height: 3px;
    min-height: 3px;
    border-radius: 50%;
    margin: 11px 10px;
    background: #191919;
  }

  .case-link {
    margin-top: 20px;
  }
}

@media (max-width: 1350px) {
  .front-form-title {
    font-size: 30px;
    line-height: 40px;
    max-width: unset;
  }

  .front-form .check-proccesing,
  .front-form-desc,
  .front-form-title {
    text-align: left;
  }

  .desktop-hidden {
    display: none;
  }

  .case-item:hover .case-info {
    top: 0;
  }

  .labels-filter-item.services-item {
    max-width: 505px;
  }

  .labels-filter-item.directions-item {
    max-width: 630px;
  }

  .labels-filter {
    flex-wrap: wrap;
    row-gap: 50px;
  }

  .case-url {
    margin-top: 7px;
  }
}

@media (max-width: 767px) {
  .front-form input:not([type="checkbox"]),
  .front-form textarea {
    margin: 0;
    max-width: 100%;
  }

  .front-form input:not([type="checkbox"])[type="submit"],
  .front-form textarea[type="submit"] {
    max-width: 100%;
  }

  .form-seo__input-3 {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .form-seo__input-3:last-child {
    margin-bottom: 0;
  }

  .from-seo__wrap-vertical {
    margin-top: 0;
  }

  .front-form .check-proccesing {
    max-width: 100%;
  }

  .form-seo__submit-new {
    width: 100%;
  }

  .labels-filter-value {
    font-size: 12px;
    line-height: 15px;
  }

  .case-url {
    margin-top: 10px;
  }

  .case-link {
    margin-top: 17px;
  }
}

.cases-conatiner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 80px;
  margin-bottom: 40px;
}

.cases-conatiner + .flex-navi {
  margin-bottom: 80px;
}

.cases-conatiner > * {
  width: calc(25% - 15px);
}

@media (max-width: 1230px) {
  .cases-conatiner > * {
    width: calc(33% - 15px);
  }
}

@media (max-width: 768px) {
  .cases-conatiner > * {
    width: calc(50% - 15px);
  }
}

@media (max-width: 570px) {
  .cases-conatiner > * {
    width: 100%;
  }
}

.case-item__badge {
  position: absolute;
  right: 0;
  top: -40px;
  background: #1fc3b0;
  border-bottom-left-radius: 5px;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 14px;
  color: #fff;
  padding: 3px 16px;
}

.cases-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.cases-wrapper > * {
  width: 100%;
}

.case-item__link {
  margin-bottom: 20px;
}

.case-item__link a {
  color: #2458ac;
  font-size: 15px;
  font-weight: 500;
  line-height: 130%;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .case-item__link {
    text-align: center;
  }
}

/* @media (max-width: 1350px) {
  .cases-wrapper {
    margin-top: 40px;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .cases-wrapper {
    grid-template-columns: repeat(1, 1fr);
    gap: 33px;
  }
} */

/* case-item */

.case-item {
  border: 1px solid #1fc3b0;
  border-radius: 5px;
  padding-top: 40px;
  margin-bottom: 30px;
}

.case-item__content,
.case-item__info,
/* .case-item__img-preview, */
.case-item__preview-text {
  padding-left: 20px;
  padding-right: 20px;
}

.case-wrapper {
  position: relative;
}

.case-item__img {
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 5px;
  position: relative;
}

.case-item__img img:not(.case-item__logo) {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.case-item__img .case-item__info {
  transform: none;
}

.case-item__info {
  /* position: absolute; */
  top: 0;
  /* transform: translateY(100%); */
  left: 0;
  height: 100%;
  right: 0;
  /* padding: 20px; */
  transition: transform 0.4s ease;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid rgba(216, 216, 216, 0.4);
  position: relative;
  z-index: 1;
}

.case-item__rubrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .case-item__rubrics {
    justify-content: center;
  }
}

.case-item .btn.btn_white {
  display: inline-block;
  background-color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  color: rgba(25, 25, 25, 0.8);
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 14px;
  border-radius: 50px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

.case-item .btn.btn_white:hover {
  border-color: #1fc3b0;
}

.case-item__preview-text {
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 16px;
  line-height: 27px;
  color: #191919;
}

.case-item__info-link {
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 1px solid #686868;
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #191919;
  margin-top: 20px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.case-item__info-link:hover,
.case-item__info-link:focus {
  /* color: #1FC3B0;
    border-color: #1FC3B0; */
  color: #191919;
  text-decoration: none;
}

.case-item__name {
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 18px;
  line-height: 130%;
  display: flex;
  align-items: center;
  color: #191919;
  transition: color 0.3s ease;
}

a.case-item__name {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .case-item__name {
    justify-content: center;
  }
}

a.case-item__name:hover,
a.case-item__name:focus {
  color: #1fc3b0;
  text-decoration: none;
}

.case-item__link {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 27px;
  color: #5c5c5c;
  opacity: 0.75;
  transition: color 0.3s ease;
}

.case-item__link:hover,
.case-item__link:focus {
  color: #1fc3b0;
  text-decoration: none;
}

/* @media (min-width: 1320px) {
  .case-item__content .case-item__rubrics {
    display: none;
  }

  .case-item__content .case-item__preview-text {
    display: none;
  }
} */

.case-item__content .case-item__preview-text img {
  object-fit: cover;
}

.case-item__preview-text p:last-child {
  margin-bottom: 0;
}

.case-item__logo {
  position: absolute;
  top: -65px;
  right: auto;
  background: white;
  left: 23px;
  /* left: 50%; */
  /* transform: translateX(-50%); */
  display: flex;
  align-items: center;
  justify-content: center;
  /* max-width: 50%; */
  max-width: 70%;
  padding: 0 5px;
  height: 50px;
}

.case-item__img-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-item__img-preview.negative_margin {
  margin-top: -105px;
}

.case-item__img-preview img {
  display: block;
  margin-bottom: 2px;
}

@media (max-width: 768px) {
  .case-item__img-preview img {
    margin: 0 auto;
  }
}

/* @media (max-width: 1320px) {
  .case-item__img {
    margin-bottom: 0;
  }

  .case-item__logo {
    position: absolute;
    top: 15px;
    left: 15px;
    right: auto;
  }

  .case-item__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    background: #fafafa;

    padding: 20px 16px;
  }

  .case-item__content > * {
    margin-top: 0;
    margin-bottom: 0;
  }

  .case-item__content .case-item__name {
    order: 0;
  }

  .case-item__content .case-item__link {
    order: 1;
  }

  .case-item__content .case-item__preview-text {
    order: 2;
  }

  .case-item__content .case-item__preview-text ul {
    padding-left: 1.5em;
  }

  .case-item__info {
    transform: none;
    background: none !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 10px;
  }

  .case-item__info .case-item__preview-text {
    display: none;
  }

  .case-item__info .case-item__info-link {
    display: none;
  }

  .case-item__rubrics {
    margin-bottom: 0;
  }

  .labels-filter {
    flex-direction: column;
    gap: 40px;
  }

  .archive-desc {
    margin-bottom: 40px;
  }
} */

.case-item__terms {
  order: 3;
}

/* @media (min-width: 768px) {
  .case-item__terms {
    display: none;
  }
} */

/* @media (max-width: 768px) {
  .case-item__logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translate(-50%, -0%);
  }

  .case-item__info {
    display: none;
  }

  .archive-desc {
    margin-bottom: 20px;
  }

  .case-item__name {
    font-size: 20px;
  }

  .case-item__preview-text {
    font-size: 14px;
  }

  .case-item__content {
    padding: 16px;
  }

  .cases-archive .hentry-header .title {
    font-size: 40px;
  }
} */

/* end case-item */
