/* ================================================
   HERO SECTION
   ================================================ */

.hero-section {
  align-items: center;
}

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

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-section .container,
.hero-section .container-lg {
  position: relative;
  z-index: 1;
}

.diety-section .sf-hero-title {
  display: unset !important;
}

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

.sf-hero-title span {
  color: var(--Tekst-Gwny, #100707);
  text-align: center;
  font-family: Poppins;
  font-size: 3rem;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
}

.sf-hero-subtitle {
  color: var(--Kolor-Gwny, #ff9100);
  font-family: Poppins;
  font-size: 1.4375rem;
  font-style: italic;
  font-weight: 300;
  line-height: 140%;
  display: flex;
}

/* ================================================
   SHARED SECTION HELPERS
   ================================================ */

.sf-section {
  padding: 96px 160px;
}

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

.sf-diets-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.sf-divider {
  height: 3px;
  background: linear-gradient(to right,
      var(--sf-orange),
      var(--sf-orange-light),
      transparent);
  border: none;
}

.sf-section-lead {
  max-width: 736px;
}

.sf-diets-section .sf-section-lead {
  margin-bottom: 64px !important;
}

/* ================================================
   DIET INFO CARD  (top "Dieta dopasowana..." block)
   ================================================ */

.sf-diet-card {
  border-radius: 24px;
  border: 1px solid var(--Pole-Obrys-Jasny, #e3e3e3);
  background: var(--Background-Dodatkowy, #fff);
}

.sf-diet-card__image {
  min-height: 320px;
}

.sf-diet-card__image img {
  object-position: top center;
}

.sf-benefit-list li {
  padding-right: 40px;
}

.sf-benefit-num {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.sf-benefit-num svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ================================================
   DIETS CAROUSEL  (Gotowe diety)
   ================================================ */

.sf-diets-row {
  position: relative;
}

.sf-diets-row .swiper {
  padding: 0;
  overflow: hidden;
}

.sf-diets-row .swiper-slide {
  width: auto;
  height: auto;
  display: flex;
  justify-content: center;
}

/* Thumbnail card */
.sf-diet-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.sf-diet-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.sf-diet-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sf-diet-thumb:hover img {
  transform: scale(1.04);
}

.sf-diet-thumb__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(21, 21, 21, 0) 0%,
      rgba(21, 21, 21, 0.85) 100%);
}

.sf-diet-thumb__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sf-diet-type {
  color: var(--Background-Gwny, #f8f8f8);
  /* Nagłówki/Akcent/H3 */
  font-family: Poppins;
  font-size: 2.0625rem;
  font-style: italic;
  font-weight: 300;
  line-height: 140%;
  /* 46.2px */
}

.sf-diet-name {
  color: var(--Background-Gwny, #f8f8f8);
  font-family: Poppins;
  font-size: 1.1875rem;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  /* 28.5px */
  text-transform: uppercase;
}

/* Buy button on thumbnail */
.sf-btn-buy {
  display: flex;
  padding: 4px 12px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  align-self: stretch;
  border-radius: 25px;
  border: 1px solid var(--Background-Gwny, #f8f8f8);
  color: var(--Background-Gwny, #f8f8f8);
  text-align: right;

  /* Tekst/text-tiny */
  font-family: Poppins;
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  /* 16.5px */
}

.sf-btn-buy:hover {
  background: var(--sf-orange-light);
}

/* Carousel nav arrows */
.sf-carousel-btn {
  position: absolute;
  top: 210px;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 47px;
  border: 1px solid var(--Pole-Obrys-Jasny, #e3e3e3);
  background: var(--Background-Gwny, #f8f8f8);
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    box-shadow 0.2s,
    background 0.2s;
  z-index: 10;
}

.sf-carousel-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.sf-carousel-btn--prev {
  left: -35px;
}

.sf-carousel-btn--next {
  right: -35px;
}

/* Pagination dots */
.sf-diets-pagination {
  text-align: center;
  margin-top: 32px;
}

.sf-diets-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--sf-border);
  opacity: 1;
  margin: 0 5px;
  transition:
    background 0.2s,
    transform 0.2s;
}

.sf-diets-pagination .swiper-pagination-bullet-active {
  background: var(--sf-orange);
  transform: scale(1.2);
}

/* ================================================
   FRANCHISE / PSYCHODIETETICS BANNER
   ================================================ */

.sf-franchise {
  min-height: 657px;
  display: flex;
  align-items: center;
  background: var(--sf-bg);
  margin-bottom: 64px;
}

.sf-franchise__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.sf-franchise__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}

.sf-franchise__content {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

.sf-heading {
  color: var(--Tekst-Gwny, #100707);
  font-family: Poppins;
  font-size: 1.75rem;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
  /* 39.2px */
}

.sf-heading.franchise {
  color: var(--Tekst-Gwny, #100707);
  text-align: right;
  font-family: Poppins;
  font-size: 1.75rem;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
  /* 39.2px */
  margin-bottom: 32px !important;
}

.sf-subheading {
  font-weight: 300;
  font-style: italic;
}

.sf-subtitle-orange {
  color: var(--Kolor-Gwny, #ff9100);
  font-style: italic;
  font-weight: 300;
  font-size: 1.1875rem;
  letter-spacing: -0.38px;
  margin-bottom: 32px;
}

/* CTA button (franchise banner) */
.sf-btn-cta {
  border-radius: 64px;
  border: 1px solid #e3e3e3;
  background: var(--Gradient-Pomaraczowy,
      linear-gradient(90deg, #ffaf45 0%, #ff9100 100%));
  color: #fff;
  text-align: center;
  font-family: Poppins;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  display: flex;
  padding: 14px 56px;
  justify-content: center;
  gap: 8px;
  max-width: 50%;
  margin-left: auto;
}

.sf-franchise__content .sf-text-muted {
  margin-bottom: 32px !important;
  text-align: right;
}

.sf-text-block p,
a {
  color: var(--Tekst-Akcent, #aca8a8);
  font-family: Poppins;
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.oferta__copy {
  padding-bottom: 80px;
  padding-top: 250px;
}

.oferta__copy .container__copy .oferta__copy-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: start;
  gap: 32px;
  width: 100%;
  overflow: hidden;
  position: relative;
  transition: all 0.8s ease-in-out;
}

.oferta__copy .container__copy .oferta__copy-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom,
      rgba(248, 248, 248, 0.5),
      rgba(248, 248, 248, 1));
  pointer-events: none;
  transition: all 0.6s ease-in-out;
}

.oferta__copy .container__copy .oferta__copy-content.is-expanded::after {
  height: 0;
}

.oferta__copy .container__copy .seo-btn-read-more {
  display: flex;
  align-items: start;
  justify-content: center;
  width: 100%;
}

.oferta__copy .container__copy .seo-btn-read-more .seo-btn-read-more__text {
  display: flex;
  align-items: start;
  justify-content: start;
  width: 100%;
  padding: 24px 0;
  cursor: pointer;
}

.oferta__copy .container__copy .seo-btn-read-more .seo-btn-read-more__text.is-expanded {
  transform: rotate(180deg);
  justify-content: end;
}

.oferta__copy .container__copy .seo-btn-read-more svg {
  fill: var(--Tekst-Gwny);
  transition: var(--transition);
}

.oferta__copy .container__copy .seo-btn-read-more:hover svg {
  fill: var(--Kolor-Gwny);
}

.copy-list {
  color: var(--Tekst-Akcent, #aca8a8);
  padding-left: 16px;
  font-family: Poppins;
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  /* 16.5px */
}

.oferta__copy .container__copy .oferta__copy-content .oferta__copy-block .copy-title {
  color: var(--Tekst-Akcent, #aca8a8);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

.oferta__copy .container__copy .oferta__copy-content .oferta__copy-block {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 8px;
}

.oferta__copy .container__copy .oferta__copy-content .oferta__copy-block .copy_text-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  gap: 8px;
}

.oferta__copy .container__copy .oferta__copy-content .oferta__copy-block .copy_text-content .copy-text {
  color: var(--Tekst-Akcent, #aca8a8);
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

/* ================================================
   TEXT BLOCKS GRID  (bottom 6-block section)
   ================================================ */
.sf-section:has(.sf-text-block) {
  padding-top: 0px;
  padding-bottom: 0px;
}

.sf-section:has(.sf-text-block) .container {
  max-width: none;
  /* zdejmuje limit Bootstrapa dla tej sekcji */
  padding-left: 160px;
  padding-right: 160px;
}

.sf-text-block {
  gap: 32px;
  /* odstep miedzy kolejnymi blokami tekstu */
}



/* na telefonie 160px po bokach jest za duzo – redukcja */
@media (max-width: 575px) {
  .sf-section:has(.sf-text-block) .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 575px) {
  .sf-franchise {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    margin-bottom: 48px;
  }

  /* zdjecie spada na dol */
  .sf-franchise__bg {
    position: absolute;
    order: 2;
    height: 413px;
    width: 390px;
    top: 248px;
  }

  .sf-franchise__bg img {
    object-position: center top;
  }

  /* tekst na gorze */
  .sf-franchise .container {
    order: 1;
  }

  .sf-franchise__content {
    padding: 32px 0 200px !important;
    text-align: left;
  }

  /* wyrownanie do lewej */
  .sf-heading.franchise {
    text-align: left;
    margin-bottom: 16px !important;
  }

  .sf-franchise__content .sf-text-muted {
    text-align: left;
    margin-bottom: 24px !important;
  }

  /* CTA na pelna szerokosc */
  .sf-btn-cta {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    padding: 14px 24px;
  }

  .sf-franchise__bg picture,
  .hero-background picture {
    display: block;
    width: 100%;
    height: 100%;
  }
}

.sf-text-block-label,
.sf-list-d {
  align-self: stretch;
  color: var(--Tekst-Akcent, #aca8a8) !important;
  font-family: Poppins;
  font-size: 0.6875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  /* 16.5px */
}

.sf-list-d li {
  padding: 3px 0 3px 16px;
  position: relative;
}

.sf-list-d li::before {
  content: "•";
  position: absolute;
  left: 0;
}

/* ================================================
   LOGO ROW
   ================================================ */

.sf-logo-row {
  background: var(--sf-bg-light);
  border-top: 1px solid var(--sf-border);
}

.sf-logo-row img {
  opacity: 0.7;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
  .sf-section {
    padding: 48px 0;
  }

  .sf-benefit-list li {
    padding: 0;
  }

  .sf-diet-card__image {
    min-height: 260px;
  }

  .sf-subheading {
    font-size: 1.625rem;
  }

  /* Bez prawego paddingu na mobilce (nadpisuje inline style="padding-right:40px"). */
  .sf-diet-card__body .sf-text-muted {
    padding-right: 0 !important;
  }

  .sf-franchise__content {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .sf-carousel-btn {
    width: 40px;
    height: 40px;
  }

  .sf-carousel-btn--prev {
    top: 155px;
    left: 0px;
  }

  .sf-carousel-btn--next {
    top: 155px;
    right: 0px;
  }
}

@media (max-width: 1024px) {
  .sf-breadcrumb {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 88px 0 36px;
    background: var(--sf-bg-light, #f8f8f8);
  }

  .sf-hero-content {
    flex: 0 0 100%;
    max-width: 100%;
  }

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

  .sf-hero-subtitle {
    font-size: 1rem;
    margin-top: 6px;
  }

  .sf-hero-text {
    margin-top: 14px;
  }

  .sf-hero-text p {
    font-size: 0.8125rem;
    line-height: 165%;
    color: #4a4546;
    max-width: 560px;
  }

  .sf-diet-card {
    flex-direction: column;
  }

  .sf-diet-card__image,
  .sf-diet-card__body {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .sf-diet-card__body {
    order: 1;
    padding: 36px 32px;
  }

  .sf-diet-card__image {
    order: 2;
    min-height: 340px;
  }

  .sf-diet-card__image img {
    height: 340px;
    border-radius: 0 0 24px 24px;
  }

  .sf-section {
    padding: 48px 0;
  }

  .sf-heading {
    font-size: 1.5rem;
  }

  .sf-section-lead {
    font-size: 0.875rem;
  }

  .sf-diets-row {
    overflow: hidden;
  }

  .sf-diets-row .swiper {
    padding: 0;
    overflow: visible;
  }

  .sf-diets-row .swiper-slide {
    width: 300px;
  }

  .sf-diet-thumb {
    width: 300px;
    height: 300px;
  }

  .sf-diet-type {
    font-size: 1.75rem;
  }

  .sf-diet-name {
    font-size: 1rem;
  }
}