/* ==========================================================================
   GLOBALNE STYLE - nowa podstrona (RzeszówPodkarpackie.com)
   Bazuje na dwóch istniejących arkuszach:
   - rozklady-jazdy.css (system tokenów, karty, tabele, formularze)
   - style.css (nagłówek, siatka miast, stopka, sekcja SEO)
   Scalone w jeden spójny, ogólnego przeznaczenia szkielet stylów.

   Czcionki (wklej w <head>):
   <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap" rel="stylesheet">
   ========================================================================== */

/* ---------- Reset i tokeny ---------- */
:root {
  /* Kolory podstawowe */
  --navy: #12305A;
  --navy-dark: #0C2242;
  --bg: #fbfbfb;
  --surface: #FFFFFF;
  --surface-2: #F8F9FB;
  --line: #D3DAE3;
  --line-soft: #E6EAF0;
  --field: #9AA6B8;

  /* Tekst */
  --ink: #15233B;
  --ink-2: #344054;
  --soft: #475467;

  /* Akcenty */
  --accent: #B4610E;
  --focus: #2F6FED;

  /* Komunikaty */
  --info-bg: #EAF1FB;
  --info-line: #BFD3F5;
  --err-bg: #FDECEC;
  --err-ink: #8A1C1C;

  /* Kształt */
  --radius: 8px;
  --radius-s: 6px;
  --max-w: 1280px;

  /* Typografia */
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}


/*
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px;
}
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }

a { color: var(--navy); text-decoration: none; text-underline-offset: 2px; }
a:hover { color: var(--accent); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(26px, 3.2vw, 38px); }
h2 { font-size: clamp(22px, 2.2vw, 26px); }
h3 { font-size: 18px; font-weight: 600; }
*/


/* ---------- Narzędzia / utility ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 50px 24px; }
@media(max-width:768px){
 .wrap { padding: 40px 16px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--soft); }
.small { font-size: 14px; }
.text-right { text-align: right; }
.num { text-align: right; white-space: nowrap; font-family: var(--font-mono); }
.mt { margin-top: 24px !important; }

/* ---------- Nagłówek serwisu ---------- */
.site-header { background: var(--navy-dark); color: #fff; padding: 0.9rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .logo {
  font-weight: 700; font-size: 1.2rem; color: #fff;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.main-nav { display: flex; gap: 1.25rem; }
.main-nav a { color: #fff; opacity: 0.9; font-weight: 500; }
.main-nav a:hover { opacity: 1; text-decoration: none; }

/* ---------- Okruszki (breadcrumbs) ---------- */
.breadcrumbs { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 14px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; color: var(--soft); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 8px; color: var(--soft); }
.breadcrumbs li[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Nagłówek strony ---------- */
.pagehead { background: var(--surface); border-bottom: 1px solid var(--line); padding: 32px 0 40px; }
.pagehead h1 { margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--soft); max-width: 60ch; }
.meta { display: flex; flex-wrap: wrap; margin-top: 24px; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); font-size: 14px; }
.meta > div { padding: 10px 20px; border-right: 1px solid var(--line); }
.meta > div:last-child { border-right: 0; }
.meta dt { color: var(--soft); }
.meta dd { font-weight: 600; margin-top: 2px; }

/* ---------- Kontener główny ---------- */
.page-content { padding: 2.5rem 0 3.5rem; min-height: 60vh; }
.layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.main-col, .aside-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ---------- Karty ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card__title { padding: 22px 28px 0; font-size: 20px; font-weight: 600; }
.card__body { padding: 24px 28px; }
.box { padding: 22px 24px; }
.box__title { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
.box--info { background: var(--info-bg); border-color: var(--info-line); }

/* ---------- Komunikaty ---------- */
.alert { margin-top: 24px; padding: 14px 18px; border-radius: var(--radius-s); }
.alert--error { background: var(--err-bg); color: var(--err-ink); border: 1px solid #F1B8B8; }
.notice { background: #FFF7E8; border: 1px solid #F3D896; color: #6B4A00; padding: 0.9rem 1rem; border-radius: var(--radius); max-width: 65ch; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 32px; border: 0; border-radius: var(--radius-s); cursor: pointer;
  background: var(--navy); color: #fff !important; font: inherit; font-size: 17px; font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--navy-dark); text-decoration: none; }
.btn--ghost { min-height: 40px; padding: 0 16px; font-size: 15px; background: transparent; color: var(--navy) !important; border: 1.5px solid var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff !important; }

/* ---------- Formularze ---------- */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.hint { font-size: 14px; color: var(--soft); }
.input {
  height: 52px; width: 100%; padding: 0 16px; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--field); border-radius: var(--radius-s);
}
.input:focus { border-color: var(--navy); outline: 3px solid var(--info-line); outline-offset: 0; }

/* ---------- Zakładki ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; white-space: nowrap;
  border: 1px solid transparent; border-top: 3px solid transparent; border-radius: 6px 6px 0 0;
  font-weight: 500; color: var(--soft) !important;
}
.tab:hover { color: var(--navy) !important; text-decoration: none; }
.tab[aria-selected="true"] {
  margin-bottom: -1px; background: var(--surface); color: var(--navy) !important; font-weight: 600;
  border-color: var(--line); border-bottom-color: var(--surface); border-top-color: var(--navy);
}

/* ---------- Siatka miast / kart odnośników ---------- */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.city-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.city-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(18, 48, 90, 0.12); border-color: var(--navy); text-decoration: none; }
.city-card h2 { font-size: 1.3rem; margin: 0; }
.city-card__cta { color: var(--navy); font-weight: 600; }

/* ---------- Tabele ---------- */
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--surface); }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: middle; }
.table thead th { font-size: 13px; font-weight: 600; color: var(--soft); letter-spacing: 0.02em; background: var(--surface-2); }
.table tbody tr { border-top: 1px solid var(--line-soft); }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; }

/* ---------- Odznaki / chipy ---------- */
.badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 3px 9px;
  font-family: var(--font-mono); font-weight: 600; font-size: 15px; border-radius: 4px;
  background: var(--navy); color: #fff; border: 1.5px solid var(--navy);
}
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; font-size: 14px; text-decoration: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; }
.chip:hover { border-color: var(--navy); text-decoration: none; }

/* ---------- Sekcje treści / FAQ ---------- */
.section { padding-top: 56px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; padding-bottom: 12px; margin-bottom: 24px; border-bottom: 2px solid var(--navy); }
.intro { margin: -8px 0 20px; color: var(--soft); max-width: 70ch; }
.prose p { color: var(--ink-2); line-height: 1.65; margin-bottom: 14px; }
.prose h3 { margin-top: 24px; margin-bottom: 12px; }

.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--navy); font-size: 22px; line-height: 1; transition: transform 0.15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--soft); }

/* ---------- Stopka ---------- */
.site-footer { background: var(--navy-dark); color: #C9D6D8; padding: 1.5rem 0; font-size: 0.85rem; margin-top: 3rem; }
.site-footer .attribution { margin: 0 0 0.5rem; opacity: 0.85; }
.site-footer a { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Telefon ---------- */
@media (max-width: 640px) {
 
  .pagehead { padding: 20px 0 28px; }
  .lead { font-size: 16px; }
  .meta { flex-direction: column; width: 100%; }
  .meta > div { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; }
  .meta > div:last-child { border-bottom: 0; }
  .layout { gap: 16px; }
  .card__title, .card__body { padding-left: 16px; padding-right: 16px; }
  .btn { width: 100%; }
  .btn--ghost { width: auto; }
  .table { font-size: 15px; }
  .table th, .table td { padding: 10px 8px; }
  .section { padding-top: 40px; }
}



/* instytucje/index.css - landing /instytucje/ */

.ih-crumbs {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}
.ih-crumbs a {
  color: #666;
  text-decoration: none;
}
.ih-crumbs a:hover {
  text-decoration: underline;
}
.ih-crumbs span {
  margin: 0 6px;
}
.ih-crumbs__current {
  color: #222;
  font-weight: 500;
}

.ih-head {
  margin-bottom: 32px;
}
.ih-h1 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 10px;
  color: #1a1a1a;
}
.ih-lead {
  font-size: 17px;
  color: #555;
  max-width: 640px;
  margin: 0;
  line-height: 1.5;
}

.ih-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.ih-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
}


.ih-catcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ih-catcard:hover {
  border-color: #c7c7c7;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.ih-catcard:hover {
  border-color: #c7c7c7;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
  text-decoration: none;
}

.ih-catcard:hover .ih-h2 {
  text-decoration: underline;
}

.ih-catcard .ih-h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: #1a1a1a;
}

.ih-catcard p {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.45;
  flex-grow: 1;
}

.ih-badge {
  align-self: flex-start;
  background: #eef2ff;
  color: #3b4fc4;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

@media (max-width: 480px) {
  .ih-h1 {
    font-size: 24px;
  }
  .ih-cats {
    grid-template-columns: 1fr;
  }
}