.ec-page-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #080d28;
  color: #ffffff;
}

.ec-page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ec-page-hero__bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(.15);
}

.ec-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 13, 40, .94) 0%, rgba(8, 13, 40, .72) 44%, rgba(8, 13, 40, .3) 100%),
    linear-gradient(180deg, rgba(8, 13, 40, .34) 0%, rgba(8, 13, 40, .95) 100%);
}

.ec-page-hero__container,
.ec-projects-page__container,
.ec-projects-cta__container {
  width: min(100% - var(--ec-container-offset) * 2, var(--ec-container));
  margin-left: auto;
  margin-right: auto;
}

.ec-page-hero__container {
  position: relative;
  z-index: 3;
  padding: 42px 0 72px;
}

.ec-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 48px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.2;
}

.ec-breadcrumbs a {
  color: rgba(255, 255, 255, .72);
  transition: .25s ease;
}

.ec-breadcrumbs a:hover {
  color: #f26a21;
}

.ec-breadcrumbs span.active {
  color: #ffffff;
}

.ec-breadcrumbs a::after {
  content: "/";
  margin-left: 11px;
  color: rgba(255, 255, 255, .35);
}

.ec-page-hero__content {
  max-width: 850px;
}

.ec-page-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  color: #f26a21;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ec-page-hero__eyebrow::after {
  content: "";
  width: 72px;
  height: 1px;
  background: #f26a21;
}

.ec-page-hero__title {
  position: relative;
  display: inline-block;
  margin: 0 0 24px;
  padding-bottom: 12px;
  color: #ffffff;
  font-size: 62px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ec-page-hero__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #f26a21;
}

.ec-page-hero__text {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  line-height: 1.62;
}

.ec-projects-page {
  padding: 82px 0 88px;
  background: #ffffff;
  color: #080d28;
}

.ec-projects-page__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.ec-projects-page__title {
  position: relative;
  margin: 0 0 16px;
  padding-bottom: 20px;
  color: #080d28;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ec-projects-page__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 250px;
  max-width: 100%;
  height: 2px;
  background: #f26a21;
}

.ec-projects-page__subtitle {
  max-width: 620px;
  margin: 0;
  color: #5d6475;
  font-size: 15px;
  line-height: 1.6;
}

.ec-projects-page__counter {
  flex: 0 0 auto;
  min-width: 190px;
  padding: 18px 20px;
  border: 1px solid #dfe3ec;
  color: #5d6475;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.ec-projects-page__counter span {
  display: block;
  margin-bottom: 6px;
  color: #080d28;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
}

.ec-projects-list {
  display: grid;
  gap: 28px;
}

.ec-project-card {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(0, 1.18fr);
  min-height: 410px;
  border: 1px solid #dfe3ec;
  background: #ffffff;
  overflow: hidden;
  transition: .28s ease;
}

.ec-project-card:hover {
  border-color: #080d28;
  box-shadow: 0 24px 54px rgba(8, 13, 40, .1);
}

.ec-project-card__media {
  position: relative;
  display: block;
  min-height: 410px;
  overflow: hidden;
  background: #080d28;
}

.ec-project-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: .55s ease;
}

.ec-project-card:hover .ec-project-card__media img {
  transform: scale(1.07);
}

.ec-project-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 40, .04) 0%, rgba(8, 13, 40, .58) 100%),
    linear-gradient(90deg, rgba(8, 13, 40, .22), rgba(8, 13, 40, 0));
}

.ec-project-card__num {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  color: #f26a21;
  font-size: 62px;
  line-height: 1;
  font-weight: 800;
}

.ec-project-card__content {
  display: flex;
  flex-direction: column;
  padding: 42px 46px;
  min-width: 0;
}

.ec-project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.ec-project-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 11px;
  background: #f7f8fb;
  border: 1px solid #dfe3ec;
  color: #5d6475;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}

.ec-project-card__title {
  display: block;
  margin-bottom: 26px;
  color: #080d28;
  font-size: 27px;
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: .01em;
  transition: .25s ease;
}

.ec-project-card__title:hover {
  color: #f26a21;
}

.ec-project-card__info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.ec-project-card__info div {
  padding: 14px 14px 16px;
  border: 1px solid #dfe3ec;
  background: #ffffff;
  color: #080d28;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.ec-project-card__info span {
  display: block;
  margin-bottom: 8px;
  color: #8a90a3;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ec-project-card__text {
  max-width: 850px;
  margin: 0 0 32px;
  color: #5d6475;
  font-size: 15px;
  line-height: 1.62;
}

.ec-project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.ec-project-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid #080d28;
  background: #080d28;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  transition: .25s ease;
}

.ec-project-card__btn:hover {
  border-color: #f26a21;
  background: #f26a21;
  color: #ffffff;
}

.ec-project-card__btn--outline {
  background: transparent;
  color: #080d28;
}

.ec-project-card__btn--outline:hover {
  color: #ffffff;
}

.ec-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
}

.ec-pagination__item,
.ec-pagination__dots,
.page-numbers {
  min-width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe3ec;
  background: #ffffff;
  color: #080d28;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.ec-pagination__item {
  transition: .25s ease;
}

.ec-pagination__item:hover,
.ec-pagination__item.is-active,
.page-numbers.current {
  border-color: #080d28;
  background: #080d28;
  color: #ffffff;
}

.ec-pagination__item.is-disabled {
  opacity: .42;
  pointer-events: none;
}

.ec-pagination__dots,
.page-numbers.dots {
  border-color: transparent;
  color: #8a90a3;
}

.ec-projects-cta {
  padding: 0 0 88px;
  background: #ffffff;
}

.ec-projects-cta__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 42px 46px;
  background:
    linear-gradient(90deg, rgba(8, 13, 40, .94), rgba(8, 13, 40, .86)),
    url("../img/20241009_141428.jpg.webp") center / cover no-repeat;
  color: #ffffff;
}

.ec-projects-cta__label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: #f26a21;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ec-projects-cta__label::after {
  content: "";
  width: 60px;
  height: 1px;
  background: #f26a21;
}

.ec-projects-cta__title {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 800;
  text-transform: uppercase;
}

.ec-projects-cta__text {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.6;
}

.ec-projects-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid #f26a21;
  background: #f26a21;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transition: .25s ease;
}

.ec-projects-cta__btn:hover {
  background: transparent;
  color: #ffffff;
}

@media (max-width: 1199px) {
  .ec-project-card {
    grid-template-columns: minmax(330px, .82fr) minmax(0, 1.18fr);
  }

  .ec-project-card__content {
    padding: 36px 34px;
  }

  .ec-project-card__title {
    font-size: 24px;
  }

  .ec-project-card__info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .ec-page-hero {
    min-height: 420px;
  }

  .ec-page-hero__container {
    padding: 34px 0 58px;
  }

  .ec-page-hero__title {
    font-size: 46px;
  }

  .ec-projects-page {
    padding: 58px 0;
  }

  .ec-projects-page__head {
    display: block;
    margin-bottom: 34px;
  }

  .ec-projects-page__counter {
    width: fit-content;
    margin-top: 24px;
  }

  .ec-project-card {
    grid-template-columns: 1fr;
  }

  .ec-project-card__media {
    min-height: 330px;
  }

  .ec-projects-cta {
    padding-bottom: 58px;
  }

  .ec-projects-cta__container {
    grid-template-columns: 1fr;
  }

  .ec-projects-cta__btn {
    width: fit-content;
  }
}

@media (max-width: 575px) {
  .ec-page-hero {
    min-height: 390px;
  }

  .ec-breadcrumbs {
    margin-bottom: 34px;
    font-size: 12px;
  }

  .ec-page-hero__title {
    font-size: 34px;
  }

  .ec-page-hero__text {
    font-size: 15px;
  }

  .ec-projects-page {
    padding: 44px 0;
  }

  .ec-projects-page__title {
    font-size: 28px;
  }

  .ec-projects-page__title::after {
    width: 170px;
  }

  .ec-project-card__media {
    min-height: 245px;
  }

  .ec-project-card__num {
    left: 18px;
    bottom: 18px;
    font-size: 46px;
  }

  .ec-project-card__content {
    padding: 28px 22px;
  }

  .ec-project-card__title {
    font-size: 20px;
  }

  .ec-project-card__actions {
    display: grid;
  }

  .ec-project-card__btn {
    width: 100%;
  }

  .ec-pagination {
    gap: 6px;
    margin-top: 36px;
  }

  .ec-pagination__item,
  .ec-pagination__dots {
    min-width: 38px;
    height: 38px;
  }

  .ec-projects-cta {
    padding-bottom: 44px;
  }

  .ec-projects-cta__container {
    padding: 30px 22px;
  }

  .ec-projects-cta__title {
    font-size: 22px;
  }

  .ec-projects-cta__btn {
    width: 100%;
  }
}