/* ================================================
   ProcureBooks — Shared Stylesheet
   ================================================ */

:root {
  --accent: #ccbf90;
  --accent-soft: #e8dec0;
  --navy: #0f2d49;
  --gray: #5c6b63;
  --gray-light: #d8d1bc;
  --gray-bg: #f4f0e4;
  --white: #fff;
  --black: #002b1c;
  --ink: #17251f;
  --text-on-dark: #e9e9e9;
  --font-body: "Montserrat", sans-serif;
  --font-display: "Playfair Display SC", serif;
  --font: var(--font-body);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
::selection {
  background: var(--black);
  color: var(--accent);
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-headline,
.section-title,
.page-title,
.spec-title,
.offer-title,
.partner-heading,
.stat-num,
.cta-banner h2,
.about-text h2,
.story-text h2,
.why-text h2,
.service-copy h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

/* ---- TOP BAR ---- */
.topbar {
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 9px 0;
  position: relative;
  z-index: 10;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.topbar-left,
.topbar-right {
  display: flex;
  gap: 28px;
  align-items: center;
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* ---- HEADER ---- */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gray-light);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 58px;
  width: auto;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}
.nav-list a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav-list > li > a:hover::after,
.nav-list > li > a.active::after {
  width: 100%;
}
.nav-item {
  position: relative;
}
.has-submenu > a {
  padding-right: 15px;
}
.has-submenu > a::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s;
}
.has-submenu:hover > a::before,
.has-submenu:focus-within > a::before {
  transform: translateY(-35%) rotate(225deg);
}
.has-submenu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -24px;
  right: -24px;
  height: 22px;
}
.submenu {
  position: absolute;
  top: calc(100% + 18px);
  left: -22px;
  min-width: 250px;
  list-style: none;
  background: var(--black);
  border: 2px solid var(--black);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s;
  box-shadow: 0 18px 40px rgba(17, 16, 13, 0.18);
}
.submenu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 24px;
  width: 16px;
  height: 16px;
  background: var(--black);
  transform: rotate(45deg);
}
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.submenu a {
  display: block;
  padding: 13px 14px;
  color: var(--white);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition:
    background 0.2s,
    color 0.2s;
}
.submenu a:hover,
.submenu a.active {
  background: var(--accent);
  color: var(--black);
}

/* ---- MOBILE MENU TOGGLE ---- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  z-index: 1100;
  position: relative;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition:
    transform 0.35s cubic-bezier(0.76, 0, 0.24, 1),
    opacity 0.2s;
  transform-origin: center;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- MOBILE NAV OVERLAY ---- */
.mobile-nav {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--white);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 96px 32px 56px;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  transform: translate3d(0, -100%, 0);
  transition:
    transform 0.45s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0s linear 0.45s;
  pointer-events: none;
  max-width: 100vw;
}
.mobile-nav.open {
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.45s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0s;
  pointer-events: all;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  margin-bottom: 40px;
  border-top: 1px solid var(--gray-light);
}
.mobile-nav-links a {
  font-size: clamp(24px, 6vw, 40px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  color: var(--black);
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-light);
  transition: color 0.2s;
  display: block;
}
.mobile-nav-links a::after {
  display: none;
}
.mobile-nav-links a.active,
.mobile-nav-links a:hover {
  color: var(--accent);
}
.mobile-nav-group {
  border-bottom: 1px solid var(--gray-light);
}
.mobile-nav-parent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav-group .mobile-nav-parent {
  border-bottom: none;
  flex: 1;
}
.mobile-submenu-toggle {
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  padding: 0 6px 0 18px;
  margin: 0;
  transition: color 0.2s;
}
.mobile-submenu-toggle:hover,
.mobile-nav-group.open .mobile-submenu-toggle {
  color: var(--accent);
}
.mobile-submenu-chevron {
  display: block;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}
.mobile-nav-group.open .mobile-submenu-chevron {
  transform: translateY(2px) rotate(-135deg);
}
.mobile-submenu {
  display: grid;
  gap: 2px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s cubic-bezier(0.76, 0, 0.24, 1),
    padding-bottom 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}
.mobile-nav-group.open .mobile-submenu {
  max-height: 320px;
  padding-bottom: 18px;
}
.mobile-nav-links .mobile-submenu a {
  position: relative;
  border-bottom: none;
  color: var(--gray);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  padding: 9px 0 9px 22px;
}
.mobile-nav-links .mobile-submenu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border: 1px solid var(--black);
  transform: translateY(-50%);
}
.mobile-nav-links .mobile-submenu a.active,
.mobile-nav-links .mobile-submenu a:hover {
  color: var(--black);
}
.mobile-nav-cta {
  align-self: flex-start;
}
.mobile-nav-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 28px;
  margin-bottom: auto;
}
.mobile-nav-contact a {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--gray);
  transition: color 0.2s;
}
.mobile-nav-contact a:hover {
  color: var(--black);
}
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  padding: 8px;
  line-height: 0;
  transition: color 0.2s;
}
.mobile-nav-close:hover {
  color: var(--accent);
}

/* ---- BUTTONS ---- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent);
  color: var(--black);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 15px 24px;
  border: 1.5px solid var(--black);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.cta-btn:hover {
  background: var(--black);
  color: var(--accent);
  transform: translateY(-1px);
}

.cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: transparent;
  color: var(--black);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 13px 22px;
  border: 1.5px solid var(--black);
  cursor: pointer;
  transition: all 0.2s;
}
.cta-outline:hover {
  background: var(--accent);
  color: var(--black);
}

/* ---- SECTIONS ---- */
section.std {
  padding: 120px 0;
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 32px;
}
.section-tag {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-weight: 700;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
}
.section-meta {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gray);
  text-transform: uppercase;
  text-align: right;
  flex-shrink: 0;
  line-height: 1.7;
}

/* ---- TICKER ---- */
.ticker {
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 50s linear infinite;
  gap: 48px;
  padding-right: 48px;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.ticker-bullet {
  color: var(--accent);
  font-size: 16px;
}
@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ---- SPEC CARDS ---- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.spec-card {
  padding: 32px 28px 78px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 4px;
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.spec-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
}
.spec-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: var(--accent);
}
.spec-title {
  font-weight: 700;
  font-size: 30px;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 16px;
  margin-top: 8px;
  letter-spacing: 0;
}
.spec-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}
.spec-card-arrow {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  width: 72px;
  height: 50px;
  margin-top: 0;
  color: var(--black);
  background: var(--accent);
  transition:
    width 0.24s cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.spec-card-arrow-icon {
  width: 34px;
  height: 26px;
  overflow: visible;
}
.spec-card-arrow-line,
.spec-card-arrow-head {
  transform-box: view-box;
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.spec-card-arrow-line {
  transform-origin: 9px 12px;
}
.spec-card:hover .spec-card-arrow,
.spec-card:focus-visible .spec-card-arrow {
  width: 84px;
}
.spec-card:hover .spec-card-arrow-line,
.spec-card:focus-visible .spec-card-arrow-line {
  transform: scaleX(1.45);
}
.spec-card:hover .spec-card-arrow-head,
.spec-card:focus-visible .spec-card-arrow-head {
  transform: translateX(6px);
}

/* ---- POST / CASE STUDY CARDS (listingi + sekcje „powiązane") ---- */
/* Wariant z obrazem wyróżniającym — odróżnia treści od kart oferty. */
.spec-card--post {
  padding: 0;
  min-height: 0;
}
/* Akcentowy róg ma leżeć NA zdjęciu, nie pod nim. */
.spec-card--post::before {
  z-index: 3;
}
.spec-card-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--black);
}
.spec-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.spec-card--post:hover .spec-card-img,
.spec-card--post:focus-visible .spec-card-img {
  transform: scale(1.06);
}
.spec-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 43, 28, 0.5),
    rgba(0, 43, 28, 0) 58%
  );
  pointer-events: none;
}
/* Placeholder, gdy wpis nie ma obrazu wyróżniającego. */
.spec-card-media--empty {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(204, 191, 144, 0.08) 0 2px,
      transparent 2px 16px
    ),
    var(--black);
}
.spec-card-media--empty::after {
  display: none;
}
.spec-card-monogram {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 76px;
  letter-spacing: 0.06em;
  color: rgba(204, 191, 144, 0.3);
}
.spec-card-cat {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  background: var(--accent);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 11px;
}
.spec-card-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 28px 26px;
}
.spec-card-date {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}
.spec-card--post .spec-title {
  font-size: 23px;
  line-height: 1.05;
  margin-top: 0;
  margin-bottom: 12px;
}
/* „Czytaj więcej" — tekst + ikona (lucide arrow-right) zamiast kafla strzałki. */
.spec-card-more {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}
.spec-card-more-icon {
  width: 19px;
  height: 19px;
  color: var(--accent);
  transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.spec-card--post:hover .spec-card-more-icon,
.spec-card--post:focus-visible .spec-card-more-icon {
  transform: translateX(6px);
}

/* ---- ABOUT ---- */
.about {
  background: var(--gray-bg);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
}
.about-text {
  padding-left: 8px;
}
.about-text h2 {
  font-weight: 700;
  font-size: clamp(40px, 5vw, 48px);
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 32px;
  letter-spacing: 0;
}
.about-text h2 em {
  font-style: normal;
  color: var(--accent);
}
.about-text p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 540px;
}
.about-text .section-tag {
  margin-bottom: 16px;
}

/* ---- REALIZATIONS ---- */
.real-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(280px, 32vw, 440px);
  gap: 24px;
}
.real-item {
  position: relative;
  overflow: hidden;
  background: var(--gray-bg);
  display: block;
  cursor: pointer;
  height: 100%;
}
.real-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.real-item:hover img {
  transform: scale(1.06);
}
.real-item-1 {
  grid-column: span 7;
}
.real-item-2 {
  grid-column: span 5;
}
.real-item-3 {
  grid-column: span 5;
}
.real-item-4 {
  grid-column: span 7;
}
.real-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent);
  padding: 28px 28px 24px;
  color: var(--white);
}
.real-caption-title {
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0;
}
.real-item::after {
  content: "↗";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--white);
  color: var(--black);
  display: grid;
  place-items: center;
  font-size: 18px;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: all 0.3s;
}
.real-item:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---- STATS ---- */
.stats {
  background: var(--black);
  color: var(--white);
  padding: 80px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  text-align: center;
}
.stat {
  padding: 0 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.stat:last-child {
  border-right: none;
}
.stat-num {
  font-weight: 700;
  font-size: clamp(52px, 5.1vw, 82px);
  line-height: 0.9;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0;
  white-space: nowrap;
}
.stat-num-wide {
  font-size: clamp(38px, 4vw, 64px);
  letter-spacing: 0;
}
.stat-unit {
  display: inline-block;
  font-size: 0.46em;
  line-height: 1;
  margin-left: 0.08em;
  vertical-align: 0.42em;
}
.stat-unit sup {
  font-size: 0.65em;
  line-height: 0;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  max-width: 230px;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--accent);
  color: var(--black);
  padding: clamp(72px, 7vw, 104px) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.85fr);
  gap: clamp(48px, 6vw, 88px);
  align-items: center;
  position: relative;
}
.cta-banner h2 {
  font-weight: 500;
  font-size: clamp(24px, 3.65vw, 48px);
  line-height: 1.03;
  letter-spacing: 0;
  max-width: 900px;
}
.cta-banner-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 22px;
  opacity: 0.72;
}
.cta-banner-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cta-banner-mail {
  min-height: 58px;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
  border: 2px solid var(--black);
  padding: 17px 22px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  transition: all 0.2s;
  word-break: break-word;
}
.cta-banner-mail svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.cta-banner-mail:hover {
  background: var(--black);
  color: var(--accent);
}

/* ---- NEWSLETTER ---- */
.newsletter {
  background: var(--black);
  color: var(--white);
  padding: clamp(64px, 6vw, 96px) 0;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.newsletter-tag {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.newsletter-text h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0;
}
.newsletter-text h2 em {
  font-style: normal;
  color: var(--accent);
}
.newsletter-text p {
  margin-top: 18px;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.7);
}
.newsletter-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(24px, 3vw, 36px);
}
.newsletter-form-empty {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
}

/* ---- FOOTER ---- */
footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer-col h3 {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.footer-logo {
  margin-bottom: 24px;
  display: block;
  max-width: 280px;
  background: transparent;
  padding: 0;
}
.footer-logo img {
  width: 100%;
  height: auto;
}
.footer-text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 320px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 12px;
  font-size: 14px;
}
.footer-col li a {
  transition: color 0.2s;
}
.footer-col li a:hover {
  color: var(--accent);
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-social svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.footer-sub {
  margin-left: 14px;
  opacity: 0.72;
}
.footer-sub a::before {
  content: "- ";
  color: var(--accent);
}
.footer-detail {
  font-size: 12px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.72);
}
.footer-detail b {
  color: var(--white);
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}
.footer-muted {
  opacity: 0.6;
}
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.footer-bar a {
  color: var(--white);
}
.footer-bar a:hover {
  color: var(--accent);
}

/* ---- FLOATING ACTIONS ---- */
.fab-wrap {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.fab {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
  border: none;
}
.fab-top {
  background: var(--black);
  color: var(--white);
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.3s,
    transform 0.3s,
    background 0.2s;
}
.fab-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.fab-top:hover {
  background: var(--accent);
  color: var(--black);
}
.fab-phone {
  background: var(--accent);
  color: var(--black);
  display: none;
  text-decoration: none;
}
.fab-phone:hover {
  background: var(--black);
  transform: translateY(-2px);
}
.fab-phone svg,
.fab-top svg {
  width: 22px;
  height: 22px;
}

/* ---- SERVICE DETAIL PAGES ---- */
.service-photo {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--accent);
  overflow: hidden;
}
.service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}
.service-photo-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: 260px;
  background: var(--accent);
  color: var(--black);
  border: 2px solid var(--black);
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}
.service-intro {
  background: var(--gray-bg);
}
.service-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: stretch;
}
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: stretch;
}
.service-copy {
  align-self: center;
  width: 100%;
}
.service-intro-grid > .service-photo,
.service-split > .service-photo {
  aspect-ratio: auto;
  height: 100%;
  min-height: clamp(420px, 40vw, 640px);
}
.service-copy h2 {
  font-weight: 700;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 clamp(34px, 3.2vw, 48px);
}
.service-copy h2 em {
  font-style: normal;
  color: var(--accent);
  text-shadow:
    1px 0 0 var(--black),
    0 1px 0 var(--black);
}
.service-copy p {
  color: #333;
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 24px;
  max-width: 680px;
}
.service-copy p:last-child {
  margin-bottom: 0;
}
.service-split--reverse .service-photo {
  order: 1;
}
.service-split--reverse .service-copy {
  order: 2;
}
.service-copy ul {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 36px 0;
  padding: 0;
}
.service-copy ul li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--black);
  font-size: 15px;
  line-height: 1.55;
}
.service-copy ul li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 5px;
  background: var(--accent);
  border: 1px solid var(--black);
}
.service-copy .wp-block-heading {
  margin-top: 0;
}
.why-text p {
  color: #333;
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 28px;
  max-width: 680px;
}
.why-text p:last-child {
  margin-bottom: 0;
}
/* ---- PAGE HERO (subpages) ---- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  position: relative;
}
.page-hero .section-tag {
  color: var(--accent);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.breadcrumbs a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs .sep {
  color: rgba(255, 255, 255, 0.3);
}
.breadcrumbs [aria-current="page"] {
  color: var(--accent);
}
.page-title {
  font-weight: 700;
  font-size: clamp(48px, 9vw, 64px);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: 0;
}
.page-title em {
  font-style: normal;
  color: var(--accent);
}

/* ---- ANIMATIONS ---- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.rise {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.rise-1 {
  animation-delay: 0.05s;
}
.rise-2 {
  animation-delay: 0.18s;
}
.rise-3 {
  animation-delay: 0.32s;
}
.rise-4 {
  animation-delay: 0.45s;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .topbar {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  header nav,
  header .header-inner > .cta-btn {
    display: none;
  }
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-inner,
  .cta-banner-inner,
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
  }
  .stat {
    padding: 0 24px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-intro-grid,
  .service-split {
    grid-template-columns: 1fr;
    gap: 52px;
  }
  .service-intro-grid > .service-photo,
  .service-split > .service-photo {
    min-height: clamp(320px, 54vw, 460px);
  }
  .service-split--reverse .service-photo,
  .service-split--reverse .service-copy {
    order: initial;
  }
}
@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
  .nav-list {
    display: none;
  }
  .header-inner {
    height: 72px;
  }
  .fab-wrap {
    bottom: 20px;
    right: 20px;
  }
  .fab-top {
    display: none !important;
  }
  .fab-phone {
    display: flex;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 24px;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .stat:last-child {
    border-bottom: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .real-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }
  .real-item-1,
  .real-item-2,
  .real-item-3,
  .real-item-4 {
    grid-column: span 1;
    aspect-ratio: 16/10;
    height: auto;
  }
  section.std {
    padding: 80px 0;
  }
  .service-photo {
    box-shadow: 10px 10px 0 rgba(242, 204, 0, 0.22);
  }
  .service-intro-grid > .service-photo,
  .service-split > .service-photo {
    min-height: 280px;
  }
  .service-photo-badge {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    font-size: 11px;
  }
  .page-title {
    font-size: clamp(40px, 9vw, 64px);
  }
}

/* ================================================
   PAGE: Home (index.php)
   ================================================ */
.hero {
  position: relative;
  padding: clamp(88px, 11vw, 156px) 0 clamp(80px, 9vw, 128px);
  background-color: var(--black);
  /* Obraz tła dokłada blok inline (atrybut „background"). Tu zostaje tylko
     zielona nakładka gradientowa, widoczna też gdy obraz zostanie usunięty. */
  background-image: linear-gradient(
    100deg,
    rgba(0, 43, 28, 0.98) 0%,
    rgba(0, 43, 28, 0.92) 42%,
    rgba(15, 45, 73, 0.58) 72%,
    rgba(0, 43, 28, 0.3) 100%
  );
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 820px;
}
.hero-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--black);
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-headline {
  font-weight: 700;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--text-on-dark);
}
.hero-headline span {
  color: var(--accent);
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.32),
    1px 0 0 rgba(0, 0, 0, 0.22);
}
.hero-sub {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--text-on-dark);
}
.hero-sub b {
  font-weight: 700;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero .cta-btn {
  border-color: var(--accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.hero .cta-outline {
  color: var(--text-on-dark);
  border-color: rgba(232, 222, 192, 0.78);
}
.hero .cta-outline:hover {
  border-color: var(--accent);
}
.specs-cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.about-photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  height: 100%;
}
.about-photo-grid img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.about-text .cta-btn {
  margin-top: 20px;
}
.realizations-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.realizations-cta {
  box-shadow: 0 12px 28px rgba(17, 16, 13, 0.18);
}
.realizations-cta:hover {
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.16);
}
@media (max-width: 1024px) {
  .hero {
    background-position: 68% center;
  }
  .about-photo-grid {
    grid-template-columns: 1fr;
  }
  .realizations-meta {
    align-items: flex-start;
    text-align: left;
  }
}
@media (max-width: 640px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-meta {
    margin-left: auto;
  }
  .realizations-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ================================================
   PAGE: Kontakt (kontakt.php)
   ================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-form-wrap h2 {
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 40px;
}
.contact-form-wrap h2 em {
  font-style: normal;
  color: var(--accent);
  text-shadow:
    1px 0 0 var(--black),
    0 1px 0 var(--black);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--black);
}
input,
select,
textarea {
  font-family: var(--font);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  border-radius: 0;
  padding: 14px 16px;
  width: 100%;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(242, 204, 0, 0.28);
}
textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%23002b1c' d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  cursor: pointer;
}
.form-submit {
  margin-top: 8px;
}
.form-consent {
  margin-top: 8px;
  margin-bottom: 16px;
}
.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.form-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--black);
}
.form-consent a {
  text-decoration: underline;
}
.form-submit .cta-btn {
  width: 100%;
  justify-content: center;
}
.form-note {
  font-size: 12px;
  color: var(--gray);
  margin-top: 16px;
  line-height: 1.6;
}
.contact-data {
  position: sticky;
  top: 112px;
}
.contact-data h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 40px;
}
.contact-data h2 em {
  font-style: normal;
  color: var(--accent);
  text-shadow:
    1px 0 0 var(--black),
    0 1px 0 var(--black);
}
.data-block {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--gray-light);
}
.data-block:last-of-type {
  border-bottom: none;
}
.data-block-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 12px;
  font-weight: 700;
}
.data-block-value {
  font-size: 15px;
  line-height: 1.7;
  color: var(--black);
}
.data-block-value a {
  font-weight: 700;
  font-size: 22px;
  transition: color 0.2s;
}
.data-block-value a:hover {
  color: #7a6600;
}
.data-block-value .muted {
  color: var(--gray);
  font-size: 13px;
  margin-top: 4px;
  display: block;
}
.data-block-address {
  font-weight: 700;
}
.data-company {
  font-size: 14px;
  line-height: 1.85;
  color: #555;
}
.data-company b {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}
.map-section {
  padding: 0;
}
.map-section iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
  filter: grayscale(35%) contrast(1.05);
}
.direct-contact {
  padding: 64px 0;
}
.direct-inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr 1.35fr 0.95fr;
  gap: 0;
  border: 2px solid var(--black);
  background: var(--white);
}
.direct-item {
  padding: 40px 36px;
  border-right: 2px solid var(--black);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.direct-item:last-child {
  border-right: none;
}
.direct-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #7a6600;
  font-weight: 700;
}
.direct-value {
  font-weight: 700;
  font-size: clamp(16px, 1.65vw, 22px);
  line-height: 1.1;
  transition: color 0.2s;
  overflow-wrap: anywhere;
}
.direct-value:hover {
  color: #7a6600;
}
.direct-value-static {
  font-size: 18px;
  font-weight: 700;
}
.direct-sub {
  font-size: 13px;
  color: var(--gray);
  margin-top: -4px;
}
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .contact-data {
    position: static;
  }
  .direct-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .direct-item {
    border-right: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
  }
  .direct-item:nth-child(2n) {
    border-right: none;
  }
  .direct-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}
@media (max-width: 640px) {
  .page-title {
    font-size: clamp(34px, 10vw, 42px);
    line-height: 0.92;
  }
  .direct-inner {
    grid-template-columns: 1fr;
  }
  .direct-item,
  .direct-item:nth-child(2n),
  .direct-item:nth-last-child(-n + 2) {
    border-right: none;
    border-bottom: 2px solid var(--black);
  }
  .direct-item:last-child {
    border-bottom: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .map-section iframe {
    height: 300px;
  }
}

/* ================================================
   PAGE: Realizacje (realizacje.php)
   ================================================ */
.gallery-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(260px, 28vw, 420px);
  gap: 20px;
  margin-bottom: 20px;
}
.gal-item {
  --gal-plus-box: 30px;
  --gal-plus-offset: 18px;
  --gal-plus-line: 16px;
  --gal-plus-stroke: 2px;
  position: relative;
  overflow: hidden;
  background: var(--gray-bg);
  display: block;
  cursor: pointer;
  height: 100%;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.gal-item:hover,
.gal-item:focus-visible {
  border-color: var(--accent);
}
.gal-item:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  filter: brightness(0.96) contrast(1.05);
}
.gal-item:hover img,
.gal-item:focus-visible img {
  transform: scale(1.05);
  filter: brightness(1);
}
.gal-item::before,
.gal-item::after {
  content: "";
  position: absolute;
  top: var(--gal-plus-offset);
  right: var(--gal-plus-offset);
  width: var(--gal-plus-box);
  height: var(--gal-plus-box);
  opacity: 0;
  transform: translate(6px, -6px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}
.gal-item::before {
  background: var(--accent);
  z-index: 2;
}
.gal-item::after {
  background:
    linear-gradient(var(--black), var(--black)) center / var(--gal-plus-line)
      var(--gal-plus-stroke) no-repeat,
    linear-gradient(var(--black), var(--black)) center / var(--gal-plus-stroke)
      var(--gal-plus-line) no-repeat;
  z-index: 3;
}
.gal-item:hover::before,
.gal-item:hover::after,
.gal-item:focus-visible::before,
.gal-item:focus-visible::after {
  opacity: 1;
  transform: translate(0, 0);
}
.gal-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.84), transparent);
  padding: 28px 20px 16px;
  color: var(--white);
  z-index: 1;
}
.gal-title {
  font-weight: 700;
  font-size: clamp(14px, 1.35vw, 18px);
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: 0.02em;
}
.gal-w7 {
  grid-column: span 7;
}
.gal-w5 {
  grid-column: span 5;
}
.gal-w4 {
  grid-column: span 4;
}
.gal-w6 {
  grid-column: span 6;
}
.cats-strip {
  background: var(--black);
  color: var(--white);
  padding: 64px 0;
}
.cats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}
.cat-item {
  padding: 0 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.cat-item a {
  display: block;
  transition: color 0.2s;
}
.cat-item a:hover {
  color: var(--accent);
}
.cat-name {
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: 0;
}
.cat-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
body.lightbox-open {
  overflow: hidden;
}
.lightbox {
  --lightbox-nav-size: 64px;
  --lightbox-arrow-size: 30px;
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: var(--lightbox-nav-size) minmax(0, 1fr) var(
      --lightbox-nav-size
    );
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 4vw, 56px);
  background: rgba(17, 16, 13, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox-figure {
  grid-column: 2;
  width: min(1120px, 100%);
  max-height: calc(100vh - 112px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.24s ease;
}
.lightbox.open .lightbox-figure {
  transform: translateY(0) scale(1);
}
.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 178px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #080806;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.48);
}
.lightbox-caption {
  margin-top: 14px;
  color: var(--white);
  font-size: clamp(13px, 1.35vw, 17px);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.04em;
}
.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
  outline: none;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 34px;
  line-height: 1;
}
.lightbox-nav {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--lightbox-nav-size);
  height: var(--lightbox-nav-size);
  justify-self: center;
  padding: 0;
  font-size: 0;
  line-height: 0;
}
.lightbox-nav::before {
  content: "";
  width: var(--lightbox-arrow-size);
  height: var(--lightbox-arrow-size);
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4l8 8-8 8' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='butt' stroke-linejoin='miter'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4l8 8-8 8' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='butt' stroke-linejoin='miter'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.lightbox-prev::before {
  transform: scaleX(-1);
}
.lightbox-prev {
  grid-column: 1;
}
.lightbox-next {
  grid-column: 3;
}
.lightbox-count {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
@media (max-width: 1024px) {
  .gallery-row {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }
  .gal-w7,
  .gal-w5,
  .gal-w4,
  .gal-w6 {
    grid-column: span 1;
    aspect-ratio: 16/10;
    height: auto;
  }
  .cats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
  }
  .cat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 24px;
  }
  .lightbox {
    --lightbox-nav-size: 56px;
    --lightbox-arrow-size: 26px;
    grid-template-columns: var(--lightbox-nav-size) minmax(0, 1fr) var(
        --lightbox-nav-size
      );
    gap: 16px;
  }
}
@media (max-width: 640px) {
  .gallery-row {
    grid-template-columns: 1fr;
  }
  .gal-w7,
  .gal-w5,
  .gal-w4,
  .gal-w6 {
    grid-column: span 1;
  }
  .gal-item {
    --gal-plus-box: 40px;
    --gal-plus-offset: 14px;
    --gal-plus-line: 20px;
  }
  .cats-inner {
    grid-template-columns: 1fr;
  }
  .lightbox {
    grid-template-columns: 1fr;
    padding: 76px 16px 72px;
  }
  .lightbox-figure {
    grid-column: 1;
    max-height: calc(100vh - 148px);
  }
  .lightbox-img {
    max-height: calc(100vh - 220px);
  }
  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
  .lightbox-nav {
    position: fixed;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
  .lightbox-prev {
    left: calc(50% - 62px);
  }
  .lightbox-next {
    right: calc(50% - 62px);
  }
  .lightbox-count {
    left: 16px;
    bottom: 30px;
  }
}

/* ================================================
   PAGE: Oferta (oferta.php)
   ================================================ */
.offer-section {
  padding: 100px 0;
  position: relative;
}
.offer-section.offer-section--shaded {
  background: var(--gray-bg);
}
.offer-section + .offer-section {
  border-top: 1px solid var(--gray-light);
}
.offer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.offer-row.reverse {
  direction: rtl;
}
.offer-row.reverse > * {
  direction: ltr;
}
.offer-visual {
  position: relative;
}
.offer-num {
  position: absolute;
  top: -24px;
  left: -16px;
  font-weight: 700;
  font-size: 120px;
  line-height: 1;
  color: var(--gray-light);
  letter-spacing: 0;
  z-index: 0;
  user-select: none;
}
.offer-img {
  position: relative;
  z-index: 1;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--black);
}
.offer-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.offer-img:hover img {
  transform: scale(1.04);
}
.offer-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-top: 2px solid var(--black);
  border-right: 2px solid var(--black);
}
.offer-content {
  padding: 8px 0;
}
.offer-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 16px;
  font-weight: 700;
}
.offer-title {
  font-weight: 700;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 24px;
}
.offer-title em {
  color: var(--accent);
  font-style: normal;
  text-shadow:
    1px 0 0 var(--black),
    0 1px 0 var(--black),
    -1px 0 0 var(--black),
    0 -1px 0 var(--black);
}
.offer-desc {
  font-size: 16px;
  line-height: 1.7;
  color: #383838;
  margin-bottom: 32px;
  max-width: 520px;
}
.offer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.offer-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--black);
}
.offer-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 6px;
  background: var(--accent);
  border: 1px solid var(--black);
  flex-shrink: 0;
}
/* ---- Authorized distributor band ---- */
.partner-panel {
  background: var(--black);
  color: var(--white);
  padding: 112px 0;
  position: relative;
  overflow: hidden;
}
.partner-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(242, 204, 0, 0.05) 0 2px,
    transparent 2px 17px
  );
  pointer-events: none;
}
.partner-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 30px,
    transparent 30px 44px
  );
}
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.partner-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 16px 9px 12px;
  margin-bottom: 26px;
}
.partner-eyebrow svg {
  width: 16px;
  height: 16px;
}
.partner-heading {
  font-weight: 700;
  font-size: clamp(40px, 5.2vw, 48px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 24px;
}
.partner-heading em {
  font-style: normal;
  color: var(--accent);
}
.partner-lead {
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 34px;
}
.partner-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  max-width: 560px;
}
.partner-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}
.partner-points li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
}
.partner-visual {
  position: relative;
}
.partner-photo {
  position: relative;
  z-index: 1;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.partner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}
.partner-logo {
  position: absolute;
  z-index: 3;
  left: -18px;
  bottom: -18px;
  background: var(--white);
  border: 2px solid var(--black);
  padding: 16px 20px;
  box-shadow: 8px 8px 0 var(--black);
}
.partner-logo img {
  display: block;
  width: 188px;
  height: auto;
}
.partner-stamp {
  position: absolute;
  z-index: 3;
  top: -26px;
  right: -22px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--black);
  border: 2px solid var(--black);
  box-shadow:
    inset 0 0 0 4px var(--accent),
    inset 0 0 0 6px var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(8deg);
  padding: 10px;
}
.partner-stamp span {
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}
.partner-stamp strong {
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 3px 0 4px;
}
.partner-stamp em {
  font-style: normal;
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.82;
}
@media (max-width: 1024px) {
  .offer-row,
  .partner-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .offer-row.reverse {
    direction: ltr;
  }
  .offer-num {
    font-size: 80px;
    top: -16px;
    left: -8px;
  }
}
@media (max-width: 640px) {
  .offer-section {
    padding: 72px 0;
  }
  .partner-panel {
    padding: 80px 0;
  }
  .partner-points {
    grid-template-columns: 1fr;
  }
  .partner-stamp {
    width: 104px;
    height: 104px;
    top: -20px;
    right: -10px;
  }
  .partner-stamp strong {
    font-size: 11px;
  }
  .partner-photo {
    box-shadow: 10px 10px 0 rgba(242, 204, 0, 0.2);
  }
  .partner-logo {
    left: -10px;
    bottom: -14px;
    padding: 11px 14px;
    box-shadow: 6px 6px 0 var(--black);
  }
  .partner-logo img {
    width: 140px;
  }
}

/* ================================================
   PAGE: O nas (o-nas.php)
   ================================================ */
.story-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.story-image {
  position: relative;
  background: var(--accent);
}
.story-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.08);
}
.story-image::after {
  content: "Pomiar i wycena gratis";
  position: absolute;
  right: -18px;
  bottom: 28px;
  background: var(--black);
  color: var(--accent);
  padding: 14px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.story-text {
  padding-top: 8px;
}
.story-text h2 {
  font-weight: 700;
  font-size: clamp(40px, 5vw, 48px);
  line-height: 0.92;
  text-transform: uppercase;
  margin-bottom: 40px;
  letter-spacing: 0;
}
.story-text h2 em {
  font-style: normal;
  color: var(--accent);
  text-shadow:
    1px 0 0 var(--black),
    0 1px 0 var(--black);
}
.story-text p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 24px;
  color: #333;
  max-width: 560px;
}
.story-text p:last-of-type {
  margin-bottom: 40px;
}
.quote-section {
  background: var(--black);
  color: var(--white);
  padding: 80px 0;
}
.quote-inner {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
}
blockquote {
  font-weight: 700;
  font-size: clamp(24px, 3.5vw, 44px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}
blockquote em {
  font-style: normal;
  color: var(--accent);
}
.quote-source {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 32px;
}
.why-us {
  background: var(--gray-bg);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-text h2 {
  font-weight: 700;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 32px;
}
.why-text h2 em {
  font-style: normal;
  color: var(--accent);
  text-shadow:
    1px 0 0 var(--black),
    0 1px 0 var(--black);
}
.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 40px 0 36px;
  padding: 0;
}
.why-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-light);
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 18px;
  align-items: center;
}
.why-list li::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 1px solid var(--black);
}
.why-list li:first-child {
  border-top: 1px solid var(--gray-light);
}
.why-list-text strong {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.why-list-text span {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.5;
}
.why-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.why-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
}
@media (max-width: 1024px) {
  .story-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}
@media (max-width: 640px) {
  .story-image::after {
    right: 16px;
    bottom: 16px;
  }
}

/* ================================================
   Formularz kontaktowy — honeypot i komunikaty
   ================================================ */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-alert {
  margin-bottom: 28px;
  padding: 16px 20px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.5;
  border-left: 4px solid;
}
.form-alert ul {
  margin: 8px 0 0;
  padding-left: 20px;
}
.form-alert-success {
  background: #eef7ec;
  border-color: #2e7d32;
  color: #1f5223;
}
.form-alert-error {
  background: #fdecea;
  border-color: #c0392b;
  color: #8a2c20;
}

/* ================================================
   Odwrócenie kolumn sekcji „obraz + tekst"
   (modyfikator --reverse zamienia miejscami kolumny
   na desktopie; na mobile zachowujemy kolejność z DOM)
   ================================================ */
.why-grid--reverse .why-text {
  order: 2;
}
.why-grid--reverse .why-image {
  order: 1;
}
.about-inner--reverse .about-photo-grid {
  order: 2;
}
.about-inner--reverse .about-text {
  order: 1;
}
.story-inner--reverse .story-image {
  order: 2;
}
.story-inner--reverse .story-text {
  order: 1;
}
.partner-grid--reverse .partner-info {
  order: 2;
}
.partner-grid--reverse .partner-visual {
  order: 1;
}
.service-intro-grid--reverse .service-photo {
  order: 1;
}
.service-intro-grid--reverse .service-copy {
  order: 2;
}
@media (max-width: 1024px) {
  .why-grid--reverse .why-text,
  .why-grid--reverse .why-image,
  .about-inner--reverse .about-photo-grid,
  .about-inner--reverse .about-text,
  .story-inner--reverse .story-image,
  .story-inner--reverse .story-text,
  .partner-grid--reverse .partner-info,
  .partner-grid--reverse .partner-visual,
  .service-intro-grid--reverse .service-photo,
  .service-intro-grid--reverse .service-copy {
    order: initial;
  }
}

/* ================================================
   PAGE: Single (single.php)
   ================================================ */
/* ---- Metadane w hero ---- */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.entry-meta time {
  color: var(--accent);
}
.entry-meta-sep {
  color: rgba(255, 255, 255, 0.32);
}
.case-lead {
  margin-top: 28px;
  max-width: 760px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  color: var(--text-on-dark);
}

/* ---- Zdjęcie wyróżniające case study ---- */
.case-hero-photo {
  padding: clamp(40px, 5vw, 64px) 0 0;
}
.case-hero-photo .service-photo {
  aspect-ratio: 16 / 8;
}

/* ---- Kolumna czytelnicza ---- */
.single-body {
  padding-top: clamp(48px, 5vw, 72px);
}
.entry-layout {
  max-width: 760px;
  margin: 0 auto;
}
.entry-featured {
  margin: 0 0 clamp(36px, 4vw, 52px);
  position: relative;
  overflow: hidden;
  background: var(--accent);
}
.entry-featured img {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}
.entry-featured::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: var(--accent);
}

/* ---- Treść wpisu (bloki Gutenberg) ---- */
.entry {
  font-size: 17px;
  line-height: 1.8;
  color: #2a2a2a;
}
.entry > *:first-child {
  margin-top: 0;
}
.entry > * {
  margin-bottom: 26px;
}
.entry p {
  max-width: none;
}
.entry > p:first-of-type {
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.6;
  color: var(--ink);
}
.entry h2,
.entry h3,
.entry h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 0.98;
  color: var(--black);
}
.entry h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-light);
}
.entry h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  margin-top: 40px;
}
.entry h4 {
  font-size: 20px;
  margin-top: 32px;
}
.entry h2 em,
.entry h3 em {
  font-style: normal;
  color: var(--accent);
  text-shadow:
    1px 0 0 var(--black),
    0 1px 0 var(--black);
}
.entry a {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.entry a:hover {
  color: #7a6600;
}
.entry strong,
.entry b {
  font-weight: 700;
  color: var(--black);
}
.entry ul,
.entry ol {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.entry ul li,
.entry ol li {
  position: relative;
  padding-left: 32px;
  line-height: 1.6;
}
.entry ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border: 1px solid var(--black);
}
.entry ol {
  counter-reset: as-ol;
}
.entry ol li {
  counter-increment: as-ol;
}
.entry ol li::before {
  content: counter(as-ol);
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border: 1px solid var(--black);
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
}
.entry blockquote {
  margin: 40px 0;
  padding: 8px 0 8px 28px;
  border-left: 4px solid var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
  color: var(--black);
}
.entry blockquote p {
  margin-bottom: 12px;
}
.entry blockquote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.entry img,
.entry figure {
  margin-block: 36px;
}
.entry figure img {
  width: 100%;
  height: auto;
}
.entry figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gray);
  text-align: center;
}
.entry .wp-block-image {
  margin-block: 36px;
}
.entry > .wp-block-heading {
  margin-top: 52px;
}

/* ---- Tagi ---- */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-light);
}
.entry-tags-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-right: 6px;
}
.entry-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1.5px solid var(--gray-light);
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}
.entry-tag:hover {
  border-color: var(--black);
  background: var(--accent);
  color: var(--black);
}

/* ---- Powrót (case study) ---- */
.case-back {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-light);
}

/* ---- Nawigacja między wpisami ---- */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px;
  border: 1px solid var(--gray-light);
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.post-nav-link:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}
.post-nav-next {
  text-align: right;
  align-items: flex-end;
}
.post-nav-dir {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.post-nav-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--black);
}

/* ---- Powiązane wpisy ---- */
.related-posts {
  background: var(--gray-bg);
  border-top: 1px solid var(--gray-light);
}

@media (max-width: 640px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav-next {
    text-align: left;
    align-items: flex-start;
  }
  .case-hero-photo .service-photo {
    aspect-ratio: 4 / 3;
  }
}

/* ================================================
   PAGE: Archiwum (index.php) — układ z sidebarem
   ================================================ */
.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.archive-layout--sidebar {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(40px, 4vw, 64px);
  align-items: start;
}
/* Z sidebarem kolumna treści jest węższa → karty w dwóch kolumnach. */
.archive-layout--sidebar .specs-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---- Sidebar kategorii ---- */
.archive-sidebar {
  position: sticky;
  top: 112px;
}
.sidebar-widget {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-light);
  padding: 30px 28px 12px;
  overflow: hidden;
}
.sidebar-widget::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: var(--accent);
}
.sidebar-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 8px;
}
.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cat-list li {
  border-bottom: 1px solid var(--gray-light);
}
.cat-list li:last-child {
  border-bottom: none;
}
.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0 16px 24px;
  position: relative;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
}
.cat-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 11px;
  height: 11px;
  background: var(--accent);
  border: 1px solid var(--black);
  transform: translateY(-50%) scale(0.55);
  opacity: 0.45;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.cat-list a:hover,
.cat-list a.active {
  color: #7a6600;
}
.cat-list a:hover::before,
.cat-list a.active::before {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}
.cat-list-name {
  line-height: 1.25;
}
.cat-list-count {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  background: var(--gray-bg);
  border: 1px solid var(--gray-light);
  font-size: 11px;
  font-weight: 700;
  color: var(--gray);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.cat-list a:hover .cat-list-count,
.cat-list a.active .cat-list-count {
  background: var(--accent);
  border-color: var(--black);
  color: var(--black);
}
.sidebar-empty {
  font-size: 14px;
  color: var(--gray);
  padding-bottom: 18px;
}

/* ================================================
   Paginacja (the_posts_pagination)
   ================================================ */
.pagination {
  margin-top: clamp(48px, 5vw, 64px);
}
.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--gray-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--black);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
}
.pagination a.page-numbers:hover {
  border-color: var(--black);
  background: var(--accent);
  color: var(--black);
  transform: translateY(-2px);
}
.pagination .page-numbers.current {
  background: var(--black);
  border-color: var(--black);
  color: var(--accent);
}
.pagination .page-numbers.dots {
  border-color: transparent;
  min-width: 24px;
  padding: 0 4px;
}
.pagination .prev.page-numbers,
.pagination .next.page-numbers {
  text-transform: uppercase;
}
.pagination .page-arrow {
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
}
.pagination a.page-numbers:hover .page-arrow {
  color: var(--black);
}

@media (max-width: 1024px) {
  .archive-layout--sidebar {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .archive-sidebar {
    position: static;
  }
  /* Bez bocznej kolumny wracamy do trzech kart w rzędzie. */
  .archive-layout--sidebar .specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .archive-layout--sidebar .specs-grid {
    grid-template-columns: 1fr;
  }
  .pagination .page-word {
    display: none;
  }
}
