/* ===== LOCAL FONTS ===== */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg: #ffffff;
  --bg-alt: #f6f6f6;
  --ink: rgba(17,17,17,0.95);
  --muted: rgba(17,17,17,0.68);
  --line: rgba(0,0,0,0.10);

  --nav-bg: #0f0f0f;
  --nav-ink: #ffffff;

  --container: 1120px;
  --gutter: clamp(18px, 4vw, 28px);

  --radius: 18px;
  --shadow: 0 18px 60px rgba(0,0,0,0.10);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a{
  color: inherit;
  text-decoration: none;
}

.container{
  width: min(var(--container), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

/* Accessibility */
.skip-link{
  position:absolute;
  left:-999px;
  top:8px;
  background:#000;
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  z-index:9999;
}
.skip-link:focus{ left:12px; }

/* Sections */
.section{
  padding: clamp(84px, 7vw, 120px) 0;
}

.section-alt{
  background: var(--bg-alt);
}

.section-head{
  max-width: 78ch;
  margin-bottom: 28px;
  display: grid;
  gap: 10px;
}

.section-head h2{
  margin: 0;
  font-family: "Source Serif 4", ui-serif, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 2.4vw, 40px);
}

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

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

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

.brand-link{
  display:flex;
  align-items: baseline;
  gap: 10px;
  color: var(--nav-ink);
}

.brand-mark{
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
}

.brand-name{
  font-size: 12.5px;
  opacity: 0.85;
  font-weight: 500;
}

/* Nav */
.nav{
  position: relative;
}

.nav-toggle{
  display:none;
  background: transparent;
  color: var(--nav-ink);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 700;
  font-family: "Inter", system-ui, sans-serif;
}

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

.nav-link{
  color: var(--nav-ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: 0.86;
  padding: 10px 0;
}

.nav-link:hover{
  opacity: 1;
}

.nav-link-cta{
  position: relative;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transition:
    background .35s cubic-bezier(.22,.61,.36,1),
    box-shadow .35s cubic-bezier(.22,.61,.36,1),
    transform .35s cubic-bezier(.22,.61,.36,1),
    opacity .35s cubic-bezier(.22,.61,.36,1);
}

.nav-link-cta:hover{
  background: rgba(255,255,255,0.18);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  transform: translateY(-1px);
  opacity: 1;
}

/* Hero */
.hero--full{
  position: relative;
  min-height: 82vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg{
  position:absolute;
  inset:0;
}

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

.hero-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 35%,
    rgba(0,0,0,0.15) 70%,
    rgba(0,0,0,0.10) 100%
  );
}

.hero-inner{
  position: relative;
  z-index: 2;
  padding: clamp(72px, 10vw, 120px) 0;
  color: #fff;
  text-align: left;
}

.hero-kicker{
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-h1{
  margin: 0 0 14px;
  font-family: "Source Serif 4", ui-serif, Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(46px, 5vw, 72px);
  line-height: 1.02;
}

.hero-actions{
  margin-top: 22px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  font-weight: 600;
  font-size: 13px;
  font-family: "Inter", system-ui, sans-serif;
  background: rgba(255,255,255,0.10);
  color: #fff;
  transition: transform .18s ease, box-shadow .18s ease, background .22s ease;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.14);
}

.btn-primary{
  background: #ffffff;
  color: #111;
  border-color: #fff;
}

.btn-primary:hover{
  background: rgba(255,255,255,0.92);
}

.btn-ghost{
  background: rgba(0,0,0,0.18);
}

.hero-ghost{
  border-color: rgba(255,255,255,0.24);
}

/* About */
.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.about-card{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 22px;
}

.about-card p{
  margin: 0;
  color: var(--muted);
  max-width: 58ch;
}

.about-banner{
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
  background: #111;
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
}

.about-banner p{
  margin:0;
}

h3{
  margin: 0 0 10px;
  font-size: 15px;
}

/* Services */
.services-nav{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 22px;
}

.services-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: rgba(17,17,17,0.80);
  font-weight: 600;
  font-size: 13px;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.services-chip:hover{
  background: rgba(0,0,0,0.03);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

.services-stack{
  display:grid;
  gap: 18px;
}

.service{
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
}

.service-grid{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  min-height: 520px;
}

.service-copy{
  padding: clamp(22px, 4vw, 34px);
  display:flex;
  flex-direction: column;
  justify-content: center;
  max-width: 70ch;
}

.service-title{
  margin: 0 0 10px;
  font-size: clamp(22px, 2.1vw, 28px);
  letter-spacing: -0.01em;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.16;
}

.service-lead{
  margin: 0 0 14px;
  color: var(--muted);
}

.service-text{
  margin: 0 0 14px;
  color: var(--muted);
}

.service-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(17,17,17,0.78);
}

.service-list li{
  margin: 8px 0;
}

.service-media{
  margin: 0;
  display:flex;
  flex-direction: column;
}

.service-media img{
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.service-media figcaption{
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: rgba(17,17,17,0.60);
  font-size: 13px;
  line-height: 1.5;
}

.partner-row{
  margin-top: 18px;
  display:flex;
  align-items:center;
  gap: 12px;
}

.partner-label{
  font-size: 13px;
  color: rgba(17,17,17,0.55);
  font-weight: 600;
}

.partner-logo{
  width: 140px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px;
}

.partner-logo img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.dotation-block{
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0,0,0,0.02);
  margin-top: 12px;
  max-width: 70ch;
}

.dotation-block h4{
  margin: 0 0 6px;
  font-size: 14px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.35;
}

.dotation-block p{
  margin: 0;
  color: var(--muted);
}

.reco-group{
  margin-top: 28px;
}

.reco-group + .reco-group{
  margin-top: 36px;
}

.reco-group-head{
  margin-bottom: 14px;
  max-width: 70ch;
}

.reco-group-head h3{
  margin: 0 0 6px;
  font-family: "Source Serif 4", ui-serif, Georgia, serif;
  font-weight: 600;
  font-size: clamp(24px, 2vw, 32px);
  letter-spacing: -0.02em;
}

.reco-group-head p{
  margin: 0;
  color: var(--muted);
}

.logos-grid{
  margin-top: 18px;
  display:grid;
  gap: 14px;
}

.logos-grid--4{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.logos-grid--6{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.logo-card{
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  min-height: 110px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.logo-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.16);
}

.logo-card img{
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

/* Quote */
.quote{
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
}

.quote-text{
  margin: 0;
  font-family: "Source Serif 4", ui-serif, Georgia, serif;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.6;
}

.quote-meta{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-block{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  max-width: 50ch;
}

.contact-block p{
  margin: 10px 0;
}

.muted{
  color: var(--muted);
  margin: 10px 0;
}

.placeholder{
  color: rgba(17,17,17,0.90);
  font-weight: 600;
}

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
}

.modal.is-open{
  display: block;
}

.modal-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}

.modal-panel{
  position: relative;
  width: min(720px, calc(100% - 32px));
  margin: 5vh auto 0;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0,0,0,0.35);
  padding: 26px;
}

.modal-panel--image{
  width: min(760px, calc(100% - 40px));
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close{
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: rgba(17,17,17,0.5);
  z-index: 2;
}

.modal-title{
  margin: 0 0 12px;
  font-size: 22px;
  padding-right: 32px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
}

.modal-image-wrap{
  border-radius: 14px;
  overflow: hidden;
}

.modal-image{
  width: 100%;
  height: auto;
  display: block;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.footer-inner{
  display:flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

/* ===== FINAL TEXT FIX ===== */

.section-head p,
.about-card p,
.service-lead,
.service-text,
.dotation-block p,
.reco-group-head p,
.contact-block p{
  text-align: justify !important;
  text-justify: inter-word !important;

  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;

  word-break: normal !important;
  overflow-wrap: normal !important;

  line-height: 1.75 !important;
  letter-spacing: -0.01em;
  word-spacing: -0.03em;
}

/* ===== ZAE MEMBER ===== */

.zae-member{
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.zae-text{
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.zae-logo{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto !important;

  width: auto !important;
  max-width: 90px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.zae-logo img{
  display: block !important;
  width: auto !important;
  height: 22px !important;
  max-width: 90px !important;
  max-height: 22px !important;
  object-fit: contain !important;
}

/* Responsive */
@media (max-width: 1100px){
  .logos-grid--4,
  .logos-grid--6{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px){
  .two-col{
    grid-template-columns: 1fr;
  }

  .contact-grid{
    grid-template-columns: 1fr;
  }

  .service-grid{
    grid-template-columns: 1fr;
  }

  .service-media img{
    min-height: 360px;
    height: 360px;
  }

  .service-copy,
  .dotation-block,
  .section-head,
  .reco-group-head,
  .contact-block{
    max-width: 100%;
  }

  .services-nav{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px){
  .nav-toggle{
    display:inline-flex;
  }

  .nav-list{
    position: absolute;
    right: 0;
    top: 56px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--nav-bg);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 12px;
    min-width: 240px;
    border-radius: 16px;
    display: none;
  }

  .nav-list.is-open{
    display:flex;
  }

  .nav-link{
    padding: 10px 10px;
  }

  .logos-grid--4,
  .logos-grid--6{
    grid-template-columns: 1fr;
  }

  .hero-inner{
    padding: 96px 0 78px;
  }

  .modal-panel,
  .modal-panel--image{
    width: calc(100% - 20px);
    padding: 18px;
    margin-top: 3vh;
  }

  .service-copy{
    padding: 28px 22px;
    max-width: 100%;
  }

  .service-title{
    line-height: 1.14;
  }

  .section-head,
  .about-card,
  .dotation-block,
  .reco-group-head,
  .contact-block{
    max-width: 100%;
  }

  .section-head p,
  .about-card p,
  .service-lead,
  .service-text,
  .dotation-block p,
  .reco-group-head p,
  .contact-block p{
    text-align: justify !important;
    text-justify: inter-word !important;

    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;

    word-break: normal !important;
    overflow-wrap: normal !important;

    line-height: 1.74 !important;
    letter-spacing: -0.005em;
    word-spacing: -0.02em;
  }

  .services-nav{
    grid-template-columns: 1fr;
  }

  .zae-member{
    gap: 8px;
    text-align: center;
  }

  .zae-text{
    font-size: 16px;
  }

  .zae-logo img{
    height: 18px !important;
    max-height: 18px !important;
    max-width: 72px !important;
  }
}

/* ===== VIDEO SMALL FIX ===== */

.video-section{
  padding: 32px 0;
  background: #fff;
}

.video-wrapper{
  position: relative;
  width: 1040px;
  max-width: 90vw;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 36px rgba(0,0,0,0.12);
}

.video-full{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-center-play{
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.video-toggle{
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  opacity: 0;
}

.video-wrapper.is-playing:hover .video-toggle{
  opacity: 1;
}

.hidden{
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 760px){
  .video-wrapper{
    width: calc(100% - 20px);
  }
}

/* ===== CO2 CERTYFIKAT FINAL ===== */

.co2-box{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

/* 🔥 DUŻE NA LAPTOPIE */
.co2-box img{
  width: 700px !important;      /* ← TU MASZ DUŻY ROZMIAR */
  max-width: 90vw !important;   /* żeby nie rozwaliło strony */
  height: auto !important;

  display: block;
  object-fit: contain;

  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

/* 📱 TELEFON */
@media (max-width: 760px){
  .co2-box img{
    width: 260px !important;
  }
}