/* HERO SECTION */

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

/* Background wrapper */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Cover image */
.hero-bg-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.6s ease;
}

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

/* When video is ready */
.hero-bg-video.loaded + .hero-bg-cover {
  opacity: 0;
}

.hero-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  color: #fff;
  font-weight: 500;
}

.hero-content h1 span {
  color: #b3b3b3;
}

.hero-btns {
  display: flex;
  gap: 8px;
}

.hero-btns .btn-outline:hover {
  color: var(--btnOutlineHover);
  box-shadow: 0px 0px 0px 1px rgb(197, 197, 197) inset;
  -webkit-box-shadow: 0x 0px 0px 1px rgb(197, 197, 197) inset;
  -moz-box-shadow: 0px 0px 0px 1px rgb(197, 197, 197) inset;
}

@media (max-width: 1024px) {
  .hero-conten h1 {
    font-size: 46px;
  }
}

@media (max-width: 767px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .hero-btns .btn-outline {
    display: none;
  }
}

/* ----- HERO SECTION ----- */

/* COUNTER SECTION */

.counter {
  background: #fff;
  padding: 84px 0;
}

.counter-items {
  display: flex;
  gap: 140px;
}

.counter-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #000;
}

.counter-value {
  font-size: 114px;
  line-height: 1;
  font-weight: 500;
  display: inline-flex;
  align-items: baseline;
}

.counter-number {
  display: inline-flex;
  gap: 0.02em;
}

.counter-digit {
  position: relative;
  overflow: hidden;
  height: 1em;
  display: inline-block;
}

.counter-digit-list {
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease-out;
  will-change: transform;
}

.counter-digit-item {
  line-height: 1;
  height: 1em;
}

.metric-value {
  margin-left: 10px;
}

.counter-label {
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  opacity: 0.4;
}

@media (max-width: 1024px) {
  .counter {
    padding: 64px 0;
  }

  .counter-items {
    gap: 44px;
  }

  .counter-value {
    font-size: 74px;
  }

  .counter-label {
    max-width: 196px;
  }
}

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

  .counter-items {
    flex-direction: column;
    gap: 74px;
  }

  .counter-value {
    font-size: 64px;
  }
}

/* ----- COUNTER SECTION ----- */

/* PRODUCTS SECTION */

.products {
  padding: 75px 0 100px;
  background: #eef2fa;
}

.section-title {
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  color: #000;
}

.products-items {
  margin-top: 32px;
  width: 100%;
  display: flex;
  gap: 10px;
}

.products-item {
  width: calc(50% - 4px);
  padding: 40px 24px;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
  gap: 10px;
  aspect-ratio: 1/1;
  border-radius: 10px;
  background: #00193f;
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.products-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  left: 0;
  top: 0;
  border-radius: 0px;
  transition: all 0.5s ease-in-out;
}

.product-item-title {
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  position: relative;
  width: fit-content;
}

.product-item-title:after {
    content: '';
    height: 2px;
    width: 0%;
    background: #fff;
    position: absolute;
    bottom: -7px;
    left: 0;
    transition: width 0.5s ease-in-out;
}

.products-item:hover .product-item-title:after {
    width: 100%;
}

.products-item:hover > img {
    transform: scale(1.05);
    transform-origin: center center;
}

.product-item-desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  opacity: 0.4;
}

@media (max-width: 1024px) {
  .products {
    padding: 64px 0 64px;
  }

  .products-items {
    margin-top: 20px;
  }

  .product-item-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 34px;
  }
  
  .products-item:hover .product-item-title:after {
    width: 0;
  }
  
  .products-item:hover > img {
    transform: scale(1);
  }
}

@media (max-width: 820px) {
  .product-item-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .products-items {
    flex-direction: column;
  }

  .products-item {
    width: 100%;
  }

  .product-item-title {
    font-size: 34px;
  }
}

@media (max-width: 767px) {
  .section-title {
    font-size: 28px;
  }

  .products {
    padding: 44px 0 44px;
  }
  
  .products-item {
      padding: 20px 12px;
  }

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

  .product-item-desc {
    font-size: 14px;
    max-width: 150px;
    line-height: 1.2;
  }
}

/* ----- PRODUCTS SECTION ----- */

/* PROJECTS */

.projects {
  padding: 78px 0;
  background: #000;
}

.projects-title {
  color: #fff;
  line-height: 1.1;
}

.projects-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 600px;
  position: relative;
}

.projects-result {
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.projects-city {
  line-height: 1;
  font-size: 28px;
  font-weight: 500;
}

.projects-count {
  font-size: 90px;
  font-weight: 500;
  line-height: 1;
}

.projects-count .count-line {
  display: block;
  min-height: 1em;
}

.projects-map {
  position: absolute;
  top: 0;
  right: 0;
}

.projects-result .btn-outline:hover {
  color: var(--btnOutlineHover);
  box-shadow: 0px 0px 0px 1px rgb(197, 197, 197) inset;
  -webkit-box-shadow: 0x 0px 0px 1px rgb(197, 197, 197) inset;
  -moz-box-shadow: 0px 0px 0px 1px rgb(197, 197, 197) inset;
}

.all-projects-btn {
    box-shadow: none;
    padding: 24px 40px;
    font-size: 22px;
    margin-top: 20px;
}

@media (max-width: 1439px) {
  .projects-count {
    font-size: 64px;
  }

  .projects-map svg {
    transform: scale(0.9);
    transform-origin: top right;
  }
}

@media (max-width: 1240px) {
  .projects-count {
    font-size: 44px;
  }

  .projects-map svg {
    transform: scale(0.8);
  }
}

@media (max-width: 1024px) {
  .projects {
    padding: 64px 0;
  }

  .projects-content {
    gap: 20px;
    min-height: 550px;
  }

  .projects-map svg {
    transform: scale(0.9);
  }
}

@media (max-width: 1023px) {
  .projects-content {
    min-height: auto;
  }

  .projects-map {
    position: relative;
  }

  .projects-map svg {
    width: 100%;
    height: auto;
    transform: scale(1);
  }

  .projects-city {
    font-size: 20px;
  }

  .projects-count {
    font-size: 74px;
  }
}

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

  .projects-title {
    font-size: 28px;
  }

  .projects-count {
    font-size: 44px;
  }
}

.projects-map svg path {
  transition: fill 0.3s ease-in-out;
  position: relative;
}

.projects-map svg path.active {
  fill: #2561ff;
}

.has-objects:hover {
  cursor: pointer;
  fill: #2561ff;
}

#Kyiv {
  position: relative;
}

.region-label {
  pointer-events: none;
  font-family: inherit;
}

/* All projects button highlight + pulse */
.all-projects-btn.is-highlighted {
  background: #2561ff;
  border-color: #2561ff;
  color: #fff;
}

.all-projects-btn.is-pulsing {
  animation: allProjectsPulse 0.7s ease-out 2;
}

@keyframes allProjectsPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 97, 255, 0.55);
    transform: translateZ(0) scale(1);
  }
  70% {
    box-shadow: 0 0 0 30px rgba(37, 97, 255, 0);
    transform: translateZ(0) scale(1.07);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 97, 255, 0);
    transform: translateZ(0) scale(1);
  }
}

/* ----- PROJECTS SECTION ----- */

/* CLIENTS SECTION */

.clients {
  background: #000;
  padding-bottom: 110px;
}

.clients-title {
  width: 100%;
  text-align: center;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 500;
  color: #fff;
  opacity: 0.4;
  margin-bottom: 30px;
}

.clients-content {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.clients-item {
  width: calc((100% - 20px) / 3);
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: #1b1b1b;
  transition: background-color 0.2s ease-in-out, box-shadow 0.6s ease-in-out;
  cursor: pointer;
}

.clients-item:hover {
  background-color: #212121;
  box-shadow: 0px 0px 0px 2px rgba(83, 83, 83, 1);
  -webkit-box-shadow: 0px 0px 0px 2px rgba(83, 83, 83, 1);
  -moz-box-shadow: 0px 0px 0px 2px rgba(83, 83, 83, 1);
}

.clients-item img {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

@media (max-width: 820px) {
  .clients-title {
    font-size: 20px;
    margin-bottom: 24px;
  }

  .clients-content {
    gap: 6px;
  }

  .clients-item {
    width: calc((100% - 12px) / 3);
  }
}

@media (max-width: 767px) {
  .clients-title {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .clients-content {
    gap: 5px;
  }

  .clients-item {
    width: calc((100% - 5px) / 2);
  }
}

/* ----- CLIENTS SECTION ----- */


/* NEWS SECTION */

.news {
  padding: 104px 0 96px 0;
  background: #eef2fa;
}

.news-area {
  display: flex;
  gap: 10px;
  width: 100%;
}

.news-title {
  width: calc((100% - 20px) / 3);
}

.news-content {
  width: calc(2 * ((100% - 20px) / 3) + 10px);
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.news-items {
  display: flex;
  gap: 10px;
}

.news-item {
  width: calc((100% - 5px) / 2);
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.3s ease-in-out;
  padding-bottom: 50px;
}

.news-item:hover {
  background-color: #ffffff;
  box-shadow: 0px 0px 0px 10px rgba(255, 255, 255, 1);
  -webkit-box-shadow: 0px 0px 0px 10px rgba(255, 255, 255, 1);
  -moz-box-shadow: 0px 0px 0px 10px rgba(255, 255, 255, 1);
}

.news-item-link {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-decoration: none;
  color: #000000;
}

.news-item-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.news-item-featured-image {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.news-item-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
  max-width: 80%;
  min-height: calc(24px * 1.3 * 3);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.4s ease-in-out;
}

.news-item-link:hover .news-item-title {
  text-decoration-color: #000;
}

.news-item-exerpt {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 80%;
  min-height: calc(14px * 1.4 * 3);
}

.news-item-meta {
  display: flex;
  gap: 35px;
  opacity: 0.5;
}

.news-item-date,
.news-item-category {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #000;
}

.news-item-category {
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.3s ease-in-out;
}

.news-item-category:hover {
  text-decoration-color: #000;
}

.btn-all {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  width: fit-content;
}

.btn-all span {
  position: relative;
  width: fit-content;
}

.btn-all span:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: #000;
  transition: width 0.3s ease-in-out;
}

.btn-all:hover span:after {
  width: 100%;
}

.btn-all svg {
  transition: all 0.3s ease-in-out;
  transform: translate(0px, -2px);
}

.btn-all:hover svg {
  transform: translate(2px, -4px);
}

@media (max-width: 1024px) {
  .news {
    padding: 64px 0;
  }

  .news-item {
    padding-bottom: 24px;
  }

  .news-item-link {
    gap: 14px;
  }

  .news-item-title {
    font-size: 20px;
    min-height: calc(20px * 1.3 * 3);
  }
}

@media (max-width: 820px) {
  .news-content {
    gap: 25px;
  }

  .news-item-title {
    max-width: 100%;
    font-size: 18px;
    min-height: calc(18px * 1.3 * 3);
  }

  .news-item-exerpt {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .news-area {
    flex-direction: column;
    gap: 24px;
  }

  .news-title,
  .news-content {
    width: 100%;
  }

  .news-item-title {
    min-height: calc(18px * 1.3 * 2);
  }
}

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

  .news-items {
    flex-direction: column;
    gap: 24px;
  }

  .news-item {
    width: 100%;
  }
}

/* ----- NEWS SECTION ----- */
