:root {
  --color-ink: #111722;
  --color-text: #20242b;
  --color-blue: #536b86;
  --color-blue-soft: #627890;
  --color-mist: #eaedf2;
  --color-surface: #f1f1f1;
  --color-line: #d7dce1;
  --color-white: #fff;
  --font-sans: Montserrat, Arial, sans-serif;
  --container: 1130px;
  --container-wide: 1140px;
  --gutter: 24px;
  --header-height: 88px;
  --section-space: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, ul, ol { margin-block: 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.2; }
h1 { font-size: 30px; letter-spacing: .01em; text-transform: uppercase; }
h2 { font-size: 27px; letter-spacing: .01em; text-transform: uppercase; }
h3 { font-size: 18px; font-weight: 700; }

.container,
.container-wide {
  width: min(calc(100% - (2 * var(--gutter))), var(--container));
  margin-inline: auto;
}
.container-wide { max-width: var(--container-wide); }
.section { padding-block: var(--section-space); }
.flow > * + * { margin-block-start: 1rem; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  top: 8px; left: 8px; z-index: 10000; width: auto; height: auto; margin: 0;
  padding: 10px 14px; clip: auto; background: #fff; color: #111;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  overflow: visible;
  background: #f4f4f4;
  color: var(--color-ink);
}
.site-header--dark,
.site-header--home { background: var(--color-ink); color: var(--color-white); }
.site-header__inner {
  min-height: var(--header-height); display: grid; grid-template-columns: 290px 1fr 192px;
  align-items: center; gap: 26px;
}
.custom-logo { width: auto; max-width: 220px; max-height: 58px; }
.site-branding__fallback { display: block; width: 224px; }
.site-branding__fallback img { width: 224px; height: 48px; object-fit: cover; }
.site-branding__text { font-size: 34px; font-weight: 600; letter-spacing: .02em; }
.primary-navigation__list {
  display: flex; justify-content: center; align-items: center; gap: 50px;
  margin: 0; padding: 0; list-style: none;
}
.primary-navigation a { display: block; padding-block: 31px; font-size: 17px; text-transform: uppercase; }
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a { font-weight: 700; }
.phone-block {
  align-self: stretch; display: flex; flex-direction: column; justify-content: center;
  align-items: center; gap: 2px; background: rgba(255,255,255,.72); color: var(--color-blue);
  font-size: 17px; font-weight: 700; white-space: nowrap;
}
.site-header--dark .phone-block,
.site-header--home .phone-block { background: rgba(18,24,37,.72); color: var(--color-white); }
.nav-toggle { display: none; }

.page-hero { background: var(--color-ink); color: var(--color-white); }
.page-hero__content { display: grid; grid-template-columns: 1fr 1fr; min-height: 295px; }
.page-hero__copy { align-self: center; padding: 40px 48px 40px 0; }
.page-hero__lead { max-width: 600px; font-size: 18px; letter-spacing: .04em; }
.page-hero__media { min-width: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.realization-card { background: #e1e6e9; }
.realization-card__media { aspect-ratio: 1.55; overflow: hidden; }
.realization-card__media img { width: 100%; height: 100%; object-fit: cover; }
.realization-card__body { padding: 20px 22px 30px; }
.realization-card__title { font-size: 18px; font-weight: 700; text-align: center; text-transform: none; }

.site-footer { padding-block: 20px; background: var(--color-ink); color: #aab0ba; }
.site-footer__inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px;
  font-size: 11px; letter-spacing: .12em;
}
.site-footer__identifiers { flex-basis: 100%; text-align: center; }

/* Wzorcowa podstrona O firmie — geometria referencyjna 1366 px. */
.about-page { --about-width: 1130px; }
.about-container { width: min(calc(100% - 48px), var(--about-width)); margin-inline: auto; }
.about-hero {
  height: 228px;
  background: var(--color-ink) url('../images/about/hero.png') center / cover no-repeat;
  color: var(--color-white);
}
.about-hero__inner { height: 100%; display: flex; align-items: center; }
.about-hero__copy { width: 520px; margin-top: -1px; }
.about-hero h1 { margin-bottom: 19px; font-size: 31px; letter-spacing: .02em; }
.about-hero p {
  max-width: 570px; margin: 0; padding-bottom: 27px; border-bottom: 1px solid rgba(255,255,255,.92);
  font-size: 17px; line-height: 1.52; letter-spacing: .055em;
}
.about-intro { min-height: 422px; display: grid; grid-template-columns: 40.65% 59.35%; background: #f3f3f3; }
.about-intro__image { min-height: 422px; background: url('../images/about/intro.png') center / cover no-repeat; }
.about-intro__copy { max-width: 715px; padding: 46px 64px 37px 62px; font-size: 17px; line-height: 1.52; }
.about-intro__copy p { margin: 0 0 40px; }
.about-intro__copy h2 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.about-intro__copy ul { margin: 0; padding-left: 30px; color: #607c9a; line-height: 1.65; }
.about-features { min-height: 444px; padding: 50px 0 44px; background: #fafafa; }
.about-features__heading { margin-bottom: 18px; text-align: center; color: #263548; font-size: 27px; }
.about-features__grid { width: 840px; max-width: 100%; margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; }
.about-feature {
  min-height: 158px; display: grid; grid-template-columns: 96px 1fr; align-items: start;
  padding: 23px 20px 18px 17px; background: #f3f3f3;
}
.about-feature:nth-child(2n) { border-left: 1px solid #fff; }
.about-feature:nth-child(n+3) { border-top: 1px solid #fff; }
.about-feature__icon { width: 68px; height: 68px; object-fit: contain; margin: 0 auto; }
.about-feature__content h3 { margin: 1px 0 8px; font-size: 17px; line-height: 1.35; }
.about-feature__content p { margin: 0; font-size: 14px; line-height: 1.48; }
.about-banner {
  min-height: 243px; background: #d9dade url('../images/about/bottom-banner.png') center / cover no-repeat;
}
.about-banner__inner { min-height: 243px; display: flex; align-items: center; }
.about-banner__copy { width: 590px; margin-left: -30px; color: #263548; }
.about-banner h2 { margin-bottom: 25px; font-size: 27px; }
.about-banner p { margin: 0; font-size: 17px; line-height: 1.5; }

/* Korekta referencyjna 1366 px: wyłącznie nagłówek i hero strony O firmie. */
@media (min-width: 1200px) {
  .page-template-page-o-firmie .site-header,
  .page-template-page-o-firmie .site-header__inner { min-height: 90px; }
  .page-template-page-o-firmie .site-header {
    overflow: visible;
  }
  .page-template-page-o-firmie .site-header__inner {
    position: relative;
    width: 1068px;
    max-width: none;
    grid-template-columns: 290px 1fr;
    gap: 88px;
  }
  .page-template-page-o-firmie .site-branding__fallback,
  .page-template-page-o-firmie .site-branding__fallback img { width: 212px; height: auto; }
  .page-template-page-o-firmie .custom-logo { width: auto; max-width: 212px; max-height: 55px; }
  .page-template-page-o-firmie .primary-navigation__list {
    justify-content: flex-start;
    gap: 47px;
  }
  .page-template-page-o-firmie .primary-navigation a {
    padding-block: 33px;
    font-size: 18px;
    line-height: 24px;
  }
  .page-template-page-o-firmie .phone-block {
    position: absolute;
    top: 0;
    right: -104px;
    width: 184px;
    height: 99px;
    min-height: 99px;
    font-size: 18px;
    line-height: 23px;
  }
  .page-template-page-o-firmie .phone-block__icon { width: 34px; height: 34px; }

  .page-template-page-o-firmie .about-hero {
    position: relative;
    width: 100%;
    max-width: 1366px;
    margin-inline: auto;
    height: 227px;
    min-height: 227px;
    overflow: hidden;
    background: var(--color-ink);
  }
  .page-template-page-o-firmie .about-hero::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    max-width: 546px;
    content: '';
    background: url('../images/about/hero-photo.png') 58% center / cover no-repeat;
  }
  .page-template-page-o-firmie .about-hero__inner { position: relative; z-index: 1; width: 1068px; }
  .page-template-page-o-firmie .about-hero__copy {
    width: 514px;
    margin-top: -2px;
  }
  .page-template-page-o-firmie .about-hero h1 {
    margin-bottom: 20px;
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: .015em;
  }
  .page-template-page-o-firmie .about-hero p {
    width: 514px;
    max-width: none;
    margin: 0;
    padding-bottom: 27px;
    font-size: 19px;
    line-height: 1.42;
    letter-spacing: .045em;
  }

  .page-template-page-o-firmie .about-intro {
    width: 100%;
    max-width: 1366px;
    margin-inline: auto;
    grid-template-columns: 40.63% 59.37%;
  }
  .page-template-page-o-firmie .about-features__grid {
    width: 840px;
    max-width: 840px;
    margin-inline: auto;
  }
  .page-template-page-o-firmie .about-banner {
    width: 100%;
    max-width: 1366px;
    margin-inline: auto;
  }
  .page-template-page-o-firmie .about-banner__inner {
    width: 100%;
    max-width: 1366px;
  }
  .page-template-page-o-firmie .about-banner__copy {
    width: 62%;
    margin-left: 8.64%;
  }
}

@media (max-width: 1199px) {
  :root { --gutter: 32px; }
  .site-header__inner { grid-template-columns: 220px 1fr 180px; gap: 16px; }
  .primary-navigation__list { gap: 28px; }
}

/* Podstrona Oferta. Wszystkie reguły są lokalne dla jej szablonu. */
.offer-container { width: min(calc(100% - 48px), 1070px); margin-inline: auto; }
.offer-hero { height: 298px; background: var(--color-ink) url('../images/offer/hero.png') center / cover no-repeat; color: #fff; }
.offer-hero__inner { height: 100%; display: flex; align-items: center; }
.offer-hero__copy { width: 600px; }
.offer-hero h1 { width: 275px; margin-bottom: 10px; padding-bottom: 9px; border-bottom: 1px solid #fff; font-size: 31px; }
.offer-hero__copy p { margin: 0; font-size: 18px; line-height: 1.45; letter-spacing: .035em; }
.offer-hero__lead { width: 610px; margin-bottom: 28px !important; font-size: 21px !important; }
.offer-services { height: 435px; padding-top: 32px; background: #eaedf2; }
.offer-services h2 { margin: 0 0 10px 10px; color: #263548; font-size: 27px; }
.offer-services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.offer-service { height: 320px; padding: 25px 12px 20px; background: #f7f7f7; text-align: center; }
.offer-service img { width: 96px; height: 72px; margin: 0 auto 4px; object-fit: contain; }
.offer-service h3 { min-height: 48px; margin: 0 0 10px; font-size: 16px; line-height: 1.35; }
.offer-service p { margin: 0; font-size: 14px; line-height: 1.5; }
.offer-process { height: 320px; background: #fff url('../images/offer/process.png') center / cover no-repeat; }
.offer-process__inner { height: 100%; display: flex; align-items: center; }
.offer-process__copy { width: 755px; }
.offer-process h2 { margin-bottom: 21px; font-size: 25px; text-transform: none; }
.offer-process h2 strong { font-weight: 700; }
.offer-process p { margin: 0 0 28px; font-size: 18px; line-height: 1.5; letter-spacing: .025em; }
.offer-scope { height: 193px; background: #d9dade url('../images/offer/scope-banner.png') center / cover no-repeat; color: #263548; }
.offer-scope__inner { height: 100%; display: flex; align-items: center; }
.offer-scope__copy { margin-top: -1px; }
.offer-scope h2 { margin-bottom: 18px; font-size: 23px; font-weight: 700; text-transform: none; }
.offer-scope ul { margin: 0; padding: 0; list-style: none; font-size: 18px; line-height: 1.45; letter-spacing: .025em; }
.offer-scope li::before { content: '· '; }
.offer-types { height: 283px; padding-top: 58px; background: #eaedf2; }
.offer-types__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.offer-type { height: 90px; display: grid; grid-template-columns: 76px 1fr; align-items: center; padding: 8px; background: #f7f7f7; }
.offer-type img { width: 70px; height: 64px; object-fit: contain; }
.offer-type p { margin: 0; font-size: 16px; line-height: 1.45; transition: color .2s ease; }
.offer-type:hover p,
.offer-type:focus-visible p { color: #E5B51B; }
.offer-type strong { font-weight: 700; }
.offer-types__closing { margin: 38px 0 0; text-align: center; font-size: 22px; line-height: 1.45; }

@media (min-width: 1200px) {
  .page-template-page-oferta .site-header,
  .page-template-page-oferta .site-header__inner { min-height: 90px; }
  .page-template-page-oferta .site-header__inner {
    position: relative; width: 1068px; max-width: none; grid-template-columns: 290px 1fr; gap: 88px;
  }
  .page-template-page-oferta .site-branding__fallback,
  .page-template-page-oferta .site-branding__fallback img { width: 212px; height: auto; }
  .page-template-page-oferta .custom-logo { width: auto; max-width: 212px; max-height: 55px; }
  .page-template-page-oferta .primary-navigation__list { justify-content: flex-start; gap: 47px; }
  .page-template-page-oferta .primary-navigation a { padding-block: 33px; font-size: 18px; line-height: 24px; }
  .page-template-page-oferta .phone-block {
    position: absolute; top: 0; right: -104px; width: 184px; height: 99px; min-height: 99px; font-size: 18px; line-height: 23px;
  }
  .page-template-page-oferta .phone-block__icon { width: 34px; height: 34px; }
  .offer-page > section { width: 100%; max-width: 1366px; margin-inline: auto; }
}

@media (max-width: 991px) {
  .offer-hero__copy { width: 56%; }
  .offer-hero__lead { width: auto; }
  .offer-services { height: auto; padding-bottom: 40px; }
  .offer-services__grid { grid-template-columns: repeat(2, 1fr); }
  .offer-process__copy { width: 62%; }
  .offer-types { height: auto; padding-bottom: 42px; }
  .offer-types__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .offer-container { width: calc(100% - 40px); }
  .offer-hero { height: auto; min-height: 430px; background-position: 64% center; }
  .offer-hero__inner { align-items: flex-end; padding-bottom: 34px; }
  .offer-hero__copy { width: 100%; }
  .offer-hero__lead { font-size: 18px !important; }
  .offer-services { padding-top: 27px; padding-bottom: 28px; }
  .offer-services__grid,
  .offer-types__grid { grid-template-columns: 1fr; }
  .offer-service { height: auto; min-height: 290px; }
  .offer-process { height: auto; min-height: 430px; background-position: 70% center; }
  .offer-process__inner { align-items: flex-end; padding-bottom: 30px; }
  .offer-process__copy { width: 100%; }
  .offer-process p { margin-bottom: 24px; }
  .offer-scope { height: auto; min-height: 260px; background-position: 70% center; }
  .offer-scope__copy { width: 70%; }
  .offer-scope h2 { margin-bottom: 15px; }
  .offer-types { padding-top: 52px; }
  .offer-type { height: 90px; }
  .offer-types__closing { margin-top: 33px; font-size: 18px; }
}

/* Strona główna — wszystkie reguły ograniczone do front-page.php. */
.home-page { width: 100%; max-width: 1366px; margin-inline: auto; color: #20242b; }
.home-container { width: min(calc(100% - 80px), 1208px); margin-inline: auto; }
.home-hero { position: relative; height: 100vh; min-height: 820px; display: flex; align-items: center; justify-content: center; background: linear-gradient(105deg, #111722 0%, #252c3a 52%, #4c4e5b 100%); color: #fff; }
.home-hero__content { margin-top: -92px; text-align: center; }
.home-hero__content img { width: 500px; height: auto; margin-inline: auto; }
.home-hero__tagline { margin: 17px 0 0; font-size: 20px; letter-spacing: .12em; }
.home-hero__audience { margin: 10px 0 0; font-size: 11px; letter-spacing: .3em; color: #b9bdc7; }
.home-hero__more { position: absolute; bottom: 37px; left: 50%; width: 1080px; padding-top: 16px; border-top: 1px solid #c5c9d0; transform: translateX(-50%); color: #b9bdc7; font-size: 12px; text-align: center; }
.home-hero__more span { display: block; font-size: 23px; line-height: .7; }
.home-about { height: 700px; display: grid; grid-template-columns: 43.7% 56.3%; background: #f5f5f5; }
.home-about__image { background: url('../images/about/intro.png') center / cover no-repeat; }
.home-about__content { padding: 105px 74px 40px 32px; font-size: 14px; line-height: 1.45; }
.home-about h2 { margin-bottom: 27px; color: #607c9a; font-size: 28px; font-weight: 700; }
.home-about h2 a,
.home-scope h2 a,
.home-projects h2 a,
.home-projects__all,
.home-contact-banner p + p a,
.home-project-card__link h3 { transition: color .2s ease; }
.home-about h2 a:hover,
.home-about h2 a:focus-visible,
.home-scope h2 a:hover,
.home-scope h2 a:focus-visible,
.home-projects h2 a:hover,
.home-projects h2 a:focus-visible,
.home-projects__all:hover,
.home-projects__all:focus-visible,
.home-contact-banner p + p a:hover,
.home-contact-banner p + p a:focus-visible,
.home-project-card__link:hover h3,
.home-project-card__link:focus-visible h3 { color: #E5B51B; }
.home-about h2 a::after,
.home-scope h2 a::after,
.home-projects h2 a::after,
.home-projects__all::after,
.home-contact-banner p + p a::after,
.home-project-card__link h3::after { display: inline-block; width: 1.25em; height: 1em; margin-inline-start: 12px; vertical-align: -.12em; background: url('../images/icons/prokon-double-chevron.svg') center / contain no-repeat; content: ''; }
.home-about__content > p { max-width: 570px; margin-bottom: 24px; }
.home-scope { padding: 78px 0 50px; background: #95aabc; color: #fff; }
.home-scope h2 { margin-bottom: 34px; font-size: 31px; font-weight: 700; }
.home-scope > .home-container > p { margin-bottom: 24px; font-size: 16px; }
.home-scope__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin: 28px 0 24px; padding-top: 8px; border-top: 1px solid #cbd4dd; font-size: 14px; }
.home-scope__lists > div { min-width: 0; }
.home-scope__lists span { display: block; margin-bottom: 5px; }
.home-scope__lists ul { margin: 0; padding-left: 20px; line-height: 1.9; }
.home-scope__grid { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.home-scope figure { margin: 0; }
.home-scope figure img { width: 100%; height: 311px; object-fit: cover; }
.home-scope figcaption { margin-top: 14px; padding-bottom: 10px; border-bottom: 1px solid #e2e8ed; font-size: 13px; letter-spacing: .14em; text-align: center; }
.home-experience { height: 820px; padding-top: 65px; background: #fff; }
.home-experience h2 { margin-bottom: 24px; font-size: 27px; font-weight: 700; }
.home-experience > .home-container > p { margin-bottom: 20px; font-size: 14px; }
.home-experience__layout { margin-top: 40px; display: grid; grid-template-columns: 1fr 380px; gap: 78px; }
.home-benefits { border-left: 4px solid #607c9a; }
.home-benefit { min-height: 119px; display: grid; grid-template-columns: 62px 1fr; padding: 14px 18px 11px; border-bottom: 1px solid #aab8c3; }
.home-benefit:last-child { border-bottom: 0; }
.home-benefit img { width: 42px; height: 42px; object-fit: contain; }
.home-benefit h3 { margin: 0 0 5px; font-size: 17px; }
.home-benefit p { margin: 0; color: #607c9a; font-size: 13px; line-height: 1.45; }
.home-experience__image { width: 380px; height: 507px; object-fit: cover; }
.home-projects { min-height: 680px; padding: 18px 0 58px; background: #fff; }
.home-projects h2 { margin-bottom: 25px; color: #607c9a; font-size: 32px; font-weight: 700; text-align: center; }
.home-projects__intro { margin: 0 0 47px; font-size: 18px; line-height: 1.5; text-align: center; }
.home-projects__separator { margin: 0 0 23px; border-top: 1px solid #7d8992; }
.home-projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 45px; }
.home-project-card { border: 1px solid #d9dfe3; background: #fff; }
.home-project-card__link { display: block; color: inherit; }
.home-project-card img { width: 100%; height: 196px; object-fit: cover; }
.home-project-card div { padding: 17px 25px; }
.home-project-card h3 { margin: 0; font-size: 17px; font-weight: 600; text-align: center; }
.home-project-card ul { margin: 0; padding-left: 18px; font-size: 12px; line-height: 1.5; }
.home-projects__all { display: block; margin: 58px auto 0; padding: 13px 0 0; border-top: 1px solid #7d8992; font-size: 18px; font-weight: 700; text-align: center; }
.home-contact-banner { height: 345px; padding-top: 135px; background: #111722 url('../images/contact/banner.png') center / cover no-repeat; color: #fff; }
.home-contact-banner p { margin: 0 0 24px; font-size: 16px; line-height: 1.45; }
.home-contact-banner p + p { font-size: 18px; }
.home-contact { min-height: 520px; padding-top: 70px; background: #fff; }
.home-contact__grid { display: grid; grid-template-columns: 390px 1fr; gap: 90px; }
.home-contact__details { padding-left: 50px; }
.home-contact__details > img { width: 205px; height: auto; margin: 0 0 28px; }
.home-contact__details p { display: grid; grid-template-columns: 38px 1fr; margin: 0; min-height: 38px; align-items: center; font-size: 14px; }
.home-contact__form h2 { margin: 0 0 27px; color: #61798e; font-size: 28px; }

@media (max-width: 991px) {
  .home-hero { height: 620px; }
  .home-hero__more { width: calc(100% - 64px); }
  .home-about { height: auto; min-height: 640px; }
  .home-about__content { padding-right: 32px; }
  .home-scope__lists { gap: 32px; }
  .home-scope { height: auto; padding-bottom: 60px; }
  .home-experience { height: auto; padding-bottom: 60px; }
  .home-experience__layout { grid-template-columns: 1fr 34%; gap: 36px; }
  .home-experience__image { width: 100%; }
  .home-projects__grid { gap: 22px; }
  .home-contact__grid { grid-template-columns: 30% 1fr; gap: 45px; }
  .home-contact__details { padding-left: 0; }
}

@media (max-width: 767px) {
  .home-container { width: calc(100% - 40px); }
  .home-hero { height: 540px; }
  .home-hero__content { margin-top: -45px; }
  .home-hero__content img { width: min(78vw, 360px); }
  .home-hero__tagline { font-size: 16px; }
  .home-hero__audience { padding-inline: 20px; font-size: 9px; line-height: 1.7; }
  .home-hero__more { width: calc(100% - 40px); }
  .home-about { grid-template-columns: 1fr; }
  .home-about__image { min-height: 340px; }
  .home-about__content { padding: 40px 20px; }
  .home-scope__lists { grid-template-columns: 1fr; gap: 24px; margin: 28px 0 24px; }
  .home-scope__grid,
  .home-projects__grid { grid-template-columns: 1fr; }
  .home-scope figure img { height: auto; }
  .home-experience__layout { grid-template-columns: 1fr; }
  .home-experience__image { height: auto; }
  .home-projects { padding-top: 45px; }
  .home-contact-banner { height: auto; min-height: 300px; padding-top: 120px; background-position: 65% center; }
  .home-contact-banner p br { display: none; }
  .home-contact { padding: 55px 0; }
  .home-contact__grid { grid-template-columns: 1fr; }
  .home-contact__details { display: none; }
}

/* Podstrona Kontakt — reguły ograniczone do jej szablonu. */
.contact-container { width: min(calc(100% - 48px), 1130px); margin-inline: auto; }
.contact-banner { height: 207px; background: #627890 url('../images/contact/banner.png') center / cover no-repeat; }
.contact-banner__inner { height: 100%; display: flex; align-items: center; }
.contact-banner__copy { margin-top: -2px; }
.contact-banner__copy p { margin: 0; font-size: 18px; line-height: 1.45; letter-spacing: .015em; }
.contact-banner__copy p + p { margin-top: 30px; color: #f2f3f5; font-size: 21px; }
.contact-content { min-height: 546px; padding-top: 98px; background: #fff; }
.contact-content__grid { display: grid; grid-template-columns: 390px 1fr; gap: 58px; }
.contact-details { padding-left: 56px; }
.contact-details h1 { margin: 18px 0 27px 55px; font-size: 28px; font-weight: 700; }
.contact-details dl { margin: 0; }
.contact-details dl > div { display: grid; grid-template-columns: 42px 1fr; align-items: center; min-height: 39px; }
.contact-details dt { font-size: 23px; font-weight: 700; line-height: 1; }
.contact-details dd { margin: 0; font-size: 15px; }
.contact-form-panel h2 { margin: 0 0 27px; color: #61798e; font-size: 28px; }
.contact-form { position: relative; }
.contact-form__top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 43px; }
.contact-form label { display: block; color: #748493; font-size: 12px; }
.contact-form label span { display: block; }
.contact-form input,
.contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid #9ca9b1; border-radius: 0; outline: 0; background: transparent; color: #20242b; font: inherit; }
.contact-form input { height: 15px; }
.contact-form__wide { margin-top: 22px; }
.contact-form__message { margin-top: 23px; }
.contact-form textarea { height: 82px; resize: vertical; }
.contact-form label.contact-form__consent { position: relative; margin: 9px 0 0; color: #9aa3aa; font-size: 9px; line-height: 1.45; }
.contact-form__consent > span { display: block; }
.contact-form__privacy-link { text-decoration: underline; }
.contact-form__consent input[type="checkbox"] { position: absolute; top: 1px; left: -19px; width: 13px; height: 13px; margin: 0; border: initial; appearance: auto; }
.contact-form__actions { margin-top: 23px; display: flex; align-items: center; justify-content: flex-end; }
.contact-form button { border: 0; border-radius: 0; padding: 4px 9px; background: #aebbc3; color: #26323d; font: inherit; font-size: 11px; cursor: pointer; }
.contact-form__honeypot { position: absolute; left: -9999px; }
.contact-form__status { margin: -18px 0 10px; font-size: 12px; }
.page-template-page-kontakt .site-footer { display: none; }

@media (min-width: 1200px) {
  .page-template-page-kontakt .site-header,
  .page-template-page-kontakt .site-header__inner { min-height: 83px; }
  .page-template-page-kontakt .site-header { overflow: visible; }
  .page-template-page-kontakt .site-header__inner { position: relative; width: 1035px; max-width: none; grid-template-columns: 290px 1fr; gap: 88px; }
  .page-template-page-kontakt .site-branding__fallback,
  .page-template-page-kontakt .site-branding__fallback img { width: 198px; height: auto; }
  .page-template-page-kontakt .custom-logo { width: auto; max-width: 198px; max-height: 53px; }
  .page-template-page-kontakt .primary-navigation__list { justify-content: flex-start; gap: 47px; }
  .page-template-page-kontakt .primary-navigation a { padding-block: 30px; font-size: 18px; line-height: 23px; }
  .page-template-page-kontakt .phone-block { position: absolute; top: 0; right: -117px; width: 193px; height: 101px; min-height: 101px; font-size: 18px; line-height: 23px; }
  .page-template-page-kontakt .phone-block__icon { width: 34px; height: 34px; }
  .contact-page { width: 100%; max-width: 1366px; margin-inline: auto; }
}

@media (max-width: 991px) {
  .contact-content { padding: 64px 0; }
  .contact-content__grid { grid-template-columns: 32% 1fr; gap: 40px; }
  .contact-details { padding-left: 0; }
  .contact-details h1 { margin-left: 0; }
  .contact-form__top { gap: 22px; }
}

@media (max-width: 767px) {
  .contact-container { width: calc(100% - 40px); }
  .contact-banner { height: auto; min-height: 310px; background-position: 67% center; }
  .contact-banner__inner { align-items: flex-end; padding-bottom: 32px; }
  .contact-banner__copy p { font-size: 15px; }
  .contact-banner__copy p br { display: none; }
  .contact-banner__copy p + p { margin-top: 20px; font-size: 18px; }
  .contact-content__grid { grid-template-columns: 1fr; gap: 54px; }
  .contact-details h1 { margin-top: 0; }
  .contact-form__top { grid-template-columns: 1fr; gap: 20px; }
  .contact-form input { height: 22px; }
  .contact-form__consent { font-size: 10px; }
}

@media (max-width: 991px) {
  :root { --header-height: 76px; --section-space: 52px; }
  .site-header__inner { grid-template-columns: 1fr auto auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; border: 0; padding: 12px;
    background: transparent; color: inherit; font: inherit; text-transform: uppercase; cursor: pointer;
  }
  .nav-toggle__icon,
  .nav-toggle__icon::before,
  .nav-toggle__icon::after { display: block; width: 24px; height: 2px; background: currentColor; }
  .nav-toggle__icon { position: relative; }
  .nav-toggle__icon::before,
  .nav-toggle__icon::after { position: absolute; left: 0; content: ''; }
  .nav-toggle__icon::before { top: -7px; }
  .nav-toggle__icon::after { top: 7px; }
  .primary-navigation {
    position: absolute; top: var(--header-height); left: 0; z-index: 20; width: 100%;
    display: none; background: var(--color-ink); color: var(--color-white);
  }
  .nav-open .primary-navigation { display: block; }
  .primary-navigation__list { display: block; padding: 16px var(--gutter) 24px; }
  .primary-navigation a { padding: 12px 0; }
  .phone-block { align-self: center; height: 52px; padding-inline: 12px; }
  .phone-block__icon { display: none; }
  .page-hero__content { grid-template-columns: 1fr 46%; }
  .about-hero__copy { width: 47%; }
  .about-intro { grid-template-columns: 42% 58%; }
  .about-intro__copy { padding: 36px 32px 35px; font-size: 15px; }
  .about-banner__copy { width: 52%; margin-left: 0; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; --section-space: 40px; }
  body { font-size: 15px; }
  h1 { font-size: 27px; }
  h2 { font-size: 24px; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .phone-block { display: none; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .page-hero__content { width: 100%; grid-template-columns: 1fr; }
  .page-hero__copy { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; padding: 36px 0; }
  .page-hero__media { min-height: 210px; }
  .site-branding__fallback,
  .site-branding__fallback img { width: 178px; height: auto; }
  .about-container { width: min(calc(100% - 40px), var(--about-width)); }
  .about-hero { height: auto; min-height: 360px; background-position: 64% center; }
  .about-hero__inner { min-height: 360px; align-items: flex-end; }
  .about-hero__copy { width: 100%; padding-bottom: 30px; }
  .about-hero p { padding-bottom: 18px; font-size: 15px; }
  .about-intro { display: block; }
  .about-intro__image { min-height: 320px; }
  .about-intro__copy { max-width: none; padding: 40px 20px 39px; }
  .about-intro__copy p { margin-bottom: 35px; }
  .about-features { padding-block: 40px; }
  .about-features__heading { margin-bottom: 25px; font-size: 23px; }
  .about-features__grid { grid-template-columns: 1fr; }
  .about-feature:nth-child(2n) { border-left: 0; }
  .about-feature:nth-child(n+2) { border-top: 1px solid #fff; }
  .about-banner { background-position: 67% center; }
  .about-banner__copy { width: 100%; padding: 34px 0; }
  .about-banner h2 { font-size: 23px; }
  .about-banner p { max-width: 58%; font-size: 15px; }
}

@media (max-width: 479px) {
  .about-feature { grid-template-columns: 74px 1fr; padding-inline: 10px 14px; }
  .about-feature__icon { width: 56px; height: 56px; }
  .about-banner { background-image: none; }
  .about-banner p { max-width: none; }
}

/* Podstrona Realizacje — reguły lokalne dla jej widoku. */
.realizations-page { background: #efefef; }
.realizations-container { width: min(calc(100% - 48px), 1120px); margin-inline: auto; padding: 24px 0 54px; }
.realizations-intro { margin-bottom: 61px; }
.realizations-intro h1 { margin: 0 0 9px; font-size: 31px; line-height: 1.1; color: #20242b; }
.realizations-intro p { margin: 0; font-size: 18px; line-height: 1.45; letter-spacing: .095em; }
.realizations-intro strong { font-weight: 700; }
.realizations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px 18px; }
.project-card { min-width: 0; height: 489px; background: #dfe4e7; }
.project-card__link { display: block; height: 100%; }
.project-card__image { width: 100%; height: 238px; object-fit: cover; }
.project-card__body { padding: 25px 23px 20px; }
.project-card h2 { min-height: 54px; margin: 0 0 5px; font-size: 18px; font-weight: 700; line-height: 1.4; text-align: center; text-transform: none; }
.project-card__title--featured { font-size: 20px; }
.project-card__subtitle { display: block; margin-top: 2px; font-size: 16px; font-weight: 700; }
.project-card ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.4; }
.realizations-closing { margin: 46px 0 0; text-align: center; font-size: 17px; line-height: 1.45; letter-spacing: .085em; }

@media (min-width: 1200px) {
  .realizations-page { width: 100%; max-width: 1366px; margin-inline: auto; }
}

@media (max-width: 991px) {
  .realizations-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card { height: auto; min-height: 470px; }
}

@media (max-width: 767px) {
  .realizations-container { width: calc(100% - 40px); padding-top: 34px; }
  .realizations-intro { margin-bottom: 38px; }
  .realizations-intro p br,
  .realizations-closing br { display: none; }
  .realizations-grid { grid-template-columns: 1fr; gap: 28px; }
  .project-card { min-height: 0; }
  .project-card__image { height: auto; aspect-ratio: 1.51; }
  .realizations-closing { margin-top: 38px; }
}

/* Rzeczywista korekta skali desktopowej. Reguły mobilne pozostają bez zmian. */
@media (min-width: 1200px) {
  /* Wspólny header i footer. */
  .site-header,
  .site-header__inner,
  .page-template-page-o-firmie .site-header,
  .page-template-page-o-firmie .site-header__inner,
  .page-template-page-oferta .site-header,
  .page-template-page-oferta .site-header__inner,
  .page-template-page-kontakt .site-header,
  .page-template-page-kontakt .site-header__inner { min-height: 108px; }
  .site-header__inner,
  .page-template-page-o-firmie .site-header__inner,
  .page-template-page-oferta .site-header__inner,
  .page-template-page-kontakt .site-header__inner { width: min(91vw, 1240px); }
  .site-branding__fallback,
  .site-branding__fallback img,
  .page-template-page-o-firmie .site-branding__fallback,
  .page-template-page-o-firmie .site-branding__fallback img,
  .page-template-page-oferta .site-branding__fallback,
  .page-template-page-oferta .site-branding__fallback img,
  .page-template-page-kontakt .site-branding__fallback,
  .page-template-page-kontakt .site-branding__fallback img { width: 240px; }
  .primary-navigation a,
  .page-template-page-o-firmie .primary-navigation a,
  .page-template-page-oferta .primary-navigation a,
  .page-template-page-kontakt .primary-navigation a { padding-block: 40px; font-size: 21px; line-height: 28px; }
  .phone-block,
  .page-template-page-o-firmie .phone-block,
  .page-template-page-oferta .phone-block,
  .page-template-page-kontakt .phone-block { width: 220px; height: 120px; min-height: 120px; font-size: 21px; line-height: 27px; }
  .phone-block__icon,
  .page-template-page-o-firmie .phone-block__icon,
  .page-template-page-oferta .phone-block__icon,
  .page-template-page-kontakt .phone-block__icon { width: 41px; height: 41px; }
  .site-footer { padding-block: 25px; }

  /* O firmie. */
  .about-page { --about-width: 1240px; }
  .page-template-page-o-firmie .about-hero { width: 100%; max-width: 1600px; height: 272px; min-height: 272px; }
  .page-template-page-o-firmie .about-hero__inner { width: min(91vw, 1240px); }
  .page-template-page-o-firmie .about-hero__copy { width: 617px; }
  .page-template-page-o-firmie .about-hero h1 { font-size: 41px; }
  .page-template-page-o-firmie .about-hero p { width: 617px; padding-bottom: 32px; font-size: 23px; }
  .page-template-page-o-firmie .about-intro { max-width: 1600px; min-height: 506px; }
  .page-template-page-o-firmie .about-intro__image { min-height: 506px; }
  .page-template-page-o-firmie .about-intro__copy { padding: 53px 77px 42px 74px; font-size: 20px; }
  .page-template-page-o-firmie .about-intro__copy h2 { font-size: 20px; }
  .page-template-page-o-firmie .about-features { min-height: 533px; padding: 60px 0 53px; }
  .page-template-page-o-firmie .about-features__heading { font-size: 32px; }
  .page-template-page-o-firmie .about-features__grid { width: 1008px; max-width: 1008px; }
  .page-template-page-o-firmie .about-feature { min-height: 190px; grid-template-columns: 115px 1fr; padding: 28px 24px 22px 20px; }
  .page-template-page-o-firmie .about-feature__icon { width: 82px; height: 82px; }
  .page-template-page-o-firmie .about-feature__content h3 { font-size: 20px; }
  .page-template-page-o-firmie .about-feature__content p { font-size: 17px; }
  .page-template-page-o-firmie .about-banner,
  .page-template-page-o-firmie .about-banner__inner { max-width: 1600px; min-height: 292px; }
  .page-template-page-o-firmie .about-banner h2 { font-size: 32px; }
  .page-template-page-o-firmie .about-banner p { font-size: 20px; }

  /* Oferta. */
  .offer-page > section { max-width: 1600px; }
  .offer-container { width: min(91vw, 1240px); }
  .offer-hero { height: 358px; }
  .offer-hero__copy { width: 720px; }
  .offer-hero h1 { width: 330px; font-size: 37px; }
  .offer-hero__copy p { font-size: 22px; }
  .offer-hero__lead { width: 732px; font-size: 25px !important; }
  .offer-services { height: 510px; padding-top: 35px; }
  .offer-services h2 { font-size: 32px; }
  .offer-services__grid { gap: 24px; }
  .offer-service { height: 384px; padding: 30px 15px 24px; }
  .offer-service img { width: 115px; height: 86px; }
  .offer-service h3 { min-height: 58px; font-size: 19px; }
  .offer-service p { font-size: 17px; }
  .offer-process { height: 384px; }
  .offer-process__copy { width: 906px; }
  .offer-process h2 { font-size: 30px; }
  .offer-process p { margin-bottom: 26px; font-size: 22px; }
  .offer-scope { height: 232px; }
  .offer-scope h2 { margin-bottom: 16px; font-size: 28px; }
  .offer-scope ul { font-size: 22px; }
  .offer-types { height: 340px; padding-top: 70px; }
  .offer-types__grid { gap: 26px; }
  .offer-type { height: 108px; grid-template-columns: 91px 1fr; padding: 10px; }
  .offer-type img { width: 84px; height: 77px; }
  .offer-type p { font-size: 19px; }
  .offer-types__closing { margin-top: 44px; font-size: 26px; }

  /* Realizacje. */
  .realizations-page { max-width: 1600px; }
  .realizations-container { width: min(91vw, 1240px); padding: 35px 0 70px; }
  .realizations-intro { margin-bottom: 73px; }
  .realizations-intro h1 { font-size: 37px; }
  .realizations-intro p { font-size: 22px; }
  .realizations-grid { gap: 42px 24px; }
  .project-card { height: 587px; }
  .project-card__image { height: 286px; }
  .project-card__body { padding: 30px 28px 24px; }
  .project-card h2 { min-height: 65px; font-size: 22px; }
  .project-card__title--featured { font-size: 24px; }
  .project-card__subtitle { font-size: 18px; }
  .project-card ul { font-size: 19px; }
  .realizations-closing { margin-top: 55px; font-size: 20px; }

  /* Kontakt. */
  .contact-page { max-width: 1600px; }
  .contact-container { width: min(91vw, 1240px); }
  .contact-banner { height: 248px; }
  .contact-banner__copy p { font-size: 22px; }
  .contact-banner__copy p + p { margin-top: 36px; font-size: 25px; }
  .contact-content { min-height: 655px; padding-top: 118px; }
  .contact-content__grid { grid-template-columns: 430px 1fr; gap: 70px; }
  .contact-details { padding-left: 67px; }
  .contact-details h1 { margin: 22px 0 32px 66px; font-size: 34px; }
  .contact-details dl > div { grid-template-columns: 50px 1fr; min-height: 47px; }
  .contact-details dt { font-size: 28px; }
  .contact-details dd { font-size: 18px; }
  .contact-form-panel h2 { margin-bottom: 32px; font-size: 34px; }
  .contact-form__top { gap: 52px; }
  .contact-form label { font-size: 14px; }
  .contact-form input { height: 18px; }
  .contact-form__wide { margin-top: 27px; }
  .contact-form__message { margin-top: 28px; }
  .contact-form textarea { height: 98px; }
  .contact-form label.contact-form__consent { font-size: 10px; }
  .contact-form__actions { margin-top: 28px; }
  .contact-form button { font-size: 13px; }

  /* Strona główna. */
  .home-page { width: 100%; max-width: none; }
  .home-container { width: min(92vw, 1440px); }
  .home-hero { width: 100%; max-height: 1200px; background-size: cover; }
  .home-hero__content { margin-top: -82px; }
  .home-hero__content img { width: min(44vw, 601px); }
  .home-hero__tagline { font-size: 24px; }
  .home-hero__audience { font-size: 13px; }
  .home-hero__more { width: min(88vw, 1440px); bottom: 52px; padding-top: 20px; font-size: 14px; }
  .home-about { width: 100%; height: 440px; min-height: 0; align-items: stretch; }
  .home-about__image,
  .home-about__content { height: 100%; min-height: 0; }
  .home-about__content { padding: 78px 106px 78px 46px; font-size: 18px; }
  .home-about h2 { font-size: 34px; }
  .home-about__content > p { max-width: 760px; margin-bottom: 30px; }
  .home-scope__lists { gap: 38px; margin: 42px 0 30px; padding-top: 12px; font-size: 17px; }
  .home-scope { width: 100%; padding: 115px 0 50px; }
  .home-scope h2 { font-size: 37px; }
  .home-scope > .home-container > p { margin-bottom: 30px; font-size: 20px; }
  .home-scope__grid { margin-top: 105px; gap: 38px; }
  .home-scope figure img { height: 440px; }
  .home-scope figcaption { font-size: 16px; }
  .home-experience { width: 100%; height: 1088px; padding-top: 98px; }
  .home-experience h2 { font-size: 32px; }
  .home-experience > .home-container > p { margin-bottom: 26px; font-size: 18px; }
  .home-experience__layout { margin-top: 65px; grid-template-columns: 1fr 520px; gap: 110px; }
  .home-benefit { min-height: 165px; grid-template-columns: 86px 1fr; padding: 22px 27px 17px; }
  .home-benefit img { width: 58px; height: 58px; }
  .home-benefit h3 { font-size: 21px; }
  .home-benefit p { font-size: 17px; }
  .home-experience__image { width: 520px; height: 694px; }
  .home-projects { width: 100%; min-height: 960px; padding: 48px 0 85px; }
  .home-projects h2 { font-size: 32px; }
  .home-projects__intro { margin-bottom: 70px; font-size: 18px; }
  .home-projects__separator { margin-bottom: 36px; }
  .home-projects__grid { gap: 64px; }
  .home-project-card { min-height: 0; }
  .home-project-card img { height: 280px; }
  .home-project-card div { padding: 25px 36px; }
  .home-project-card h3 { font-size: 18px; }
  .home-project-card ul { font-size: 15px; }
  .home-projects__all { margin-top: 86px; padding-top: 17px; font-size: 18px; }
  .home-contact-banner { width: 100%; height: 500px; padding-top: 198px; background-size: cover; }
  .home-contact-banner p { font-size: 19px; }
  .home-contact-banner p + p { font-size: 22px; }
  .home-contact { width: 100%; min-height: 760px; padding-top: 110px; }
  .home-contact__grid { grid-template-columns: 480px 1fr; gap: 125px; }
  .home-contact__details { padding-left: 65px; }
  .home-contact__details > img { width: 260px; }
  .home-contact__details p { min-height: 52px; font-size: 18px; }
  .home-contact__form h2 { font-size: 34px; }
}
