/* ==========================================================================
   Bory Home — podstrona „Kontakt"
   Wartości z prototypu `Bory Home Kontakt.dc.html`.

   Strona nie ma formularza (decyzja klienta z handoffu) — prowadzi do
   telefonu, asystentki i maila. Karty doradczyni i asystentki to ten sam
   komponent co na stronie głównej, o stopień ciaśniejszy.
   ========================================================================== */

/* --- Hero ze zdjęciami z montażu ------------------------------------------ */

.bh-cthero {
  position: relative;
  overflow: hidden;
  background: var(--bh-ink);
  padding: 92px var(--bh-pad-x) 100px;
}

/* Trzy kadry w tle: środkowy szerszy, 6 px szczeliny między nimi. */
.bh-cthero__photos {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 6px;
}
.bh-cthero__frame { overflow: hidden; }
.bh-cthero__frame img { width: 100%; height: 100%; object-fit: cover; }

.bh-cthero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 26, 34, .5) 0%,
    rgba(12, 26, 34, .62) 55%,
    rgba(12, 26, 34, .72) 100%
  );
}

.bh-cthero__inner { position: relative; max-width: var(--bh-max); margin-inline: auto; }
.bh-cthero__grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: 52px;
  align-items: end;
}

.bh-cthero__eyebrow { display: block; color: var(--bh-accent); margin: 0 0 16px; }

.bh-cthero__title {
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -.038em;
  color: #fff;
  margin: 0 0 20px;
  max-width: 17ch;
}
/* Podkreślenie jest tu ciaśniejsze niż w bazie (14/6). */
.bh-cthero__title .bh-mark { padding: 0 12px 5px; }

.bh-cthero__lead {
  font: 400 16.5px/1.65 var(--bh-font);
  color: var(--bh-on-dark-lead);
  max-width: 54ch;
}

/* --- Biała karta „Najszybszy kontakt" ------------------------------------- */

.bh-ctquick { background: var(--bh-surface); border-radius: 24px; padding: 26px 26px 24px; }

.bh-ctquick__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--bh-border-strong);
  margin: 0 0 16px;
}
.bh-ctquick__title {
  font: 700 11.5px/1 var(--bh-font);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--bh-ink);
}
.bh-ctquick__hours {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 600 11px/1 var(--bh-font);
  color: var(--bh-text-2);
}

.bh-ctquick__rows { display: flex; flex-direction: column; gap: 2px; }
.bh-ctquick__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  /* Kreska między kanałami jest ciemniejsza od `--bh-rule`; prototyp ma tu
     własny odcień i tylko w tej karcie. */
  border-bottom: 1px solid #E9EDEF;
}
.bh-ctquick__row:last-child { border-bottom: 0; }
.bh-ctquick__label { font: 400 12.5px/1.4 var(--bh-font); color: var(--bh-text-2); }
.bh-ctquick__value { font: 700 14px/1 var(--bh-font); color: var(--bh-ink); }

/* --- Doradczyni i asystentka ----------------------------------------------
   Karty dzielą komponent ze stroną główną; różnice są wyłącznie w skali. */

.bh-ctpeople { background: var(--bh-surface-alt); padding: 72px var(--bh-pad-x); }

.bh-contactcard--page { padding: 32px 32px 28px; }
.bh-contactcard--page .bh-contactcard__head { margin: 0 0 20px; }
.bh-contactcard--page .bh-contactcard__photo,
.bh-contactcard--page .bh-contactcard__spark { width: 72px; height: 72px; }
.bh-contactcard--page .bh-contactcard__spark { border-radius: 22px; }
.bh-contactcard--page .bh-contactcard__name,
.bh-contactcard--page.bh-contactcard--dark .bh-contactcard__name {
  letter-spacing: -.026em;
  margin: 0 0 8px;
}
.bh-contactcard--page .bh-contactcard__hours { font-size: 13px; }
/* Etykieta nad nazwą jest na granacie o stopień jaśniejsza niż na białej karcie. */
.bh-contactcard--page.bh-contactcard--dark .bh-contactcard__label { color: #8FA0AC; }
.bh-contactcard--page .bh-contactcard__desc { font-size: 14px; margin: 0 0 20px; }
.bh-contactcard--page .bh-contactcard__cta--outline { padding: 17px 22px; }
.bh-contactcard--page .bh-contactcard__cta--accent { padding: 18px 22px; }
/* Prototyp podświetla przycisk doradczyni na żółto, nie na granatowo. */
.bh-contactcard--page .bh-contactcard__cta--outline:hover {
  background: var(--bh-accent);
  border-color: var(--bh-accent);
  color: var(--bh-ink);
}

.bh-ctperson { min-width: 0; }

.bh-cttags { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.bh-cttag {
  font: 600 11.5px/1 var(--bh-font);
  color: var(--bh-text-3);
  background: var(--bh-surface-alt);
  padding: 9px 12px;
  border-radius: var(--bh-pill);
}
.bh-cttag--dark { color: #fff; background: var(--bh-ink-soft); }

/* --- Pierwsza rozmowa ------------------------------------------------------ */

/* Dwie ostatnie sekcje domykają się dopiero pasem CTA, więc mają dopełnienie
   tylko od góry. */
.bh-ctsection { padding: 76px var(--bh-pad-x) 0; }
.bh-ctsection--map { padding-top: 72px; }

.bh-ctbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin: 0 0 28px;
}
.bh-ctbar__eyebrow { display: block; margin: 0 0 14px; }
.bh-ctbar__title {
  font-size: 34px;
  line-height: 1.07;
  letter-spacing: -.032em;
  max-width: 20ch;
}
.bh-ctbar__lead { font: 400 14.5px/1.6 var(--bh-font); color: var(--bh-text-2); max-width: 38ch; }

.bh-ctsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bh-ctstep {
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-r-xl);
  padding: 24px 22px;
  transition: border-color var(--bh-t-slow);
}
.bh-ctstep:hover { border-color: var(--bh-accent); }
.bh-ctstep__num {
  display: inline-block;
  font: 800 12px/1 var(--bh-font);
  color: var(--bh-ink);
  background: var(--bh-accent);
  padding: 9px 10px;
  border-radius: 7px;
  margin: 0 0 14px;
}
.bh-ctstep__title { font: 700 15.5px/1.25 var(--bh-font); margin: 0 0 8px; }
.bh-ctstep__desc { font: 400 12.5px/1.6 var(--bh-font); color: var(--bh-text-2); }

/* --- Adresy i makieta mapy ------------------------------------------------- */

.bh-ctwhere { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; align-items: start; }
.bh-ctwhere__eyebrow { display: block; font-size: 11.5px; letter-spacing: .1em; margin: 0 0 12px; }
.bh-ctwhere__title {
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 16px;
  max-width: 16ch;
}
.bh-ctwhere__lead {
  font: 400 14.5px/1.65 var(--bh-font);
  color: var(--bh-text-2);
  margin: 0 0 22px;
  max-width: 40ch;
}

.bh-ctlocs { display: flex; flex-direction: column; gap: 10px; }

.bh-ctloc {
  display: block;
  width: 100%;
  text-align: start;
  cursor: pointer;
  background: var(--bh-surface);
  border: 1.5px solid var(--bh-border-strong);
  border-radius: var(--bh-r-lg);
  padding: 18px 20px;
  transition: background var(--bh-t-base), border-color var(--bh-t-base), color var(--bh-t-base);
}
.bh-ctloc:hover { border-color: var(--bh-accent); }
.bh-ctloc.is-active { background: var(--bh-ink); border-color: var(--bh-ink); }

.bh-ctloc__tag {
  display: block;
  font: 600 10.5px/1 var(--bh-font);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bh-text-4);
  margin: 0 0 9px;
}
.bh-ctloc__name { display: block; font: 700 16px/1.2 var(--bh-font); color: var(--bh-ink); margin: 0 0 6px; }
.bh-ctloc__addr { display: block; font: 400 12.5px/1.5 var(--bh-font); color: var(--bh-text-4); }
.bh-ctloc.is-active .bh-ctloc__name { color: #fff; }
.bh-ctloc.is-active .bh-ctloc__tag,
.bh-ctloc.is-active .bh-ctloc__addr { color: #8FA0AC; }

.bh-ctmap {
  background: var(--bh-surface);
  border: 1px solid var(--bh-border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--bh-shadow-panel);
}

.bh-ctmap__canvas {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #EEF2F4;
  background-image:
    linear-gradient(rgba(12, 26, 34, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 26, 34, .055) 1px, transparent 1px);
  background-size: 44px 44px;
}

.bh-ctmap__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  font: 700 10.5px/1 var(--bh-font);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bh-ink);
  background: var(--bh-accent);
  padding: 9px 11px;
  border-radius: var(--bh-pill);
}

/* Prawdziwa mapa wchodzi pod pinezkę i wypełnia kadr z prototypu. Siatka
   makiety i podpis „miejsce na mapę" schodzą wtedy z drogi, reszta zostaje. */
.bh-ctmap__live {
  position: absolute;
  inset: 0;
}
.bh-ctmap__canvas.is-live { background-image: none; }
.bh-ctmap__canvas.is-live .bh-ctmap__hint { display: none; }
.bh-ctmap__canvas.is-live .bh-ctmap__badge { z-index: 2; }

/* Nad mapą, ale bez łapania kliknięć — przeciąganie ma trafiać do mapy. */
.bh-ctmap__canvas.is-live .bh-ctmap__pin,
.bh-ctmap__canvas.is-live .bh-ctmap__label {
  z-index: 2;
  pointer-events: none;
}

/* Pinezka i jej podpis jadą po makiecie przy zmianie adresu. */
.bh-ctmap__pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  transition: left .4s, top .4s;
}
.bh-ctmap__head {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50% 50% 50% 0;
  background: var(--bh-ink);
  transform: rotate(-45deg);
  box-shadow: 0 10px 22px -8px rgba(12, 26, 34, .6);
}
.bh-ctmap__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bh-accent);
  transform: rotate(45deg);
}
.bh-ctmap__label {
  position: absolute;
  transform: translate(-50%, 10px);
  white-space: nowrap;
  font: 700 11.5px/1 var(--bh-font);
  color: var(--bh-ink);
  background: var(--bh-surface);
  padding: 8px 11px;
  border-radius: var(--bh-pill);
  box-shadow: 0 6px 16px -8px rgba(12, 26, 34, .4);
  transition: left .4s, top .4s;
}
.bh-ctmap__hint {
  position: absolute;
  right: 18px;
  bottom: 18px;
  font: 500 11px/1.4 var(--bh-font);
  color: var(--bh-text-4);
  background: rgba(255, 255, 255, .86);
  padding: 10px 13px;
  border-radius: var(--bh-r-md);
}

.bh-ctmap__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 28px;
}
.bh-ctmap__text { min-width: 0; }
.bh-ctmap__addr { font: 700 17px/1.25 var(--bh-font); margin: 0 0 6px; }
.bh-ctmap__post { font: 400 13px/1.5 var(--bh-font); color: var(--bh-text-2); margin: 0 0 8px; }
.bh-ctmap__note { font: 400 12.5px/1.55 var(--bh-font); color: var(--bh-text-4); max-width: 52ch; }
.bh-ctmap__cta {
  flex: none;
  font: 700 13.5px/1 var(--bh-font);
  color: var(--bh-ink);
  background: var(--bh-accent);
  padding: 15px 20px;
  border-radius: var(--bh-pill);
  transition: filter var(--bh-t-fast);
}
.bh-ctmap__cta:hover { filter: brightness(.94); color: var(--bh-ink); }

/* --- Pas „Wolisz najpierw poczytać?" -------------------------------------- */

.bh-ctcta { padding: 72px var(--bh-pad-x) 76px; }
.bh-ctcta__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--bh-ink);
  border-radius: 24px;
  padding: 32px 34px;
}
.bh-ctcta__text { min-width: 0; }
.bh-ctcta__title {
  font: 800 22px/1.15 var(--bh-font);
  letter-spacing: -.026em;
  color: #fff;
  margin: 0 0 8px;
}
.bh-ctcta__desc { font: 400 13.5px/1.6 var(--bh-font); color: #8FA0AC; max-width: 62ch; }
.bh-ctcta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.bh-ctcta__actions .bh-btn { font-size: 14px; padding: 16px 22px; }
.bh-ctcta__actions .bh-btn--on-dark { padding: 15px 22px; }

/* --- Progi ---------------------------------------------------------------- */

@media (max-width: 1100px) {
  .bh-cthero { padding-block: 72px 80px; }
  .bh-cthero__grid { gap: 40px; }
  .bh-cthero__title { font-size: 44px; }
  .bh-ctbar__title { font-size: 30px; }
  .bh-ctwhere { gap: 24px; }
}

@media (max-width: 860px) {
  .bh-cthero__grid,
  .bh-contact,
  .bh-ctwhere { grid-template-columns: minmax(0, 1fr); }

  .bh-cthero__grid { gap: 32px; }
  .bh-contact,
  .bh-ctwhere { gap: 20px; }

  .bh-cthero { padding-block: 56px 64px; }
  .bh-ctpeople { padding-block: 56px; }
  .bh-ctsection { padding-top: 56px; }
  .bh-ctcta { padding-block: 56px 64px; }

  .bh-cthero__title { font-size: 36px; }
  .bh-ctbar { display: block; }
  .bh-ctbar__title { font-size: 27px; margin: 0 0 14px; }
  .bh-ctbar__lead { max-width: none; }

  .bh-ctsteps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  /* Trzy kadry w tle hero nie mają na telefonie sensu — zostaje środkowy. */
  .bh-cthero__photos { grid-template-columns: minmax(0, 1fr); }
  .bh-cthero__frame:first-child,
  .bh-cthero__frame:last-child { display: none; }

  .bh-cthero__title { font-size: 32px; }
  .bh-cthero__lead { font-size: 14.5px; }
  .bh-ctquick { padding: 22px 20px 20px; }

  .bh-contactcard--page { padding: 26px 22px 24px; }
  .bh-contactcard--page .bh-contactcard__head { gap: 14px; }
  .bh-contactcard--page .bh-contactcard__photo,
  .bh-contactcard--page .bh-contactcard__spark { width: 60px; height: 60px; }
  .bh-contactcard--page .bh-contactcard__name { font-size: 21px; }

  /* Na wąskim kadrze pinezka (31% / 26%) wchodzi na plakietkę z nazwą, więc
     plakietka schodzi na dół, a podpis makiety idzie na jej miejsce. */
  .bh-ctmap__badge { top: auto; bottom: 18px; left: 18px; }
  .bh-ctmap__hint { top: 18px; bottom: auto; }

  .bh-ctmap__foot { padding: 20px 22px; }
  .bh-ctmap__cta { width: 100%; text-align: center; }
  .bh-ctcta__card { padding: 26px 22px; }
  .bh-ctcta__actions .bh-btn { width: 100%; }
}
