/* HaloLokale — globalny UI kit. Ładowany po colors_and_type.css. */

* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg1);
  -webkit-font-smoothing: antialiased;
  /* Siatka bezpieczeństwa, nie lekarstwo — element, który naprawdę rozpycha
     layout, i tak powiększy scrollWidth. Realny rozjazd napraw u źródła
     (najczęściej brakującym `min-width: 0` na elemencie gridu/flexa). */
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
/* Bez tego `display:flex` z .field/.filebox wygrywa z domyślnym [hidden]
   przeglądarki i ukryte pola formularza dalej byłyby widoczne. */
[hidden] { display: none !important; }
button { font-family: inherit; }
img { max-width: 100%; }

/* Dwa tapnięcia pod rząd to dla przeglądarki gest „przybliż". Chybiony tap
   w przycisk i poprawka mieszczą się w tym oknie, więc strona skacze w zoom.
   `manipulation` wyłącza sam gest; szczypanie dwoma palcami działa dalej,
   czyli powiększanie zostaje dostępne. */
a,
button,
label,
summary,
select,
input[type="checkbox"],
input[type="radio"],
input[type="file"],
input[type="submit"],
[role="tab"],
[role="button"] { touch-action: manipulation; }

:focus-visible { outline: 2px solid var(--amber-500); outline-offset: 3px; border-radius: 4px; }

/* Kolumna treści — 1200 px jak na makiecie, z bocznym oddechem */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

/* ============================================================
   PRZYCISKI
   ============================================================ */
.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1;
  border: 1.5px solid transparent;
  cursor: pointer;
  border-radius: var(--r-md);
  padding: 15px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--lg { font-size: 17px; padding: 17px 26px; }
.btn--sm { font-size: 14px; padding: 12px 18px; }
.btn--block { display: flex; width: 100%; }

/* Bursztyn — „Zadzwoń", najmocniejsza akcja */
.btn--cta { background: var(--cta); color: var(--cta-ink); }
.btn--cta:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn--cta:active { background: var(--cta-press); transform: none; }

/* Zieleń — akcje wtórne na jasnym tle */
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--green-600); transform: translateY(-1px); }
.btn--brand:active { background: var(--green-800); transform: none; }

/* Obrys zielony — „Wszystkie oferty", „Zostań partnerem" */
.btn--outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--outline:hover { background: var(--brand); color: #fff; }

/* Warianty na ciemnym tle (hero) */
.btn--glass {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  font-weight: 600;
}
.btn--glass:hover { background: rgba(255, 255, 255, .22); }

/* Link z bursztynowym podkreśleniem */
.link-underline {
  font-weight: 600;
  font-size: 14px;
  color: var(--brand);
  border-bottom: 2px solid var(--amber-500);
  padding-bottom: 3px;
  transition: color var(--dur) var(--ease);
}
.link-underline:hover { color: var(--green-500); }

.link-muted {
  font-weight: 500;
  font-size: 14px;
  color: var(--fg2);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
}
.link-muted:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* ============================================================
   NAGŁÓWEK
   ============================================================ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--green-700);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  transition: background var(--dur) var(--ease);
}
/* Na landingu nagłówek leży na zdjęciu hero — tło dokłada dopiero scroll. */
.hdr--overlay {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
}
.hdr--overlay.is-stuck {
  position: fixed;
  background: color-mix(in srgb, var(--green-700) 94%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(1, 37, 31, .25);
  animation: hdr-drop var(--dur) var(--ease);
}
@keyframes hdr-drop { from { transform: translateY(-100%); } to { transform: none; } }

.hdr__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.hdr__brand { display: flex; align-items: center; gap: 18px; }
.hdr__logo { display: flex; align-items: center; }
.hdr__logo img { height: 44px; width: auto; display: block; }
/* Opcja dla logo jednokolorowego wgranego w Kustomizatorze — logo marki
   jest dwukolorowe i tego filtra NIE potrzebuje. */
.hdr__logo img.is-mono,
.ftr__brand img.is-mono { filter: brightness(0) invert(1); }

/* Lockup „wspierane przez EM5" */
.em5-support {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .2);
  line-height: 1;
}
.em5-support__label {
  font-size: 10px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .7);
  white-space: nowrap;
}
.em5-support__logo { height: 13px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .85; }
.em5-support:hover { opacity: .8; }

.hdr__nav { display: flex; gap: 26px; }
.hdr__nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  padding: 6px 0;
  position: relative;
  white-space: nowrap;
}
.hdr__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--amber-500);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.hdr__nav a:hover::after,
.hdr__nav .current-menu-item > a::after { transform: none; }

.hdr__right { display: flex; align-items: center; gap: 10px; }
.hdr__phone {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--cta);
  color: var(--cta-ink);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--dur) var(--ease);
}
.hdr__phone:hover { background: var(--cta-hover); }
.hdr__phone .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-700); display: block; }

.hdr__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0 11px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.hdr__burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.hdr__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hdr__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  .hdr__nav { display: none; }
  .hdr__burger { display: flex; }
  .hdr__phone { padding: 0 14px; min-height: 44px; font-size: 13.5px; }
  .em5-support { padding-left: 12px; }
  .em5-support__label { display: none; }
}
@media (max-width: 430px) {
  /* Najciaśniejszy przypadek: numer zostaje, lockup EM5 schodzi ze sceny. */
  .hdr__in .em5-support { display: none; }
  .hdr__in { gap: 12px; }
  .hdr__logo img { height: 38px; }
}

/* Menu mobilne */
.mmenu {
  background: rgba(2, 30, 26, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  padding: 4px var(--gutter) 14px;
  display: flex;
  flex-direction: column;
}
.mmenu[hidden] { display: none; }
.mmenu a {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}
.mmenu a:last-child { border-bottom: 0; }
.mmenu .is-cta { color: var(--amber-500); font-weight: 700; }

/* ============================================================
   SEKCJE
   ============================================================ */
.sec { padding: var(--sec-y) 0; }
.sec--paper { background: var(--paper); }
.sec--white { background: var(--white); }
.sec--brand { background: var(--brand); color: #fff; }
.sec--hairline { border-top: 1px solid var(--border); }

.sec__head { margin: 0 0 var(--sp-5); }
.sec__head p:not(.eyebrow) { margin: 0; color: var(--fg2); font-size: var(--fs-lead); }
.sec__head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
/* Akapit stojący obok nagłówka, nie pod nim. */
.sec__head__aside { max-width: 430px; margin: 0; font-size: 15.5px; color: var(--fg2); }

/* ============================================================
   KARTY
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.card:hover,
article.card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Placeholder pod zdjęcie oferty — kreskowanie jak na makiecie */
.ph {
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, rgba(2, 59, 50, .10) 0 7px, rgba(2, 59, 50, 0) 7px 14px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.ph__label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: .06em;
  color: rgba(2, 59, 50, .62);
  background: rgba(255, 255, 255, .82);
  padding: 4px 6px;
  margin: 8px;
  border-radius: 3px;
}

/* ============================================================
   FORMULARZE
   ============================================================ */
.field { display: flex; flex-direction: column; }
.field > span,
.field > label {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--fg2);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-900);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-400); }
/* Safari na iOS sam przybliża stronę, gdy kursor wchodzi w pole mniejsze niż
   16 px — i nie cofa tego po wyjściu. Na ekranach dotykowych podbijamy. */
@media (pointer: coarse) {
  .field input,
  .field select,
  .field textarea { font-size: 16px; }
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg2);
}
.consent input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }

.filebox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 13.5px;
  color: var(--fg2);
  cursor: pointer;
  flex-wrap: wrap;
}
.filebox input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.filebox__btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(10, 106, 96, .09);
  padding: 7px 10px;
  border-radius: var(--r-xs);
  white-space: nowrap;
}
.filebox:hover .filebox__btn { background: rgba(10, 106, 96, .16); }

/* Komunikaty po wysłaniu formularza */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: var(--sp-4);
}
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice--ok { background: rgba(10, 106, 96, .1); border: 1px solid var(--green-200); color: var(--green-600); }
.notice--err { background: rgba(199, 30, 30, .07); border: 1px solid rgba(199, 30, 30, .25); color: #9a1c1c; }

/* Zakładki (pigułki) — „O nas", wybór typu zgłoszenia */
.tabs { display: flex; gap: 9px; flex-wrap: wrap; }
.tabs--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs--scroll::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  padding: 11px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--ink-900);
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tab:hover { border-color: var(--brand); }
.tab[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Zakładki podkreślane — wariant desktopowy sekcji „O nas" */
.tabs--underline { gap: 8px; border-bottom: 1px solid var(--border); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.tabs--underline::-webkit-scrollbar { display: none; }
.tabs--underline .tab {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  padding: 12px 16px;
  margin-bottom: -1px;
  font-family: var(--font-display);
  font-size: 15.5px;
  color: var(--ink-400);
}
.tabs--underline .tab[aria-selected="true"] { background: none; color: var(--brand); border-bottom-color: var(--brand); }

/* ============================================================
   STOPKA
   ============================================================ */
.ftr {
  background: var(--green-800);
  color: rgba(255, 255, 255, .7);
  padding: 36px 0 32px;
  font-size: 13.5px;
  line-height: 1.6;
}
.ftr__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  gap: 28px;
}
.ftr__brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.ftr__brand img.logo { height: 42px; width: auto; display: block; }
.ftr__brand .em5-support { padding-left: 0; border-left: 0; }
.ftr__brand .em5-support__label { display: inline; font-size: 10px; color: rgba(255, 255, 255, .5); }
.ftr__brand .em5-support__logo { height: 12px; opacity: .8; }
.ftr__about { margin: 0; max-width: 330px; color: rgba(255, 255, 255, .7); font-size: 13.5px; line-height: 1.6; }
.ftr__col h5 { color: #fff; font-weight: 600; font-size: 13.5px; }
.ftr__list { display: flex; flex-direction: column; gap: 5px; }
.ftr__list a, .ftr__list span { color: rgba(255, 255, 255, .7); }
.ftr__list a:hover { color: var(--amber-500); }
.ftr__bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
}
.ftr__bottom a:hover { color: var(--amber-500); }
.ftr__bottom .sep { margin: 0 6px; opacity: .5; }

@media (max-width: 900px) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__top { grid-template-columns: 1fr; gap: 22px; } }

/* ============================================================
   PASEK AKCJI NA MOBILE
   ============================================================ */
.actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: none;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.actionbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1;
}
.actionbar .ab-call { flex: 1.3; background: var(--brand); color: #fff; }
.actionbar .ab-call .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber-500); display: block; }
.actionbar .ab-add { flex: 1; background: var(--cta); color: var(--cta-ink); }
@media (max-width: 860px) {
  .actionbar { display: flex; }
  body.has-actionbar { padding-bottom: 74px; }
}

/* ============================================================
   POMOCNICZE
   ============================================================ */
.screen-reader-text {
  position: absolute !important;
  clip-path: inset(50%);
  width: 1px; height: 1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: #fff;
  color: var(--ink-900);
  padding: .5rem 1rem;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* Delikatne wejście sekcji przy scrollu */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

.latwm__toggle {
    border: none;
}

.latwm__current {
    display: none;
}

.latwm__caret {
    display: none;
}