/* HaloLokale — sekcje strony głównej. Ładowane po kit.css. */

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background-color: var(--night);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/hero-lokal.jpg');
  background-image: image-set(
    url('../assets/img/hero-lokal.webp') type('image/webp'),
    url('../assets/img/hero-lokal.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center 30%;
  z-index: -2;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(2, 30, 26, .72) 0%,
    rgba(2, 30, 26, .38) 26%,
    rgba(2, 40, 34, .42) 68%,
    rgba(2, 59, 50, .82) 100%);
}
/* Nagłówek nakłada się na hero, więc treść startuje niżej. */
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  align-items: end;
  /* Tylko pion — boczny padding przychodzi z .wrap, a skrót `padding`
     wyzerowałby go i tekst dotykałby krawędzi ekranu. */
  padding-top: 146px;
}
.hero__copy { padding-bottom: 64px; }
.hero__badge {
  margin: 0 0 var(--flow-eyebrow);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero h1 { color: #fff; }
.hero__lead { color: #fff; margin: 0 0 var(--sp-6); max-width: 520px; font-size: var(--fs-lead); line-height: var(--lh-body); }
.hero__actions { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.hero__trust {
  display: flex;
  gap: 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  flex-wrap: wrap;
  align-items: center;
}
.hero__trust .sep { opacity: .5; }
.hero__figure { position: relative; align-self: end; }
.hero__figure img {
  width: 100%;
  height: auto;
  max-width: 462px;
  display: block;
  margin-left: auto;
  filter: var(--shadow-cut);
}

@media (max-width: 900px) {
  /* 44 px na dole kasuje ujemny margines wycinanki — postać kończy się
     dokładnie na szwie hero/oferty, tak jak na makiecie mobilnej. */
  .hero__in { grid-template-columns: 1fr; padding-top: 126px; padding-bottom: 44px; gap: 0; }
  .hero__copy { padding-bottom: 20px; }
  .hero__lead { max-width: none; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__trust { flex-direction: column; align-items: flex-start; gap: 7px; font-size: 13.5px; }
  .hero__trust .sep { display: none; }
  .hero__figure img { max-width: 300px; width: 82%; margin: 4px auto -44px; }
}

/* ============================================================
   OFERTY
   ============================================================ */
.offers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ocard { overflow: hidden; }
.ocard__ph { height: 150px; }
.ocard__b { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ocard__kind {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .05em;
  color: var(--accent);
  text-transform: uppercase;
}
.ocard__t { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.25; color: var(--ink-900); margin: 0; }
.ocard__meta { font-size: 13.5px; color: var(--fg2); margin-top: auto; }
.ocard__price { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--brand); margin-top: 4px; }

@media (max-width: 1000px) { .offers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  /* Na telefonie karty jadą poziomym swipe'em — tak jak w makiecie mobilnej. */
  .offers {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 6px;
  }
  .offers::-webkit-scrollbar { display: none; }
  .offers > * { flex: 0 0 250px; scroll-snap-align: start; }
  .ocard__ph { height: 132px; }
}

/* ============================================================
   KATEGORIE
   ============================================================ */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cat__icon {
  height: 64px;
  border-radius: var(--r-xs);
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.cat__icon svg { width: 28px; height: 28px; stroke-width: 1.6; }
.cat__name { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; line-height: 1.2; color: inherit; }
.cat:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.cat:hover .cat__icon { background: rgba(255, 255, 255, .14); color: var(--amber-500); }

.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.size {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  transition: border-color var(--dur) var(--ease);
}
.size:hover { border-color: var(--brand); }
.size__name { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ink-900); }

.bigtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.bigtile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  transition: transform var(--dur) var(--ease);
}
.bigtile:hover { transform: translateY(-2px); }
.bigtile--rent { background: var(--brand); }
.bigtile--sale { background: var(--ink-900); }
.bigtile .arrow { font-size: 22px; line-height: 1; }

@media (max-width: 1000px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) {
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat { padding: 12px; }
  .cat__icon { height: 56px; }
  .sizes { grid-template-columns: 1fr; }
  .bigtiles { grid-template-columns: 1fr; }
  .bigtile { font-size: 18px; padding: 18px 20px; }
}

/* ============================================================
   DWIE ŚCIEŻKI — masz lokal / szukasz lokalu
   ============================================================ */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
.path > p:not(.eyebrow) { font-size: 15.5px; line-height: 1.55; color: var(--fg2); }
.path__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.path__list li { display: flex; gap: 11px; font-size: 15px; line-height: 1.45; color: var(--ink-900); }
.path__list svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 1px; }
.path__cta { display: flex; gap: 14px; align-items: center; margin-top: 26px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; }
  .path { padding: 24px 20px; }
  .path__cta { flex-direction: column; align-items: stretch; text-align: center; }
  .path__cta .link-muted { align-self: center; }
}

/* ============================================================
   O NAS
   ============================================================ */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.about > * { min-width: 0; }
.about__media {
  height: 180px;
  border-radius: var(--r-lg);
  background-image: url('../assets/img/o-nas-budynek.jpg');
  background-image: image-set(
    url('../assets/img/o-nas-budynek.webp') type('image/webp'),
    url('../assets/img/o-nas-budynek.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center;
}
.about .tabs--underline { margin-bottom: 22px; }
.about__body { font-size: 16.5px; line-height: var(--lh-prose); color: var(--ink-700); margin: 0 0 28px; }
.about__body[hidden] { display: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat { padding: 18px; background: var(--paper); border-radius: var(--r-lg); border-top: 3px solid var(--amber-500); }
.stat__n { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--brand); margin-bottom: 6px; }
.stat__d { font-size: 13.5px; color: var(--fg2); }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 20px; }
  .about__media { height: 150px; }
  .stats { grid-template-columns: 1fr; gap: 10px; }
  .stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 15px 16px;
    border-top: 0;
    border-left: 3px solid var(--amber-500);
  }
  .stat__n { font-size: 22px; margin-bottom: 0; }
}

/* ============================================================
   PASEK PARTNERSKI
   ============================================================ */
.partner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  /* Tylko pion — boczny padding przychodzi z .wrap, a skrót `padding`
     wyzerowałby go i tekst dotykałby krawędzi ekranu. */
  padding-top: 34px;
  padding-bottom: 34px;
}
.partner__t { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.2; color: var(--ink-900); margin-bottom: 6px; }
.partner__d { font-size: 14.5px; line-height: 1.5; color: var(--fg2); }
@media (max-width: 720px) {
  .partner { padding-top: 26px; padding-bottom: 26px; }
  .partner .btn { width: 100%; }
}

/* ============================================================
   FORMULARZ
   ============================================================ */
.leadform { display: grid; grid-template-columns: .78fr 1.22fr; gap: 44px; align-items: start; }
/* Element gridu ma domyślnie min-width:auto, więc rozciągnąłby się do pełnej
   szerokości pigułek zamiast pozwolić im się przewijać — i rozpychał stronę. */
.leadform > * { min-width: 0; }
.leadform__aside p:not(.eyebrow) { font-size: 15.5px; line-height: 1.55; color: var(--fg2); margin: 0; }
.callout {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--paper);
  border-radius: var(--r-lg);
}
.callout__label { font-size: 14px; color: var(--fg2); }
.callout__num {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--brand);
}
.leadform__panel {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 26px 26px 28px;
  background: var(--paper);
}
.leadform__pick { font-size: 13.5px; color: var(--fg2); margin-bottom: var(--flow-eyebrow); }
.leadform__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 22px; }
.leadform__grid .span-2 { grid-column: span 2; }
.leadform__grid .span-3 { grid-column: span 3; }
.leadform__grid .span-6 { grid-column: span 6; }
.leadform__submit { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.leadform__submit .note { font-size: 13.5px; color: var(--fg2); }
/* Pole-pułapka na boty — niewidoczne dla ludzi. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 960px) { .leadform { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 620px) {
  .leadform__panel { padding: 18px 16px 20px; }
  .leadform__grid { grid-template-columns: 1fr; gap: 12px; }
  .leadform__grid .span-2,
  .leadform__grid .span-3,
  .leadform__grid .span-6 { grid-column: span 1; }
  .leadform__submit { flex-direction: column; align-items: stretch; }
  .leadform__submit .btn { width: 100%; }
  .leadform__submit .note { text-align: center; }
  .callout { text-align: center; }
}

/* ============================================================
   SPOŁECZNOŚĆ
   ============================================================ */
.socials { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 16px; }
.fbcard {
  display: flex;
  flex-direction: column;
  background: var(--brand);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 24px 24px 22px;
  transition: transform var(--dur) var(--ease);
}
.fbcard:hover { transform: translateY(-2px); }
.fbcard__head { display: flex; align-items: center; gap: 11px; margin-bottom: var(--sp-4); }
.fbcard__mark {
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  background: var(--amber-500);
  color: var(--ink-900);
  display: flex; align-items: center; justify-content: center;
}
.fbcard__mark svg { width: 19px; height: 19px; }
.fbcard__tag { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--amber-500); }
.fbcard__t { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: var(--ls-h2); margin: 0 0 var(--flow-heading); }
.fbcard p { font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .78); margin: 0 0 var(--sp-5); }
.fbcard__cta {
  margin-top: auto;
  align-self: flex-start;
  background: var(--amber-500);
  color: var(--ink-900);
  padding: 13px 20px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

.socard { padding: 22px 20px; }
.socard__body { display: flex; flex-direction: column; flex: 1; }
.socard__mark {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  background: rgba(2, 59, 50, .08);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.socard__mark svg { width: 17px; height: 17px; }
.socard__mark { margin-bottom: 14px; }
.socard__t { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.2; color: var(--ink-900); margin: 0 0 3px; }
.socard__handle { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--accent); margin-bottom: var(--flow-heading); }
.socard p { font-size: 14px; line-height: 1.5; color: var(--fg2); margin: 0 0 var(--flow-text); }
.socard__cta { margin-top: auto; align-self: flex-start; }

@media (max-width: 1000px) { .socials { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .socials { grid-template-columns: 1fr; gap: 10px; }
  .fbcard__cta { align-self: stretch; text-align: center; }
  .socard { flex-direction: row; align-items: flex-start; gap: 12px; padding: 16px; }
  .socard__mark { width: 34px; height: 34px; flex: none; }
  .socard__body { display: flex; flex-direction: column; }
  .socard__mark { margin-bottom: 0; }
  .socard__t { font-size: 17px; }
  .socard__handle { margin-bottom: var(--sp-1); }
  .socard p { margin-bottom: 0; font-size: 13.5px; }
  .socard__cta { margin-top: 9px; }
}

/* ============================================================
   KOŃCOWE CTA
   ============================================================ */
.finale {
  background: var(--brand);
  color: #fff;
  padding: var(--sec-y) 0;
}
.finale__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.finale h2 { color: #fff; font-size: clamp(28px, 3.4vw, 38px); }
.finale p { font-size: 16px; color: rgba(255, 255, 255, .78); margin: 0; }
.finale__num {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--amber-500);
  color: var(--ink-900);
  padding: 19px 30px;
  border-radius: var(--r-lg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 24px);
  line-height: 1;
  transition: background var(--dur) var(--ease);
}
.finale__num:hover { background: var(--cta-hover); }
@media (max-width: 720px) {
  .finale__in { display: block; }
  .finale p { margin-bottom: 18px; }
  .finale__num { justify-content: center; padding: 18px 20px; }
}
