/* ===================== SINGLE SERVICE LAYOUT ===================== */
.bc-service-single {
  display: flex;
  gap: clamp(30px, 4vw, 60px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) 20px;
}
.bc-service-sidebar {
  --bc-service-sticky-top: 140px;
  flex: 0 0 32%;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
@media (min-width: 1024px) {
  .bc-service-sidebar {
    position: static;
    align-self: stretch;
    overflow: visible;
  }
  .bc-service-sidebar-sticky {
    position: static;
  }
  .bc-service-single.has-sticky-sidebar .bc-service-sidebar-sticky {
    position: sticky;
    top: var(--bc-service-sticky-top);
    z-index: 2;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--bc-service-sticky-top) - 24px);
    min-height: 0;
  }
}
.bc-service-content { flex: 1; min-width: 0; }
.bc-service-single { margin-top: 50px; align-items: stretch; gap: 120px; }
/* sidebar padding-top handled by margin-top on single */
.bc-service-image { margin: 0 0 16px; }
.bc-service-image img {
  width: 100%;
  border-radius: 192px;
  object-fit: cover;
  aspect-ratio: 2/3;
}
.bc-service-title {
  font-family: var(--font-h) !important;
  font-size: clamp(26px, 2.8vw, 40px) !important;
  font-weight: 400 !important;
  color: var(--bc-dark) !important;
  letter-spacing: 0.05em;
  margin: 0 0 30px !important;
  line-height: 1.3;
}
.bc-service-lead {
  max-width: 760px;
  margin: -10px 0 36px;
  color: var(--bc-dark-light, #6E5B4C);
  font-family: var(--font-b);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 150%;
  letter-spacing: 0.03em;
}
.bc-service-lead p {
  margin: 0 0 0.8em;
}
.bc-service-lead p:last-child { margin-bottom: 0; }
.bc-service-section { margin-bottom: 10px; }
.bc-service-section-label {
  font-family: var(--font-b) !important;
  font-size: clamp(16px, 1.4vw, 20px) !important;
  font-weight: 400 !important;
  color: var(--bc-brown) !important;
  line-height: 140%;
  text-transform: uppercase !important;
  letter-spacing: 0.05em;
  margin: 0 0 12px !important;
}
.bc-service-section-body {
  font-family: var(--font-b);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 160%;
  letter-spacing: 0.03em;
  color: var(--bc-dark-light, #6E5B4C);
  margin-bottom: 30px;
}
.bc-service-section-body ul { padding-left: 20px; margin: 8px 0; }
.bc-service-section-body li { margin-bottom: 4px; }
.bc-service-section-body p { margin: 0 0 12px; }
.bc-service-section-body img { max-width: 100%; height: auto; border-radius: 12px; }
.bc-service-section-body table { max-width: 100%; }

.bc-service-section-accordion {
  --bc-service-accordion-body-top: 22px;
  --bc-service-accordion-body-bottom: 30px;
  margin-bottom: 0;
  border-bottom: 2px solid var(--bc-cream, #F7F4EF);
}
.bc-service-section-accordion:has(.bc-service-accordion[open]) {
  border-bottom-color: var(--bc-dark-light, #6E5B4C);
}
.bc-service-accordion-header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 76px;
  padding: 18px 0;
  color: var(--bc-brown);
  cursor: pointer;
  list-style: none;
}
.bc-service-accordion-header::-webkit-details-marker { display: none; }
.bc-service-accordion-header .bc-service-section-label {
  margin: 0 !important;
  font-weight: 500 !important;
}
.bc-service-accordion-chevron {
  width: 22px;
  height: 11px;
  color: var(--bc-brown);
  transition: color 180ms ease, transform 180ms ease;
}
.bc-service-accordion[open] .bc-service-accordion-chevron {
  color: var(--bc-dark-light, #6E5B4C);
  transform: rotate(180deg);
}
.bc-service-accordion[open] .bc-service-section-label {
  color: var(--bc-dark-light, #6E5B4C) !important;
  font-weight: 700 !important;
}
.bc-service-section-accordion .bc-service-section-body {
  margin-bottom: 0;
  padding: var(--bc-service-accordion-body-top) 0 var(--bc-service-accordion-body-bottom) 52px;
}
.bc-service-section-accordion .bc-service-section-body > :last-child,
.bc-service-mobile-accordion-section .bc-service-section-body > :last-child {
  margin-bottom: 0;
}

/* CTA */
.bc-service-cta {
  width: 100%;
  justify-content: space-between;
  margin-top: 16px;
  background: var(--bc-brown) !important;
  color: var(--bc-cream) !important;
  transition: all 0.3s ease;
}
.bc-service-cta:hover {
  background: #8B6544 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.bc-service-cta .bc-btn-circle { transition: transform 0.3s ease; }
.bc-service-cta:hover .bc-btn-circle { transform: translateX(4px); }
.bc-service-cta-desktop { margin: 20px 0; }
.bc-service-cta-mobile { display: none !important; }

/* Price sidebar */
.bc-service-price-sidebar {
  margin-top: 30px;
  padding-right: 8px;
  /* Widoczny scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--bc-brown) transparent;
}
@media (min-width: 1024px) {
  .bc-service-single.has-sticky-sidebar .bc-service-price-sidebar {
    flex: 1 1 auto;
    min-height: 360px;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .bc-service-single.has-sticky-sidebar .bc-service-sidebar-sticky .bc-service-cta-desktop {
    flex: 0 0 auto;
    margin: 12px 0 16px;
  }
  .bc-service-single.has-sticky-sidebar .bc-service-sidebar-sticky .bc-service-cta {
    margin-top: 0;
  }
}
@media (max-width: 1023px) {
  .bc-service-single {
    --bc-service-sticky-top: 0px;
  }
  .bc-service-sidebar-sticky {
    position: static;
    max-height: none;
  }
  .bc-service-price-sidebar {
    max-height: none;
    overflow: visible;
  }
}
@media (min-width: 768px) {
  .bc-service-single.has-sticky-sidebar .bc-service-sidebar {
    position: static;
    align-self: stretch;
    overflow: visible;
  }
  .bc-service-single.has-sticky-sidebar .bc-service-sidebar-sticky {
    position: sticky;
    top: var(--bc-service-sticky-top);
    z-index: 2;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - var(--bc-service-sticky-top) - 24px);
    min-height: 0;
  }
  .bc-service-single.has-sticky-sidebar .bc-service-price-sidebar {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .bc-service-single.has-sticky-sidebar .bc-service-sidebar-sticky .bc-service-cta-desktop {
    flex: 0 0 auto;
    margin: 12px 0 16px;
  }
  .bc-service-single.has-sticky-sidebar .bc-service-sidebar-sticky .bc-service-cta {
    margin-top: 0;
  }
}
.bc-service-price-sidebar::-webkit-scrollbar {
  width: 4px;
}
.bc-service-price-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.bc-service-price-sidebar::-webkit-scrollbar-thumb {
  background: var(--bc-brown);
  border-radius: 4px;
}
/* Cennik heading — rendered by shortcode as <h2>, style it here */
.bc-service-price-sidebar > .bc-service-section-label {
  font-family: var(--font-h) !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  color: var(--bc-dark) !important;
  margin-bottom: 16px !important;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bc-brown);
}
.bc-service-price-sidebar .sc_price_list_table td strong {
  font-weight: 700 !important;
  font-size: 18px;
  text-transform: uppercase;
  color: var(--bc-dark) !important;
}
.bc-service-price-sidebar .sc_price_list_table tr:has(td > strong) {
  border-bottom: 2px solid var(--bc-brown) !important;
}
.bc-service-price-sidebar .sc_price_list_table tr:has(.sc_price_list_table_td_price) {
  border-bottom: 1px solid rgba(110, 91, 76, 0.4) !important;
}

.bc-service-price-mobile { display: none; }

/* Price table */
.bc-service-price-sidebar .sc_price_list_table,
.bc-service-price-mobile .sc_price_list_table { width: 100%; border-collapse: collapse; }
.sc_price_list_table td {
  font-family: var(--font-b);
  font-size: clamp(13px, 1vw, 16px);
  line-height: 140%;
  letter-spacing: 0.03em;
  color: var(--bc-dark-light, #6E5B4C);
  padding: 10px 0;
  vertical-align: top;
  /* border moved to TR */
}
.sc_price_list_table td strong {
  font-weight: 700;
  font-size: clamp(14px, 1.1vw, 18px);
  color: var(--bc-dark);
}
.sc_price_list_table td:has(strong) {
  border-bottom: 2px solid var(--bc-brown) !important;
  padding-top: 18px;
}
/* === CENNIK RULER — border na TD w collapse mode === */
.sc_price_list_table td {
  border-bottom: 1px solid #C4B5A5 !important;
}
.sc_price_list_table td:has(strong) {
  border-bottom: 2px solid #6E5B4C !important;
}
.sc_price_list_table .sc_price_list_table_td_price {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  color: var(--bc-dark);
}
.sc_price_list_table tr:has(td strong) { border-bottom: 2px solid var(--bc-dark-light, #6E5B4C); }
.sc_price_list_table tr:not(:has(td strong)) { border-bottom: 1px solid rgba(110, 91, 76, 0.2); }

/* Before/after images */
@media (min-width: 768px) {
  .bc-service-section[data-section="before_after"] > .bc-service-section-label {
    padding-top: 24px;
  }
}
.bc-service-section[data-section="before_after"] > .bc-service-section-body {
  padding-top: 10px;
}
.bc-service-ba table { width: 100%; border-collapse: collapse; }
.bc-service-ba td { padding: 8px; vertical-align: top; }
.bc-service-ba img { border-radius: 12px; }

/* Video responsive */
.bc-service-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 12px;
}
.bc-service-video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  border-radius: 12px;
}

.bc-service-main-video {
  max-width: 560px;
  margin: 34px 0 42px;
}
.bc-service-main-video .bc-service-section-body {
  margin-bottom: 0;
}
.bc-service-main-video .bc-video-thumb {
  display: grid;
  gap: 18px;
}
.bc-service-main-video .bc-service-video-wrap:not(.bc-reel-wrap) {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  height: auto;
  padding-bottom: 0;
  margin-bottom: 0;
}
.bc-service-main-video .bc-service-video-wrap:not(.bc-reel-wrap) iframe {
  object-fit: contain;
}
@media (min-width: 768px) {
  .bc-service-section[data-section="before_after"] + .bc-service-main-video .bc-service-video-wrap,
  .bc-service-section[data-section="before_after"] + .bc-service-main-video .bc-reel-wrap,
  .bc-service-section[data-section="before_after"] + .bc-service-main-video .bc-reel-card {
    margin-left: 56px;
  }
}

/* Desktop/mobile toggles */
.bc-mobile-only { display: none; }
.bc-desktop-only { display: block; }

/* ===== SINGLE SERVICE MOBILE ===== */
@media (max-width: 767px) {
  .bc-service-single { flex-direction: column; gap: 16px; padding: 16px; }
  .bc-service-sidebar { position: static; flex: none; background: none; padding: 0; max-height: none; overflow: visible; }
  .bc-service-image { margin: 0 !important; }
  .bc-service-image img { border-radius: 12px; aspect-ratio: 2/1; max-height: 250px; }
  .bc-service-cta-desktop { display: none; }
  .bc-service-price-sidebar { display: none; }
  .bc-service-price-mobile { display: block; }
  .bc-mobile-only { display: block; }
  .bc-desktop-only { display: none !important; }

  .bc-service-section-accordion,
  .bc-service-mobile-accordion-section {
    --bc-service-accordion-body-top: 18px;
    --bc-service-accordion-body-bottom: 26px;
    margin-bottom: 0;
    border-bottom: 2px solid var(--bc-cream, #F7F4EF);
  }
  .bc-service-mobile-accordion-section:has(.bc-service-accordion[open]) {
    border-bottom-color: var(--bc-dark-light, #6E5B4C);
  }
  .bc-service-lead { margin-top: -6px; margin-bottom: 28px; }
  .bc-service-accordion-header {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 12px;
    min-height: 64px;
    padding: 14px 0;
  }
  .bc-service-single .bc-service-section-accordion .bc-service-section-body,
  .bc-service-single .bc-service-mobile-accordion-section .bc-service-section-body,
  .bc-preparaty-hub .bc-service-section-accordion .bc-service-section-body {
    padding-left: 0;
  }
  details summary.bc-service-section-label {
    cursor: pointer;
    list-style: none;
    padding: 14px 0;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700 !important;
  }
  details summary.bc-service-section-label::before {
    content: "▶";
    font-size: 10px;
    transition: transform 0.2s;
    display: inline-block;
  }
  details[open] summary.bc-service-section-label::before { transform: rotate(90deg); }
  details summary.bc-service-section-label::-webkit-details-marker { display: none; }
  details .bc-service-section-body { padding-bottom: 16px; }
}

/* ===================== STICKY CTA BAR — MOBILE ===================== */
.bc-sticky-cta-bar { display: none; }

@media (max-width: 767px) {
  .bc-sticky-cta-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bc-brown);
    padding: 5px 16px;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
  }
  .bc-sticky-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-b);
  }
  .bc-sticky-cta-primary {
    flex: 1;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 30px;
    background: var(--bc-cream, #F5F2EE);
    color: var(--bc-brown);
  }
  .bc-sticky-cta-phone {
    flex: 0 0 40px;
    padding: 8px;
    background: transparent;
    color: var(--bc-cream, #F5F2EE);
    border: none;
    border-radius: 0;
  }
  body { padding-bottom: 54px !important; }
  bc-assistant-widget { bottom: 60px !important; }
}

/* ===================== VIDEO THUMBNAILS ===================== */
.bc-service-video-sidebar { display: none; }
.bc-video-thumb { cursor: pointer; position: relative; }
.bc-video-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
}
.bc-video-thumb::after {
  content: '\25B6  Powiększ';
  position: absolute;
  bottom: 28px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  pointer-events: none;
}

/* Video modal */
.bc-video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
}
.bc-video-modal.active { display: flex; }
.bc-video-modal-content { width: 85vw; max-width: 1000px; position: relative; }
.bc-video-modal-player { position: relative; padding-bottom: 56.25%; height: 0; }
.bc-video-modal-player iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.bc-video-modal-close { position: absolute; top: -40px; right: 0; background: none; border: none; color: white; font-size: 28px; cursor: pointer; }
.bc-service-video-mobile { display: none; }

@media (max-width: 767px) {
  .bc-service-video-sidebar { display: none !important; }
  .bc-service-video-mobile { display: block !important; }
}


/* ── h4/h5 w treści sekcji (ACF wysiwyg: scf_about itp.) ── */
.bc-service-section-body h4,
.bc-service-section-body h5 {
  font-family: var(--font-b, 'Clarity City', sans-serif);
  color: var(--bc-dark, #393029);
  margin: 1.4em 0 0.5em;
  line-height: 1.35;
}
.bc-service-section-body h4 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.bc-service-section-body h5 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--bc-dark-light, #6E5B4C);
}
