:root {
  --sf-orange: #f39200;
  --sf-orange-dark: #e08600;
  --sf-orange-soft: rgba(243, 146, 0, 0.1);
  --sf-ink: #1d1d1f;
  --sf-gray: #6f6f73;
  --sf-label: #a7a3a3;
  --sf-line: #ececec;
  --sf-card: #ffffff;
  --sf-bg: #f6f6f6;
  --sf-radius: 16px;
}

.hero-section.kariera-section {
  background: #fff;
}

.hero-section .sf-hero-container .sf-hero-content {
  gap: 0 !important;
}

.hero-section.kariera-section .hero-background {
  position: absolute;
  inset: 0 0 0 auto;
  width: 50%;
  z-index: 0;
}

.sf-hero-body {
  margin-top: 50px;
}

.sf-hero-container {
  position: relative;
  z-index: 2;
}

.sf-hero-container .row {
  display: flex;
}

.sf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--sf-label);
  margin-bottom: 38px;
}

.sf-breadcrumb-link {
  color: var(--sf-label);
  text-decoration: none;
  transition: color 0.2s;
}

.sf-breadcrumb-link:hover {
  color: var(--sf-orange);
}

.sf-breadcrumb svg {
  flex: none;
}

.sf-hero-title {
  font-family: "Poppins";
  font-weight: 600;
  line-height: 140%;
  color: var(--sf-ink);
}

.sf-hero-title span {
  display: block;
  font-weight: 600;
}

.sf-hero-title .sf-hero-subtitle {
  color: var(--Tekst-Gwny, #100707) !important;
  font-family: Poppins !important;
  font-size: 3rem !important;
  font-style: italic !important;
  font-weight: 300 !important;
  line-height: 140% !important;
}

.sf-hero-content p {
  color: #4c4545;
  font-weight: 400;
  line-height: 150%;
}

.sf-jobs {
  background: var(--sf-bg);
  display: grid;
  gap: 26px;
  grid-auto-rows: 1fr;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 24px 88px;
}

.sf-jobs--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.sf-jobs--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.sf-jobs--cols-1 {
  grid-template-columns: 1fr;
}

.sf-job {
  padding: 32px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid var(--Pole-Obrys-Jasny, #e3e3e3);
  background: var(--Pole-Jasne, rgba(255, 255, 255, 0.75));
  backdrop-filter: blur(12px);
}

.sf-job__title {
  margin: 0 0 40px;
  min-height: 64px;
  font-family: "Poppins";
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--Tekst-Gwny, #100707);
  padding-bottom: 40px;
  letter-spacing: -0.38px;
}

.sf-job__meta {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.sf-job__meta li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.sf-job__ic {
  flex: none;
  width: 38px;
  height: 38px;
  box-sizing: border-box;
  border-radius: 64px;
  border: 1px solid var(--Kolor-Gwny, #ff9100);
  color: var(--sf-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sf-job__ic svg {
  height: 18px;
  width: 18px;
}

.sf-job__meta small {
  display: block;
  color: var(--Tekst-Akcent, #ACA8A8);
  font-family: Poppins;
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  /* 16.5px */
}

.sf-job__meta strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--Tekst-Dodatkowy, #4C4545);
  font-style: normal;
  line-height: 1.5;
}

.sf-job__meta .sf-job__sub {
  color: var(--Tekst-Dodatkowy, #4C4545);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  /* 19.5px */
}

.sf-job__btn {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius: 64px;
  border: 1px solid #e3e3e3;
  background: var(--Gradient-Pomaraczowy,
      linear-gradient(90deg, #ffaf45 0%, #ff9100 100%));
  transition:
    background 0.2s ease,
    transform 0.15s ease;
  color: #fff;
  text-align: center;
  font-family: Poppins;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  /* 19.5px */
  display: flex;
  padding: 14px 48px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
}

.sf-job__btn:hover {
  background: var(--sf-orange-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* =========================================================
   TABLET  (≤992px)
   Hero: zdjęcie jako tło z białym przejściem, treść na środku
   Karty: 2 kolumny
   ========================================================= */
@media (max-width: 992px) {
  .hero-section.kariera-section .hero-background {
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .hero-section.kariera-section .hero-background .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 72% 18%;
    /* kadr na postać – pokrętło do regulacji */
  }

  /* białe przejście, żeby tekst był czytelny */
  .hero-section.kariera-section .hero-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.45) 0%,
        rgba(255, 255, 255, 0.8) 42%,
        #ffffff 78%);
  }

  /* hero nie może dziedziczyć dużej min-height z motywu */

  .sf-hero-container .row {
    flex-direction: column;
  }

  .sf-hero-content {
    width: 100%;
    padding: 64px 0 56px;
    text-align: center;
  }

  .sf-breadcrumb {
    display: none;
  }

  /* h1 bywa "ściśnięty" do szerokości treści – wymuszamy pełną szerokość */
  .sf-hero-title,
  .sf-hero-title span,
  .sf-hero-title .sf-hero-subtitle {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }

  .sf-hero-title {
    font-size: 2.5rem;
    line-height: 130%;
  }

  .sf-hero-title .sf-hero-subtitle {
    font-size: 2.5rem !important;
    line-height: 130% !important;
  }

  .sf-hero-content p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .sf-jobs--cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sf-jobs {
    padding: 48px 24px 64px;
    gap: 22px;
  }
}

/* =========================================================
   MOBILE  (≤600px)
   Karty: 1 kolumna na pełną szerokość
   ========================================================= */
@media (max-width: 600px) {
  .sf-hero-content {
    padding: 48px 0 36px;
  }

  .hero-section.kariera-section .hero-background .hero-bg-image {
    object-position: 70% 14%;
    /* na wąskim ekranie kadr nieco wyżej / na postać */
  }

  .sf-hero-title {
    font-size: 1.875rem;
    line-height: 128%;
  }

  .sf-hero-title .sf-hero-subtitle {
    font-size: 1.875rem !important;
    line-height: 128% !important;
  }

  .sf-hero-content p {
    font-size: 0.875rem;
  }

  .sf-jobs--cols-3,
  .sf-jobs--cols-2 {
    grid-template-columns: 1fr;
  }

  .sf-jobs {
    grid-auto-rows: auto;
    /* w 1 kolumnie karty rosną wg treści */
    padding: 36px 16px 56px;
    gap: 16px;
  }

  .sf-job {
    padding: 28px 22px;
  }

  .sf-job__title {
    min-height: 0;
    /* nie wyrównujemy wysokości w 1 kolumnie */
    margin-bottom: 28px;
  }

  .sf-job__meta {
    margin-bottom: 28px;
  }
}