:root {
  --navy: #142345;
  --red: #731d2a;
  --red-contact: #8c2033;
  --beige: #c1b3a4;
  --header-height: clamp(78px, 5.4167vw, 104px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--navy);
  font-family: "Barlow", Arial, sans-serif;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

/* MENU */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: #fff;
  transition: background-color .32s ease, box-shadow .32s ease;
}

.site-header.is-scrolled {
  background: #fff;
  box-shadow: 0 6px 24px rgba(20, 35, 69, .1);
}

.header-inner {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-left: clamp(32px, 3.85vw, 74px);
}

.site-logo {
  flex: 0 0 auto;
  width: clamp(182px, 12.4vw, 238px);
}

.site-logo img {
  width: 100%;
  height: auto;
}

.main-navigation {
  margin-left: clamp(58px, 7.85vw, 151px);
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(30px, 3.12vw, 60px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  transition: color .22s ease;
}

.main-navigation a:hover,
.main-navigation li.is-active > a,
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
  color: var(--red);
}

.menu-home a {
  width: 20px;
  min-height: 28px;
  overflow: hidden;
  text-indent: -9999px;
}

.menu-home a::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin: auto;
  background: url("jpg/house.svg") center / contain no-repeat;
  transition: filter .22s ease;
}

.menu-home a:hover::before,
.menu-home.is-active a::before,
.menu-home.current-menu-item a::before,
.menu-home.current_page_item a::before {
  filter: invert(15%) sepia(37%) saturate(1994%) hue-rotate(307deg) brightness(86%) contrast(92%);
}

.header-contacts {
  display: flex;
  align-items: center;
  height: clamp(50px, 2.92vw, 56px);
  margin-left: auto;
  overflow: hidden;
}

.header-contact {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 100%;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  transition: filter .22s ease;
}

.header-contact:hover {
  filter: brightness(1.12);
}

.header-contact--phone {
  width: clamp(238px, 14.48vw, 278px);
  padding: 0 34px 0 46px;
  background: var(--navy);
  clip-path: polygon(9% 0, 100% 0, 91% 50%, 100% 100%, 9% 100%, 0 50%);
}

.header-contact--mail {
  width: clamp(252px, 15.1vw, 290px);
  margin-left: -18px;
  padding: 0 32px 0 52px;
  background: var(--red-contact);
  clip-path: polygon(9% 0, 91% 0, 100% 50%, 91% 100%, 9% 100%, 0 50%);
}

.header-contact img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin: 0 22px 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px auto;
  background: var(--navy);
  transition: transform .24s ease, opacity .24s ease;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* SLIDER */
.hero-slider {
  position: relative;
  width: 100%;
  height: max(720px, 40vw);
  overflow: hidden;
 /* background: var(--navy);*/
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
	left: 10%;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(545px, 31vw);
  margin-left: clamp(72px, 7.45vw, 143px);
  padding-top: clamp(114px, calc(12.85vw - 70px), 177px);
  color: #fff;
}

.hero-title {
  margin: 0;
  color: #fff;
  font-size: clamp(74px, 5.573vw, 107px);
  line-height: .94;
  font-weight: 700;
  letter-spacing: -.02em;
}

.hero-subtitle {
  margin: 12px 0 0;
  color: var(--beige);
  font-size: clamp(40px, 2.865vw, 55px);
  line-height: 1.08;
  font-weight: 400;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 277px;
  height: 61px;
  margin-top: 43px;
  padding: 0 45px 0 37px;
  background: #fff;
  color: var(--navy);
  clip-path: polygon(0 0, calc(100% - 27px) 0, 100% 50%, calc(100% - 27px) 100%, 0 100%);
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  transition: color .25s ease, background-color .25s ease, transform .25s ease;
}

.hero-button img {
  width: 21px;
  height: 17px;
  margin-left: 28px;
  transition: transform .25s ease, filter .25s ease;
}

.hero-button:hover {
  background: #C1B3A4;
  color: #fff;
  transform: translateY(-2px);
}

.hero-button:hover img {
  filter: brightness(0) invert(1);
  transform: translateX(5px);
}

.hero-description {
  max-width: 520px;
  margin: 57px 0 0;
  color: #fff;
  font-size: 23px;
  line-height: 1.28;
  font-weight: 400;
}

.hero-pagination {
  position: static;
  display: flex;
  align-items: center;
  width: max-content;
  margin-top: 50px;
  gap: 13px;
}

.hero-pagination__item {
  position: relative;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: #fff;
  transform: rotate(45deg);
  cursor: pointer;
  transition:
    width .48s cubic-bezier(.22, 1, .36, 1),
    background-color .3s ease,
    transform .48s cubic-bezier(.22, 1, .36, 1);
}

.hero-pagination__item::after {
  content: "";
  position: absolute;
  inset: -8px;
}

.hero-pagination__item.is-active {
  width: 70px;
  background: var(--red);
  transform: rotate(0deg) skewX(-31deg);
}

.hero-pagination__item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}


/* O NAS */
.about-section {
  width: 100%;
  padding: 0px 40px 115px;
  background: #fff;
}

.about-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 535px;
  align-items: center;
  gap: 105px;
  width: 100%;
  max-width: 1392px;
  margin: 0 auto;
}

.about-content {
  padding-left: 1px;
}

.about-title {
  margin: 0;
  font-size: 0;
  line-height: 1;
}

.about-title span,
.about-title strong {
  display: block;
}

.about-title span {
  color: var(--navy);
  font-size: 58px;
  line-height: .9;
  font-weight: 700;
  letter-spacing: -.02em;
}

.about-title strong {
  margin-top: 8px;
  color: var(--red);
  font-size: 34px;
  line-height: 1;
  font-weight: 400;
}

.about-text {
  max-width: 720px;
  margin-top: 60px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.1;
  font-weight: 500;
}
a
.about-text p {
  margin: 0;
}

.about-text p + p {
  margin-top: 25px;
}

.about-quote {
  max-width: 720px;
  margin: 67px 0 0;
  padding: 6px 0 6px 26px;
  border-left: 7px solid var(--red);
  color: var(--navy);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 500;
  font-style: italic;
}

.about-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 264px;
  height: 60px;
  margin-top: 64px;
  padding: 0 68px 0 42px;
  background: var(--navy);
  color: #fff;
  clip-path: polygon(
    0 0,
    calc(100% - 22px) 0,
    100% 50%,
    calc(100% - 22px) 100%,
    0 100%
  );
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  transition:
    background-color .25s ease,
    transform .25s ease;
}

.about-button img {
  width: 20px;
  height: auto;
  margin-left: 25px;
  transition: transform .25s ease;
}

.about-button:hover {
  background:  #C1B3A4;
  transform: translateY(-2px);
}

.about-button:hover img {
  transform: translateX(5px);
filter: brightness(0) invert(1);
  transform: translateX(5px);
}

.about-image {
  width: 535px;
}

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



/* TYLKO DO TESTU PRZYPIĘTEGO MENU */
.home-test-space {
  min-height: 2000px;
  background: #fff;
}

/* ANIMACJE SEKCJI */
.reveal-left,
.reveal-right,
.reveal-top,
.reveal-bottom {
  opacity: 0;
  transition:
    opacity .8s ease,
    transform .8s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.reveal-left {
  transform: translateX(-80px);
}

.reveal-right {
  transform: translateX(80px);
}

.reveal-top {
  transform: translateY(-80px);
}

.reveal-bottom {
  transform: translateY(80px);
}

.reveal-section.is-visible .reveal-left,
.reveal-section.is-visible .reveal-right,
.reveal-section.is-visible .reveal-top,
.reveal-section.is-visible .reveal-bottom {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-delay-1 {
  transition-delay: .12s;
}

.reveal-delay-2 {
  transition-delay: .24s;
}

.reveal-delay-3 {
  transition-delay: .36s;
}

.reveal-delay-4 {
  transition-delay: .48s;
}

.reveal-section:not(.is-visible) .reveal-left,
.reveal-section:not(.is-visible) .reveal-right,
.reveal-section:not(.is-visible) .reveal-top,
.reveal-section:not(.is-visible) .reveal-bottom {
  transition-delay: 0s;
}

/* BOXY */
.facts-section {
  width: 100%;
  height: 590px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.facts-container {
  display: grid;
  grid-template-columns: repeat(5, 245px);
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1392px;
  height: 100%;
  margin: 0 auto;
}

.fact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 245px;
  height: 309px;
  padding: 42px 18px 24px;
  background: #fff;
  color: var(--navy);
  text-align: center;
}

.fact-box__icon {
  width: 85px;
  height: 85px;
  object-fit: contain;
}

.fact-box h3 {
  margin: 31px 0 0;
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
  font-weight: 700;
}

.fact-box p {
  margin: 23px 0 0;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 400;
}

/* OBSZARY DZIAŁALNOŚCI */
.areas-section {
  width: 100%;
  padding: 80px 40px 125px;
  background: #fff;
}

.areas-container {
  width: 100%;
  max-width: 1392px;
  margin: 0 auto;
}

.areas-heading__line {
  display: block;
  width: 90px;
  height: 4px;
  margin-bottom: 20px;
  background: var(--red);
}

.areas-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 38px;
  line-height: 1;
  font-weight: 700;
}

.areas-heading p {
  margin: 22px 0 0;
  color: var(--red);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
}

.areas-tabs {
  width: 100%;
  margin-top: 60px;
}

.areas-tabs__navigation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  height: 74px;
  margin-bottom: 6px;
  background: #f1f1f1;
}

.areas-tab {
  position: relative;
  border: 0;
  padding: 0 25px;
  background: transparent;
  color: var(--navy);
  font-family: "Barlow", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  transition:
    color .3s ease,
    background-color .3s ease;
}

.areas-tab:hover {
  color: var(--red);
}

.areas-tab.is-active {
  background: var(--red);
  color: #fff;
}

.areas-tab.is-active::after {
  content: "";
  position: absolute;
  z-index: 6;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 14px solid var(--navy);
  transform: translateX(-50%);
}

.areas-slider {
  position: relative;
  width: 100%;
  height: 660px;
  background: var(--navy);
  box-shadow: 0 12px 25px rgba(20, 35, 69, .18);
}

.areas-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity .55s ease,
    visibility .55s ease;
}

.areas-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.areas-slide__content {
  position: relative;
  z-index: 3;
  width: 720px;
  padding: 95px 0 0 110px;
  color: #fff;
}

.areas-slide__content h3 {
  margin: 0;
  color: var(--beige);
  font-size: 55px;
  line-height: .91;
  font-weight: 500;
}

.areas-slide__text {
  max-width: 700px;
  margin-top: 48px;
  color: #fff;
  font-size: 17px;
  line-height: 1.22;
  font-weight: 500;
}

.areas-slide__text p {
  margin: 0;
}

.areas-slide__text p + p {
  margin-top: 22px;
}

.areas-slide__button {
  margin-top: 48px;
}

.areas-slide__photo {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 513px;
  height: 100%;
  object-fit: fill;
}

.areas-slide__icon {
  position: absolute;
  z-index: 4;
  top: 96px;
  right: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 170px;
  height: 170px;
  background: var(--red);
}

.areas-slide__icon img {
  width: 57px;
  height: 57px;
  object-fit: contain;
  filter: brightness(0) invert(1) !important;
  opacity: 1;
}

.areas-slider__arrow {
  position: absolute;
  z-index: 10;
  top: 50%;
  display: block;
  width: 55px;
  height: 65px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.areas-slider__arrow--prev {
  left: -72px;
}

.areas-slider__arrow--next {
  right: -72px;
}

.areas-slider__arrow img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 27px;
  height: 23px;
  transform: translate(-50%, -50%);
  transition: opacity .25s ease;
}

.areas-slider__arrow .arrow-blue {
  opacity: 1;
}

.areas-slider__arrow .arrow-red {
  opacity: 0;
}

.areas-slider__arrow:hover .arrow-blue {
  opacity: 0;
}

.areas-slider__arrow:hover .arrow-red {
  opacity: 1;
}

.areas-slider__arrow--prev img {
  transform: translate(-50%, -50%) rotate(180deg);
}

/* ZAUFALI NAM */
.trusted-section {
  width: 100%;
  padding: 0 0 105px;
  overflow: hidden;
  background: #fff;
}

.trusted-heading {
  width: calc(100% - 80px);
  max-width: 1392px;
  margin: 0 auto 70px;
}

.trusted-heading__line {
  display: block;
  width: 90px;
  height: 4px;
  margin-bottom: 20px;
  background: var(--red);
}

.trusted-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 38px;
  line-height: 1;
  font-weight: 700;
}

.trusted-carousel {
  width: 100%;
  overflow: hidden;
}

.trusted-track {
  display: flex;
  align-items: center;
  gap: 66px;
  width: max-content;
  will-change: transform;
}

.trusted-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 420px;
  width: 420px;
  height: 160px;
  padding: 15px 20px;
}

.trusted-item img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  transition: opacity .25s ease;
}

.trusted-item:hover img {
  opacity: .7;
}

/* FOOTER */
.site-footer {
  width: 100%;
  background: #fff;
}

.footer-main {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--navy);
}

.footer-watermark {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 155px;
  height: auto;
  pointer-events: none;
}

.footer-container {
  position: relative;
  z-index: 2;
  width: calc(100% - 80px);
  max-width: 1392px;
  margin: 0 auto;
  padding: 72px 0 108px;
}

.footer-top {
  display: grid;
  grid-template-columns: 265px 1fr 1fr auto;
  align-items: center;
  gap: 70px;
}

.footer-logo {
  display: block;
  width: 245px;
}

.footer-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 27px;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 400;
}

.footer-info__icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: contain;
}

.footer-info strong,
.footer-info span,
.footer-info a {
  display: block;
}

.footer-info strong {
  font-weight: 400;
}

.footer-info a {
  color: #fff;
  transition: color .22s ease;
}

.footer-info a:hover {
  color: var(--beige);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #fff;
  transition:
    color .22s ease,
    transform .22s ease;
}

.footer-social__link:hover {
  color: #c1b3a4;
  transform: translateY(-3px);
}

.footer-social__link svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.7;
  transition:
    fill .22s ease,
    stroke .22s ease;
}

/* Instagram i obrys YouTube */
.footer-social__link svg rect,
.footer-social__link svg circle {
  fill: none;
  stroke: currentColor;
}

/* Facebook */
.footer-social__link--facebook svg path {
  fill: currentColor;
  stroke: none;
}

/* LinkedIn */
.footer-social__link[aria-label="LinkedIn"] svg path,
.footer-social__link[aria-label="LinkedIn"] svg rect,
.footer-social__link[aria-label="LinkedIn"] svg circle {
  fill: currentColor;
  stroke: none;
}

/* Trójkąt YouTube */
.footer-social__link[aria-label="YouTube"] svg path {
  fill: currentColor;
  stroke: none;
}

.footer-divider {
  width: 100%;
  height: 1px;
  margin-top: 72px;
  background: rgba(255, 255, 255, .75);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 70px;
  margin-top: 56px;
}

.footer-column h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.footer-column ul {
  margin: 31px 0 0;
  padding: 0;
  list-style: none;
}

.footer-column li + li {
  margin-top: 28px;
}

.footer-column a {
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 400;
  transition: color .22s ease;
}

.footer-column a:hover {
  color: var(--beige);
}



.footer-bottom {
  width: 100%;
  margin-top: 6px;
  background: #731d29;
}

.footer-bottom__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 80px);
  max-width: 1392px;
  min-height: 110px;
  margin: 0 auto;
}

.footer-bottom p {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 400;
}

.footer-author {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 400;
}

.footer-author img {
  display: block;
  width: 87px;
  height: auto;
}

/* page */
        /* BANER PODSTRONY */
        .page-banner {
          position: relative;
          width: 100%;
          height: 650px;
          overflow: hidden;
          background-position: center top;
          background-size: cover;
          background-repeat: no-repeat;
        }

        .page-banner__container {
          position: relative;
          z-index: 2;
          display: flex;
          align-items: center;
          padding-top: 90px;
          width: 100%;
          max-width: 1392px;
          height: 100%;
          margin: 0 auto;
        }

        .page-banner__content {
          width: 560px;
          color: #fff;
        }

        .page-banner__title {
          margin: 0;
          color: #fff;
          font-size: 68px;
          line-height: 1;
          font-weight: 700;
        }

        .page-banner__text {
          margin: 8px 0 0;
          color: #c1b3a4;
          font-size: 44px;
          line-height: 1.18;
          font-weight: 400;
        }

.about-section--reverse .about-container {
  grid-template-columns: 535px minmax(0, 1fr);
}


.about-section--full .about-container {
  display: block;
}

.about-section--full .about-content {
  width: 100%;
}

.about-section--full .about-text,
.about-section--full .about-quote {
  max-width: 100%;
}

/* BOXY NA PODSTRONIE */
.facts-section--page {
  height: auto;
  min-height: 590px;
  padding: 64px 0;
  margin-bottom: 125px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.facts-page-carousel {
  width: 100%;
  max-width: 1392px;
  margin: 0 auto;
  overflow: hidden;
}

.facts-page-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 42px;
  width: 100%;
}

.fact-box--page {
  justify-content: flex-start;
  width: 100%;
  height: auto;
  padding: 42px 34px 34px;
}

.fact-box--page .fact-box__icon {
  width: 85px;
  height: 85px;
}

.fact-box--page h3 {
  max-width: 350px;
  margin: 25px 0 0;
  font-size: 25px;
  line-height: 1.15;
  font-weight: 700;
}

.fact-box__text {
  max-width: 370px;
  margin-top: 22px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.3;
  font-weight: 400;
}

.fact-box__text p {
  margin: 0;
}

.fact-box__text p + p {
  margin-top: 24px;
}

/* Włącza się automatycznie, gdy jest więcej niż 3 boxy */
.facts-page-carousel.is-carousel .facts-page-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.facts-page-carousel.is-carousel .fact-box--page {
  width: 436px;
  flex: 0 0 436px;
}

/* LISTA PORTFOLIO */
.portfolio-list-section {
  width: 100%;
  padding: 115px 40px 95px;
  overflow: hidden;
  background: #fff;
}

.portfolio-list-container {
  width: 100%;
  max-width: 1510px;
  margin: 0 auto;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 730px);
  gap: 50px;
}

/* KAFEL */
.portfolio-card {
  position: relative;
  width: 730px;
  height: 734px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(20, 35, 69, .18);
}

/* ZDJĘCIE NA CAŁYM TLE KAFLA */
.portfolio-card__photo {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
}

.portfolio-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /*filter: grayscale(1);*/
  transition:
    filter .4s ease,
    transform .5s ease;
}

.portfolio-card:hover .portfolio-card__photo img {
  filter: grayscale(0);
  transform: scale(1.025);
}

/* BIAŁY KSZTAŁT POD GRANATOWĄ NAKŁADKĄ */
.portfolio-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: 61%;
  background: #fff;
  clip-path: polygon(
    0 0,
    100% 0,
    73% 70%,
    87% 100%,
    0 100%
  );
}

/* GRANATOWA NAKŁADKA — PRZESUNIĘTA, ŻEBY BYŁA BIAŁA RAMKA */
.portfolio-card::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 0;
  width: 61%;
  background: var(--navy);
  clip-path: polygon(
    0 0,
    100% 0,
    73% 70%,
    87% 100%,
    0 100%
  );
  transform: translateX(-7px);
  transition: background-color .35s ease;
}

.portfolio-card:hover::after {
  background: var(--red);
}

/* TREŚĆ */
.portfolio-card__content {
  position: relative;
  z-index: 4;
  width: 48%;
  padding: 78px 20px 50px 28px;
  color: #fff;
}

.portfolio-card h2 {
  margin: 0;
  color: #c1b3a4;
  font-size: 35px;
  line-height: 1.1;
  font-weight: 700;
}

.portfolio-card__location {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 45px;
}

.portfolio-card__location > img {
  width: 21px;
  height: 25px;
  flex: 0 0 21px;
  object-fit: contain;
}

.portfolio-card__location p {
  margin: 0;
  color: #fff;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 400;
}

.portfolio-card__parameters {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 32px;
}

.portfolio-card__parameters > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portfolio-card__parameters img {
  width: 24px;
  height: 22px;
  object-fit: contain;
}

.portfolio-card__parameters span {
  color: #fff;
  font-size: 19px;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}

/* PRZYCISK — KORZYSTA Z ISTNIEJĄCEGO .hero-button */
.portfolio-card__button {
  margin-top: 65px;
}

.portfolio-card:hover .portfolio-card__button {
  background: #fff;
  color: var(--red);
}

.portfolio-card:hover .portfolio-card__button img,
.portfolio-card .portfolio-card__button:hover img {
  filter: none;
}

/* PAGINACJA PORTFOLIO */
.portfolio-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 45px;
}

.portfolio-pagination > a:not(.portfolio-pagination__arrow) {
  color: var(--navy);
  font-size: 17px;
  line-height: 1;
  font-weight: 500;
  transition: color .22s ease;
}

.portfolio-pagination > a:not(.portfolio-pagination__arrow):hover,
.portfolio-pagination > a.is-current {
  color: var(--red);
}

.portfolio-pagination__arrow {
  position: relative;
  display: block;
  width: 28px;
  height: 24px;
}

.portfolio-pagination__arrow img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21px;
  height: 17px;
  transform: translate(-50%, -50%);
  transition: opacity .22s ease;
}

.portfolio-pagination__arrow .arrow-blue {
  opacity: 1;
}

.portfolio-pagination__arrow .arrow-red {
  opacity: 0;
}

.portfolio-pagination__arrow:hover .arrow-blue {
  opacity: 0;
}

.portfolio-pagination__arrow:hover .arrow-red {
  opacity: 1;
}

.portfolio-pagination__arrow--prev img {
  transform: translate(-50%, -50%) rotate(180deg);
}

/* GÓRA POJEDYNCZEJ INWESTYCJI */
.single-hero {
  position: relative;
  width: 100%;
  height: max(720px, 55.625vw);
  overflow: hidden;
  background-color: var(--navy);
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.single-hero__content {
  z-index: 2;
}

.single-hero__location {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 470px;
  margin-top: 52px;
}

.single-hero__location img {
  width: 21px;
  height: 25px;
  flex: 0 0 21px;
  object-fit: contain;
}

.single-hero__location p {
  margin: 0;
  color: #fff;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 400;
}

.single-hero__parameters {
  display: flex;
  align-items: center;
  gap: 42px;
  margin-top: 32px;
}

.single-hero__parameter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.single-hero__parameter img {
  width: 24px;
  height: 22px;
  object-fit: contain;
}

.single-hero__parameter span {
  color: #fff;
  font-size: 19px;
  line-height: 1;
  font-weight: 400;
  white-space: nowrap;
}

/* TREŚĆ Z BUTTONEM */
.tresc-button-section {
  width: 100%;
  padding: 27px 40px 170px;
  background: #fff;
}

.tresc-button-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  width: 100%;
  max-width: 1392px;
  min-height: 56px;
  margin: 0 auto;
}

.tresc-button__content h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
}

.tresc-button__content p {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 400;
}

.tresc-button__content a {
  transition: color .22s ease;
}

.tresc-button__content a[href^="mailto:"] {
  margin-left: 5px;
  color: var(--red);
}

.tresc-button__content a:hover {
  color: var(--beige);
}

.tresc-button__button {
  flex: 0 0 264px;
  margin-top: 0;
}

/* ==================================================
   GALERIA ZDJĘĆ — SINGLE
================================================== */

.single-gallery {
  width: 100%;
  padding: 0px 40px 115px;
  overflow: hidden;
  background: #fff;
}

.single-gallery__container {
  width: 100%;
  max-width: 1392px;
  margin: 0 auto;
}

.single-gallery__heading {
  margin-bottom: 42px;
}

.single-gallery__line {
  display: block;
  width: 90px;
  height: 4px;
  margin-bottom: 20px;
  background: var(--red);
}

.single-gallery__heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 38px;
  line-height: 1;
  font-weight: 700;
}

.single-gallery__slider {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  outline: none;
}

/* DUŻE ZDJĘCIE */

.single-gallery__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1180 / 720;
  background: #f1f1f1;
}

.single-gallery__main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  transition:
    opacity .25s ease,
    transform .4s ease;
}

.single-gallery__main-image.is-changing {
  opacity: 0;
  transform: scale(.995);
}

/* STRZAŁKI DUŻEGO ZDJĘCIA */

.single-gallery__arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: block;
  width: 55px;
  height: 65px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.single-gallery__arrow--prev {
  left: -72px;
}

.single-gallery__arrow--next {
  right: -72px;
}

.single-gallery__arrow img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 27px;
  height: 23px;
  transform: translate(-50%, -50%);
  transition: opacity .22s ease;
}

.single-gallery__arrow .arrow-blue {
  opacity: 1;
}

.single-gallery__arrow .arrow-red {
  opacity: 0;
}

.single-gallery__arrow:hover .arrow-blue {
  opacity: 0;
}

.single-gallery__arrow:hover .arrow-red {
  opacity: 1;
}

.single-gallery__arrow--prev img {
  transform: translate(-50%, -50%) rotate(180deg);
}

/* PASEK MINIATUREK */

.single-gallery__thumbnails {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 120px;
  margin: 0;
  padding: 20px 25px;
  overflow-x: auto;
  overflow-y: hidden;
  background: #f1f1f1;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;

  /* Ukrycie paska przewijania */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.single-gallery__thumbnails::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.single-gallery__thumbnails.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.single-gallery__thumbnail {
  position: relative;
  display: block;
  width: 112px;
  height: 72px;
  flex: 0 0 112px;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: start;
}

.single-gallery__thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: .72;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition:
    filter .25s ease,
    opacity .25s ease,
    transform .3s ease;
}

.single-gallery__thumbnail:hover img {
  opacity: 1;
  transform: scale(1.04);
}

/* TYLKO AKTYWNA MINIATURA JEST KOLOROWA */

.single-gallery__thumbnail.is-active img {
  filter: grayscale(0);
  opacity: 1;
  transform: none;
}

.single-gallery__thumbnail.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--red);
  pointer-events: none;
}

/* KROPKI POD MINIATURKAMI */

.single-gallery__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 6px;
  margin-top: 16px;
}

.single-gallery__pagination:empty {
  display: none;
}

.single-gallery__pagination-dot {
  display: block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: var(--beige);
  cursor: pointer;
  transition:
    background-color .22s ease,
    transform .22s ease;
}

.single-gallery__pagination-dot:hover {
  background: var(--red);
  transform: scale(1.35);
}

.single-gallery__pagination-dot.is-active {
  background: var(--red);
}

/* ==================================================
   KONTAKT — PODSTRONA
================================================== */

.contact-page {
  position: relative;
  width: 100%;
  padding: 85px 40px 0;
  overflow: hidden;
  background: #f3f3f3;
}

/* Białe tło pod dolną 1/3 mapy */
.contact-page::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 185px;
  background: #fff;
}

.contact-page__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1392px;
  margin: 0 auto;
}

.contact-page__layout {
  display: grid;
  grid-template-columns: 510px minmax(0, 1fr);
  align-items: start;
  gap: 75px;
}

.contact-page__left {
  width: 100%;
}

.contact-page__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 150px;
  margin-bottom: 35px;
}

.contact-page__logo img,
.contact-page__logo .custom-logo {
  display: block;
  width: auto;
  max-width: 430px;
  max-height: 115px;
  object-fit: contain;
}

.contact-page__logo .custom-logo-link {
  display: block;
}

/* DANE ADRESOWE */

.contact-page__details {
  display: flex;
  flex-direction: column;
  min-height: 470px;
  padding: 52px 48px 48px;
  background: #fff;
  color: var(--navy);
}

.contact-page__details h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
}

.contact-page__address {
  margin-top: 36px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 400;
}

.contact-page__address p {
  margin: 0;
}

.contact-page__address p + p {
  margin-top: 32px;
}

.contact-page__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  margin-top: auto;
}

.contact-page__links a {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
  transition:
    color .22s ease,
    transform .22s ease;
}

/* MAIL CZERWONY */
.contact-page__links a[href^="mailto:"] {
  color: var(--red);
}

.contact-page__links a:hover {
  color: var(--beige);
  transform: translateX(4px);
}

.contact-page__links svg {
  display: block;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* FORMULARZ */

.contact-page__form {
  width: 100%;
  background: var(--navy);
  box-shadow: 0 10px 25px rgba(20, 35, 69, .18);
}

.contact-page__form-content {
  padding: 58px 70px 48px;
}

.contact-page__form h2 {
  margin: 0 0 48px;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  font-weight: 700;
}

.contact-page__fields {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-page__field {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
}

.contact-page__field input,
.contact-page__field textarea {
  display: block;
  width: 100%;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  transition:
    border-color .22s ease,
    background-color .22s ease;
}

.contact-page__field input {
  height: 54px;
  padding: 0 20px;
}

.contact-page__field textarea {
  height: 205px;
  padding: 17px 20px;
  resize: vertical;
}

.contact-page__field input::placeholder,
.contact-page__field textarea::placeholder {
  color: #fff;
  opacity: 1;
}

.contact-page__field input:focus,
.contact-page__field textarea:focus {
  border-color: var(--beige);
  background: rgba(255, 255, 255, .04);
}

.contact-page__agreements {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}

.contact-page__agreement {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 400;
  cursor: pointer;
}

.contact-page__agreement input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  border: 1px solid #fff;
  border-radius: 0;
  background: var(--navy);
  cursor: pointer;
}

.contact-page__agreement input:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.contact-page__submit,
.contact-page__form input[type="submit"].contact-page__submit {
  display: block;
  width: 100%;
  max-width: none;
  height: 101px;
  margin: 0;
  padding: 0 30px;
  border: 0;
  border-radius: 0;
  background: #731d2a;
  color: #fff;
  font-family: "Barlow", Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: normal;
  text-align: center;
  cursor: pointer;
  appearance: none;
  transform: none;
  transition: background-color .25s ease;
}

.contact-page__submit:hover,
.contact-page__submit:focus,
.contact-page__form input[type="submit"].contact-page__submit:hover,
.contact-page__form input[type="submit"].contact-page__submit:focus {
  background: #c1b3a4;
  color: #fff;
  font-weight: 700;
  letter-spacing: normal;
  transform: none;
}

.contact-page__form {
  padding: 0;
  overflow: hidden;
}

.contact-page__form .wpcf7,
.contact-page__form .wpcf7-form {
  width: 100%;
  margin: 0;
}

.contact-page__form .wpcf7-form > p:last-of-type {
  width: 100%;
  margin: 0;
}

/* MAPA */

.contact-page__map {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 555px;
  margin-top: 105px;
  margin-bottom: 105px;
  overflow: hidden;
  background: #e7e7e7;
}

.contact-page__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.single-hero__background_mobile {display: none;}

