.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,
.project-section__video video {
  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;
    }
} 

/* Ensure all grid cards are visible in adaptive view */
@media (max-width: 991px) {
    .grid-cards .grid-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media (max-width: 767px) {
  .grid-cards div:nth-child(9n+9) {
    grid-area: span 2 / span 2;
  }
}


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

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

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

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

.video-gallery__big iframe,
.video-gallery__big video,
.video-gallery__small-item iframe,
.video-gallery__small-item video {
  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;
}

/* Equal size video layout - простий грід з відступами та заокругленнями */
.video-gallery--equal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.video-gallery__item {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
}

.video-gallery__item iframe,
.video-gallery__item video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  border: none;
  background: transparent;
  box-shadow: none;
}

@media (max-width: 991px) {
  .video-gallery--equal {
    grid-template-columns: 1fr;
  }

  .video-gallery {
    flex-direction: column;
  }

  .video-gallery__small {
    flex-direction: column;
    gap: 24px;
  }

  .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: 24px;
  }
}


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

.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,
.project-section__image video {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
}


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

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

@media (max-width: 767px) {
  .project-section__video-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 60vw 40vw;
    height: auto;
    gap: 24px;
  }

  .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: 24px;
  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: 24px;
  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: 24px;
    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: 24px;
  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: 24px;
  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: 24px;
  }
}

.project-section__gallery-4-mirror {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  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: 24px;
  }
}

.project-section__gallery-4-gridL {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  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: 24px;
  }
}

.project-section__gallery-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  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: 24px;
  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: 24px;
  }
}

.project-section__gallery-5-left {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  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: 24px;
  }
}


.project-section__gallery-5-right {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  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: 24px;
  }
}

@media (max-width: 991px) {
  .project-section__gallery-3-1 {
    display: flex;
    flex-direction: column;
    gap: 24px;
    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: 24px;
    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;
}

/* Gallery layout modifiers */
.gallery--1-column {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
  height: auto !important;
}

.gallery--2-columns {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 24px !important;
  height: auto !important;
}

.gallery--3-columns {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  height: auto !important;
}

/* Auto height for images in column layouts */
.gallery--1-column .project-section__image,
.gallery--2-columns .project-section__image,
.gallery--3-columns .project-section__image {
  height: auto !important;
  aspect-ratio: auto !important;
}

.gallery--1-column .project-hero__img_inner,
.gallery--2-columns .project-hero__img_inner,
.gallery--3-columns .project-hero__img_inner {
  height: auto !important;
}

.gallery--1-column .project-hero__img_inner img,
.gallery--2-columns .project-hero__img_inner img,
.gallery--3-columns .project-hero__img_inner img {
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 991px) {
  .gallery--3-columns {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {

  .gallery--2-columns,
  .gallery--3-columns {
    grid-template-columns: 1fr !important;
  }
}

.gallery--without_border {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
}

.border-radius-14 {
  border-radius: 14px !important;
}

/* News image container styles */
.news-image-container {
  width: 100%;
  overflow: hidden;
}

.news-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Відстань між секціями проектів та новин - 24px */
.project-section {
  margin-bottom: 24px;
}

.project-section:last-child {
  margin-bottom: 0;
}

/* Відстань між блоками в новинах - 24px */
.news-single__content>* {
  margin-bottom: 24px;
}

.news-single__content>*:last-child {
  margin-bottom: 0;
}

.news-single__content hr {
  margin: 24px 0;
  border: none;
  height: 0;
}

/* Відстань між контейнерами з фото-відео контентом */
.project-section .container+.container {
  margin-top: 24px;
}

.news-single__content .container+.container {
  margin-top: 24px;
}

/* Fix news__top_left to not overflow below right sidebar */
@media (min-width: 992px) {
  .news__top .row {
    display: flex;
    align-items: stretch;
  }

  .news__top .row>[class*="col-"] {
    display: flex;
    flex-direction: column;
  }

  .news__top_left {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .news__top_left .news__card--large {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: 100%;
  }

  .news__top_left .news__card--large .news__card_image {
    flex: 1;
    max-height: 600px;
    overflow: hidden;
    display: flex;
  }

  .news__top_left .news__card--large .news__card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .news__sidebar {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 991px) {
  .news__top_left .news__card--large .news__card_image {
    max-height: 400px;
    overflow: hidden;
  }

  .news__top_left .news__card--large .news__card_image img {
    max-height: 400px;
    object-fit: cover;
  }
}

/* Fixed height for all news card images */
.news__card_image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news__card--large .news__card_image {
  height: 500px;
}

.news__card_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sidebar news images fixed size */
.news__sidebar_image {
  width: 118px;
  height: 118px;
  min-width: 118px;
  min-height: 118px;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news__sidebar_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 576px) {
  .news__card_image {
    height: 250px;
  }

  .news__sidebar_image {
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
  }
}

/* Branding page: Right alignment only on desktop */
.category-content__list .text-righted {
  text-align: left;
}

/* Desktop: apply right alignment */
@media (min-width: 992px) {
  .category-content__list .text-righted {
    text-align: right;
  }
}

@media (max-width: 991px) {
  .category-content__list_title.right-btn-title {
    margin-right: 0;
    margin-left: 0;
  }

  .category-content__image--reverse .category-content__list_title {
    max-width: 100%;
  }
}