/* 2026 visual polish: premium navigation, mega menu and lighter editorial rhythm. */
body {
  background: #fff;
}

.site-header {
  z-index: 100;
  overflow: visible;
  border-bottom: 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: none;
}

.site-header.is-scrolled .header-main {
  box-shadow: 0 12px 30px rgba(6, 32, 25, .08);
}

.utility-bar {
  color: #dce9e4;
  background: var(--green-950);
  font-size: .79rem;
}

.utility-bar__inner,
.utility-bar__links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.utility-bar__inner {
  min-height: 36px;
}

.utility-bar__links a {
  color: #fff;
  text-underline-offset: 3px;
}

.header-main {
  position: relative;
  background: rgba(255, 255, 255, .96);
  transition: box-shadow .25s ease;
}

.nav {
  min-height: 84px;
  gap: clamp(1rem, 2vw, 2rem);
}

.logo img,
.logo .custom-logo {
  width: clamp(185px, 16vw, 224px);
  max-height: 64px;
  object-fit: contain;
}

.nav__links {
  position: static;
  gap: .2rem;
  align-self: stretch;
}

.nav__item {
  position: static;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.nav__link,
.nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 46px;
  padding: 0 .75rem;
  border: 0;
  border-radius: 8px;
  color: var(--graphite);
  background: transparent;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.nav__link:hover,
.nav__trigger:hover,
.nav__item.is-open .nav__trigger {
  color: var(--green-950);
  background: var(--mint);
}

.nav__chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}

.nav__item.is-open .nav__chevron,
.nav__item:focus-within .nav__chevron {
  transform: translateY(2px) rotate(225deg);
}

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--graphite);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.nav__phone span {
  color: var(--green-950);
}

.nav__cta {
  min-height: 48px;
  padding-inline: 1.15rem;
  white-space: nowrap;
}

.nav__mobile-contact,
.nav-backdrop {
  display: none;
}

.mega-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 12px);
  left: 50%;
  display: grid;
  grid-template-columns: minmax(250px, .72fr) 2fr;
  width: min(calc(100vw - 2rem), 1180px);
  padding: 1rem;
  border: 1px solid rgba(216, 222, 216, .8);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(6, 32, 25, .16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity .2s ease, transform .2s var(--ease), visibility .2s;
}

.nav__item:hover .mega-menu,
.nav__item:focus-within .mega-menu,
.nav__item.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega-menu::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 14px;
  content: "";
}

.mega-menu__intro {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 12px;
  color: #fff;
  background: var(--green-950);
}

.mega-menu__title {
  margin: 0 0 .85rem;
  color: #fff;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.mega-menu__intro p {
  color: #c9ddd6;
  font-size: .92rem;
}

.mega-menu__eyebrow {
  margin-bottom: 1rem !important;
  color: var(--green) !important;
  font-size: .72rem !important;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mega-menu__all {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.mega-menu__all span {
  color: var(--green);
  font-size: 1.35rem;
  transition: transform .2s ease;
}

.mega-menu__all:hover span {
  transform: translateX(4px);
}

/* Jedna wspolna lista uslug bez podkategorii (decyzja klienta 2026-08-03). */
.mega-menu__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .1rem 1.5rem;
  padding: 1.2rem 1.5rem;
}

.mega-menu__list a {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--graphite);
  font-size: .91rem;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.mega-menu__list a::before {
  width: 0;
  height: 1px;
  margin-right: 0;
  background: var(--green);
  content: "";
  transition: width .18s ease, margin .18s ease;
}

.mega-menu__list a:hover {
  color: var(--green-950);
}

.mega-menu__list a:hover::before {
  width: 16px;
  margin-right: 8px;
}

.hero {
  padding: clamp(3rem, 5vw, 5.5rem) 0 clamp(4rem, 7vw, 7rem);
  overflow: hidden;
  color: var(--graphite);
  background: #f6faf8;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .92fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  width: min(calc(100% - 2rem), var(--container));
  min-height: 610px;
  margin-inline: auto;
}

.hero__content {
  padding: 0;
}

.hero h1 {
  max-width: 10ch;
  color: var(--graphite);
  font-size: clamp(3.5rem, 6vw, 6.3rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.hero .kicker {
  color: var(--green-950);
}

.hero .lede {
  max-width: 590px;
  margin-top: 1.6rem;
  color: #60706a;
}

.hero .btn--ghost {
  border-color: var(--line);
  color: var(--graphite);
  background: #fff;
}

.hero .btn--ghost:hover {
  border-color: var(--green-950);
}

.hero__image {
  min-height: 540px;
  overflow: hidden;
  border-radius: 16px 16px 72px 16px;
  box-shadow: 0 26px 60px rgba(6, 32, 25, .17);
}

.hero__image::after {
  display: none;
}

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

.hero__visual {
  position: relative;
  min-width: 0;
}

.hero-note {
  position: absolute;
  bottom: 2rem;
  left: -2.25rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  min-width: 235px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(216, 222, 216, .85);
  border-radius: 12px;
  color: var(--graphite);
  background: #fff;
  box-shadow: 0 14px 36px rgba(6, 32, 25, .14);
}

.hero-note__icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: var(--green-950);
  background: var(--mint);
  font-weight: 900;
}

.hero-note strong,
.hero-note small {
  display: block;
}

.hero-note small {
  margin-top: .1rem;
  color: var(--muted);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.3rem;
  margin: 1.8rem 0 0;
  padding: 0;
  color: #42534c;
  font-size: .88rem;
  font-weight: 700;
  list-style: none;
}

.hero__proof li::before {
  margin-right: .45rem;
  color: var(--green-950);
  content: "✓";
}

.proof-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: #fff;
}

.proof-item {
  padding-block: 1.65rem;
}

.proof-item strong {
  margin-bottom: .1rem;
}

.service-row {
  padding-block: 1.75rem;
  transition: padding .22s var(--ease), background .22s ease;
}

.service-row:hover {
  padding-inline: 1rem;
  background: #f3f9f0;
}

.service-row h3 {
  margin-bottom: 0;
}

.section-action {
  margin-top: 2rem;
}

.industries-section {
  background: #fff;
}

.industries-layout,
.branch-archive,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 8vw, 7.5rem);
  align-items: start;
}

.industries-copy,
.branch-archive__intro,
.faq-intro {
  position: sticky;
  top: 150px;
}

.industries-copy h2,
.branch-archive__intro h2,
.faq-intro h2 {
  max-width: 13ch;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--green-950);
  font-weight: 800;
  text-decoration: none;
}

.text-link span {
  font-size: 1.25rem;
  transition: transform .2s ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.industry-links,
.branch-link-list {
  border-top: 1px solid var(--line);
}

.industry-link,
.branch-link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 28px;
  gap: 1rem;
  align-items: center;
  min-height: 76px;
  padding: .9rem .25rem;
  border-bottom: 1px solid var(--line);
  color: var(--graphite);
  font-weight: 800;
  text-decoration: none;
  transition: padding .2s var(--ease), background .2s ease;
}

.industry-link:hover,
.branch-link:hover {
  padding-inline: 1rem;
  background: #f3f9f0;
}

.industry-link img,
.branch-link__icon {
  width: 42px;
  height: 42px;
}

.industry-link img {
  padding: 8px;
  border-radius: 10px;
  background: var(--mint);
}

.industry-link > span:last-child,
.branch-link__arrow {
  color: var(--green-950);
  font-size: 1.25rem;
}

.branch-link__icon {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--mint);
}

.branch-link__icon img {
  width: 24px;
  height: 24px;
}

.branch-link strong,
.branch-link small {
  display: block;
}

.branch-link small {
  max-width: 62ch;
  margin-top: .25rem;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 400;
  line-height: 1.5;
}

.faq-section {
  background: #f6faf8;
}

.faq-layout .faq-list {
  max-width: none;
  margin: 0;
}

.faq-intro > p:last-child {
  max-width: 44ch;
  color: var(--muted);
}

.process {
  background: #f6faf8;
}

.contact-form {
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(6, 32, 25, .07);
}

@media (max-width: 1120px) {
  .nav__phone {
    display: none;
  }

  .nav__links {
    gap: 0;
  }
}

@media (max-width: 1000px) {
  body.menu-open {
    overflow: hidden;
  }

  .utility-bar__links a {
    display: none;
  }

  .nav {
    min-height: 74px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }

  .menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--graphite);
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav__cta {
    order: 2;
  }

  .menu-toggle {
    order: 3;
    margin-left: 0;
  }

  .nav__links,
  .nav.is-open .nav__links {
    position: absolute;
    z-index: 130;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 110px);
    padding: 1rem max(1rem, calc((100vw - var(--container)) / 2));
    overflow-y: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 20px 40px rgba(6, 32, 25, .12);
  }

  .nav__links.is-open,
  .nav.is-open .nav__links.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav__item {
    display: block;
    align-self: auto;
  }

  .nav__link,
  .nav__trigger {
    width: 100%;
    min-height: 52px;
    justify-content: space-between;
    padding-inline: .25rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1rem;
  }

  .nav__link:hover,
  .nav__trigger:hover,
  .nav__item.is-open .nav__trigger {
    background: transparent;
  }

  .mega-menu,
  .nav__item:hover .mega-menu,
  .nav__item:focus-within .mega-menu {
    position: static;
    display: none;
    width: 100%;
    padding: .75rem 0 1rem;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__item.is-open .mega-menu {
    display: block;
    transform: none;
  }

  .mega-menu__intro {
    display: none;
  }

  .mega-menu__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }


  .mega-menu__list a {
    min-height: 40px;
  }

  .nav__mobile-contact {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    margin-top: .75rem;
    padding: 1rem;
    border-radius: 10px;
    color: #fff;
    background: var(--green-950);
  }

  .nav__mobile-contact a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
  }

  .nav__mobile-contact span {
    color: #c9ddd6;
    font-size: .82rem;
  }

  .site-header.is-menu-open .nav-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(11, 43, 36, .48);
  }

  .header-main,
  .utility-bar {
    position: relative;
    z-index: 100;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 3rem;
  }

  .hero__content {
    padding: 2rem 0 0;
  }

  .hero__image {
    min-height: 460px;
  }

  .industries-layout,
  .branch-archive,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .industries-copy,
  .branch-archive__intro,
  .faq-intro {
    position: static;
  }

  .hero-note {
    left: 1rem;
  }
}

@media (max-width: 700px) {
  .utility-bar {
    display: none;
  }

  .nav {
    min-height: 68px;
    gap: .65rem;
  }

  .logo img,
  .logo .custom-logo {
    width: 154px;
  }

  .nav__cta {
    display: none;
  }

  .hero {
    padding: 2.25rem 0 3.5rem;
  }

  .hero__grid {
    width: min(calc(100% - 1.25rem), var(--container));
    gap: 2.5rem;
  }

  .hero__content {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
    overflow-wrap: normal;
  }

  .hero__image {
    min-height: 360px;
    border-radius: 12px 12px 46px 12px;
  }

  .hero-note {
    right: .75rem;
    bottom: .75rem;
    left: .75rem;
    min-width: 0;
  }

  .hero__proof {
    display: grid;
    gap: .5rem;
  }

  .mega-menu__list {
    grid-template-columns: 1fr;
  }


  .service-row:hover {
    padding-inline: .5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mega-menu,
  .menu-toggle span,
  .nav__chevron {
    transition: none;
  }
}

/* Rytm typograficzny treści (2026-08-02): nagłówki śródtekstowe, odstępy nad nagłówkami, listy treści. */
.split > div > h2:first-child {
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  line-height: 1.16;
  max-width: 24ch;
  margin-bottom: 1.1rem;
}

h3 {
  line-height: 1.25;
}

.container p:not(.kicker) + h2,
.container ul + h2 {
  margin-top: 2.6rem;
}

.container p:not(.kicker) + h3,
.container ul + h3 {
  margin-top: 1.9rem;
}

.legal h2 {
  margin-top: 3.5rem;
}

/* Content SEO usług/branż (2026-08-03): rytm prose, akcenty, listy. */
.service-prose h2 {
  position: relative;
  max-width: 24ch;
  padding-top: 1.15rem;
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  line-height: 1.16;
}

.service-prose h2::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 2.1rem;
  height: 3px;
  background: var(--green);
  content: "";
}

.service-prose p {
  max-width: 62ch;
  line-height: 1.7;
}

.service-prose > h2 + p {
  font-size: 1.06rem;
  color: var(--graphite);
}

.service-prose strong {
  color: var(--green-950);
  background: linear-gradient(transparent 68%, var(--mint) 68%);
}

.service-prose ul {
  max-width: 62ch;
  margin: 1.7rem 0;
  padding: 0;
  list-style: none;
}

.service-prose li {
  position: relative;
  padding: .55rem 0 .55rem 1.7rem;
  border-bottom: 1px solid var(--line);
}

.service-prose li:first-child {
  border-top: 1px solid var(--line);
}

.service-prose li::before {
  position: absolute;
  top: 1.15rem;
  left: 0;
  width: .85rem;
  height: 3px;
  background: var(--green);
  content: "";
}

.service-prose--single {
  max-width: 820px;
}

.scope-grid li {
  display: flex;
  align-items: flex-start;
}

.scope-grid li .icon {
  margin-top: .25rem;
}

/* Mobile: rytm treści i siatki (2026-08-03). */
@media (max-width: 640px) {
  .service-prose h2 {
    padding-top: .9rem;
    font-size: clamp(1.5rem, 6vw, 1.75rem);
  }

  .service-prose p,
  .service-prose li {
    font-size: .95rem;
  }

  .split {
    gap: 2.5rem;
  }

  .scope-grid {
    grid-template-columns: 1fr;
    margin-top: 1.8rem;
  }

  .scope-grid li:nth-child(odd) {
    padding-right: 0;
    border-right: 0;
  }

  .scope-grid li:nth-child(even) {
    padding-left: 0;
  }

  .process-grid {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .process-step {
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .process-step:not(:first-child) {
    padding-left: 0;
  }

  .process-step span {
    margin-bottom: .9rem;
  }
}

.container ul:not([class]) {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
}

.container ul:not([class]) li {
  margin: .4rem 0;
}

.container p:not(.kicker) + .kicker,
.container ul + .kicker {
  margin-top: 2.4rem;
}

/* Zdjecia w tresci "Über uns" — portret wlasciciela i zespol w pracy. */
.about-figure {
  max-width: 420px;
  margin: 2rem 0;
}

.about-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(6, 32, 25, .16);
}

.about-figure figcaption {
  margin-top: .7rem;
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 640px) {
  .about-figure {
    max-width: 100%;
    margin: 1.5rem 0;
  }
}
