/* =============================================
   PW Dotacje — Custom Theme Styles v2.0
   UX Upgrade: richer interactions, visual depth,
   micro-animations, better hierarchy
   ============================================= */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

:root {
  --deep-green: #1C3D35;
  --mid-green:  #2E6B58;
  --sage:       #8FB5A8;
  --mint-bg:    #B8D4CA;
  --cream:      #F7F5F0;
  --white:      #FFFFFF;
  --text-dark:  #1A1A1A;
  --text-mid:   #3D3D3D;
  --radius:     6px;
  --radius-lg:  14px;
  --max-w:      1200px;
  --section-py: 100px;
  --easing:     cubic-bezier(0.22, 1, 0.36, 1);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'DM Serif Display', 'Georgia', serif;
  line-height: 1.2;
  color: var(--deep-green);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1rem, 2vw, 1.25rem); }

p { color: var(--text-mid); font-size: 1rem; }

/* ---------- LAYOUT ---------- */
.container {
  width: 90%;
  max-width: var(--max-w);
  margin-inline: auto;
}

.section { padding: var(--section-py) 0; }
.section--alt { background: var(--cream); }

.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__header h2 { margin-bottom: 18px; }
.section__divider {
  width: 48px;
  height: 3px;
  background: var(--deep-green);
  margin: 0 auto 24px;
  border-radius: 2px;
}
.section__lead {
  max-width: 680px;
  margin-inline: auto;
  font-size: 1.05rem;
  line-height: 1.75;
}


/* Ensure logo images never show background color bleeding */
.site-logo img,
.hero__logo img,
.footer-logo img {
  background: transparent !important;
  -webkit-print-color-adjust: exact;
}
/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s var(--easing), box-shadow 0.4s, padding 0.3s;
  padding: 20px 0;
  /* Dark gradient so white logo always visible against hero image */
  background: linear-gradient(to bottom, rgba(10,28,22,0.82) 0%, rgba(10,28,22,0) 100%);
}

.site-header.scrolled {
  background: var(--deep-green);
  box-shadow: 0 2px 24px rgba(0,0,0,0.22);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 52px;
  width: auto;
  transition: transform 0.3s var(--easing);
}
.site-logo:hover img { transform: scale(1.04); }

.site-nav { display: flex; align-items: center; gap: 32px; }

.site-nav a {
  position: relative;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--sage);
  transition: width 0.3s var(--easing);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after { width: 100%; }

.nav-cta {
  background: rgba(255,255,255,0.12) !important;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 50px;
  opacity: 1 !important;
  transition: background 0.25s, border-color 0.25s !important;
  backdrop-filter: blur(4px);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: rgba(255,255,255,0.22) !important;
  border-color: rgba(255,255,255,0.6) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s var(--easing), opacity 0.25s, width 0.3s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(28,61,53,0.78) 0%,
    rgba(28,61,53,0.52) 55%,
    rgba(10,30,25,0.88) 100%
  );
}

/* Subtle grain texture for depth */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 820px;
  padding: 0 24px;
}

.hero__logo {
  width: 110px;
  margin: 0 auto 40px;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.8s var(--easing) 0.2s, transform 0.8s var(--easing) 0.2s;
}
.hero__logo.visible { opacity: 1; transform: none; }
/* hero logo: already white-on-transparent, no filter needed */

.hero__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s var(--easing) 0.5s, transform 0.7s var(--easing) 0.5s;
}
.hero__eyebrow.visible { opacity: 1; transform: none; }

.hero__title {
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--easing) 0.65s, transform 0.9s var(--easing) 0.65s;
}
.hero__title.visible { opacity: 1; transform: none; }
.hero__title em {
  font-style: italic;
  color: var(--sage);
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--easing) 0.9s, transform 0.8s var(--easing) 0.9s;
}
.hero__actions.visible { opacity: 1; transform: none; }

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--mid-green);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.25s var(--easing), box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(46,107,88,0.4);
}
.hero__cta:hover {
  background: #3a8870;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(46,107,88,0.5);
}
.hero__cta svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.25s var(--easing); }
.hero__cta:hover svg { transform: translateX(3px); }

.hero__cta-ghost {
  display: inline-block;
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 16px 28px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.hero__cta-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
  background: rgba(255,255,255,0.06);
}

/* Stats bar */
.hero__stats {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  background: rgba(12, 35, 28, 0.65);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.hero__stats-inner {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 90%;
}
.hero__stat {
  flex: 1;
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.hero__stat:last-child { border-right: none; }
.hero__stat-number {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 1.9rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.hero__stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
  animation: scroll-line 1.8s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---------- EKSPERTYZA CARDS — image overlay style ---------- */
.ekspertyza-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ekspertyza-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: default;
  group: true;
}

.ekspertyza-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--easing);
}
.ekspertyza-card:hover .ekspertyza-card__img {
  transform: scale(1.06);
}

.ekspertyza-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(12,35,28,0.92) 0%,
    rgba(12,35,28,0.45) 50%,
    rgba(12,35,28,0.1) 100%
  );
  transition: background 0.5s;
}
.ekspertyza-card:hover .ekspertyza-card__overlay {
  background: linear-gradient(
    to top,
    rgba(12,35,28,0.97) 0%,
    rgba(12,35,28,0.65) 55%,
    rgba(12,35,28,0.2) 100%
  );
}

.ekspertyza-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 24px;
  z-index: 2;
}

.ekspertyza-card__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
}

.ekspertyza-card__title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.ekspertyza-card__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 0.5s var(--easing), opacity 0.4s, transform 0.4s var(--easing);
}
.ekspertyza-card:hover .ekspertyza-card__desc {
  max-height: 120px;
  opacity: 1;
  transform: none;
}

/* ---------- R&D / INNOVATION — split layout ---------- */
.rd-section { padding: var(--section-py) 0; background: var(--cream); }

.rd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rd-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.rd-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--easing);
}
.rd-card:hover .rd-card__img { transform: scale(1.05); }

.rd-card__content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,35,28,0.9) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 28px;
  opacity: 0;
  transition: opacity 0.4s;
}
.rd-card:hover .rd-card__content { opacity: 1; }

.rd-card__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 28px;
  background: linear-gradient(to top, rgba(12,35,28,0.88) 0%, transparent 100%);
}

.rd-card__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 4px;
}

.rd-card__title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  line-height: 1.3;
}

.rd-card__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-top: 10px;
}

/* ---------- PROJEKTY GRID — numbered cards ---------- */
.projekty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.projekt-card {
  position: relative;
  border: 1.5px solid rgba(28,61,53,0.18);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--easing);
  background: var(--white);
}

.projekt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--deep-green);
  transform: translateY(100%);
  transition: transform 0.45s var(--easing);
  z-index: 0;
}
.projekt-card:hover::before { transform: translateY(0); }
.projekt-card:hover {
  border-color: var(--deep-green);
  box-shadow: 0 12px 40px rgba(28,61,53,0.2);
  transform: translateY(-3px);
}

.projekt-card__num {
  position: relative;
  z-index: 1;
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: rgba(28,61,53,0.12);
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.projekt-card:hover .projekt-card__num { color: rgba(255,255,255,0.15); }

.projekt-card__title {
  position: relative;
  z-index: 1;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--deep-green);
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: color 0.3s;
  line-height: 1.4;
}
.projekt-card:hover .projekt-card__title { color: var(--white); }

.projekt-card__desc {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-mid);
  transition: color 0.3s;
}
.projekt-card:hover .projekt-card__desc { color: rgba(255,255,255,0.78); }

/* ---------- MISJA (dark section) ---------- */
.misja {
  background: var(--deep-green);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative circle */
.misja::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(143,181,168,0.12);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.misja::after {
  content: '';
  position: absolute;
  width: 900px; height: 900px;
  border-radius: 50%;
  border: 1px solid rgba(143,181,168,0.06);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.misja h2 { color: var(--white); position: relative; z-index: 1; }

.misja .section__divider {
  background: var(--sage);
  position: relative;
  z-index: 1;
}

.misja__text {
  color: rgba(255,255,255,0.82);
  max-width: 800px;
  margin-inline: auto;
  font-size: 1.1rem;
  line-height: 1.82;
  position: relative;
  z-index: 1;
}

/* ---------- TEAM (mint bg) ---------- */
.team-section {
  background: var(--mint-bg);
  padding: var(--section-py) 0;
}

.team-section h2,
.team-section .section__lead { color: var(--deep-green); }
.team-section .section__divider { background: var(--deep-green); }

.team-members {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin-inline: auto;
}

.team-member {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  border: 1px solid rgba(255,255,255,0.7);
  transition: box-shadow 0.35s, transform 0.35s var(--easing);
}
.team-member:hover {
  box-shadow: 0 16px 48px rgba(28,61,53,0.14);
  transform: translateY(-4px);
}

.team-member__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 3px solid var(--white);
  box-shadow: 0 4px 20px rgba(28,61,53,0.15);
}

.team-member__name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--deep-green);
  margin-bottom: 4px;
}

.team-member__role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-green);
  margin-bottom: 12px;
}

.team-member__bio {
  font-size: 0.875rem;
  line-height: 1.72;
  color: var(--deep-green);
  opacity: 0.78;
}

/* ---------- DLACZEGO MY ---------- */
.why-lead {
  font-size: 1.08rem;
  line-height: 1.82;
  margin-bottom: 64px;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.why-lead strong { color: var(--deep-green); }

/* ---------- OPINIE — card style ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.testimonial {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  border: 1px solid rgba(28,61,53,0.08);
  transition: box-shadow 0.3s, transform 0.3s var(--easing);
}
.testimonial:hover {
  box-shadow: 0 8px 32px rgba(28,61,53,0.1);
  transform: translateY(-3px);
}

.testimonial__quote-icon {
  width: 32px;
  height: 32px;
  background: var(--deep-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial__quote-icon svg {
  width: 14px; height: 14px;
  fill: var(--sage);
}

.testimonial__text {
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--text-mid);
  flex: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(28,61,53,0.1);
}

.testimonial__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}

.testimonial__name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--deep-green);
  display: block;
  margin-bottom: 2px;
}

.testimonial__company {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- STATS STRIP (between sections) ---------- */
.stats-strip {
  background: var(--deep-green);
  padding: 56px 0;
  overflow: hidden;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 0 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }

.stat-item__number {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}
.stat-item__number .count-suffix {
  font-size: 0.65em;
  color: var(--sage);
}
.stat-item__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* ---------- BLOG ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(28,61,53,0.08);
  transition: transform 0.35s var(--easing), box-shadow 0.35s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(28,61,53,0.12);
}

.blog-card__img-wrap {
  overflow: hidden;
  aspect-ratio: 16/9;
}
.blog-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--easing);
}
.blog-card:hover .blog-card__thumb { transform: scale(1.05); }
.blog-card__thumb-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--mint-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card__body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-green);
  margin-bottom: 10px;
}

.blog-card__title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--deep-green);
  margin-bottom: 10px;
  line-height: 1.38;
  transition: color 0.2s;
}
.blog-card:hover .blog-card__title { color: var(--mid-green); }

.blog-card__excerpt {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-mid);
  flex: 1;
  margin-bottom: 20px;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(28,61,53,0.08);
  padding-top: 16px;
}

.blog-card__meta { font-size: 0.75rem; color: var(--sage); }

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--mid-green);
  letter-spacing: 0.03em;
  transition: gap 0.25s var(--easing);
}
.blog-card__link:hover { gap: 9px; }
.blog-card__link svg { width: 13px; stroke: currentColor; fill: none; }

/* Single post */
.entry-header { padding: 130px 0 52px; background: var(--cream); }
.entry-header h1 { margin-bottom: 16px; max-width: 740px; }
.entry-meta { font-size: 0.8rem; color: var(--sage); }
.entry-content { padding: 64px 0 90px; max-width: 740px; margin-inline: auto; }
.entry-content h2 { font-size: 1.6rem; margin: 48px 0 18px; }
.entry-content h3 { font-size: 1.25rem; margin: 36px 0 14px; }
.entry-content p { margin-bottom: 22px; line-height: 1.85; }
.entry-content ul { margin: 16px 0 22px 24px; }
.entry-content ul li { list-style: disc; margin-bottom: 10px; line-height: 1.72; }
.entry-content img { border-radius: var(--radius-lg); margin: 36px 0; }
.entry-content a { color: var(--mid-green); text-decoration: underline; }

/* ---------- BLOG ARCHIVE ---------- */
.archive-header {
  padding: 130px 0 64px;
  background: var(--deep-green);
  text-align: center;
}
.archive-header h1 { color: var(--white); }
.archive-header p { color: var(--sage); margin-top: 10px; }

/* ---------- CONTACT ---------- */
.contact-section { padding: var(--section-py) 0; background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  line-height: 1.3;
}
.contact-info p { margin-bottom: 12px; line-height: 1.75; }
.contact-info a { color: var(--mid-green); }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(28,61,53,0.1);
}
.contact-detail:first-of-type { border-top: 1px solid rgba(28,61,53,0.1); margin-top: 28px; }
.contact-detail svg { width: 18px; flex-shrink: 0; stroke: var(--mid-green); fill: none; stroke-width: 1.8; }
.contact-detail-text { font-size: 0.9rem; color: var(--text-mid); }
.contact-detail-text a { color: var(--mid-green); }

/* Contact form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 4px 32px rgba(28,61,53,0.07);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--deep-green);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 13px 16px;
  border: 1.5px solid rgba(28,61,53,0.15);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  background: var(--white);
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--mid-green);
  box-shadow: 0 0 0 3px rgba(46,107,88,0.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group 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' fill='none' stroke='%231C3D35' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--deep-green);
  color: var(--white);
  padding: 15px 36px;
  border: none;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--easing), box-shadow 0.25s;
  font-family: inherit;
}
.btn-primary:hover {
  background: var(--mid-green);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(28,61,53,0.25);
}
.btn-primary svg { width: 16px; stroke: currentColor; fill: none; transition: transform 0.25s var(--easing); }
.btn-primary:hover svg { transform: translateX(3px); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--deep-green);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-copy a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-copy a:hover { color: var(--white); }
.footer-logo img {
  height: 36px;
  opacity: 0.55;
}

/* ---------- PAGINATION ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 48px 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1.5px solid rgba(28,61,53,0.15);
  color: var(--deep-green);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  padding: 0 12px;
}
.pagination a:hover { border-color: var(--deep-green); background: rgba(28,61,53,0.05); }
.pagination .current {
  background: var(--deep-green);
  border-color: var(--deep-green);
  color: var(--white);
}

/* ---------- COOKIES BANNER ---------- */
.cookies-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  z-index: 9999;
  background: var(--deep-green);
  color: rgba(255,255,255,0.88);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  max-width: 380px;
  font-size: 0.85rem;
  line-height: 1.6;
  transform: translateY(0);
  transition: transform 0.45s var(--easing), opacity 0.4s;
  border: 1px solid rgba(143,181,168,0.15);
}
.cookies-banner.hidden {
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
}
.cookies-banner p { color: rgba(255,255,255,0.8); margin-bottom: 16px; }
.cookies-banner a { color: var(--sage); }
.cookies-actions { display: flex; gap: 10px; }
.cookies-btn {
  background: var(--mid-green);
  color: var(--white);
  border: none;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  flex: 1;
}
.cookies-btn:hover { background: #3a8870; }
.cookies-btn-dismiss {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border: none;
  padding: 9px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.cookies-btn-dismiss:hover { background: rgba(255,255,255,0.18); }

/* ---------- ADMIN BAR FIX ---------- */
.admin-bar .site-header { top: 32px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .ekspertyza-grid { grid-template-columns: 1fr 1fr; }
  .projekty-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 16px 0; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.1); }
}

@media (max-width: 768px) {
  :root { --section-py: 64px; }

  .site-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--deep-green);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 1.1rem; }
  .site-nav a::after { display: none; }
  .nav-toggle { display: flex; }

  .hero__stats { display: none; }
  .hero__scroll { bottom: 32px; }

  .ekspertyza-grid { grid-template-columns: 1fr; }
  .ekspertyza-card { aspect-ratio: 16/10; }
  .rd-grid { grid-template-columns: 1fr; }
  .projekty-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-members { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }

  .footer-inner { justify-content: center; text-align: center; }
  .footer-logo { display: none; }

  .hero__title { font-size: 2rem; }
  .hero__actions { flex-direction: column; align-items: center; }

  .cookies-banner { bottom: 0; right: 0; left: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-width: 100%; }
}

@media (max-width: 480px) {
  .projekty-grid { grid-template-columns: 1fr; }
  .hero__cta { width: 100%; justify-content: center; }
  .hero__cta-ghost { width: 100%; text-align: center; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--easing), transform 0.7s var(--easing);
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  .reveal-delay-1 { transition-delay: 0.08s; }
  .reveal-delay-2 { transition-delay: 0.18s; }
  .reveal-delay-3 { transition-delay: 0.28s; }

  .reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.7s var(--easing), transform 0.7s var(--easing);
  }
  .reveal-left.visible { opacity: 1; transform: none; }

  .reveal-right {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.7s var(--easing), transform 0.7s var(--easing);
  }
  .reveal-right.visible { opacity: 1; transform: none; }

  .reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.6s var(--easing), transform 0.6s var(--easing);
  }
  .reveal-scale.visible { opacity: 1; transform: scale(1); }
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}
