.header__line {
    display: none;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.219);
    opacity: 0.7;
    margin-top: 10px;
    transition: opacity 0.3s;
}

.header.scrolled .header__line {
    display: block;
}

.header-nav--shown .header__line {
    display: none !important;
}

.services-tabs__text p {
    font-size: 20px;
}

@media (max-width: 767px) {
  .home-projects__list{
      height: 455px;
  }
}

@media (max-width: 500px) {
  .home-projects__list{
      height: 450px;
  }
}


@media (max-width: 391px) {
    .home-projects__list{
        height: 480px;
    }
}

.home-projects__grid-card.blur::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.0) 0%, rgb(0 0 0 / 70%) 70%, rgb(0 0 0) 100%);
    pointer-events: none;
    z-index: 1;
}


@media (min-width: 992px) and (max-width: 1279px) {
  .home-projects__grid {
      grid-auto-rows: 120px 80px 120px;
      height: 445px;
  }
  .home-projects__grid-card {
    overflow: hidden;
}

.home-projects__grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
}

/* Fix for 1024px resolution - prevent image overflow */
@media (min-width: 1280px) and (max-width: 1439px) {
    .home-projects__grid {
        grid-auto-rows: 60px 145px 160px;

    }
    
}

.pd-50{
  padding-top: 50px;
}

/* Video sizing and responsive behavior */
.project-section__video {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-section__video iframe {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* Responsive video sizing */
@media (max-width: 768px) {
    .project-section__video {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .project-section__video {
        height: 150px;
    }
}


@media (min-width: 768px) {
    .home-projects__grid-card:has(img[src*="parallax-shollagro.jpg"]),
    .home-projects__grid-card:has(img[src*="parallax-photo-mohylov-trans.jpg"]), 
    .home-projects__grid-card:has(img[src*="parallax-photo.jpg"]) {
        display: none !important;
    }
}

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

.banner-cta{
    margin-top: 70px
}

@media (max-width: 768px) {
    .stats{
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 991px) {
    .grid-cards div:nth-child(9n+5), 
    .grid-cards div:nth-child(9n+6), 
    .grid-cards div:nth-child(9n+7), 
    .grid-cards div:nth-child(9n+8){
        grid-area: span 2 / span 2;
    }

}




.video-gallery-block {
    margin-bottom: 40px;
}

.video-gallery {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.video-gallery__big {
    flex: 2 1 60%;
    display: flex;
    flex-direction: column;
}

.video-gallery__small {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1 1 35%;
}

.video-gallery__big iframe,
.video-gallery__small-item iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    border: none;
    background: #222;
}

.video-gallery__small-item {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .video-gallery {
        flex-direction: column;
    }
    .video-gallery__small {
        flex-direction: column;
        gap: 20px;
    }
    .video-gallery__small-item {
        flex: 1 1 50%;
        margin-bottom: 0;
    }
}
@media (max-width: 600px) {
    .video-gallery__small {
        flex-direction: column;
    }

}


.project-section__video-3{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    grid-template-rows:60% 
    1fr;height:366px
}
.project-section__video-3 .project-section__image:nth-child(1){
    grid-area:1/1/-2/3
}
.project-section__video-3 .project-section__image:nth-child(2){
    grid-area:-2
}
.project-section__video-3 .project-section__image:nth-child(3){
    grid-area:2/2/3/3
}

@media (min-width: 768px){
    .project-section__video-3{
        height:316px;
        grid-template-columns:60% 1fr;
        grid-template-rows:repeat(2,1fr)
    }
    .project-section__video-3 .project-section__image:nth-child(1){
    grid-area:1/1/3/2
    }
.project-section__video-3 .project-section__image:nth-child(2){
    grid-area:1/2/2/3
}
.project-section__video-3 .project-section__image:nth-child(3){
    grid-area:2/2/3/3
}
}

@media (min-width: 992px){
    .project-section__video-3{
        height:658px;
        gap: 15px;
    }
}


.video-gallery-margin{
    margin-top: 60px;
}

.project-section__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 16px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-hero__img_inner,
.project-section__image iframe {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}


@media (max-width: 991px){
    .project-section__video-3{
        height:316px;
        gap: 15px;
    }
}

@media (max-width: 768px){
    .project-section__video-3{
        height:230px;
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .project-section__video-3 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 60vw 40vw;
      height: auto;
      gap: 10px;
    }
    .project-section__video-3 .video-gallery {
      display: contents;
    }
    .project-section__video-3 .video-gallery__big {
      grid-column: 1 / 3;
      grid-row: 1 / 2;
    }
    .project-section__video-3 .video-gallery__small {
      display: contents;
    }
    .project-section__video-3 .video-gallery__small-item:nth-child(1) {
      grid-column: 1 / 2;
      grid-row: 2 / 3;
    }
    .project-section__video-3 .video-gallery__small-item:nth-child(2) {
      grid-column: 2 / 3;
      grid-row: 2 / 3;
    }
  }

.custom-lightbox {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}
.custom-lightbox--shown {
  opacity: 1;
  pointer-events: auto;
}
.custom-lightbox__backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1;
}
.custom-lightbox__img {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  background: #222;
  object-fit: contain;
  transition: box-shadow 0.2s;
}
.custom-lightbox--shown .custom-lightbox__img {
  animation: lightbox-zoom-in 0.25s;
}
@keyframes lightbox-zoom-in {
  from { transform: scale(0.95); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}
@media (max-width: 600px) {
  .custom-lightbox__img {
    max-width: 98vw;
    max-height: 70vh;
  }
}

.toast-notification {
    position: fixed;
    right: 32px;
    bottom: 32px;
    min-width: 320px;
    max-width: 90vw;
    background: #222;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    z-index: 9999;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1.05rem;
    animation: toastFadeIn 0.3s;
}
@keyframes toastFadeIn {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}
.toast-notification .icon {
    font-size: 2rem;
}


.image-modal {
    display: flex;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
  }
  .image-modal__content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 20px #000;
  }
  .image-modal__close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
  }

  
  @media (max-width: 767.98px) {
    .form-section {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .button-center{
        justify-items: center;
      }
  }

  .header.scrolled {
    background-color: #000000e5;
    transition: background 0.3s;
}

.header.scrolled + .header-nav, .header.scrolled ~ .header-nav, .header-nav.scrolled {
    background-color: #000000e5;
    transition: background 0.3s;
}

.news-padding{
    margin-top: 40px;
}

@media (max-width: 767px) {
    .social-image {
      display: none;
    }
  }


  .project-section__gallery-3-1 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 100%;
  }

  @media (min-width: 768px) {
    .project-section__gallery-3-1 {
        height: auto;
        grid-template-rows: 60% 3fr;
        grid-template-columns: repeat(2, 1fr);
       
    }
}
  
  .project-section__gallery-3-1 .project-section__image:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  .project-section__gallery-3-1 .project-section__image:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  .project-section__gallery-3-1 .project-section__image:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
  }

  .project-hero__img_inner img{
    width: 100%;
  }
  

  .project-section__gallery-3-vertical {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: stretch;
}
.project-section__gallery-3-vertical .project-section__image {
    flex: 1 1 0;
    aspect-ratio: 2/3; 
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    overflow: hidden;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-section__gallery-3-vertical .project-hero__img_inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}
@media (max-width: 991px) {
    .project-section__gallery-3-vertical {
        flex-direction: column;
        gap: 16px;
        height: auto;
    }
    .project-section__gallery-3-vertical .project-section__image {
        width: 100%;
        height: 356px;
        max-width: 100%;
    }
}

.project-section__gallery-2-horizontal {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
}
.project-section__gallery-2-horizontal .project-section__image {
  flex: 1 1 50%;
  max-width: 50%;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-section__gallery-2-horizontal .project-hero__img_inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}


.project-section__gallery-4-custom {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 340px; 
}

.project-section__gallery-4-custom .image-1 {
  grid-column: 1 / 3; 
  grid-row: 1 / 2;
}
.project-section__gallery-4-custom .image-2 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.project-section__gallery-4-custom .image-3 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
.project-section__gallery-4-custom .image-4 {
  grid-column: 3 / 4;
  grid-row: 1 / 3; 
}

.project-section__gallery-4-custom .project-section__image,
.project-section__gallery-4-custom .project-hero__img_inner,
.project-section__gallery-4-custom .project-hero__img_inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Адаптив */
@media (max-width: 900px) {
  .project-section__gallery-4-custom {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    height: 220px;
  }
  .project-section__gallery-4-custom .image-1 {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  .project-section__gallery-4-custom .image-2 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  .project-section__gallery-4-custom .image-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
  .project-section__gallery-4-custom .image-4 {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
  }
}
@media (max-width: 600px) {
  .project-section__gallery-4-custom {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .project-section__gallery-4-custom .project-section__image {
    width: 100%;
    height: 120px;
    margin-bottom: 8px;
  }
}

.project-section__gallery-4-mirror {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 340px; 
}

.project-section__gallery-4-mirror .image-1 {
  grid-column: 1 / 2; 
  grid-row: 1 / 3;
}
.project-section__gallery-4-mirror .image-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.project-section__gallery-4-mirror .image-3 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}
.project-section__gallery-4-mirror .image-4 {
  grid-column: 2 / 4;
  grid-row: 2 / 3; 
}

.project-section__gallery-4-mirror .project-section__image,
.project-section__gallery-4-mirror .project-hero__img_inner,
.project-section__gallery-4-mirror .project-hero__img_inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Адаптив */
@media (max-width: 900px) {
  .project-section__gallery-4-mirror {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    height: 220px;
  }
  .project-section__gallery-4-mirror .image-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }
  .project-section__gallery-4-mirror .image-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
  .project-section__gallery-4-mirror .image-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
  .project-section__gallery-4-mirror .image-4 {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
  }
}
@media (max-width: 600px) {
  .project-section__gallery-4-mirror {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .project-section__gallery-4-mirror .project-section__image {
    width: 100%;
    height: 120px;
    margin-bottom: 8px;
  }
}

.project-section__gallery-4-gridL {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 340px; 
}

.project-section__gallery-4-gridL .image-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
.project-section__gallery-4-gridL .image-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.project-section__gallery-4-gridL .image-3 {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
}
.project-section__gallery-4-gridL .image-4 {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
}

.project-section__gallery-4-gridL .project-section__image,
.project-section__gallery-4-gridL .project-hero__img_inner,
.project-section__gallery-4-gridL .project-hero__img_inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Адаптив */
@media (max-width: 900px) {
  .project-section__gallery-4-gridL {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    height: 220px;
  }
  .project-section__gallery-4-gridL .image-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  .project-section__gallery-4-gridL .image-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
  .project-section__gallery-4-gridL .image-3 {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }
  .project-section__gallery-4-gridL .image-4 {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
  }
}
@media (max-width: 600px) {
  .project-section__gallery-4-gridL {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .project-section__gallery-4-gridL .project-section__image {
    width: 100%;
    height: 120px;
    margin-bottom: 8px;
  }
}

.project-section__gallery-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 700px; 
}

.project-section__gallery-2x2 .project-section__image,
.project-section__gallery-2x2 .project-hero__img_inner,
.project-section__gallery-2x2 .project-hero__img_inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Адаптив */
@media (max-width: 600px) {
  .project-section__gallery-2x2 {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    height: 480px;
  }
}

.project-section__gallery-5-center {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 700px; 
}

.project-section__gallery-5-center .image-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
.project-section__gallery-5-center .image-2 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.project-section__gallery-5-center .image-3 {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
}
.project-section__gallery-5-center .image-4 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}
.project-section__gallery-5-center .image-5 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.project-section__gallery-5-center .project-section__image,
.project-section__gallery-5-center .project-hero__img_inner,
.project-section__gallery-5-center .project-hero__img_inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Адаптив */
@media (max-width: 900px) {
  .project-section__gallery-5-center {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    height: 360px;
  }
  .project-section__gallery-5-center .image-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  .project-section__gallery-5-center .image-2 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  .project-section__gallery-5-center .image-3 {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
  }
  .project-section__gallery-5-center .image-4 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }
  .project-section__gallery-5-center .image-5 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }
}
@media (max-width: 600px) {
  .project-section__gallery-5-center {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .project-section__gallery-5-center .project-section__image {
    width: 100%;
    height: 120px;
    margin-bottom: 8px;
  }
}

.project-section__gallery-5-left {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 700px; 
}

.project-section__gallery-5-left .image-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3; 
}
.project-section__gallery-5-left .image-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.project-section__gallery-5-left .image-3 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
.project-section__gallery-5-left .image-4 {
  grid-column: 3 / 4;
  grid-row: 1 / 2;
}
.project-section__gallery-5-left .image-5 {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
}

.project-section__gallery-5-left .project-section__image,
.project-section__gallery-5-left .project-hero__img_inner,
.project-section__gallery-5-left .project-hero__img_inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Адаптив */
@media (max-width: 900px) {
  .project-section__gallery-5-left {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    height: 360px;
  }
  .project-section__gallery-5-left .image-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }
  .project-section__gallery-5-left .image-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
  .project-section__gallery-5-left .image-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
  .project-section__gallery-5-left .image-4 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }
  .project-section__gallery-5-left .image-5 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
  }
}
@media (max-width: 600px) {
  .project-section__gallery-5-left {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .project-section__gallery-5-left .project-section__image {
    width: 100%;
    height: 120px;
    margin-bottom: 8px;
  }
}


.project-section__gallery-5-right {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 700px; 
}

.project-section__gallery-5-right .image-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
.project-section__gallery-5-right .image-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.project-section__gallery-5-right .image-3 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.project-section__gallery-5-right .image-4 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
.project-section__gallery-5-right .image-5 {
  grid-column: 3 / 4;
  grid-row: 1 / 3; 
}

.project-section__gallery-5-right .project-section__image,
.project-section__gallery-5-right .project-hero__img_inner,
.project-section__gallery-5-right .project-hero__img_inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Адаптив */
@media (max-width: 900px) {
  .project-section__gallery-5-right {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
    height: 360px;
  }
  .project-section__gallery-5-right .image-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  .project-section__gallery-5-right .image-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
  .project-section__gallery-5-right .image-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  .project-section__gallery-5-right .image-4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }
  .project-section__gallery-5-right .image-5 {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
  }
}
@media (max-width: 600px) {
  .project-section__gallery-5-right {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .project-section__gallery-5-right .project-section__image {
    width: 100%;
    height: 120px;
    margin-bottom: 8px;
  }
}

@media (max-width: 991px) {
  .project-section__gallery-3-1 {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: auto;
  }
  .project-section__gallery-3-1 .project-section__image {
    width: 100%;
    height: 356px;
    max-width: 100%;
  }
  .project-section__gallery-2-horizontal {
    flex-direction: column;
    gap: 16px;
    height: auto;
  }
  .project-section__gallery-2-horizontal .project-section__image {
    width: 100%;
    max-width: 100%;
    height: 356px;
  }
}

@media (max-width: 991.98px) {
  .stats .col-6 {
    margin-bottom: 25px; 
  }
  .stats .col-6:nth-child(2),
  .stats .col-6:nth-child(4) {
    margin-bottom: 0;
  }
}

@media (max-width: 449px) {
  .stats-description--clients {
    max-width: 130px;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 991px) {
  .header {
    background-color: #000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header__hamburger span {
    background-color: #000;
}

.header-nav--shown {
    background-color: #000;
}

body.header-nav--shown {
    overflow: hidden;
}

.header.scrolled {
  background-color: #000000;
  
}

.header.scrolled + .header-nav, .header.scrolled ~ .header-nav, .header-nav.scrolled {
  background-color: #000000;
 
}

}

@media (min-width: 768px) and (max-width: 991px) {
  .header-nav{
    top:82px;
    height:calc(100vh - 82px);
  }
}

body.page-404 .header {
  background: transparent !important;
}
body.page-404 .header__line {
  background: transparent !important;
}
body.page-404 .header-nav {
  background: transparent !important;
}
body.page-404 .header-nav__item:not(:last-child):after {
  background-color: #fff !important;
}

