
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

.ih {
  --ih-accent: #1E7B4F;        /* podmień na kolor serwisu */
  --ih-accent-dark: #145C3A;
  --ih-accent-soft: #E6F2EB;
  --ih-bg: #F5F6F1;
  --ih-card: #FFFFFF;
  --ih-ink: #15211B;
  --ih-text: #3D4842;
  --ih-muted: #5B665F;
  --ih-line: #E2E6DE;
  --ih-line-soft: #EEF1EB;
  --ih-yellow: #F2C230;
  --ih-yellow-soft: #FFF6D9;
  --ih-display: 'Bricolage Grotesque', Georgia, serif;

  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  color: var(--ih-ink);
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 64px 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-sizing: border-box;
}
.ih *, .ih *::before, .ih *::after { box-sizing: border-box; }
.ih a { color: var(--ih-accent); text-decoration: none; }
.ih a:hover { color: var(--ih-accent-dark); }
.ih ul { list-style: none; margin: 0; padding: 0; }

/* --- Ścieżka nawigacji --------------------------------------------------- */
.ih-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--ih-muted); }
.ih-crumbs a { color: var(--ih-muted); }
.ih-crumbs a:hover { color: var(--ih-ink); }
.ih-crumbs__current { color: var(--ih-ink); font-weight: 600; }

/* --- Nagłówek strony ----------------------------------------------------- */
.ih-head {
  background: var(--ih-card);
  border: 1px solid var(--ih-line);
  border-radius: 8px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.ih-head::after {           /* delikatny akcent w rogu */
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--ih-accent-soft);
  opacity: .6;
}
.ih-head > * { position: relative; }
.ih-h1 { margin: 0; font-family: var(--ih-display); font-size: 35px; line-height: 1.08; font-weight: 800; letter-spacing: -1px; }
.ih-lead { margin: 0; max-width: 62ch; font-size: 17px; line-height: 1.6; color: var(--ih-text); }
.ih-count {
  margin: 4px 0 0;
  align-self: flex-start;
  font-size: 14px;
  font-weight: 700;
  color: var(--ih-accent-dark);
  background: var(--ih-accent-soft);
  padding: 7px 14px;
  border-radius: 999px;
}

/* --- Układ dwukolumnowy -------------------------------------------------- */
.ih-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.ih-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.ih-sidebar { position: sticky; top: 24px; }

/* --- Sekcje z listą ------------------------------------------------------ */
.ih-section {
  background: var(--ih-card);
  border: 1px solid var(--ih-line);
  border-radius: 8px;
  padding: 16px 16px 8px;
}
.ih-h2 {
  margin: 0 0 0px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ih-display);
  font-size: 22px;
  font-weight: 700;
}
.ih-h2 a { color: var(--ih-ink); }
.ih-h2 a:hover { color: var(--ih-accent); }
.ih-h2--sm { font-size: 19px; margin-bottom: 14px; }
.ih-badge {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ih-accent-dark);
  background: var(--ih-accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ih-list { display: flex; flex-direction: column; }
.ih-item { border-bottom: 1px solid var(--ih-line-soft); }
.ih-item:last-child { border-bottom: 0; }
.ih-item > a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 44px 16px 16px;
  border-radius: 7px;
  color: var(--ih-ink);
  position: relative;
  transition: background .15s;
}
.ih-item > a::after {        /* strzałka */
  content: '›';
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  line-height: 1;
  color: var(--ih-muted);
  transition: transform .15s, color .15s;
}
.ih-item > a:hover { background: var(--ih-bg); color: var(--ih-ink); }
.ih-item > a:hover::after { color: var(--ih-accent); transform: translate(3px, -50%); }
.ih-item b { font-size: 16px; font-weight: 700; }
.ih-item span { font-size: 14px; color: var(--ih-muted); }

.ih-empty {
  background: var(--ih-yellow-soft);
  color: #4A3A0A;
  border-radius: 8px;
  padding: 24px;
  margin: 0;
  font-weight: 600;
}

/* --- Sidebar ------------------------------------------------------------- */
.ih-card {
  background: var(--ih-card);
  border: 1px solid var(--ih-line);
  border-radius: 8px;
  padding: 24px;
}
.ih-taglist { display: flex; flex-wrap: wrap; gap: 8px; }
.ih-taglist a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ih-bg);
  border: 1px solid var(--ih-line);
  color: var(--ih-text);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
.ih-taglist a:hover { background: var(--ih-accent-soft); border-color: var(--ih-accent); color: var(--ih-accent-dark); }
.ih-taglist a[aria-current="page"],
.ih-taglist .is-active a { background: var(--ih-accent); border-color: var(--ih-accent); color: #fff; }

/* --- Dostępność ---------------------------------------------------------- */
.ih a:focus-visible { outline: 3px solid var(--ih-accent); outline-offset: 2px; border-radius: 8px; }

/* --- Responsywność ------------------------------------------------------- */
@media (max-width: 1100px) {
  .ih { padding: 24px 32px 48px; }
  .ih-grid { grid-template-columns: minmax(0, 1fr); }
  .ih-sidebar { position: static; }
  .ih-head { padding: 32px; }
  .ih-h1 { font-size: 38px; }
}
@media (max-width: 760px) {
  .ih { padding: 16px 16px 40px; gap: 16px; }
  .ih-head { padding: 22px; border-radius: 8px; }
  .ih-head::after { display: none; }
  .ih-h1 { font-size: 30px; }
  .ih-lead { font-size: 15px; }
  .ih-section { padding: 18px; border-radius: 8px; }
  .ih-h2 { font-size: 22px; }
  .ih-item > a { padding: 14px 36px 14px 10px; }
  .ih-crumbs a:first-child, .ih-crumbs a:first-child + span { display: none; }
}


.ih-pagination{
  display: flex;
  align-items: center;
  gap: 20px;
}

.ih-pagination__list{
  display: flex;
  align-items: center;
  
  gap: 15px;
}


.ih-item a {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-direction: row;
}

.ih-item__logo {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: .15rem;
}

.ih-item__text {
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  .ih-item__logo {
    width: 32px;
    height: 32px;
  }
}



.ih-head__intro p {
  margin: .5rem 0 0;
}
.ih-lead.ih-head__intro > p:first-child { margin-top: 0; }
.ih-lead.ih-head__intro strong { color: var(--ih-ink); }

.ih-desc-full {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.ih-desc-full h2 {
  margin-top: 0;
}

/* Treść SEO pod listą – czytelna kolumna tekstu */
.ih-desc-full {
  max-width: 78ch;
  color: var(--ih-text);
  font-size: 16px;
  line-height: 1.7;
}
.ih-desc-full h2 {
  margin-bottom: 14px;
  font-family: var(--ih-display);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--ih-ink);
}
.ih-desc-full h3 {
  margin: 28px 0 8px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ih-ink);
}
.ih-desc-full p { margin: 0 0 14px; }
.ih-desc-full ul { margin: 0 0 16px; padding-left: 0; }
.ih-desc-full li { position: relative; margin: 0 0 6px; padding-left: 20px; }
.ih-desc-full li::before {
  content: '';
  position: absolute;
  left: 2px; top: .7em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ih-yellow);
}
.ih-desc-full strong { color: var(--ih-ink); }
@media (max-width: 760px) {
  .ih-desc-full { font-size: 15px; }
  .ih-desc-full h2 { font-size: 23px; }
  .ih-desc-full h3 { font-size: 17px; }
}


/* ==========================================================================
   Wyszukiwarka z podpowiedziami (/instytucje/poczta/)
   ========================================================================== */

.ih-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Nagłówek z wyszukiwarką nie może przycinać panelu podpowiedzi */
.ih-head--search { overflow: visible; z-index: 5; }
.ih-head--search::after {
  right: 0; top: 0;
  width: 200px; height: 200px;
  border-radius: 0 8px 0 100%;
}

.ih-search {
  position: relative;
  max-width: 782px;
  margin-top: 10px;
  scroll-margin-top: 16px;
}
.ih-search__form { position: relative; margin: 0; }

/* --- Pole ---------------------------------------------------------------- */
.ih-search__field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 64px;
  padding: 0 8px 0 20px;
  background: #fff;
  border: 1.5px solid #CFD6CA;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(21, 33, 27, .04), 0 10px 28px -16px rgba(21, 33, 27, .25);
  transition: border-color .15s, box-shadow .15s;
}
.ih-search__field:hover { border-color: #B5BFAF; }
.ih-search__field:focus-within {
  border-color: var(--ih-accent);
  box-shadow: 0 0 0 4px rgba(30, 123, 79, .14), 0 14px 34px -16px rgba(21, 33, 27, .3);
}
.ih-search__icon { flex-shrink: 0; color: var(--ih-muted); transition: color .15s; }
.ih-search__field:focus-within .ih-search__icon { color: var(--ih-accent); }

.ih-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 6px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--ih-ink);
  -webkit-appearance: none;
  appearance: none;
}
.ih-search__input::placeholder { color: #87918A; font-weight: 400; opacity: 1; }
.ih-search__input::-webkit-search-cancel-button,
.ih-search__input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.ih-search__input:focus-visible { outline: 0; }

.ih-search__clear {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ih-bg);
  color: var(--ih-muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ih-search__clear:hover { background: var(--ih-line); color: var(--ih-ink); }
.ih-search__clear[hidden] { display: none; }

.ih-search__kbd {
  display: none;
  place-items: center;
  flex-shrink: 0;
  min-width: 26px; height: 26px;
  margin-right: 4px;
  border: 1px solid var(--ih-line);
  border-bottom-width: 2px;
  border-radius: 6px;
  font: 600 13px/1 'Plus Jakarta Sans', sans-serif;
  color: var(--ih-muted);
  background: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .ih-search__kbd { display: grid; }
}
.ih-search.has-value .ih-search__kbd,
.ih-search__field:focus-within .ih-search__kbd { display: none; }

.ih-search__geo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--ih-accent-soft);
  color: var(--ih-accent-dark);
  font: 700 14px/1 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  transition: background .15s;
}
.ih-search__geo:hover { background: #D3E9DB; }
.ih-search__geo[hidden] { display: none; }
.ih-search__geo.is-busy svg { animation: ih-pulse 1s ease-in-out infinite; }
.ih-search__clear:focus-visible,
.ih-search__geo:focus-visible { outline: 3px solid var(--ih-accent); outline-offset: 2px; }

/* --- Panel podpowiedzi --------------------------------------------------- */
.ih-search__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--ih-line);
  border-radius: 14px;
  box-shadow: 0 28px 56px -20px rgba(21, 33, 27, .32), 0 2px 6px rgba(21, 33, 27, .06);
  overflow: hidden;
  transform-origin: top center;
  animation: ih-pop .16s ease-out;
}
.ih-search__panel[hidden] { display: none; }

.ih-search__list {
  max-height: min(460px, 62vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
}

.ih-search__foot {
  display: flex;
  gap: 18px;
  padding: 10px 16px;
  border-top: 1px solid var(--ih-line-soft);
  background: var(--ih-bg);
  font-size: 12px;
  color: var(--ih-muted);
}
.ih-search__foot kbd {
  display: inline-block;
  min-width: 20px;
  margin-right: 3px;
  padding: 2px 5px;
  border: 1px solid var(--ih-line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  font: 600 11px/1.2 'Plus Jakarta Sans', sans-serif;
  text-align: center;
  color: var(--ih-text);
}
@media (hover: none) { .ih-search__foot { display: none; } }

.ih-sug-group + .ih-sug-group {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--ih-line-soft);
}
.ih-sug-group__label {
  padding: 10px 12px 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ih-muted);
}

.ih .ih-sug {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ih-ink);
  scroll-margin: 6px;
  transition: background .1s;
}
.ih .ih-sug:hover { color: var(--ih-ink); }
.ih .ih-sug.is-active { background: var(--ih-bg); }
.ih .ih-sug.is-going { opacity: .55; }

.ih-sug__ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
}
.ih-sug--city .ih-sug__ico { background: var(--ih-accent-soft); color: var(--ih-accent); }
.ih-sug--post .ih-sug__ico { background: var(--ih-yellow-soft); color: #8A6500; }

.ih-sug__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ih-sug__txt b,
.ih-sug__txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ih-sug__txt b { font-size: 15px; font-weight: 600; }
.ih-sug__txt small { font-size: 13px; color: var(--ih-muted); }

.ih-sug mark {
  padding: 0;
  color: inherit;
  font-weight: 800;
  background: linear-gradient(transparent 62%, rgba(242, 194, 48, .55) 62%);
}
.ih-sug__txt small mark { color: var(--ih-ink); font-weight: 700; }

.ih-sug__go {
  flex-shrink: 0;
  display: grid;
  color: var(--ih-accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .12s, transform .12s;
}
.ih-sug.is-active .ih-sug__go { opacity: 1; transform: none; }

.ih-sug__dist {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--ih-accent-soft);
  color: var(--ih-accent-dark);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ih-sug-more { margin: 0; padding: 6px 12px 10px 66px; font-size: 13px; color: var(--ih-muted); }

/* stany: ładowanie, brak wyników, błąd, podpowiedź */
.ih-sug-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ih-text);
}
.ih-sug-status b { font-size: 15px; color: var(--ih-ink); }
.ih-sug-status--loading { flex-direction: row; align-items: center; gap: 10px; color: var(--ih-muted); }
.ih-sug-status__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ih-accent-soft);
  color: var(--ih-accent-dark);
  font: 700 14px/1 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
}
.ih-sug-status__btn:hover { background: #D3E9DB; }

.ih-spin {
  width: 16px; height: 16px;
  border: 2px solid var(--ih-line);
  border-top-color: var(--ih-accent);
  border-radius: 50%;
  animation: ih-spin .7s linear infinite;
}

/* --- Popularne miejscowości pod polem ----------------------------------- */
.ih-search__popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ih-muted);
}
.ih .ih-search__popular a {
  padding: 5px 12px;
  border: 1px solid var(--ih-line);
  border-radius: 999px;
  background: var(--ih-bg);
  color: var(--ih-text);
  font-weight: 600;
  transition: background .15s, border-color .15s, color .15s;
}
.ih .ih-search__popular a:hover { background: var(--ih-accent-soft); border-color: var(--ih-accent); color: var(--ih-accent-dark); }

@keyframes ih-pop  { from { opacity: 0; transform: translateY(-4px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes ih-spin { to { transform: rotate(360deg); } }
@keyframes ih-pulse { 50% { opacity: .35; } }

@media (max-width: 760px) {
  .ih-search { margin-top: 6px; }
  .ih-search__field { height: 56px; padding: 0 6px 0 14px; border-radius: 12px; }
  .ih-search__input { font-size: 16px; }              /* iOS nie powiększa strony przy fokusie */
  .ih-search__geo { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .ih-search__geo span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ih-search__panel { border-radius: 12px; }
  .ih-search__list { max-height: 55vh; }
  .ih .ih-sug { gap: 12px; padding: 10px 8px; }
  .ih-sug__ico { width: 36px; height: 36px; }
  .ih-sug-more { padding-left: 56px; }
  .ih-search__popular { flex-wrap: nowrap; overflow-x: auto; margin-right: -22px; padding-right: 22px; scrollbar-width: none; }
  .ih-search__popular::-webkit-scrollbar { display: none; }
  .ih-search__popular > * { flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ih-search__panel { animation: none; }
  .ih-spin { animation-duration: 1.6s; }
}