/**** SERVICES PAGE ****/

/* SERVICES TITLE AREA */

.services-title-area {
  display: flex;
  flex-direction: column;
  background: #acdcd2;
  overflow: hidden;
}

.services-title-area-content {
  display: flex;
  position: relative;
  height: 320px;
}

.services-title-area-text,
.services-title-element {
  width: 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.services-title-area-text {
  background: #153e36;
}

.services-title-element-item {
  width: 100%;
  position: relative;
  height: 34px;
}

.services-title-element .services-title-element-item {
  background: #153e36;
}

.services-title-area-text .services-title-element-item {
  background: #acdcd2;
}

.services-title-element:before {
  content: "";
  position: absolute;
  width: 100%;
  height: calc(100% - 34px);
  top: 0;
  right: -100%;
  background: #153e36;
}

.services-title-area-text:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 34px;
  bottom: 0;
  left: -100%;
  background: #153e36;
}

.services-title {
  font-size: 77px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  padding-left: 38px;
  padding-right: 38px;
  padding-bottom: 36px;
}

@media (max-width: 1240px) {
  .services-title {
    font-size: 64px;
  }
}

@media (max-width: 1024px) {
  .services-title {
    font-size: 60px;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 32px;
  }
}

@media (max-width: 820px) {
  .services-title-area-content {
    height: 260px;
  }

  .services-title {
    font-size: 44px;
  }

  .services-title-element-item,
  .services-title-area-text:before {
    height: 27px;
  }

  .services-title-element:before {
    height: calc(100% - 27px);
  }
}

@media (max-width: 767px) {
  .services-title-area-content {
    height: 200px;
  }

  .services-title {
    font-size: 28px;
    padding: 0 16px 16px;
  }

  .services-title-element-item,
  .services-title-area-text:before {
    height: 16px;
  }

  .services-title-element:before {
    height: calc(100% - 16px);
  }
}

/* breadcrumbs */

.services-title-area-breadcrumbs {
  background: #f2f2f2;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 21px 0 21px 38px;
}

.breadcrumbs-item {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  color: #000;
  opacity: 0.3;
  text-transform: uppercase;
}

.breadcrumbs-item a {
  color: inherit;
  text-decoration: none;
  padding: 21px 0;
}

.breadcrumbs-item a:hover {
  text-decoration: underline;
}

.breadcrumbs-item + .breadcrumbs-item::before {
  content: "|";
  margin-right: 12px;
  color: #000;
  opacity: 0.3;
}

.breadcrumbs-current {
  opacity: 1;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .breadcrumbs-list {
    padding-left: 24px;
  }
}

@media (max-width: 767px) {
  .breadcrumbs-list {
    padding: 17px 0 17px 16px;
    gap: 8px;
  }

  .breadcrumbs-item {
    font-size: 12px;
  }

  .breadcrumbs-item + .breadcrumbs-item::before {
    margin-right: 8px;
  }
}

/* -- breadcrumbs -- */

/* --- SERVICES TITLE AREA  --- */

.services-listing {
  padding: 90px 0;
}

.services-listing-category {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.listing-category-title-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.listing-category-title {
  font-size: 44px;
  font-weight: 600;
}

.listing-category-subtitle {
  font-size: 24px;
  font-weight: 400;
  color: #000;
  opacity: 0.4;
}

.services-listing-content {
  display: flex;
  flex-direction: column;
  gap: 84px;
}

.listing-category-items,
.listing-category-subitems,
.listing-category-subitem-services {
  list-style: none;
  margin: 0;
  padding: 0;
}

.listing-category-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.listing-category-item {
  background: #acdcd2;
  padding: 18px;
}

.listing-practic-items .listing-category-item {
  background: #acdcd2;
}

.listing-industry-items .listing-category-item {
  background: #0b2923;
}

.listing-industry-items .listing-item-trigger {
  color: #acdcd2;
}

.listing-item-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 0;
  background: none;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.listing-item-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
}

.listing-item-icon {
  width: 14px;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  flex: 0 0 14px;
  color: currentColor;
}

.listing-item-trigger[aria-expanded="true"] .listing-item-icon::before {
  content: "−";
}

.listing-item-trigger[aria-expanded="false"] .listing-item-icon::before {
  content: "+";
}

.listing-category-subitems,
.listing-category-subitem-services {
  list-style: none;
  margin: 0;
  padding: 0;
}

.listing-item-panel {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
    padding 280ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 240ms ease,
    transform 180ms ease;
  will-change: max-height, padding;
}

.listing-item-panel[data-open="true"] {
  padding: 18px 0 14px;
  max-height: 4000px;
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .listing-item-panel {
    transition: none;
    transform: none;
  }
}

@media (min-width: 1241px) {
  .listing-category-subitems {
    column-count: 2;
    column-gap: 16px;
  }

  .listing-category-subitem {
    display: inline-block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 16px;
  }
}

@media (max-width: 1240px) {
  .listing-category-subitems {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .listing-category-subitem {
    margin-bottom: 0;
  }
}

.listing-category-subitem {
  background: #fff;
  padding: 36px;
}

.listing-category-subitem-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  padding-bottom: 36px;
}

.listing-category-subitem-title-text {
  max-width: 50%;
}

.listing-category-subitem-link {
  padding: 15px 21px;
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  border: 1px solid #000;
  text-transform: uppercase;
  transition: opacity 0.2s ease-in-out;
}

.listing-category-subitem-link:hover {
  opacity: 0.5;
}

.listing-category-subitem-services {
  display: grid;
  gap: 12px;
}

.listing-category-subitem-service a {
  text-decoration: none;
  font-size: 18px;
  color: inherit;
  font-weight: 600;
  opacity: 0.5;
}

.listing-category-subitem-service a:hover {
  opacity: 1;
  text-decoration: underline;
  color: #3275ff;
}

@media (max-width: 1240px) {
  .services-listing {
    padding: 54px 0;
  }
}

@media (max-width: 820px) {
  .listing-category-title {
    font-size: 32px;
  }

  .listing-category-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .services-listing {
    padding: 44px 0;
  }

  .listing-category-title-area {
    gap: 16px;
  }

  .listing-category-subitems {
    gap: 6px;
  }

  .listing-category-title {
    font-size: 28px;
  }

  .listing-item-title {
    font-size: 20px;
  }

  .listing-category-item {
    padding: 6px;
  }

  .listing-item-trigger {
    padding: 12px 0 12px 12px;
  }

  .listing-item-panel,
  .listing-item-panel[data-open="true"] {
    padding-top: 12px;
  }

  .listing-category-subitem {
    padding: 24px;
    position: relative;
    padding-bottom: 90px;
  }

  .listing-category-subitem-title {
    display: block;
  }

  .listing-category-subitem-title-text {
    width: 100%;
  }

  .listing-category-subitem-link {
    position: absolute;
    bottom: 24px ;
    left: 24px;
  }

  .listing-category-subitem-title {
    font-size: 18px;
    padding-bottom: 16px;
  }

  .listing-category-subitem-services {
    gap: 16px;
  }

  .listing-category-subitem-service a {
    font-size: 16px;
  }
}

/* --- SERVICES LISTING --- */

/* POPULAR SERVICES */

.popular-services {
  padding-bottom: 84px;
}

.popular-services-content {
  display: flex;
  flex-direction: column;
}

.popular-services-desc {
  margin-top: 15px;
  font-size: 24px;
  font-weight: 400;
  color: #000;
  opacity: 0.4;
}

.popular-services-items {
  margin-top: 40px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.popular-services-item:hover {
  filter: brightness(0.97);
}

/* Card */
.popular-services-item {
  display: flex;
  flex-direction: column; /* важно */
  align-items: flex-start; /* текст слева */
  justify-content: flex-start; /* текст сверху */

  height: 186px;
  padding: 20px;

  background: #acdcd2;
  color: #000;
  text-decoration: none;
}

.popular-services-title {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  max-width: 85%;
}

/* Arrow bottom-right */
.popular-services-arrow {
  margin-top: auto;
  align-self: flex-end;

  font-size: 37px;
  font-weight: 500;
  line-height: 1;
}

/* Big card: правая колонка, 2 ряда */
.popular-services-item--big {
  grid-column: 3;
  grid-row: 1 / span 2;
  height: calc(186px * 2 + 16px);
}

.popular-services .all-services-btn {
  margin-top: 32px;
}

@media (max-width: 1024px) {
  .popular-services {
    padding-bottom: 64px;
  }

  .popular-services-desc {
    margin-top: 12px;
    font-size: 16px;
  }

  .popular-services-items {
    margin-top: 32px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .popular-services-item--big {
    grid-column: auto;
    grid-row: auto;
    height: 186px;
  }

  .popular-services-item:last-child {
    grid-column: 1 / -1;
  }

  .popular-services-title {
    max-width: 90%;
  }

  .popular-services .all-services-btn {
    margin-top: 24px;
  }
}

@media (max-width: 767px) {
  .popular-services-items {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .popular-services-item {
    width: 100%;
    height: auto;
    padding: 30px 22px;
  }

  .popular-services-title {
    font-size: 16px;
    width: 100%;
  }

  .popular-services-title br {
    display: none;
  }

  .popular-services-arrow {
    display: none;
  }

  .popular-services .all-services-btn {
    margin-top: 21px;
    font-size: 12px;
    padding: 16px 20px !important;
  }
}

/* --- POPULAR SERVICES --- */

/* POPULAR SERVICES */

.services-page .popular-services {
  background: #acdcd2;
  padding: 60px 0 90px;
}

.services-page .popular-services-item {
  background: #fff;
}

@media (max-width: 1024px) {
  .services-page .popular-services {
    padding: 54px 0;
  }
}

/* --- POPULAR SERVICES --- */

/* CTA */

.cta {
  height: 100vh;
  background: #6c2f16;
  position: relative;
}

.inner-cta {
  padding: 92px 0;
}

.inner-cta .cta-content {
  width: 100%;
  background: red;
  position: relative;
  overflow: hidden;
  max-height: 640px;
}

.cta-bg {
  background: #6c2f16;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-content {
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: relative;
}

.cta-slogan {
  color: #fff;
  font-size: 76px;
  line-height: 1;
  max-width: 1000px;
  text-align: center;
  font-weight: 600;
  z-index: 3;
}

.cta-btn {
  background-color: transparent;
  box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.1) inset;
  -webkit-box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 1) inset;
  -moz-box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 1) inset;
  z-index: 3;
}

@media (max-width: 1024px) {
  .cta {
    height: 50vh;
  }

  .cta-slogan {
    font-size: 64px;
  }

  .inner-cta {
    padding: 64px 0;
  }
  
  .cta-content {
      max-height: 50vh;
  }
}

@media (max-width: 820px) {
  .cta-slogan {
    font-size: 54px;
  }

  .inner-cta .cta-content {
    max-height: 480px;
  }
}

@media (max-width: 767px) {
  .cta-slogan {
    font-size: 44px;
  }

  .cta-btn {
    font-size: 12px;
    padding: 20px;
  }

  .inner-cta {
    padding: 44px 0;
  }

  .inner-cta .cta-content {
    max-height: 300px;
  }
  
  .cta-content {
      max-height: 50vh;
  }

  .inner-cta .cta-slogan {
    font-size: 32px;
    max-width: 90%;
  }
}

/* --- CTA --- */
