/* GREEN Poligrafia Reklamowa & IT - v6.0 */
:root {
  --green: #438322;
  --green-dark: #2f6415;
  --green-soft: #eef6e9;
  --green-border: #d5e8c8;
  --yellow: #f5d000;
  --dark: #161a1e;
  --dark-2: #22282f;
  --text: #1f2937;
  --muted: #52606d;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 16px 38px rgba(15, 23, 42, 0.12);
  --container: 1160px;
  --transition: 0.22s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.2;
  margin-top: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--green-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--dark);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 6px 0;
}

.brand img {
  height: 54px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--green-soft);
  color: var(--green-dark);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(67, 131, 34, 0.26);
  transition: background var(--transition), transform var(--transition);
}

.header-cta:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(67, 131, 34, 0.28);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}

.btn-outline-green {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green);
}

.btn-outline-green:hover {
  background: var(--green);
  color: #fff;
}

/* Top Banner (Index Hero & Subpage Hero) */
.hero,
.page-hero {
  position: relative;
  color: #fff;
  background-color: #111519;
  background-image:
    linear-gradient(92deg, rgba(12, 16, 20, 0.24) 0%, rgba(12, 16, 20, 0.06) 55%, rgba(12, 16, 20, 0.0) 100%),
    url('../img/rozbryzg-top.jpg');
  background-size: cover;
  background-position: center center;
  border-bottom: 4px solid var(--green);
}

.hero {
  padding: 72px 0 78px;
}

.hero-content {
  max-width: 650px;
  background: rgba(15, 19, 24, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  padding: 34px 36px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.38);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f8fafc;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.05rem, 4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hero h1 span {
  color: #a3e635;
}

.hero-lead {
  font-size: 1.08rem;
  color: #e2e8f0;
  margin: 0 0 28px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
  color: #f1f5f9;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-hero {
  padding: 44px 0 48px;
}

.page-hero-box {
  display: inline-block;
  max-width: 740px;
  background: rgba(15, 19, 24, 0.74);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 24px 30px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
}

.breadcrumb-nav ol {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.86rem;
  color: #cbd5e1;
}

.breadcrumb-nav li + li::before {
  content: "/";
  margin-right: 6px;
  color: #94a3b8;
}

.breadcrumb-nav a {
  color: #e2e8f0;
}

.breadcrumb-nav a:hover {
  color: #a3e635;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 10px;
}

.page-hero p {
  color: #e2e8f0;
  margin: 0;
  font-size: 1.02rem;
}

/* Sections */
.section {
  padding: 68px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 1.03rem;
}

/* Cards Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green-border);
}

.service-card--highlight {
  background: var(--green-soft);
  border-color: var(--green-border);
}

.card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.service-card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 0.95rem;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--green-dark);
}

.card-link:hover {
  gap: 10px;
}

/* Feature / Detail blocks */
.detail-stack {
  display: grid;
  gap: 28px;
}

.detail-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  scroll-margin-top: 96px;
}

.detail-block h2,
.detail-block h3 {
  margin-bottom: 12px;
}

.detail-banner {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 18px 0 22px;
  background: #f8fafc;
}

.detail-banner--top {
  margin-top: 0;
  margin-bottom: 28px;
}

.detail-banner img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
}

/* Balanced gallery grids */
.thumb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.gallery-thumb {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 6px;
}

.gallery-thumb.photo img {
  object-fit: cover;
}

.gallery-caption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
  font-weight: 500;
}

/* Flyer showcase: sharp main photo + native-size 150px examples without ugly upscaling */
.flyer-showcase {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  margin-top: 24px;
  align-items: stretch;
}

.flyer-main {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.flyer-main img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.flyer-mini-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flyer-mini-panel h4 {
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.flyer-mini-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.flyer-mini-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  text-align: center;
}

.flyer-mini-item img {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0 auto;
  border-radius: 4px;
}

.flyer-mini-item span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.25;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 2px solid var(--green);
}

.info-box {
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-top: 24px;
}

.info-box strong {
  color: var(--dark);
}

/* Subnav anchors inside Printing page */
.anchor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.anchor-pills a {
  padding: 9px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.anchor-pills a:hover {
  border-color: var(--green);
  color: var(--green-dark);
  background: var(--green-soft);
}

/* About strip on Home */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.stat-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
}

/* CTA Band using tlo2@2x.jpg */
.cta-band {
  position: relative;
  color: #fff;
  background-color: #111519;
  background-image:
    linear-gradient(95deg, rgba(14, 18, 22, 0.34) 0%, rgba(14, 18, 22, 0.14) 55%, rgba(14, 18, 22, 0.04) 100%),
    url('../img/tlo2@2x.jpg');
  background-size: cover;
  background-position: center center;
  padding: 58px 0;
  border-top: 4px solid var(--green);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: rgba(15, 19, 24, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.cta-box h2 {
  color: #fff;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin-bottom: 8px;
}

.cta-box p {
  color: #e2e8f0;
  margin: 0;
  max-width: 560px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.contact-item strong {
  display: block;
  color: var(--dark);
  margin-bottom: 2px;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 400px;
  background: var(--bg-alt);
}

.map-wrap iframe {
  width: 100%;
  height: 430px;
  border: 0;
  display: block;
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 58px 0 28px;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 14px;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 12px;
}

.footer-brand p {
  margin: 0;
  color: #94a3b8;
  max-width: 340px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #a3e635;
}

.footer-contact p {
  margin: 0 0 8px;
}

.footer-contact a {
  color: #a3e635;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
  color: #94a3b8;
}

.footer-bottom a {
  color: #cbd5e1;
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: #a3e635;
}

/* Responsive */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid,
  .contact-grid,
  .footer-grid,
  .flyer-showcase {
    grid-template-columns: 1fr;
  }
  .header-cta {
    display: none;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    padding: 14px 20px 20px;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav a {
    padding: 12px 14px;
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2,
  .stats-grid,
  .thumb-grid-3 {
    grid-template-columns: 1fr;
  }
  .brand img {
    height: 46px;
  }
  .hero {
    padding: 46px 0 54px;
  }
  .hero-content,
  .page-hero-box,
  .cta-box {
    padding: 22px;
  }
  .section {
    padding: 50px 0;
  }
  .detail-block {
    padding: 22px;
  }
}
