/* ============================================
   WHY SECTION - "Dlaczego pokochasz"
   ============================================ */
#why {
  padding: 72px 160px;
}

.hero-section {
  border-bottom: 1px solid var(--Pole-Obrys-Jasny, #e3e3e3);
  padding-bottom: 72px;
}

#why .row>[class*="col-"] {
  display: flex;
}

.sf-hero-title>span:first-child {
  font-weight: 600;
}

.sf-beauty-title {
  font-size: 1.75rem;
}

.sf-beauty-why-title {
  font-size: 2.0625rem;
}

.feature-title {
  font-size: 1.1875rem;
}

.cta-title {
  font-size: 1.4375rem;
}

.sf-gallery-title {
  font-size: 2.0625rem;
}

.sf-faq-title {
  font-size: 2.0625rem;
}

.sf-hero-title .sf-hero-subtitle {
  color: var(--Tekst-Gwny, #100707) !important;
  font-size: 2.5rem !important;
  font-style: italic;
  font-weight: 300;
}

.feature-card {
  height: 100%;
  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);
  display: flex;
  padding: 32px 24px 48px 24px;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex: 1 0 0;
  align-self: stretch;
}

.feature-icon,
.feature-icon.pink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
  border-radius: 128px;
  position: relative;
}

/* CTA buttons pod sekcją "Dlaczego pokochasz" */
.sf-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  margin-bottom: 16px;
}

.sf-btn {
  display: flex;
  width: 320px;
  max-width: 100%;
  /* żeby nie wychodził poza ekran na telefonie */
  padding: 14px 48px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 64px;
  border: 1px solid #E3E3E3;
  color: #FFF;
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 150%;
  /* 19.5px */
  text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease;
}

.sf-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 5px 15px rgba(0, 0, 0, .15);
  color: #FFF;
  /* WP nieraz zmienia kolor linka na hover */
}

.sf-btn-orange {
  background: linear-gradient(90deg, #FFAF45 0%, #FF9100 100%);
}

.sf-btn-pink {
  background: linear-gradient(90deg, #D74190 0%, #DD75AB 100%);
}

.sf-cta-or,
.sf-cta-note {
  color: #ACA8A8;
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 150%;
  /* 19.5px */
}

.sf-cta-note {
  margin-top: 16px;
}

/* Gradient backgrounds for feature icons - zachowujemy oryginalną kolejność */
.row .col-md-6:nth-child(1) .feature-icon,
.row .col-md-6:nth-child(3) .feature-icon {
  background: linear-gradient(90deg, #ffaf45 0%, #ff9100 100%);
}

.row .col-md-6:nth-child(2) .feature-icon.pink,
.row .col-md-6:nth-child(4) .feature-icon.pink {
  background: linear-gradient(90deg, #d74190 0%, #dd75ab 100%);
}

.feature-icon svg {
  width: 60%;
  height: 60%;
}

.feature-card h5 {
  color: var(--Tekst-Gwny, #100707);
  text-align: center;
  font-size: 1.1875rem;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  /* 28.5px */
  text-transform: uppercase;
}

.feature-card p {
  color: var(--Tekst-Dodatkowy, #4c4545);
  text-align: center;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  /* 24px */
}

/* ============================================
   ABOUT SECTION - "Czym jest"
   ============================================ */
#about {
  padding: 72px 160px;
}

.about-wrapper {
  border-radius: 24px;
  border: 1px solid #e3e3e3;
  background: #fff;
  overflow: hidden;
}

.about-image-wrapper {
  border-radius: 0;
  overflow: hidden;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-content {
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  flex: 1 0 0;
}

.about-content p {
  color: var(--Tekst-Dodatkowy, #4c4545);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  /* 24px */
  align-self: stretch;
}

/* ============================================
   SECTION HEADERS WITH ICONS
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.section-header h4 {
  margin: 0;
  font-weight: 600;
  color: var(--Tekst-Gwny, #100707);
  line-height: 140%;
  /* 39.2px */
}

.section-header-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.section-header-center h3 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--Tekst-Gwny, #100707);
}

.section-icon,
.section-icon-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 64px;
  border: 1px solid #d74190;
  flex-shrink: 0;
}

.section-icon svg,
.section-icon-center svg {
  width: 21px;
  height: 18px;
  color: #d74190;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 128px 0;
}

.cta-banner {
  border-radius: 16px;
  border: 1px solid #e3e3e3;
  background: linear-gradient(90deg, #ff9100 0%, #d74190 100%);
  padding: 40px 30px;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.cta-banner h2 {
  color: #fff;
  font-size: 1.4375rem;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
  /* 32.2px */
}

.cta-banner p {
  color: #fff;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  /* 24px */
}

.cta-banner .btn-light {
  padding: 12px 30px;
  border-radius: 50px;
  border: none;
  background: #fff;
  transition: all 0.3s ease;
  color: #ff9100;
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
}

.cta-banner .btn-light:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ============================================
   GALLERY SECTION
   ============================================ */
#gallery {
  padding: 96px 160px;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  height: 100%;
  min-height: 250px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Zwiększona wysokość dla większych obrazów w galerii */
#gallery .row>div:nth-child(7),
#gallery .row>div:nth-child(8) {
  .gallery-item {
    min-height: 350px;
  }
}

/* ============================================
   FAQ SECTION
   ============================================ */
#faq {
  padding: 96px 160px 0px 160px !important;
}

.accordion {
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  border: none;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--Pole-Jasne, rgba(255, 255, 255, 0.75));
}

.accordion-header {
  border-radius: 8px;
  background: var(--Pole-Jasne, rgba(255, 255, 255, 0.75));
  backdrop-filter: blur(16px);
}

.accordion-button {
  color: var(--Tekst-Gwny, #100707);
  font-family: Poppins;
  font-size: 1.1875rem;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
  /* 26.6px */
  letter-spacing: -0.38px;
  border-radius: 8px;
  border: 1px solid var(--Pole-Obrys-Jasny, #e3e3e3);
  background: var(--Pole-Jasne, rgba(255, 255, 255, 0.75));
  backdrop-filter: blur(16px);
}

.accordion-button:not(.collapsed) {
  background: var(--Pole-Jasne, rgba(255, 255, 255, 0.75));
  color: #e91e63;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e91e63'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
  color: var(--Tekst-Dodatkowy, #4c4545);
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  /* 24px */
  padding: 24px 24px;
}
@media (min-width: 768px) and (max-width: 1024px) {
.sf-cta-buttons {
    flex-direction: column;
    gap: 12px;
  }
}
/* ============================================
   TABLET BREAKPOINTS (768px - 1024px)
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) {

  /* Hero adjustments */
  .hero-section {
    padding: 70px 0 50px;
  }

  .hero-content {
    max-width: 550px;
    padding: 35px;
  }

  .hero-section h1 {
    font-size: 1.85rem;
  }

  .hero-section h2 {
    font-size: 1.4rem;
  }

  .hero-section .container-lg {
    z-index: 2;
  }

  .hero-bg-image {
    filter: blur(2px);
    transform: scale(1.02);
  }

  /* Feature cards - 2 kolumny na tablecie */
  #why .col-md-6 {
    width: 50%;
    margin-bottom: 20px;
  }

  .feature-card {
    padding: 25px 18px;
  }

  .feature-card h5 {
    font-size: 1.05rem;
  }

  .feature-card p {
    font-size: 0.8125rem;
  }

  /* About section */
  .about-content {
    padding: 35px;
  }

  /* CTA */
  .cta-banner {
    padding: 35px 25px;
  }

  .cta-banner .row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
  }

  .cta-banner .row>.col-lg-2 {
    flex: 0 0 120px;
    width: 120px;
    max-width: 120px;
    margin-bottom: 0 !important;
    text-align: left;
  }

  .cta-banner .row>.col-lg-10 {
    flex: 1 1 calc(100% - 120px);
    width: calc(100% - 120px);
    max-width: calc(100% - 120px);
    min-width: 0;
  }

  .cta-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner .col-lg-10,
  .cta-banner .col-lg-10 h5,
  .cta-banner .col-lg-10 p {
    text-align: left;
  }

  .cta-icon {
    margin-bottom: 0;
  }

  .cta-banner h5 {
    font-size: 1.25rem;
  }

  .cta-banner p {
    font-size: 0.9rem;
  }

  .cta-banner .btn-light {
    align-self: flex-start;
  }

  /* Gallery - 2 kolumny dla większości zdjęć */
  #gallery .col-md-4 {
    width: 50%;
  }

  #gallery .col-md-6 {
    width: 100%;
  }

  .gallery-item {
    min-height: 280px;
  }

  #gallery .row>div:nth-child(7),
  #gallery .row>div:nth-child(8) {
    .gallery-item {
      min-height: 320px;
    }
  }
}

/* ============================================
   MOBILE BREAKPOINTS (max 767px)
   ============================================ */
@media (max-width: 767px) {
  .hero-section {
    padding: 60px 0 40px;
  }
  .sf-beauty-title {
    font-size: 1.3125rem;
  }

  .sf-beauty-why-title {
    font-size: 1.5rem;
    text-align: left;
  }

  .feature-title {
    font-size: 1.1875rem;
  }

  .cta-title {
    font-size: 1.4375rem;
  }

  .sf-gallery-title {
    font-size: 1.5rem;
    text-align: left;
  }

  .sf-faq-title {
    font-size: 1.5rem;
    text-align: left;
  }

  /* Wszystkie przyciski na pełną szerokość na mobilce. */
  .btn-main,
  .sf-btn,
  .cta-banner .btn-light {
    width: 100%;
    max-width: 100%;
  }

  .btn-main {
    padding: 14px 96px;
  }

  .sf-hero-title .sf-hero-subtitle {
    font-size: 1.75rem !important;
    text-align: center;
  }

  .feature-card p,
  .about-content p,
  .cta-banner p,
  .accordion-body {
    font-size: 0.8125rem;
  }

  .hero-section .container-lg {
    z-index: 2;
  }

  .cta-section {
    padding: 64px 0;
  }

  .hero-bg-image {
    filter: blur(3px);
    transform: scale(1.03);
    object-position: 70% center;
  }

  /* Feature cards - 1 kolumna */
  .feature-card {
    padding: 25px 15px;
    margin-bottom: 15px;
  }



  .section-header-center h3 {
    font-size: 1.5rem;
  }

  /* About */
  .about-content {
    padding: 0 16px 24px 16px;
  }
  .about-content p {
    text-align: justify;
  }
  #about .container-lg {
    --bs-gutter-x: 2.5rem;
  }

  /* CTA */
  .cta-banner {
    padding: 30px 20px;
    text-align: center;
  }

  .cta-banner h5 {
    font-size: 1.15rem;
  }

  .cta-icon {
    margin-bottom: 15px;
  }

  /* Galeria – przewijana palcem */
  #gallery .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* płynne przewijanie na iOS */
    gap: 12px;
    padding-bottom: 8px;
    scrollbar-width: none;
    /* Firefox – chowamy pasek */
  }

  #gallery .row::-webkit-scrollbar {
    /* Chrome / Safari */
    display: none;
  }

  #gallery .row>[class*="col-"] {
    flex: 0 0 85%;
    max-width: 85%;
    padding: 0;
    scroll-snap-align: start;
  }

  .gallery-item {
    min-height: 240px;
    margin-bottom: 0;
  }


  #gallery .row>div:nth-child(7) .gallery-item,
  #gallery .row>div:nth-child(8) .gallery-item {
    min-height: 240px;
  }

  #gallery {
    padding: 64px 0 0 0;
  }

  #about {
    padding: 128px 0 64px 0;
  }

  #why {
    padding: 64px 0;
  }

  #why .section-header h3 {
    text-align: left !important;
  }

  #faq {
    padding: 64px 0 0 0 !important;
  }

  .feature-card {
    padding: 32px 24px 48px 24px;
    gap: 0;
  }
}

/* ============================================
   STRONA DIETY – WRAPPER + RESET KONTENERÓW (MOBILE)
   ============================================ */
@media (max-width: 767px) {

  /* Cała strona jako jeden flex-wrapper.
     Odstępy poziome (16px) i pionowe (gap 128px) robi wrapper,
     dlatego niżej zerujemy paddingi/marginy kontenerów i sekcji. */
  .sf-page-wrap {
    display: flex;
    padding: 0 16px;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    width: 100%;
  }
  .sf-hero-text p{
    text-align: justify;
  }
  /* Reset bootstrapowych kontenerów – żadnych własnych odstępów */
  .sf-page-wrap .container,
  .sf-page-wrap .container-sm,
  .sf-page-wrap .container-md,
  .sf-page-wrap .container-lg,
  .sf-page-wrap .container-xl,
  .sf-page-wrap .container-xxl,
  .sf-page-wrap .container-fluid,
  .sf-page-wrap .container__copy {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
  }

  /* Wiersze – kasujemy gutter i ujemne marginesy */
  .sf-page-wrap .row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
  }

  /* Sekcje nie potrzebują własnych pionowych odstępów – robi to gap.
     Szerokość na 100%, by wypełniały wrapper. */
  .sf-page-wrap > section {
    width: 100%;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Divider jest zbędny przy gap 128px – chowamy go na mobilce */
  .sf-page-wrap > .sf-divider,
  .sf-page-wrap > hr {
    display: none;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
  text-align: center;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}