/* =========================================================================
   Podstrony produktowe (kredyt hipoteczny, dla firm, gotówkowy, leasing, faktoring)
   oraz kalkulator raty [bk_kalkulator]. Klasy sekcji: .bk-p-*.
   Wspólne elementy (przyciski, kafle, kroki, FAQ, formularz domykający) – components.css.
   ========================================================================= */

/* Na podstronach produktów nagłówki sekcji mają mniejszy odstęp niż na stronie głównej (Figma: 32 px). */
.bk-section[class*="bk-p-"] h2.wp-block-heading { margin-bottom: 32px; font-size: 32px; line-height: 1.5; }
.bk-p-steps,
.bk-p-about,
.bk-p-expert,
.bk-p-guide,
.bk-p-faq,
.bk-p-links { padding-block: 72px; }

/* -------------------------------------------------------------------------
   01. Hero produktu: tło ze zdjęciem + biała nakładka, tekst i kalkulator
   ------------------------------------------------------------------------- */
.bk-p-hero {
	padding-block: 64px;
	background: linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)), url("../img/hero-produkt.jpg") center / cover no-repeat;
}
.bk-p-hero .bk-breadcrumbs { margin-bottom: 36px; }
.bk-p-hero__row { display: flex; align-items: center; gap: 64px; }
.bk-p-hero__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.bk-p-hero__text > * { margin: 0; }
.bk-p-hero h1.wp-block-heading { max-width: 600px; margin: 0; font-size: 46px; line-height: 1.14; }
.bk-p-hero .bk-lead { max-width: 560px; margin: 0; color: var(--bk-muted); }
.bk-p-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.bk-p-hero__actions > * { margin: 0; }
.bk-p-hero .bk-p-hero__phone { margin: 0; color: var(--bk-primary); font-size: 16px; font-weight: 700; line-height: 1.45; }
.bk-p-hero__phone a { margin-left: 6px; color: inherit; text-decoration: none; white-space: nowrap; }
.bk-p-hero__phone a:hover { text-decoration: underline; }

/* Faktoring: w miejscu kalkulatora karta z CTA. */
.bk-p-hero__cta { flex: none; display: flex; flex-direction: column; gap: 18px; width: 430px; max-width: 100%; padding: 30px; }
.bk-p-hero__cta > * { margin: 0; }
.bk-p-hero__cta .bk-p-hero__cta-title { font-size: 22px; font-weight: 700; line-height: 1.45; }
.bk-p-hero__cta .bk-ticks li { font-size: 15px; }
.bk-p-hero__cta .wp-block-button,
.bk-p-hero__cta .wp-block-button__link { width: 100%; }
.bk-p-hero__cta .bk-p-hero__cta-note { color: var(--bk-muted); font-size: 12px; line-height: 1.45; }

@media (max-width: 1024px) {
	.bk-p-hero__row { flex-direction: column; align-items: stretch; gap: 40px; }
	.bk-p-hero h1.wp-block-heading { font-size: var(--bk-fs-h1); }
	.bk-p-hero .bk-calc,
	.bk-p-hero__cta { width: 100%; max-width: 560px; }
}
@media (max-width: 768px) {
	.bk-p-hero { padding-block: 32px 48px; }
	.bk-p-hero .bk-breadcrumbs { margin-bottom: 24px; }
	.bk-p-hero .bk-lead { font-size: 16px; }
}

/* -------------------------------------------------------------------------
   Kalkulator raty [bk_kalkulator]
   ------------------------------------------------------------------------- */
.bk-calc { flex: none; display: flex; flex-direction: column; gap: 16px; width: 430px; max-width: 100%; padding: 30px; border-radius: var(--bk-radius-card); background: var(--bk-white); color: var(--bk-ink); box-shadow: var(--bk-shadow-card); }
.bk-calc > * { margin: 0; }
.bk-calc .bk-calc__title { font-size: 22px; font-weight: 700; line-height: 1.45; }
.bk-calc__field { display: flex; flex-direction: column; gap: 6px; }
.bk-calc__label { color: var(--bk-muted); font-size: 13px; font-weight: 500; line-height: 1.45; }

/* Pole z jednostką („zł”, „lat”) i suwakiem przyklejonym do dolnej krawędzi. */
.bk-calc__control { position: relative; display: flex; align-items: center; border: 1px solid var(--bk-line); border-radius: var(--bk-radius-field); background: var(--bk-bg-soft); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.bk-calc__control:hover { border-color: #c9c9da; }
.bk-calc__control:focus-within { border-color: var(--bk-primary); background: var(--bk-white); box-shadow: 0 0 0 3px rgba(64, 36, 224, .15); }
.bk-calc__input { flex: 1; min-width: 0; width: 100%; margin: 0; padding: 14px 4px 14px 16px; border: 0; background: transparent; color: var(--bk-ink); font-family: var(--bk-font); font-size: 15px; line-height: 1.45; outline: none; }
.bk-calc__unit { flex: none; padding-right: 16px; color: var(--bk-muted); font-size: 15px; line-height: 1.45; }

.bk-calc__range { --bk-fill: 50%; position: absolute; left: 10px; right: 10px; bottom: -8px; width: auto; height: 16px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.bk-calc__range::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(to right, var(--bk-primary) var(--bk-fill), transparent var(--bk-fill)); }
.bk-calc__range::-moz-range-track { height: 3px; border-radius: 3px; background: transparent; }
.bk-calc__range::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--bk-primary); }
.bk-calc__range::-webkit-slider-thumb { width: 14px; height: 14px; margin-top: -5.5px; border: 2px solid var(--bk-white); border-radius: 50%; background: var(--bk-primary); box-shadow: 0 1px 4px rgba(20, 15, 64, .3); -webkit-appearance: none; appearance: none; }
.bk-calc__range::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid var(--bk-white); border-radius: 50%; background: var(--bk-primary); box-shadow: 0 1px 4px rgba(20, 15, 64, .3); }

.bk-calc__hint { margin: 4px 0 0; color: var(--bk-muted); font-size: 12px; line-height: 1.45; }
.bk-calc__field.is-warning .bk-calc__hint { color: var(--bk-error); }

.bk-calc__result { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: 14px; background: var(--bk-bg-soft); line-height: 1.45; }
.bk-calc__result-label { color: var(--bk-muted); font-size: 15px; font-weight: 500; }
.bk-calc__result-value { color: var(--bk-primary); font-size: 26px; font-weight: 700; white-space: nowrap; }
.bk-calc .bk-calc__cta { width: 100%; }
.bk-calc .bk-calc__cta:focus-visible { outline-color: var(--bk-primary); }
.bk-calc .bk-calc__note { color: var(--bk-muted); font-size: 12px; line-height: 1.45; }

@media (max-width: 480px) {
	.bk-calc { padding: 24px 20px; }
	.bk-calc__result { padding: 16px; }
	.bk-calc__result-value { font-size: 23px; }
}

/* -------------------------------------------------------------------------
   02. Pasek zaufania (liczby w jednym wierszu)
   ------------------------------------------------------------------------- */
.bk-p-trust { padding-block: 40px; }
.bk-p-trust__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.bk-p-trust .bk-stat { flex-direction: row; align-items: center; gap: 10px; }
.bk-p-trust .bk-stat .bk-stat__value { font-size: 26px; line-height: 1.45; }
.bk-p-trust .bk-stat .bk-stat__label { font-size: 15px; line-height: 1.45; }
@media (max-width: 768px) {
	.bk-p-trust { padding-block: 28px; }
	.bk-p-trust__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
	.bk-p-trust .bk-stat { flex-wrap: wrap; gap: 0 8px; }
	.bk-p-trust .bk-stat .bk-stat__value { font-size: 22px; }
}

/* -------------------------------------------------------------------------
   03. O produkcie + karta parametrów
   ------------------------------------------------------------------------- */
.bk-p-about__row { display: flex; align-items: flex-start; gap: 64px; }
.bk-p-about__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.bk-p-about__text > * { max-width: 560px; margin: 0; }
.bk-section.bk-p-about .bk-p-about__text h2.wp-block-heading { margin: 0; }
.bk-p-about__text p { color: var(--bk-muted); line-height: 1.5; }

.bk-p-params { flex: none; width: 430px; max-width: 100%; padding: 30px; border-radius: 18px; background: var(--bk-bg-soft); }
.bk-p-params h3.bk-p-params__title { margin: 0; font-size: 20px; line-height: 1.5; }
.bk-p-params__list { margin: 0; padding: 0; list-style: none; }
.bk-p-params__list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--bk-line); font-size: 14px; line-height: 1.5; }
.bk-p-params__list li span { color: var(--bk-muted); }
.bk-p-params__list li strong { font-weight: 600; text-align: right; }
@media (max-width: 1024px) {
	.bk-p-about__row { flex-direction: column; gap: 40px; }
	.bk-p-params { width: 100%; max-width: 560px; }
}
@media (max-width: 480px) {
	.bk-p-params { padding: 24px 20px; }
}

/* -------------------------------------------------------------------------
   04. Jak to działa – karty kroków (.bk-step z components.css)
   ------------------------------------------------------------------------- */
.bk-p-steps .bk-step { gap: 8px; padding: 24px; }
.bk-p-steps .bk-step h3.wp-block-heading { font-size: 19px; line-height: 1.5; }
.bk-p-steps .bk-step p:not(.bk-step__no) { line-height: 1.5; }

/* -------------------------------------------------------------------------
   05. Ekspert od produktu
   ------------------------------------------------------------------------- */
.bk-p-expert__card { display: flex; align-items: center; gap: 28px; padding: 32px; border-radius: var(--bk-radius-card); background: var(--bk-bg-soft); }
.bk-p-expert .bk-p-expert__photo { flex: none; width: 110px; height: 110px; border-radius: 50%; overflow: hidden; }
.bk-p-expert .bk-p-expert__photo img { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; }
.bk-p-expert__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bk-p-expert__text > * { max-width: 520px; margin: 0; }
.bk-section.bk-p-expert h2.bk-p-expert__title { margin: 0; font-size: 24px; line-height: 1.5; }
.bk-p-expert__text p { color: var(--bk-muted); line-height: 1.5; }
.bk-p-expert__text .bk-p-expert__contact { color: var(--bk-primary); font-size: 18px; font-weight: 700; white-space: pre-wrap; }
.bk-p-expert__contact a { color: inherit; text-decoration: none; }
.bk-p-expert__contact a:hover { text-decoration: underline; }
@media (max-width: 640px) {
	.bk-p-expert__card { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 20px; }
	.bk-p-expert .bk-p-expert__photo,
	.bk-p-expert .bk-p-expert__photo img { width: 88px; height: 88px; }
	.bk-section.bk-p-expert h2.bk-p-expert__title { font-size: 21px; line-height: 1.35; }
}

/* -------------------------------------------------------------------------
   06. Przewodnik (treść SEO) ze spisem treści
   ------------------------------------------------------------------------- */
.bk-p-guide__row { display: flex; align-items: flex-start; gap: 48px; }
.bk-p-toc { position: sticky; top: calc(var(--bk-header-h) + 24px); flex: none; width: 300px; padding: 24px; border-radius: var(--bk-radius-tile); background: var(--bk-white); font-size: 14px; line-height: 1.5; }
.admin-bar .bk-p-toc { top: calc(var(--bk-header-h) + 56px); }
.bk-p-toc .bk-p-toc__title { margin: 0 0 12px; font-weight: 700; }
.bk-p-toc__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.bk-p-toc__list a { text-decoration: none; }
.bk-p-toc__list a:hover { text-decoration: underline; }

.bk-p-guide__body { flex: 1; min-width: 0; }
.bk-p-guide__body > * { max-width: 640px; }
.bk-p-guide__body h3.wp-block-heading { margin: 0 0 8px; font-size: 22px; line-height: 1.5; }
.bk-p-guide__body > p { margin: 0 0 24px; color: var(--bk-muted); line-height: 1.5; }

/* CTA w treści */
.bk-p-guide__body > .bk-p-inline-cta { max-width: none; }
.bk-p-inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-radius: 14px; background: var(--bk-primary); color: var(--bk-white); }
.bk-p-inline-cta > * { margin: 0; }
.bk-p-inline-cta .bk-p-inline-cta__text { font-size: 17px; font-weight: 600; line-height: 1.5; }
.bk-p-inline-cta__text a { color: inherit; text-decoration: none; white-space: nowrap; }
.bk-p-inline-cta__text a:hover { text-decoration: underline; }
.bk-p-inline-cta .wp-block-buttons { flex: none; }
.bk-p-inline-cta .wp-block-button__link { padding: 12px 22px; font-size: 14px; font-weight: 700; }
.bk-p-inline-cta :focus-visible { outline-color: var(--bk-lime); }

@media (max-width: 900px) {
	.bk-p-guide__row { flex-direction: column; gap: 32px; }
	.bk-p-toc { position: static; width: 100%; }
}
@media (max-width: 640px) {
	.bk-p-inline-cta { flex-direction: column; align-items: flex-start; }
	.bk-p-guide__body h3.wp-block-heading { font-size: 20px; }
}

/* -------------------------------------------------------------------------
   07. FAQ produktowe (.bk-faq z components.css) – rozmiar pytań jak w Figmie
   ------------------------------------------------------------------------- */
.bk-p-faq .bk-faq .wp-block-details summary { padding-block: 20px; font-size: 17px; }

/* -------------------------------------------------------------------------
   08. Inne produkty – białe kafle na szarym tle
   ------------------------------------------------------------------------- */
.bk-section.bk-p-links h2.wp-block-heading { font-size: 28px; line-height: 1.45; }
.bk-p-links .bk-tile { gap: 0; padding: 22px; border-color: transparent; border-radius: 14px; background: var(--bk-white); }
.bk-p-links .bk-tile .wp-block-html { margin-bottom: 0; }
.bk-p-links .bk-tile h3.wp-block-heading { font-size: 17px; line-height: 1.45; }
.bk-p-links .bk-tile p { line-height: 1.45; }
.bk-p-links .bk-tile p.bk-tile__link { padding-top: 0; white-space: pre-wrap; }

@media (max-width: 768px) {
	.bk-section[class*="bk-p-"] h2.wp-block-heading { margin-bottom: 24px; font-size: 26px; line-height: 1.3; }
	.bk-section.bk-p-links h2.wp-block-heading { font-size: 24px; }
	.bk-p-steps,
	.bk-p-about,
	.bk-p-expert,
	.bk-p-guide,
	.bk-p-faq,
	.bk-p-links { padding-block: 56px; }
}
