:root {
  --navy: #163321;
  --blue: #287848;
  --cyan: #a8e2b4;
  --ink: #1c3022;
  --muted: #647566;
  --pale: #f3f8f3;
  --line: #dce8df;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 18px 50px #102d1b12;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: #fff;
}

h1,
h2,
h3 {
  font-family: Manrope, sans-serif;
  letter-spacing: -.04em;
  margin: 0 0 16px;kjontk
}

p {
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 18px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: auto;
}

/* Górny pasek */

.topbar {
  background: #112c24;
  color: #d2e1d5;
  font-size: 12px;
  padding: 10px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar a {
  color: #fff;
}

/* Nawigacja */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #244f40;
  border-bottom: 1px solid #3b6a58;
}

.navinner {
  position: relative;
  min-width: 0;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  flex-shrink: 0;
  font: 800 25px Manrope, sans-serif;
  letter-spacing: -1.5px;
  color: var(--navy);
}

.logo span {
  color: var(--blue);
}

.logo small {
  display: block;
  font: 600 9px "DM Sans", sans-serif;
  letter-spacing: 2px;
  color: #718096;
  text-transform: uppercase;
  margin-top: 1px;
}

.logo-image {
  display: block;
  width: 255px;
  max-width: 100%;
  height: auto;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 27px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.navlinks > a {
  color: #fff;
}

.navlinks > a:hover,
.navlinks .nav-offer-link:hover {
  color: var(--cyan);
}

.navlinks a[aria-current="page"] {
  color: var(--cyan);
}

.menu {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 5px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.menu:hover {
  background: #ffffff15;
}

/* Przyciski */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px #2878482d;
}

.btn-outline {
  border-color: #d5e4d8;
  background: #fff;
  color: var(--navy);
}

/* Sekcja główna */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, #0d2114 0%, #163321f2 40%, #1633216b 100%),
    url("https://images.unsplash.com/photo-1557597774-9d273605dfa9?auto=format&fit=crop&w=2000&q=85") center/cover;
}

.hero:after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border: 1px solid #a8e2b435;
  border-radius: 50%;
  right: -100px;
  bottom: -300px;
  box-shadow: 0 0 0 60px #a8e2b40c, 0 0 0 120px #a8e2b408;
}

.hero-content {
  max-width: 760px;
  padding: 110px 0 100px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow:before {
  content: "";
  width: 25px;
  height: 2px;
  background: var(--cyan);
}

h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.06;
  margin-bottom: 24px;
}

.hero p {
  max-width: 590px;
  color: #d3e0d4;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero .btn-outline {
  background: #ffffff10;
  color: #fff;
  border-color: #ffffff45;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 48px;
  color: #dbe7dd;
  font-size: 12px;
}

.proof strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font: 800 24px Manrope, sans-serif;
}

.proof span {
  color: #b6cbb9;
}

/* Sekcje */

.section {
  padding: 94px 0;
}

.section-soft {
  background: var(--pale);
}

.section-head {
  max-width: 700px;
  margin-bottom: 38px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.section-head p {
  max-width: 600px;
}

/* Karty usług */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}

.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px #10284b1c;
}

.service img {
  display: block;
  width: 100%;
  height: 205px;
  object-fit: cover;
  background: #e1eae3;
}

.service-body {
  padding: 23px;
}

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 9px;
  color: var(--blue);
  background: #eaf4ec;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.service h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.service p {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.7;
}

.more {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.more span {
  transition: margin .2s;
}

.more:hover span {
  margin-left: 5px;
}

/* O nas */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: 28px;
}

.float-note {
  position: absolute;
  bottom: 22px;
  left: -18px;
  max-width: 220px;
  padding: 18px 22px;
  background: #fff;
  border-radius: 15px;
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 12px;
}

.float-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font: 800 18px Manrope, sans-serif;
}

.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.check i {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  background: #e3f3e6;
  color: #286d40;
  border-radius: 50%;
  font-style: normal;
}

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.brand {
  padding: 10px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #4e5d72;
  font-size: 12px;
  font-weight: 800;
}

/* Pasek promocyjny */

.band {
  padding: 48px 0;
  background: linear-gradient(115deg, #163321, #244e32);
  color: #fff;
}

.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.band h2 {
  margin: 0 0 8px;
  font-size: clamp(25px, 3vw, 36px);
}

.band p {
  margin: 0;
  color: #c4d8c8;
}

/* Galeria */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #e1eae3;
  border-radius: 16px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item span {
  position: absolute;
  inset: auto 0 0;
  padding: 35px 14px 13px;
  background: linear-gradient(transparent, #0d2114c9);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}


/*  KARTY KONTAKTOWE */

.contact-section {
  background: linear-gradient(180deg, #f3f8f3 0%, #fff 100%);
}

.contact-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.contact-heading .eyebrow {
  color: var(--blue);
}

.contact-heading h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.contact-heading p {
  max-width: 600px;
  margin-bottom: 0;
}

/* Układ dwóch kart */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

/* Wygląd kart */
.contact-section .contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 340px;
  padding: 32px;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px #173b2010;
  transition: transform .22s ease,
              box-shadow .22s ease,
              border-color .22s ease;
}

/* Zielony pasek na górze */
.contact-section .contact-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--blue), #a8d8a9);
}

.contact-section .contact-card:hover {
  transform: translateY(-5px);
  border-color: #bed8c3;
  box-shadow: 0 22px 48px #173b2018;
}

/* Górna część karty */
.contact-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 25px;
}

.contact-icon {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--blue);
  background: #eaf4ec;
  border: 1px solid #d9eadd;
  border-radius: 14px;
  font: 800 13px Manrope, sans-serif;
}

.contact-region {
  padding: 8px 13px;
  color: #467452;
  background: #f0f7f1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
}

/* Tekst */
.contact-section .contact-card h3 {
  margin-bottom: 8px;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.contact-section .contact-card p {
  color: var(--muted);
}

.contact-person {
  margin-bottom: 8px;
  font-size: 14px;
}

/* Telefon */
.contact-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  color: #215d35;
  background: #f4f9f4;
  border: 1px solid #e0ece2;
  border-radius: 12px;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.contact-phone:hover {
  background: #eaf5ec;
  border-color: #bdd8c2;
}

.contact-phone-copy {
  display: grid;
  gap: 5px;
}

.contact-link-label {
  color: #6c806f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-phone strong {
  color: #1a512c;
  font: 800 21px Manrope, sans-serif;
  letter-spacing: -.02em;
}

.contact-link-arrow {
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--blue);
  background: #fff;
  border: 1px solid #dfebe1;
  border-radius: 10px;
  font-size: 19px;
}

/* Adres */
.contact-address {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.75;
}

/* Dolna informacja */
.contact-card-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: auto 0 0;
  padding-top: 17px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}

.contact-card-note::before {
  display: grid;
  flex: 0 0 21px;
  place-items: center;
  width: 21px;
  height: 21px;
  content: "✓";
  color: var(--blue);
  background: #eaf4ec;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

/* Responsywność */
@media (max-width: 700px) {
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-section .contact-card {
    min-height: 0;
    padding: 25px;
  }

  .contact-heading {
    margin-bottom: 25px;
  }
}


/* Stopka */

.footer {
  padding: 32px 0;
  background: #0d2114;
  color: #b6cbb9;
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer .logo {
  color: #fff;
}

/* Animacje */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Połączenie mobilne */

.mobile-call {
  display: none;
}

/* Certyfikaty */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cert-card {
  display: flex;
  gap: 17px;
  padding: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 55px #10284b1c;
}

.cert-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #eaf3ff;
  color: var(--blue);
  border-radius: 13px;
  font-size: 24px;
  font-weight: 800;
}

.cert-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.cert-card p {
  font-size: 13px;
  line-height: 1.7;
}

.cert-card .tag {
  margin-bottom: 10px;
}

/* Galeria certyfikatów */

.cert-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.cert-tile {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}

.cert-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 50px #10284b20;
}

.cert-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 270px;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f8fd, #e8eff8);
}

.cert-preview > img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
  opacity: 0;
  transition: transform .35s, opacity .2s;
}

.cert-tile.has-image .cert-preview > img {
  background: #f3f6fa;
  opacity: 1;
}

.cert-tile:hover .cert-preview > img {
  transform: scale(1.035);
}

.cert-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px;
  padding: 18px;
  text-align: center;
  color: #526782;
  border: 2px dashed #bdcce0;
  border-radius: 10px;
}

.cert-placeholder-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #dfeeff;
  color: var(--blue);
  border-radius: 50%;
  font-size: 28px;
}

.cert-placeholder strong {
  font-size: 14px;
}

.cert-placeholder small {
  font-size: 11px;
  overflow-wrap: anywhere;
}

.cert-tile.has-image .cert-placeholder {
  display: none;
}

.cert-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 8px 11px;
  color: #fff;
  background: #0d2114d9;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(5px);
  transition: .2s;
}

.cert-tile.has-image:hover .cert-zoom,
.cert-tile.has-image:focus-visible .cert-zoom {
  opacity: 1;
  transform: none;
}

.cert-tile-title {
  display: block;
  padding: 15px 17px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.cert-help {
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* Powiększanie zdjęć certyfikatów */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 55px 24px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}

.image-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #020817ed;
  border: 0;
  cursor: zoom-out;
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(1100px, 96vw);
  max-height: calc(100vh - 90px);
  pointer-events: none;
}

.lightbox-content img {
  max-width: 100%;
  max-height: calc(100vh - 135px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 20px 70px #0008;
  pointer-events: auto;
}

.lightbox-content p {
  margin: 0;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 22px;
  width: 46px;
  height: 46px;
  background: #ffffff15;
  border: 1px solid #ffffff60;
  border-radius: 50%;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

/* Podstrony oferty */

.detail-hero {
  padding: 72px 0;
  background: var(--navy);
  color: #fff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.detail-grid h1 {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
}

.detail-grid p {
  color: #d3e0d4;
  font-size: 16px;
}

.detail-grid img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 65px #0003;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: start;
}

.detail-content h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.detail-feature {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.detail-feature h3 {
  font-size: 21px;
}

.detail-feature ul {
  margin: 0;
  padding-left: 20px;
}

.detail-feature li {
  padding: 8px 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Rozwijane menu Oferta */

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.navlinks .nav-dropdown > .nav-offer-link {
  display: inline-flex;
  align-items: center;
  padding: 13px 2px;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #fff;
  font: 700 16px/1 "DM Sans", sans-serif;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}

.dropdown-toggle:hover,
.nav-dropdown.open > .dropdown-toggle {
  background: #e8f5ec;
  color: #208044;
}

.nav-dropdown.open > .dropdown-toggle {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  z-index: 110;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(760px, calc(100vw - 40px));
  max-height: min(78vh, 650px);
  padding: 13px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dce9df;
  border-radius: 17px;
  box-shadow: 0 22px 60px #10284b25;
  transform: translateX(-34%);
}

.dropdown-menu:before {
  position: absolute;
  top: -2px;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
}

.nav-dropdown:hover > .dropdown-menu,
.nav-dropdown:focus-within > .dropdown-menu,
.nav-dropdown.open > .dropdown-menu {
  display: grid;
}

.navlinks .dropdown-menu a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 12px 34px 12px 13px;
  background: #fff;
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  transition: background .18s, transform .18s;
}

.navlinks .dropdown-menu a:hover,
.navlinks .dropdown-menu a:focus-visible {
  background: #f0f8f1;
  color: #207a3f;
  outline: none;
}

.dropdown-service-name {
  color: #183a28;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.dropdown-service-desc {
  color: #65766b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.dropdown-arrow {
  position: absolute;
  top: 50%;
  right: 12px;
  color: #238347;
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-50%);
}

.navlinks .dropdown-menu .dropdown-all {
  display: flex;
  flex-direction: row;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 4px;
  padding: 13px 16px;
  background: #f0f8f1;
  border: 1px solid #e1efe4;
  border-radius: 11px;
}

.dropdown-all-copy {
  display: block;
  max-width: 90%;
}

.dropdown-all-copy strong {
  display: block;
  margin-bottom: 3px;
  color: #207a3f;
  font-size: 14px;
}

.dropdown-all-copy small {
  display: block;
  color: #65766b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.navlinks .dropdown-menu .dropdown-all .dropdown-arrow {
  position: static;
  font-size: 19px;
  transform: none;
}

/* Katalog osób i podstrony certyfikatów */

.people-directory-section,
.person-certificate-section {
  min-height: calc(100vh - 250px);
}

.people-directory-title {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 58px);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.person-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 12px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.person-card:hover,
.person-card:focus-visible {
  transform: translateY(-5px);
  border-color: #a8d2b2;
  box-shadow: 0 22px 48px #1633211a;
  outline: none;
}

.person-photo-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e9f4eb;
  border-radius: 12px;
}

.person-photo-wrap > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.person-card:hover .person-photo-wrap > img,
.person-card:focus-visible .person-photo-wrap > img {
  transform: scale(1.045);
}

.person-card-action {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #153822d9;
  border: 1px solid #ffffff70;
  border-radius: 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}

.person-card:hover .person-card-action,
.person-card:focus-visible .person-card-action {
  opacity: 1;
  transform: translateY(0);
}

.person-card-name {
  display: block;
  padding: 16px 5px 3px;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.person-card-role {
  display: block;
  padding: 0 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.people-edit-note {
  margin: 26px 0 0;
  padding: 15px 18px;
  background: #edf7ef;
  border-left: 3px solid #78b985;
  border-radius: 0 10px 10px 0;
  font-size: 13px;
}

.person-detail-heading {
  margin-bottom: 34px;
}

.person-back-link {
  display: inline-flex;
  margin-bottom: 26px;
  color: #287848;
  font-size: 13px;
  font-weight: 800;
}

.person-back-link:hover {
  text-decoration: underline;
}

.person-detail-profile {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.person-detail-profile > img {
  flex: 0 0 auto;
  width: 132px;
  height: 132px;
  background: #e9f4eb;
  border-radius: 16px;
  object-fit: cover;
}

.person-detail-profile .eyebrow {
  margin-bottom: 12px;
}

.person-detail-profile h1 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 46px);
}

.person-detail-profile p {
  margin-bottom: 0;
}

.person-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.person-cert-tile {
  cursor: pointer;
}

.person-cert-tile:not(.has-image) {
  cursor: default;
}

.person-no-certs,
.person-not-found {
  grid-column: 1 / -1;
  padding: 25px;
  background: #f4faf5;
  border: 1px dashed #b8d7bf;
  border-radius: 14px;
}

.person-no-certs p,
.person-not-found p {
  margin: 8px 0 0;
}

/* Tablet */

@media (max-width: 900px) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-headquarters {
    grid-column: 1 / -1;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid {
    gap: 35px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 85px 0;
  }

  .service img {
    height: 190px;
  }

  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cert-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cert-preview {
    height: 250px;
  }

  .detail-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .detail-grid img {
    height: 300px;
  }

  .detail-content {
    gap: 25px;
  }

  .people-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .person-cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* MENU MOBILNE I TABLETOWE */
  .navinner {
    position: relative;
  }

  .menu {
    display: inline-flex;
    flex: 0 0 auto;
  }

  /* Ukryj zamknięte menu, ale nie pojedyncze linki */
  #navlinks.navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 101;
    width: 100%;
    max-height: 75vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px 18px 18px;
    background: #244f40;
    border: 1px solid #3b6a58;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 25px #0002;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: 15px;
  }

  #navlinks.navlinks.open {
    display: flex !important;
    visibility: visible;
    opacity: 1;
  }

  #navlinks.navlinks.open > a,
  #navlinks.navlinks.open > .nav-dropdown > .nav-offer-link {
    display: block !important;
    width: 100%;
    padding: 13px 10px;
    color: #fff !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1.5;
  }

  #navlinks.navlinks.open > a:hover,
  #navlinks.navlinks.open > .nav-dropdown > .nav-offer-link:hover {
    color: var(--cyan) !important;
  }

  #navlinks.navlinks.open > .nav-dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    gap: 0;
  }

  #navlinks.navlinks.open > .nav-dropdown > .nav-offer-link {
    flex: 1 1 auto;
    width: auto;
  }

  #navlinks.navlinks.open .dropdown-toggle {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    color: #fff;
    background: transparent;
  }

  #navlinks.navlinks.open .dropdown-toggle:hover,
  #navlinks.navlinks.open .nav-dropdown.open > .dropdown-toggle {
    color: #183a28;
    background: #e8f5ec;
  }

  #navlinks.navlinks.open .dropdown-menu {
    position: static;
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    max-height: none;
    margin: 0 0 8px;
    padding: 6px;
    overflow: visible;
    background: #f5faf6;
    border: 0;
    border-left: 2px solid #b9dfc3;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    grid-template-columns: 1fr;
  }

  #navlinks.navlinks.open .nav-dropdown.open > .dropdown-menu {
    display: grid !important;
  }

  #navlinks.navlinks.open .dropdown-menu:before {
    display: none;
  }

  #navlinks.navlinks.open .dropdown-menu a {
    display: flex !important;
    width: 100%;
    padding: 11px 34px 11px 12px;
    color: var(--ink) !important;
    white-space: normal;
  }

  #navlinks.navlinks.open .dropdown-menu .dropdown-all {
    padding: 13px 14px;
  }
}

/* Telefon */

@media (max-width: 600px) {
  .container {
    width: calc(100% - 28px);
  }

  .topbar .container {
    justify-content: center;
  }

  .topbar .top-extra {
    display: none;
  }

  .navinner {
    height: 68px;
    gap: 12px;
  }

  .logo-image {
    width: min(220px, 62vw);
  }

  /* Zachowujemy pozycję menu względem nagłówka */
  #navlinks.navlinks {
    top: 100%;
    left: -14px;
    right: -14px;
    width: auto;
    padding: 10px 14px 16px;
  }

  .hero-content {
    padding: 72px 0 65px;
  }

  h1 {
    font-size: 43px;
  }

  .hero p {
    font-size: 15px;
  }

  .proof {
    gap: 20px;
    margin-top: 35px;
  }

  .proof strong {
    font-size: 21px;
  }

  .section {
    padding: 66px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .service img {
    height: 220px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image img {
    height: 320px;
  }

  .float-note {
    left: 10px;
    bottom: 10px;
  }

  .checklist {
    grid-template-columns: 1fr;
  }

  .band-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gallery-item {
    height: 155px;
  }

  .contact-card,
  .form-card {
    padding: 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-headquarters {
    grid-column: auto;
  }

  .contact-section .contact-card {
    padding: 23px;
  }

  .contact-card-top {
    margin-bottom: 18px;
  }

  .mobile-call {
    display: flex;
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 30;
    box-shadow: 0 8px 28px #2878484d;
  }

  .footer {
    padding-bottom: 85px;
  }

  .cert-grid {
    grid-template-columns: 1fr;
  }

  .cert-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cert-preview {
    height: 185px;
  }

  .cert-tile-title {
    padding: 12px;
    font-size: 12px;
  }

  .cert-placeholder {
    margin: 7px;
    padding: 8px;
  }

  .cert-placeholder small {
    font-size: 9px;
  }

  .image-lightbox {
    padding: 60px 10px 18px;
  }

  .lightbox-content img {
    max-height: calc(100vh - 120px);
  }

  .detail-hero {
    padding: 55px 0;
  }

  .detail-grid img {
    height: 240px;
  }

  .detail-feature {
    padding: 22px;
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .person-card {
    padding: 8px 8px 13px;
    border-radius: 14px;
  }

  .person-photo-wrap {
    border-radius: 9px;
  }

  .person-card-name {
    padding: 11px 3px 3px;
    font-size: 13px;
  }

  .person-card-role {
    padding: 0 3px;
    font-size: 11px;
  }

  .person-card-action {
    right: 6px;
    bottom: 6px;
    left: 6px;
    padding: 7px;
    font-size: 10px;
    opacity: 1;
    transform: none;
  }

  .person-detail-profile {
    align-items: flex-start;
    gap: 15px;
    padding: 16px;
  }

  .person-detail-profile > img {
    width: 88px;
    height: 88px;
    border-radius: 12px;
  }

  .person-detail-profile h1 {
    font-size: 27px;
  }

  .person-detail-profile .eyebrow {
    font-size: 9px;
    letter-spacing: 1.3px;
  }

  .person-cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Mniejsze telefony */

@media (max-width: 360px) {
  .logo-image {
    width: min(185px, 58vw);
  }

  .navinner {
    gap: 6px;
  }

  .menu {
    min-width: 40px;
    min-height: 40px;
    font-size: 24px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cert-gallery,
  .person-cert-grid {
    grid-template-columns: 1fr;
  }
}

/* Ograniczenie animacji na życzenie użytkownika */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}







/* ==========================================
   CERTYFIKATY — TABELA NA CAŁĄ SZEROKOŚĆ
   ========================================== */

.people-directory-section {
  width: 100%;
  min-height: calc(100vh - 150px);
}

.people-directory-section > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 24px;
  padding-right: 24px;
}

#peopleGallery {
  display: block;
  width: 100%;
  max-width: none;
  margin-top: 28px;
  overflow-x: auto;
}

#peopleGallery .certificate-table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

#peopleGallery table,
#peopleGallery .certificate-table {
  width: 100%;
  min-width: 680px;
  max-width: none;
  border-collapse: collapse;
  background: #fff;
}

#peopleGallery th,
#peopleGallery td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

#peopleGallery th {
  background: var(--pale);
  color: var(--navy);
  font-weight: 800;
}

#peopleGallery tbody tr:hover {
  background: #f6faf6;
}

/* Przycisk otwierania certyfikatu */

#peopleGallery .certificate-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

#peopleGallery .certificate-view-btn:hover {
  background: var(--navy);
}

#peopleGallery .certificate-view-btn:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

#peopleGallery .certificate-view-btn:disabled {
  background: #9aa8b4;
  cursor: not-allowed;
}

/* ==========================================
   OKNO PODGLĄDU CERTYFIKATU
   ========================================== */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 24px;
  background: rgb(0 0 0 / 92%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

.image-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-lightbox .lightbox-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.image-lightbox .lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 1400px;
  max-height: calc(100vh - 90px);
}

.image-lightbox .lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.image-lightbox .lightbox-content p {
  margin: 0;
  color: #fff;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Przycisk zamykania podglądu */

.image-lightbox .lightbox-close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  background: #ffffff20;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox .lightbox-close:hover {
  background: #ffffff40;
}

body.lightbox-open {
  overflow: hidden;
}


/* ==========================================
   MENU MOBILNE — BEZ !important
   ========================================== */

@media (max-width: 900px) {
  header.nav {
    position: sticky;
    top: 0;
    z-index: 9999;
    overflow: visible;
  }

header.nav .navinner {
    position: relative;
    overflow: visible;
    flex-wrap: nowrap;
  }

header.nav button.menu {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: transparent;
    border: 1px solid #ffffff55;
    border-radius: 9px;
    font-size: 28px;
    cursor: pointer;
  }

header.nav button.menu:hover {
    background: #ffffff18;
  }

/* Główne menu — zamknięte */
  header.nav #navlinks.navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10000;
    width: 100%;
    height: auto;
    max-height: 75vh;
    margin: 0;
    padding: 10px 14px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    color: #d0d5d1;
    background-color: #287848;
    border: 1px solid #3b8a5a;
    border-top: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 14px 30px #102d1b40;
    transform: none;
  }

/* Główne menu — otwarte */
  header.nav #navlinks.navlinks.open {
    display: flex;
    visibility: visible;
    opacity: 1;
    background-color: #287848;
  }

/* Główne pozycje */
  header.nav #navlinks.navlinks.open > a {
    display: block;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 13px 12px;
    color: #d0d5d1;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
  }

header.nav #navlinks.navlinks.open > a:hover,
  header.nav #navlinks.navlinks.open > a:focus-visible {
    color: #fff;
    background-color: #1f633b;
  }

/* Wiersz Oferta */
  header.nav #navlinks.navlinks.open > .nav-dropdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    width: 100%;
    gap: 0;
    background: transparent;
  }

header.nav #navlinks.navlinks.open > .nav-dropdown > .nav-offer-link {
    display: flex;
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 13px 12px;
    color: #d0d5d1;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
  }

header.nav #navlinks.navlinks.open > .nav-dropdown > .nav-offer-link:hover {
    color: #fff;
    background: #1f633b;
  }

/* Przycisk rozwijania */
  header.nav #navlinks.navlinks.open .dropdown-toggle {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    color: #d0d5d1;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 19px;
    cursor: pointer;
  }

header.nav #navlinks.navlinks.open .dropdown-toggle:hover,
  header.nav #navlinks.navlinks.open .nav-dropdown.open > .dropdown-toggle {
    color: #fff;
    background: #1f633b;
  }

/* Podmenu — domyślnie ukryte */
  header.nav #navlinks.navlinks.open .dropdown-menu {
    display: none;
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    max-height: none;
    margin: 0 0 8px;
    padding: 7px;
    overflow: visible;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    background-color: #1f633b;
    border: 0;
    border-left: 3px solid #a8e2b4;
    border-radius: 0 8px 8px 0;
    box-shadow: none;
    transform: none;
  }

/* Podmenu — otwarte */
  header.nav #navlinks.navlinks.open > .nav-dropdown.open > .dropdown-menu {
    display: grid;
  }

header.nav #navlinks.navlinks.open .dropdown-menu::before {
    display: none;
  }

/* Linki usług */
  header.nav #navlinks.navlinks.open .dropdown-menu a {
    display: flex;
    position: relative;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 12px 30px 12px 12px;
    color: #d0d5d1;
    background-color: #287848;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.5;
    white-space: normal;
  }

header.nav #navlinks.navlinks.open .dropdown-menu a:hover,
  header.nav #navlinks.navlinks.open .dropdown-menu a:focus-visible {
    color: #fff;
    background-color: #174f2e;
  }

/* Nazwy i opisy usług */
  header.nav #navlinks.navlinks.open .dropdown-service-name,
  header.nav #navlinks.navlinks.open .dropdown-all-copy strong {
    color: #d0d5d1;
    font-size: 13px;
    font-weight: 800;
  }

header.nav #navlinks.navlinks.open .dropdown-service-desc,
  header.nav #navlinks.navlinks.open .dropdown-all-copy small {
    margin-top: 4px;
    color: #b8c7bc;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
  }

header.nav #navlinks.navlinks.open .dropdown-arrow {
    right: 10px;
    color: #d0d5d1;
  }

header.nav #navlinks.navlinks.open .dropdown-menu .dropdown-all {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background-color: #1f633b;
  }

header.nav #navlinks.navlinks.open .dropdown-menu .dropdown-all .dropdown-arrow {
    position: static;
    transform: none;
  }
}

/* Dopasowanie menu na telefonach */
@media (max-width: 600px) {
  header.nav #navlinks.navlinks {
    left: -14px;
    right: -14px;
    width: auto;
  }
}

/* Bardzo małe telefony */
@media (max-width: 360px) {
  header.nav .logo-image {
    width: min(185px, 58vw);
  }

header.nav .navinner {
    gap: 6px;
  }

header.nav button.menu {
    flex-basis: 40px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    font-size: 25px;
  }
}




/* CERTYFIKATY — dopracowany układ mobilny */
@media (max-width: 600px) {
  .people-directory-section > .container {
    width: 100%;
    padding-inline: 14px;
  }

  #peopleGallery {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    padding: 0;
    overflow: visible;
  }

  #peopleGallery table,
  #peopleGallery .certificate-table {
    display: block;
    width: 100%;
    min-width: 0;
    border: 0;
    border-collapse: separate;
    background: transparent;
  }

  #peopleGallery thead {
    display: none;
  }

  #peopleGallery tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  #peopleGallery tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
    width: 100%;
    min-width: 0;
    padding: 17px 14px;
    background: #fff;
    border: 1px solid #dce8df;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(22, 51, 33, 0.055);
  }

  #peopleGallery tbody td {
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow-wrap: anywhere;
  }

  /* Imię i nazwisko */
  #peopleGallery tbody td:first-child {
    grid-column: 1;
    grid-row: 1;
    color: #647566;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
  }

  /* Nazwa certyfikatu */
  #peopleGallery tbody td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    color: #163321;
    font-family: Manrope, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
  }

  /* Przycisk po prawej, na wysokości obu tekstów */
  #peopleGallery tbody td:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  #peopleGallery .certificate-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    max-width: 112px;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #287848;
    border-radius: 9px;
    background: #287848;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    cursor: pointer;
  }

  #peopleGallery .certificate-view-btn:active {
    background: #163321;
  }
}

/* ========================================
   KONTAKT — 3 NOWOCZESNE KAFELKI
======================================== */

.contact-section {
  background: linear-gradient(180deg, #f3f8f3 0%, #ffffff 100%);
  padding: 100px 0;
}

.contact-heading {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.contact-heading .eyebrow {
  color: var(--blue);
}

.contact-heading h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.contact-heading p {
  max-width: 600px;
  margin: 0 auto;
}

/* UKŁAD KAFELKÓW */

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1160px;
  margin: 0 auto;
  align-items: stretch;
}

/* POJEDYNCZY KAFEL */

.contact-section .contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 390px;
  padding: 28px 25px;
  overflow: hidden;

  color: var(--ink);
  background: #fff;

  border: 1px solid #dce8df;
  border-radius: 20px;

  box-shadow: 0 12px 35px rgba(22, 51, 33, 0.07);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}

/* GÓRNY ZIELONY AKCENT */

.contact-section .contact-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, #287848, #a8e2b4);
}

.contact-section .contact-card:hover {
  transform: translateY(-6px);
  border-color: #b9d8c0;
  box-shadow: 0 22px 45px rgba(22, 51, 33, 0.13);
}

/* GÓRA KARTY */

.contact-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 25px;
}

.contact-icon {
  display: grid;
  flex: 0 0 46px;
  place-items: center;

  width: 46px;
  height: 46px;

  color: #287848;
  background: #eaf4ec;
  border: 1px solid #d9eadd;
  border-radius: 14px;

  font: 800 13px Manrope, sans-serif;
}

.contact-region {
  padding: 8px 11px;

  color: #467452;
  background: #f0f7f1;
  border-radius: 30px;

  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
}

/* TREŚĆ */

.contact-section .contact-card h3 {
  margin: 0 0 12px;
  color: #163321;

  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -.03em;
}

.contact-section .contact-card p {
  color: #647566;
}

.contact-person {
  margin: 0 0 8px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* TELEFON */

.contact-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  margin: 18px 0;
  padding: 15px 13px;

  color: #215d35;
  background: #f4f9f4;

  border: 1px solid #e0ece2;
  border-radius: 12px;

  text-decoration: none;

  transition:
    background .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.contact-phone:hover {
  background: #eaf5ec;
  border-color: #a8d2b2;
  transform: translateY(-2px);
}

.contact-phone-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.contact-link-label {
  color: #718078;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-phone strong {
  color: #1a512c;
  font: 800 clamp(17px, 1.5vw, 21px) Manrope, sans-serif;
  letter-spacing: -.03em;
  white-space: nowrap;
}

.contact-link-arrow {
  display: grid;
  flex: 0 0 35px;
  place-items: center;

  width: 35px;
  height: 35px;

  color: var(--blue);
  background: #fff;
  border: 1px solid #dfebe1;
  border-radius: 10px;

  font-size: 18px;
}

/* ADRES */

.contact-address {
  margin: 0 0 18px;
  color: #647566;

  font-size: 13px;
  font-style: normal;
  line-height: 1.75;
}

/* DOLNA INFORMACJA */

.contact-card-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  margin: auto 0 0;
  padding-top: 17px;

  color: #647566;
  border-top: 1px solid #e5eee7;

  font-size: 11px;
  line-height: 1.65;
}

.contact-card-note::before {
  display: grid;
  flex: 0 0 21px;
  place-items: center;

  width: 21px;
  height: 21px;

  content: "✓";
  color: #287848;
  background: #eaf4ec;
  border-radius: 50%;

  font-size: 11px;
  font-weight: 800;
}

/* TABLET */

@media (max-width: 1000px) {
  .contact-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .contact-section .contact-card {
    min-height: 370px;
    padding: 25px;
  }
}

/* TELEFON */

@media (max-width: 700px) {
  .contact-section {
    padding: 70px 0;
  }

  .contact-heading {
    margin-bottom: 32px;
    text-align: left;
  }

  .contact-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-section .contact-card {
    min-height: 0;
    padding: 25px;
  }

  .contact-card-top {
    margin-bottom: 20px;
  }

  .contact-phone strong {
    font-size: 21px;
  }
}

/* MAŁE TELEFONY */

@media (max-width: 380px) {
  .contact-section .contact-card {
    padding: 21px;
  }

  .contact-region {
    font-size: 9px;
    padding: 7px 9px;
  }
}


/* Galeria autoryzowanych partnerów ze zdjęciami (prawa kolumna) - Układ 2x2 */
.partner-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 16px;
  margin-top: auto;
}

.partner-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 14px;
  background: #fff; /* Czyste białe tło */
  border: 1px solid var(--line); /* Zwykła, elegancka i spójna ramka */
  border-radius: 14px;
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.partner-photo:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(40, 120, 72, 0.12);
}

.partner-photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.04));
}

/* RTV / Mobile: układa okna jedno pod drugim na mniejszych ekranach */
@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .partner-box {
    padding: 26px;
  }
}

@media (max-width: 600px) {
  .brand-tiles {
    gap: 8px;
  }

  .brand-tile {
    padding: 8px 12px;
    font-size: 12px;
  }

  .partner-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .partner-photo {
    height: 90px;
    padding: 10px;
  }
}
/* ================================
   REFERENCJE I ZREALIZOWANE PROJEKTY
================================ */

.references-summary {
  display: inline-flex;
  align-items: center;
  margin: 10px 0 24px;
  padding: 10px 17px;
  background: #eaf4ed;
  color: #247747;
  border: 1px solid #d7e9dc;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
}

.references-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #e1eae3;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(18, 51, 35, 0.07);
}

.references-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: left;
  font-size: 15px;
}

.references-table thead {
  background: #163321;
  color: #ffffff;
}

.references-table th {
  padding: 19px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.references-table th:first-child {
  width: 75px;
  text-align: center;
}

.references-table td {
  padding: 18px 22px;
  color: #405448;
  border-bottom: 1px solid #edf1ee;
  line-height: 1.6;
  vertical-align: middle;
}

.references-table td:first-child {
  width: 75px;
  text-align: center;
  color: #247747;
  font-weight: 700;
}

.references-table tbody tr {
  transition: background 0.2s ease;
}

.references-table tbody tr:nth-child(even) {
  background: #f8faf8;
}

.references-table tbody tr:hover {
  background: #edf6ef;
}

.references-table tbody tr:last-child td {
  border-bottom: none;
}

.references-table td[colspan] {
  padding: 35px 20px;
  text-align: center;
  color: #718078;
}

/* Informacja pod tabelą */

.references-note {
  margin: 18px 0 45px;
  color: #718078;
  font-size: 13px;
  line-height: 1.7;
}

/* Sekcja kontaktowa */

.references-contact {
  margin-top: 55px;
  padding: 42px 35px;
  text-align: center;
  background: linear-gradient(135deg, #edf6ef, #f7faf7);
  border: 1px solid #dceade;
  border-radius: 22px;
}

.references-contact h2 {
  margin: 0 0 12px;
  color: #163321;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 750;
}

.references-contact p {
  max-width: 600px;
  margin: 0 auto 24px;
  color: #647568;
  line-height: 1.7;
}

.references-contact .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 25px;
  border-radius: 10px;
  text-decoration: none;
}

/* Responsywność */

@media (max-width: 700px) {
  .references-table-wrap {
    border-radius: 13px;
  }

  .references-table {
    min-width: 600px;
    font-size: 14px;
  }

  .references-table th,
  .references-table td {
    padding: 14px 15px;
  }

  .references-summary {
    font-size: 13px;
  }

  .references-contact {
    margin-top: 35px;
    padding: 30px 20px;
    border-radius: 16px;
  }
}

@media (max-width: 400px) {
  .references-contact h2 {
    font-size: 21px;
  }

  .references-contact .btn {
    width: 100%;
  }
}

/* =================================
   PARTNERZY I CERTYFIKACJE — UKŁAD
================================= */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
  align-items: stretch;
  width: 100%;
}

.partner-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.partner-box h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.2;
}

.partner-box p {
  font-size: 14px;
}


/* Kafelki marek — większy układ */

.brand-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 28px;
  padding-top: 0;
}

.brand-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 15px 10px;
  background: linear-gradient(145deg, #f7faf7, #edf5ef);
  border: 1px solid #dce8df;
  border-radius: 13px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease,
              border-color .25s ease;
}

.brand-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 28px;
  height: 3px;
  background: var(--blue);
  border-radius: 0 0 5px 5px;
  transform: translateX(-50%);
}

.brand-tile:hover {
  transform: translateY(-4px);
  border-color: #a8cbb0;
  box-shadow: 0 8px 20px rgba(22, 51, 33, .08);
}

@media (max-width: 600px) {
  .brand-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .brand-tile {
    min-height: 65px;
    font-size: 13px;
  }
}


.partner-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
}

.partner-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 125px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.partner-photo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* TABLET I TELEFON */

@media (max-width: 900px) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 600px) {
  .partner-box {
    padding: 23px;
  }

  .partner-gallery {
    gap: 10px;
  }

  .partner-photo {
    height: 105px;
    padding: 10px;
  }
}
