html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

#uslugi,
#realizacje,
#kontakt {
  scroll-margin-top: 88px;
}

.navbar-brand {
  align-items: center;
}

.navbar-brand .logo-image {
  width: 128px;
  max-width: none;
  height: auto;
  display: block;
}

.slider-intro-box,
.slider-title,
.slider-details-text,
.slider-button-block,
.slider-main-image,
.image-bg-shape,
.curved-image {
  opacity: 1 !important;
  transform: none !important;
}

.slider-content > * {
  animation: codex-reveal .55s ease both;
}

.slider-content > :nth-child(2) {
  animation-delay: .08s;
}

.slider-content > :nth-child(3) {
  animation-delay: .16s;
}

.slider-content > :nth-child(4) {
  animation-delay: .24s;
}

.service-list {
  width: 100%;
}

.service-item,
.single-service-block {
  min-width: 0;
  height: 100%;
}

.service-thumb-image {
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  transition: transform .35s ease;
}

.single-service-block:hover .service-thumb-image {
  transform: scale(1.035);
}

.service-category-link {
  cursor: default;
}

.testimonial-slider-wrapper,
.testimonial-slider-mask {
  height: auto;
}

.testimonial-slider-mask {
  min-height: 522px;
}

.testimonial-slider-item {
  position: relative;
  width: 100%;
}

.codex-projects {
  min-height: 454px;
}

.codex-projects .blog-left-block.blog-static-image {
  inset: 0 auto 0 0;
  height: 100%;
}

.codex-projects .blog-left-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .18s ease;
}

.project-selector {
  width: 100%;
  min-height: 135px;
  color: inherit;
  font: inherit;
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.project-selector .blog-content,
.project-selector .blog-title {
  display: block;
}

.project-selector.is-active {
  border-color: var(--green-secondary-color);
  box-shadow: 0 8px 24px #1f242c0d;
}

.project-selector.is-active .blog-title {
  color: var(--green-secondary-color);
}

.project-selector:focus-visible {
  outline: 3px solid #2f7a4d;
  outline-offset: 3px;
}

.contact-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  color: #1f242c;
}

.contact-heading .section-title,
.contact-heading .section-summary,
.contact-heading .contact-intro {
  color: #1f242c;
}

.contact-heading .section-summary {
  margin-left: auto;
  margin-right: auto;
}

.contact-info-section {
  background-color: #183f31;
}

.footer-block {
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}

.footer-wrapper {
  flex: 0 0 240px;
}

.footer-title-block {
  margin-bottom: 0;
}

.footer-title-block .image {
  width: 190px;
  max-width: none;
  height: auto;
  margin-left: 0;
}

.address-block {
  flex: 1;
  min-width: 0;
  max-width: none;
}

.footer-address-text {
  width: 100%;
  max-width: none;
  line-height: 1.8;
}

@keyframes codex-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 991px) {
  .navbar-wrapper {
    min-height: 80px;
  }

  .nav-menu-wrapper.w-nav-menu {
    display: none !important;
  }

  .navbar-left.d-lg-block {
    display: block !important;
  }

  .navbar-left.d-lg-block .nav-menu-two {
    grid-column-gap: 0;
    grid-row-gap: 0;
    flex-direction: row;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    background-color: transparent;
    display: flex;
  }

  .navbar-left.d-lg-block .mobile-margin-top-10 {
    margin-top: 0;
  }

  .navbar-left.d-lg-block .button-primary {
    min-width: 205px;
    white-space: nowrap;
  }

  .codex-projects {
    min-height: 0;
    flex-direction: column;
  }

  .codex-projects .blog-left-block.blog-static-image {
    width: 100%;
    max-width: 100%;
    height: 520px;
    position: relative;
  }

  .codex-projects .blog-line-shape {
    display: none;
  }

  .codex-projects .blog-right-block {
    max-width: 100%;
  }
}

@media screen and (min-width: 768px) {
  .footer-address-text {
    white-space: nowrap;
  }
}

@media screen and (max-width: 767px) {
  .navbar-brand .logo-image {
    width: 112px;
  }

  .footer-block {
    gap: 36px;
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-wrapper {
    flex-basis: auto;
  }

  .footer-title-block .image {
    width: 170px;
  }

  .service-list {
    grid-template-columns: 1fr 1fr;
  }

  .codex-projects .blog-left-block.blog-static-image {
    height: 420px;
  }

  .project-selector {
    padding-left: 18px;
    padding-right: 18px;
  }

  .contact-info-wrapper {
    grid-row-gap: 4px;
    flex-direction: column;
  }

  .single-content-wrapper {
    max-width: 100%;
  }
}

@media screen and (max-width: 479px) {
  .navbar-left.d-lg-block .button-primary {
    grid-column-gap: 8px;
    min-width: 185px;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 14px;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .codex-projects .blog-left-block.blog-static-image {
    height: 340px;
  }

  .project-selector {
    grid-column-gap: 15px;
    min-height: 118px;
    padding: 14px;
  }

  .project-selector .blog-thumbnail-image {
    min-width: 82px;
    max-width: 82px;
    min-height: 82px;
    max-height: 82px;
  }

  .project-selector .blog-title {
    font-size: 16px;
    line-height: 24px;
  }

  .single-content-wrapper {
    grid-column-gap: 18px;
    padding-left: 18px;
  }

  .content-icon-block {
    min-width: 72px;
    min-height: 72px;
  }

  .icon-inner {
    width: 64px;
    height: 64px;
  }

  .content-link {
    font-size: 19px;
    line-height: 28px;
  }
}

@media screen and (max-width: 360px) {
  .navbar-brand .logo-image {
    width: 96px;
  }

  .navbar-left.d-lg-block .button-primary {
    min-width: 165px;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
