:root{
  --green:#1c7f3a;
  --green-2:#125829;
  --green-3:#0d3e1c;
  --ink:#0f1419;
  --text:#0b1117;
  --paper:#fcfdfd;
  --muted:#66737f;
  --soft:#eef3f7;
  --card:#ffffff10;
  --ring:#1c7f3a40;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:#f5f7fa;background:#0b1117;line-height:1.6}
img{max-width:100%;display:block}
.container{max-width:1160px;margin-inline:auto;padding:0 20px}
.small{font-size:.9rem}

/* NAV */
.nav{position:sticky;top:0;z-index:100;display:flex;align-items:center;gap:16px;padding:10px 20px;border-bottom:1px solid #ffffff14;background:rgba(15,22,28,.75);backdrop-filter:blur(10px)}
.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:800}
.nav-links{margin-left:auto;display:flex;align-items:center;gap:18px}
.nav-links a{color:#eaf3ec;text-decoration:none;font-weight:600;padding:.4rem .6rem;border-radius:8px}
.nav-links a:hover{background:#f3f2f22a}
.btn{display:inline-block;border-radius:12px;border:1px solid #ffffff20;padding:.8rem 1.1rem;text-decoration:none;color:#eaf3ec;font-weight:700;transition:.18s transform ease, .18s background ease}
.btn:hover{transform:translateY(-1px)}
.btn--primary{background:linear-gradient(180deg,var(--green),var(--green-2));border-color:transparent;color:#eaf3ec}
.btn--small{padding:.5rem .8rem;border-radius:10px}
.nav-toggle{display:none;background:transparent;border:0;color:#fff;font-size:22px}

/* HERO */
.hero{position:relative;overflow:hidden;padding:54px 0;background:linear-gradient(180deg,var(--green-2),var(--green-3))}
.hero__grid{display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:center}
.hero h1{color:#fff;font-size:clamp(42px,6vw,72px);line-height:1.05;margin:0 0 12px;font-weight:800;letter-spacing:.3px}
.hero p{color:#e6f3ea;font-size:1.15rem;margin:0 0 18px}
.hero__cta{display:flex;gap:12px;flex-wrap:wrap}
.hero__media{border-radius:18px;overflow:hidden;box-shadow:0 40px 80px #0005, inset 0 0 0 1px #fff2}
.hero__shade{position:absolute;inset:-10% -10% auto -10%;height:60%;background:radial-gradient(700px 300px at 20% 30%, #70e3a8, transparent 60%);opacity:.15;pointer-events:none}

/* ABOUT */
.section{padding:64px 0;background:linear-gradient(180deg, #0b1117, #0b1117)}
.section-alt{background:linear-gradient(180deg,#0b1117,#0e151b)}
.section__title{color:#eaf3ec;text-align:center;font-weight:800;margin:0 0 20px;font-size:clamp(28px,3.3vw,38px)}
.about{display:grid;grid-template-columns:.9fr 1.1fr;gap:28px;align-items:center}
.card{background:#111a22;border:1px solid #ffffff14;border-radius:16px;overflow:hidden}
.card img{width:100%;height:auto;display:block}
.list-check{list-style:none;padding:0;margin:14px 0;color:#cfe2d5}
.list-check li{padding-left:28px;position:relative;margin:8px 0}
.list-check li::before{content:'✔';position:absolute;left:0;top:0;color:#9ee2b8}

/* OFFER */
.tile__image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}

.tile__image img {
  width: 100%;
  height: 160px;           /* możesz zmienić np. na 180–220px */
  object-fit: cover;
  display: block;
  filter: brightness(0.95);
  transition: transform .3s ease, filter .3s ease;
}

.tile:hover img {
  transform: scale(1.03);
  filter: brightness(1);
}

.grid{display:grid;gap:18px}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.tile{background:#0f161d;border:1px solid #ffffff10;border-radius:16px;padding:18px;color:#dfe9e3}
.tile__icon{width:56px;height:56px;border-radius:12px;background:#173b27;display:grid;place-items:center;margin-bottom:12px;border:1px solid #2a6b45}
.tile h3{margin:0 0 8px}

/* PORTFOLIO */
.carousel{display:grid;grid-auto-flow:column;grid-auto-columns:80%;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:10px}
.carousel .snap{scroll-snap-align:start}
.card--wide{position:relative;border-radius:22px;overflow:hidden;border:1px solid #ffffff18}
.card__overlay{position:absolute;inset:auto 0 0 0;padding:20px;background:linear-gradient(180deg,transparent,#0008);color:#fff}
.tags span{display:inline-block;padding:.2rem .5rem;border-radius:999px;border:1px solid #ffffff66;margin-right:6px;margin-bottom:6px;font-size:.8rem}
.card--narrow{border-radius:18px;overflow:hidden;border:1px solid #ffffff18}

/* VALUES */
.values .value{background:#0f161d;border:1px solid #ffffff10;border-radius:16px;padding:18px;color:#dfe9e3}

/* TEAM */
.team .person{background:#0f161d;border:1px solid #ffffff10;border-radius:16px;padding:14px;text-align:center}
.team .person img{border-radius:50%;width:120px;height:120px;object-fit:cover;margin:10px auto}
.team .person h4{margin:6px 0 4px;color:#eaf3ec}
.muted{color:#a7b3bf}

/* CONTACT */
.contact{background:linear-gradient(180deg, #0e151b,#0b1117)}
.contact__grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.contact__list{list-style:none;padding:0;margin:0;color:#dfe9e3}
.contact__list li{display:flex;gap:10px;margin:10px 0;align-items:flex-start}
.contact__form{background:#0f161d;border:1px solid #ffffff18;border-radius:16px;padding:18px}
.contact__form label{display:block;margin:8px 0 6px;color:#dfe9e3}
.contact__form input,.contact__form textarea{width:100%;border-radius:12px;border:1px solid #ffffff22;background:#0a1016;color:#eaf3ec;padding:.8rem;outline:none}
.contact__form input:focus,.contact__form textarea:focus{box-shadow:0 0 0 3px var(--ring)}
.contact__form button{margin-top:10px}

/* FOOTER */
.footer{background:#0a1016;color:#c7d3dd}
.footer__grid{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;padding:18px 0}
.footer__brand{display:flex;align-items:center;gap:10px}
.footer__nav{display:flex;gap:14px}
.footer__nav a{color:#c7d3dd;text-decoration:none}
.copy{text-align:center;color:#8fa2b1;border-top:1px solid #ffffff14;padding:10px}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr}
  .about{grid-template-columns:1fr}
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .carousel{grid-auto-columns:90%}
}
@media (max-width: 640px){
  .nav-links{display:none}
  .nav-toggle{display:block}
  .grid-3{grid-template-columns:1fr}
  .grid-4{grid-template-columns:1fr}
  .contact__grid{grid-template-columns:1fr}
}
/* --- Carousel controls --- */
.carousel { scroll-behavior: smooth; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }

.carousel-nav {
  display:flex; align-items:center; gap:10px;
  justify-content:center; margin-top:10px;
}

.carousel-btn{
  background:#0f161d; border:1px solid #ffffff22; color:#eaf3ec;
  width:40px; height:40px; border-radius:10px; cursor:pointer;
}
.carousel-btn:hover{ filter:brightness(1.1); }

.carousel-dots{ display:flex; gap:6px; }
.carousel-dots button{
  width:8px; height:8px; border-radius:999px; border:0; background:#ffffff33;
}
.carousel-dots button[aria-current="true"]{ background:#ffffffcc; width:18px; border-radius:999px; }

.card__overlay .authors{
  margin-top:8px;
  font-size:.9rem;
  opacity:.85;
}
.card__overlay .authors span{
  white-space:nowrap;
}
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-item {
  flex: 0 0 100%;
  text-align: center;
  position: relative;
}

.carousel-item img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 400px;
}

.carousel-arrow {
  background: #0f161d;
  color: #eaf3ec;
  border: 1px solid #ffffff20;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s ease;
}

.carousel-arrow:hover {
  background: #1c7f3a;
}

.card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 60%);
  color: #fff;
  text-align: left;
}

.card__overlay h3 {
  margin-bottom: 8px;
  font-weight: 700;
}

.card__overlay .tags {
  margin-top: 10px;
}

.authors {
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 10px;
}
/* ==== 3D Carousel ==== */
.carousel-wrapper3d{
  position:relative;
  max-width: 980px;
  margin: 0 auto;
  perspective: 1200px;   /* głębia 3D */
}

/* Odstęp między tytułem sekcji a karuzelą */
#portfolio3d {
  margin-top: 60px;       /* 🔧 Zwiększ lub zmniejsz według uznania */
}

/* Można też lekko podnieść karuzelę względem środka sekcji */
.carousel-wrapper3d {
  padding-top: 30px;       /* delikatny „oddech” */
}


.carousel-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;        /* ✅ zawsze kwadratowa scena */
  max-width: 600px;           /* maksymalny rozmiar (możesz zwiększyć/zmniejszyć) */
  margin: 0 auto;             /* wyśrodkowanie */
  transform-style: preserve-3d;
}

.carousel-item {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35),
              inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.6s ease, opacity 0.6s ease, filter 0.4s ease;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* zdjęcie wypełnia kwadrat */
  object-position: center;    /* wyśrodkowane kadrowanie */
  display: block;
  border-radius: 12px;        /* opcjonalne zaokrąglenie rogów */
}

.carousel-arrow{
  position:absolute; top:50%; translate:0 -50%;
  width:48px; height:48px; border-radius:50%;
  display:grid; place-items:center; font-size:2rem;
  background:#0f161d; color:#eaf3ec; border:1px solid #ffffff22;
  cursor:pointer; z-index:5;
}
.carousel-arrow.left{ left:-10px; }
.carousel-arrow.right{ right:-10px; }
.carousel-arrow:hover{ background:#1c7f3a; }

/* overlay tylko na slajdzie centralnym świeci mocniej */
.carousel-item .card__overlay{
  position:absolute; inset:auto 0 0 0;
  padding:20px; color:#fff;
  background:linear-gradient(180deg, transparent, rgba(0,0,0,.75));
  opacity:.9; transition:opacity .3s ease;
}
.carousel-item.is-center .card__overlay{ opacity:1; }

@media (max-width: 700px){
  .carousel-stage{ height:380px; }
}

/* ====== Sekcja: Aktualnie prowadzone projekty ====== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.project-card {
  background: #101619;
  border-radius: 16px;
  padding: 28px;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 60px rgba(28, 127, 58, 0.25);
}

.project-card h3 {
  margin-bottom: 10px;
  color: #eaf3ec;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.25;
  word-break: normal;
  overflow-wrap: break-word;
}

.project-card p {
  color: #d1d7d5;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 16px;
  word-break: normal;
  overflow-wrap: break-word;
}

.project-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-card .tags span {
  background: rgba(28, 127, 58, 0.15);
  border: 1px solid rgba(28, 127, 58, 0.3);
  color: #a9e3b6;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 8px;
  user-select: none;
}

/* ====== RESPONSYWNOŚĆ ====== */
@media (max-width: 820px) {
  .projects-grid {
    grid-template-columns: 1fr !important; /* tylko 1 kolumna na małych ekranach */
    gap: 16px;
    margin-top: 24px;
  }

  .project-card {
    padding: 20px;
  }

  .project-card h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .project-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .project-card .tags {
    gap: 6px;
  }
}

/* === Pokaz slajdów (about__media) === */
/* Pokaz slajdów (kontener musi mieć własną wysokość!) */
.slideshow{
  position: relative;
  overflow: hidden;
  border-radius: 16px;       /* opcjonalnie */
  aspect-ratio: 1 / 1;      /* ✅ ustala proporcje – możesz dać 4/3 lub 1/1 */
  min-height: 320px;         /* na wypadek bardzo wąskich ekranów */
  background: #0f161d;       /* tło pod zdjęciami, gdy się przenikają */
}

.slideshow .slide{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1.5s ease-in-out;
}

.slideshow .slide.active{ opacity: 1; z-index: 2; }

/* ===== Kontakt: listy z ikonami i karta formularza ===== */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.ci {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #eaf3ec;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .2s ease, box-shadow .3s ease, background .2s ease, border-color .2s ease;
}
.ci:hover {
  transform: translateY(-2px);
  background: rgba(28,127,58,0.10);
  border-color: rgba(28,127,58,0.35);
  box-shadow: 0 10px 30px rgba(28,127,58,0.25);
}

.ci__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(28,127,58,0.18);
  border: 1px solid rgba(28,127,58,0.35);
}
.ci__icon svg { width: 22px; height: 22px; fill: #a8e3b6; }

.ci__text { line-height: 1.3; }

/* karta formularza po prawej */
.contact-card {
  background: #101619;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
}

.form-label { display:block; margin: 8px 0 8px; color:#eaf3ec; }
.form-control {
  width: 100%; border-radius: 10px; padding: 12px 14px;
  background: #0f1418; color:#eaf3ec; border:1px solid rgba(255,255,255,0.08);
}
.form-control:focus { outline: none; border-color: rgba(168, 227, 182, 0.6); box-shadow: 0 0 0 3px rgba(28,127,58,0.35); }

.btn.btn--primary {
  margin-top: 14px;
  background: #1c7f3a; color: #fff; border: 0;
  padding: 10px 18px; border-radius: 10px; cursor: pointer;
}
.btn.btn--primary:hover { filter: brightness(1.08); }

.form-note {
  color:#b9c3be; font-size: .9rem; margin-top: 12px;
}

/* ===== Sekcja: Zarząd (slider) ===== */
.team-slider {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 10px;
  scroll-behavior: smooth;
}

.team-track::-webkit-scrollbar {
  display: none; /* ukrycie paska przewijania */
}

.person {
  flex: 0 0 250px; /* szerokość pojedynczej karty */
  scroll-snap-align: center;
  display: flex;                 /*  nowość — układ pionowy */
  flex-direction: column;        /* elementy jeden pod drugim */
  align-items: center;           /* wyśrodkowanie poziome */
  justify-content: flex-start;   /* start od góry (możesz dać center, jeśli chcesz całkowite centrowanie) */
  text-align: center;
  background: #101619;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 0 30px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.person:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 50px rgba(28,127,58,0.25);
}

.person img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;           /*  wyśrodkowanie */
  border: 2px solid rgba(28,127,58,0.5);
}

.person h4 {
  color: #eaf3ec;
  margin-bottom: 4px;
  font-weight: 600;
}

.person .muted {
  color: #a9b6b0;
  font-size: 0.9rem;
}


/* strzałki */
.team-arrow {
  background: rgba(28,127,58,0.15);
  color: #eaf3ec;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s ease;
}
.team-arrow:hover {
  background: rgba(28,127,58,0.35);
}

.team-arrow.left {
  position: absolute;
  left: 0;
}

.team-arrow.right {
  position: absolute;
  right: 0;
}

/* ===== Stopka: link do regulaminu ===== */
.footer-link {
  color: #8ecf9f;                  /* delikatny zielony */
  text-decoration: none;
  margin-left: 4px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-link:hover {
  color: #a9e3b6;
  text-shadow: 0 0 6px rgba(169, 227, 182, 0.4);
}

/* ===== Stopka ===== */
.footer {
  background: #0f1418;
  padding: 16px 0;
  margin-top: 60px;
  font-size: 0.95rem;
  color: #d1d7d5;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.footer-icon svg {
  width: 18px;
  height: 18px;
  fill: #a8e3b6;
}

.footer-icon:hover {
  background: rgba(28,127,58,0.15);
  border-color: rgba(28,127,58,0.4);
  transform: translateY(-2px);
}

.footer-icon:hover svg {
  fill: #c1f0cf;
}
/* === [1] Globalne bezpieczeństwo === */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* zablokuj poziomy scroll */
}

/* === [2] Nawigacja mobilna (hamburger menu) === */
.nav-links {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;                 /* zamiast 100vw — usuwa przesunięcie */
  max-width: 100%;
  background: #0f1418;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.nav-links a {
  display: block;
  width: 100%;
  padding: 10px 0;
}

/* === [3] Hero / Container bezpieczeństwo === */
.container, .section, header, footer {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

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

/* === [4] Karuzele i slidery (3D i klasyczne) === */
.carousel,
.carousel-stage,
#portfolioCarousel,
.team-slider,
.team-track {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.carousel-stage * {
  transform-origin: center center;
  backface-visibility: hidden;
}

/* zapobiega "wystawaniu" slajdów 3D po bokach */
.carousel-item {
  contain: layout paint size;
}

/* === [5] Drobna kosmetyka: brak przesunięcia po rozwinięciu menu === */
body.menu-open {
  overflow: hidden;  /* gdy otwarte menu — brak przesunięcia tła */
}

/* === NAPRAWA WIDOCZNOŚCI MENU DESKTOP / MOBILE === */

/* Na komputerze — pokazujemy menu normalnie w poziomie */
@media (min-width: 769px) {
  .nav-links {
    display: flex !important;
    position: static !important;
    background: none !important;
    flex-direction: row !important;
    align-items: center;
    box-shadow: none !important;
    padding: 0 !important;
    width: auto !important;
  }

  .nav-toggle {
    display: none !important; /* chowamy hamburgera */
  }
}

/* Na telefonie — zwijane menu pod przyciskiem */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: #0f1418;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  .nav-toggle {
    display: block !important;
  }
}

/* === ABOUT: stabilna siatka i obraz === */

/* wrapper sekcji */
.about { margin-top: 32px; }

/* siatka: na mobile 1 kolumna, na desktopie 2 kolumny 1.1:1 */
.about-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  min-width: 0;
}
@media (min-width: 992px){
  .about-grid{
    grid-template-columns: 1.1fr 1fr; /* lewa odrobinkę szersza */
    gap: 32px;
  }
}

/* karta ze zdjęciem/slideshow – nie może wystawać */
.about__media{
  border-radius: 16px;
  overflow: hidden;
  background: #0f1418;
  box-shadow: 0 0 40px rgba(0,0,0,.30), inset 0 0 0 1px rgba(255,255,255,.05);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* JEŚLI masz pojedyncze IMG */
.about__media img{
  display: block;
  width: 100%;
  height: auto;        /* żadnych sztywnych wysokości */
  object-fit: cover;
}

/* JEŚLI masz slideshow wewnątrz .about__media */
.about__media .slideshow{
  position: relative;
  aspect-ratio: 16 / 10;   /* trzyma kadr na desktopie */
  width: 100%;
  overflow: hidden;
}
.about__media .slideshow .slide{
  position: absolute;
  inset: 0;
}
.about__media .slideshow img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tekst w prawej kolumnie – nie pozwól mu pchać siatki */
.about__content{
  min-width: 0;
}
.about__content p{
  line-height: 1.6;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Cała sekcja + kontenery nie mogą generować poziomego scrolla */
.section, .container{ width:100%; max-width:100%; overflow-x: clip; }

/* === Marginesy boczne dla sekcji (ogólne) === */
.section,
.container {
  width: 100%;
  max-width: 1200px;           /* maksymalna szerokość sekcji na dużym ekranie */
  margin: 0 auto;              /* wyśrodkowanie sekcji */
  padding: 0 24px;             /* odstępy z lewej i prawej */
  box-sizing: border-box;      /* bezpieczny rozmiar z paddingiem */
}

/* Opcjonalnie możesz dać mniejsze paddingi na telefonach */
@media (max-width: 768px) {
  .section,
  .container {
    padding: 0 16px;
  }
}

/* === Naprawa przerwy między banerem a sekcją "Kim jesteśmy" === */

/* usuń nadmiarowy margines/padding */
.section:first-of-type,
.about {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* jeśli hero (baner) ma dolny odstęp, zmniejsz go */
.hero {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* możesz też dodać subtelny, stały odstęp */
.about {
  margin-top: 20px;  /* lub 32px, jeśli chcesz delikatny „oddech” */
}

/* === Odstęp między banerem a sekcją "Kim jesteśmy" === */

/* Dla wszystkich sekcji, które bezpośrednio następują po .hero */
.hero + .section,
.hero + section,
.hero + .about {
  margin-top: 60px; /* standardowy odstęp na desktopie */
}

/* Mniejsze odstępy na telefonach i tabletach */
@media (max-width: 992px) {
  .hero + .section,
  .hero + section,
  .hero + .about {
    margin-top: 40px;
  }
}

@media (max-width: 600px) {
  .hero + .section,
  .hero + section,
  .hero + .about {
    margin-top: 28px;
  }
}

/* === Sekcja "Dołącz do nas" – wersja minimalistyczna === */
.join-us {
  text-align: center;
  background: none; /* usunięte tło */
  padding: 100px 24px;
  margin: 100px auto;
}

.join-us .section__title {
  color: #eaf3ec;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 40px;
}

/* === Wielki przycisk rekrutacyjny === */
.join-us__btn {
  display: inline-block;
  background: linear-gradient(135deg, #23a14a, #1c7f3a);
  color: #fff;
  font-weight: 800;
  font-size: 1.8rem;
  padding: 30px 70px;
  border-radius: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 0 35px rgba(35, 161, 74, 0.45);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  animation: pulseGlow 4s ease-in-out infinite;
  text-decoration: none;
}

/* Efekt świetlnego przejazdu */
.join-us__btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transform: skewX(-25deg);
  transition: left 1s ease;
}

.join-us__btn:hover::before {
  left: 140%;
}

/* Skalowanie i cień przy hoverze */
.join-us__btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 60px rgba(35, 161, 74, 0.6);
}

/* Animacja "oddechu" */
@keyframes pulseGlow {
  0%   { box-shadow: 0 0 35px rgba(35,161,74,.45); transform: scale(1); }
  50%  { box-shadow: 0 0 70px rgba(35,161,74,.6); transform: scale(1.03); }
  100% { box-shadow: 0 0 35px rgba(35,161,74,.45); transform: scale(1); }
}

/* Responsywność */
@media (max-width: 768px) {
  .join-us {
    padding: 80px 16px;
  }

  .join-us .section__title {
    font-size: 2rem;
  }

  .join-us__btn {
    font-size: 1.2rem;
    padding: 22px 50px;
  }
}

/* ===== CTA "Dołącz do nas" — poprawki na telefon ===== */
@media (max-width: 768px) {
  .join-us {
    padding: 56px 16px;     /* mniejszy pionowy odstęp */
    margin: 48px 0;         /* mniej powietrza wokół */
  }

  .join-us .section__title {
    font-size: 1.9rem;      /* tytuł ciągle wyraźny, ale nie dominuje */
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .join-us__btn {
    display: block;         /* pełna szerokość w kontenerze */
    width: 100%;
    max-width: 640px;       /* ale nie przez cały ekran */
    margin: 0 auto;         /* wyśrodkowanie */
    padding: 16px 20px;     /* cieńszy przycisk */
    font-size: 1.05rem;     /* czytelny, nie krzyczy */
    letter-spacing: 0.3px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(35,161,74,.35);
    animation: none;        /* bez „oddechu” na tel. */
    white-space: normal;    /* pozwól łamać się tekstowi */
    text-wrap: balance;     /* ładniejsze łamanie (wspierane w nowszych przegl.) */
  }

  .join-us__btn::before {   /* bez efektu „przejeżdżającego” światła na tel. */
    display: none;
  }
}

/* jeszcze ciaśniej na bardzo małych ekranach */
@media (max-width: 380px) {
  .join-us__btn {
    padding: 14px 16px;
    font-size: 0.98rem;
  }
}

/* === POPRAWKI MOBILE dla "Dołącz do nas" — wymuszone === */
@media (max-width: 768px) {

  .join-us {
    padding: 56px 16px !important;
    margin: 48px 0 !important;
  }

  .join-us .section__title {
    font-size: 1.9rem !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
  }

  .join-us__btn {
    display: block !important;
    width: 100% !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    padding: 16px 20px !important;
    font-size: 1rem !important;
    letter-spacing: 0.3px !important;
    border-radius: 12px !important;
    box-shadow: 0 0 20px rgba(35,161,74,.35) !important;
    animation: none !important;
    white-space: normal !important;
    text-wrap: balance;
    text-align: center !important;
  }

  .join-us__btn::before {
    display: none !important;
  }
}

/* bardzo małe ekrany */
@media (max-width: 400px) {
  .join-us__btn {
    max-width: 300px !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
  }
}

/* === DOŁĄCZ DO NAS – izolowany, responsywny przycisk === */

/* kontener sekcji */
.section.join-us {
  background: none;
  padding: 72px 0 40px;
}
.section.join-us .container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

/* tytuł */
.section.join-us .section__title {
  color: #eaf3ec;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1.15;
  margin: 0 0 28px;
}

/* przycisk – odcinamy dziedziczenie .btn */
.section.join-us a.join-us__btn {
  all: unset;                 /* wyczyść style globalne (w tym .btn) */
  display: inline-block;
  cursor: pointer;
  user-select: none;

  background: linear-gradient(135deg, #23a14a, #1c7f3a);
  color: #fff;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-align: center;

  padding: 26px 56px;
  border-radius: 14px;
  box-shadow: 0 0 35px rgba(35,161,74,.45);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  overflow: hidden;
}

/* efekt świetlny desktop */
.section.join-us a.join-us__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  left: -70%;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transform: skewX(-25deg);
  transition: left 1s ease;
}
.section.join-us a.join-us__btn:hover::before { left: 130%; }
.section.join-us a.join-us__btn:hover {
  transform: scale(1.06);
  box-shadow: 0 0 60px rgba(35,161,74,.6);
}

/* ======= MOBILE ======= */
@media (max-width: 768px) {
  .section.join-us { padding: 44px 0 20px; }
  .section.join-us .section__title {
    font-size: 2rem;
    margin-bottom: 16px;
  }

  .section.join-us a.join-us__btn {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 14px 16px;
    font-size: 1rem;
    letter-spacing: .3px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(35,161,74,.35);
  }
  .section.join-us a.join-us__btn::before { display: none; }  /* bez „przejazdu” */
}

@media (max-width: 380px) {
  .section.join-us a.join-us__btn {
    max-width: 290px;
    padding: 12px 14px;
    font-size: .95rem;
  }
}
