/* ===========================================================
   SBM „Technika” — arkusz stylów
   Struktura: 1) fonty  2) tokeny  3) reset  4) elementy bazowe
   5) layout/siatka  6) komponenty  7) strony  8) media queries
   =========================================================== */

/* 1) Fonty (samodzielnie hostowane, bez CDN w czasie działania strony) */
@font-face {
  font-family: "Plex";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Plex";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plex-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plex-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Plex";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plex-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plex-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Plex";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plex-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/plex-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}

/* Newsreader — krój tytułowy (nagłówki), samodzielnie hostowany */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/news-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/news-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/news-400i-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/news-400i-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/news-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/news-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/news-500i-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/news-500i-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/news-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/news-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}

/* 2) Tokeny */
:root {
  --ink: #0b1730;
  --ink-soft: #435067;
  /* --ink-soft i --ink-faint dobrane tak, by dawały min. 7:1 (tekst, AAA)
     i --line-strong min. 3:1 (obramowania komponentów) na tle --paper/--panel — WCAG 2.2 */
  --ink-faint: #485064;
  --paper: #fbfaf7;
  --panel: #f1efe8;
  --teal: #2f6f62;
  --teal-dark: #234f45;
  --line: #ddd9cd;
  --line-strong: #8f8873;
  --white: #ffffff;

  --font: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Georgia", serif;
  --container: 1160px;
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}

/* 3) Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "tnum" 1, "lnum" 1;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }

:focus-visible {
  outline: 2.5px solid var(--teal);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* 4) Elementy bazowe */

/* Ukryte wizualnie, dostępne dla czytników ekranu (WCAG 2.4.1, 4.1.2) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Link „Przejdź do treści” — widoczny dopiero po wejściu fokusem (2.4.1 Bypass Blocks) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 16px;
}

/* Cel skoku (np. #main) nie powinien chować się pod stałym nagłówkiem po fokusie/nawigacji */
[id] {
  scroll-margin-top: calc(var(--header-h, 84px) + 16px);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.12;
}
h1 { font-size: clamp(2.4rem, 1.7rem + 3vw, 4.1rem); font-weight: 500; letter-spacing: -0.02em; margin-top: 16px; }
h2 { font-size: clamp(1.7rem, 1.4rem + 1.3vw, 2.4rem); margin-top: 14px; }
h3 { font-family: var(--font); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.005em; }

h1 em, h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}

.lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 62ch;
  margin-top: 16px;
}

p + p { margin-top: 1em; }

.mark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mark .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--ink-faint);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}
.mark .glyph {
  font-weight: 700;
  font-size: 1.05em;
}

a.link {
  color: var(--teal-dark);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s ease;
}
a.link:hover { text-decoration-color: currentColor; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px; /* jak ramka .tile-grid w sekcji "Strefa mieszkańca" */
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: #16244a; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); }
.btn-teal {
  background: var(--teal);
  color: var(--white);
}
.btn-teal:hover { background: var(--teal-dark); }

/* 5) Layout */
:root { --header-h: 84px; }

body { padding-top: var(--header-h); }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(251, 250, 247, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(11, 23, 48, 0.07);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--ink);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
/* Eyebrow z pełną nazwą prawną — ten sam wzorzec co .mark przed nagłówkami sekcji */
.brand-kicker {
  display: block;
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.3;
}
/* To, co ma być rozpoznawalne od razu: „Technika” — cudzysłów z oficjalnej nazwy
   potraktowany jako element graficzny zamiast osobnej plakietki/monogramu */
.brand-quoted {
  display: block;
  margin-top: 1px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}
.brand-quoted .qm {
  color: var(--teal);
  font-size: 1.35em;
  vertical-align: -0.12em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--teal);
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 9px 11px;
}
.nav-toggle svg { display: block; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-block: 72px 40px;
}
.footer-grid h3 {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 22px;
}
.footer-grid p, .footer-grid address { font-style: normal; color: var(--ink-soft); font-size: 0.94rem; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-links li { margin-bottom: 9px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.footer-bottom a { color: var(--ink-faint); }

/* 6) Komponenty ogólne */
.section { padding-block: 152px; }
.section-tinted { background: var(--panel); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.dotfield {
  --dot: rgba(47, 111, 98, 0.35);
  width: 148px;
  height: 96px;
  background-image: radial-gradient(var(--dot) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
}

/* Listy notatek/dokumentów — wspólny wzorzec dla ogłoszeń, aktów i poradników */
.notice-list { border-top: 1px solid var(--line); }
.notice-row {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
}
.notice-date {
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
  font-size: 0.92rem;
  padding-top: 3px;
}
.notice-body h3 { margin-bottom: 8px; }
.notice-body h3 a { text-decoration: none; }
.notice-body h3 a:hover { color: var(--teal-dark); }
.notice-body p { color: var(--ink-soft); max-width: 62ch; }
.notice-action { align-self: start; padding-top: 3px; white-space: nowrap; }

.doc-list { border-top: 1px solid var(--line); }
.doc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.doc-title { font-weight: 500; }
.doc-title .ext {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-faint);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 1px 6px;
  vertical-align: middle;
}
.doc-dl {
  text-decoration: none;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.doc-dl:hover { text-decoration: underline; }
.doc-group { margin-bottom: 64px; }
.doc-group:last-child { margin-bottom: 0; }
.doc-group-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.doc-group-title .num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--teal-dark);
  font-size: 1.4rem;
}

/* Karty proste (bez cieni) używane tylko tam, gdzie treść naprawdę jest równoległa/kafelkowa.
   Układ poziomy (ikona + tekst obok siebie) i zaokrąglony kontener z przegródką —
   nawiązuje do list dokumentów na innych podstronach, mniej pustej przestrzeni niż
   wcześniejszy układ z ikoną nad tekstem. */
.tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.tile {
  background: var(--paper);
  padding: 26px 30px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(47, 111, 98, 0.1);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.tile-body { flex: 1; min-width: 0; }
.tile h3 { margin-bottom: 6px; font-size: 1.1rem; }
.tile p { color: var(--ink-soft); max-width: 46ch; }
.tile .link { display: inline-block; margin-top: 16px; font-size: 0.92rem; }

/* Podgląd eBOK — makieta okna przeglądarki jako aktywny przycisk; po najechaniu lekko odsłania treść */
.ebok-window {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ebok-window:hover,
.ebok-window:focus-visible {
  border-color: var(--teal);
  box-shadow: 0 14px 32px -14px rgba(11, 23, 48, 0.28);
  transform: translateY(-2px);
}
.ebok-window:hover .ebok-skeleton-row,
.ebok-window:focus-visible .ebok-skeleton-row {
  filter: blur(1.5px);
  opacity: 0.85;
}
.ebok-window:hover .ebok-window-lock,
.ebok-window:focus-visible .ebok-window-lock {
  background: rgba(251, 250, 247, 0.4);
  color: var(--teal-dark);
}
.ebok-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.ebok-window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.ebok-window-url {
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.ebok-window-body {
  position: relative;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ebok-skeleton-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  filter: blur(3px);
  opacity: 0.7;
  transition: filter .2s ease, opacity .2s ease;
}
.ebok-skeleton-bar {
  display: block;
  height: 12px;
  border-radius: 3px;
  background: var(--line);
}
.ebok-skeleton-amount { background: var(--line-strong); }
.ebok-window-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(251, 250, 247, 0.55);
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  transition: background-color .2s ease, color .2s ease;
}
.ebok-window-lock svg { color: var(--teal-dark); }

/* Galeria */
.gallery-strip {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 460px;
}
.gallery-strip a:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.gallery-strip a:nth-child(2) { grid-column: 2; grid-row: 1; }
.gallery-strip a:nth-child(3) { grid-column: 2; grid-row: 2; }
.gallery-strip a:nth-child(4) { grid-column: 3; grid-row: 1; }
.gallery-strip a:nth-child(5) { grid-column: 3; grid-row: 2; }
.gallery-strip a { display: block; overflow: hidden; }
.gallery-strip img { height: 100%; width: 100%; object-fit: cover; }

.gallery-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.gallery-full figure { margin: 0; overflow: hidden; }
.gallery-full img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform .3s ease;
}
.gallery-full a:hover img { transform: scale(1.03); }
.gallery-group { margin-bottom: 68px; }
.gallery-group:last-child { margin-bottom: 0; }
.gallery-group-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; justify-content: space-between; flex-wrap: wrap; }
.gallery-group-head p { color: var(--ink-soft); margin: 0; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 23, 48, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox img { display: block; max-width: 100%; max-height: 80vh; margin-inline: auto; }
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  background: none;
  border: none;
  border-radius: var(--radius);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}
.lightbox figure {
  margin: 0;
  max-width: 100%;
  max-height: 90vh;
}
.lightbox-caption {
  display: block;
  margin-top: 10px;
  color: #cdd6e8;
  font-size: 0.85rem;
  text-align: center;
}

/* Tabela godzin / kontakt */
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td, .hours-table th { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.hours-table th { color: var(--ink-soft); font-weight: 400; text-align: left; }
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.contact-item { display: flex; gap: 16px; }
.contact-item svg { flex-shrink: 0; margin-top: 3px; color: var(--teal-dark); }
.contact-item h3 { font-size: 1.02rem; margin-bottom: 6px; }
.contact-item p, .contact-item a { color: var(--ink-soft); text-decoration: none; }
.contact-item a.link { color: var(--teal-dark); }

/* Hero — pełnoekranowe zdjęcie z ciemną nakładką, w duchu materiału referencyjnego */
.hero {
  position: relative;
  color: var(--white);
  min-height: 86vh;
  margin-top: calc(-1 * var(--header-h));
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../img/galeria/zdjecie-ewewacja-16.jpg");
  background-size: cover;
  background-position: center 65%;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(190deg, rgba(11,23,48,.25) 0%, rgba(11,23,48,.58) 48%, rgba(8,16,34,.94) 100%);
}
.hero-inner {
  padding-block: 160px 0;
  max-width: 62ch;
}
.hero .mark { color: #cdd6e8; }
.hero .mark .num { color: #8fa0c2; }
.hero h1 { color: var(--white); margin-bottom: 26px; margin-top: 18px; }
.hero h1 em { color: #aeb9cf; }
.hero .lede { color: #cdd6e8; max-width: 50ch; }
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  padding-block: 30px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-stat b {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.4rem;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hero-stat span { font-size: 0.82rem; color: #9fabc4; }

/* Kolumna czytelnego tekstu (np. treść ogłoszenia) — wyrównana do lewej
   krawędzi zwykłego .container, a nie centrowana osobno, żeby nie
   „uciekała” względem nagłówka strony nad nią */
.prose {
  max-width: 74ch;
}

/* Strona wewnętrzna: nagłówek */
.page-head {
  padding-block: 76px 48px;
  border-bottom: 1px solid var(--line);
}
.page-head .mark { margin-bottom: 16px; }
.page-head .lede { margin-top: 14px; }

/* Sekcja motywu treść+ilustracja (na dole strony głównej: dorobek remontowy) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
/* Wariant dla par kolumn o różnej wysokości (np. dwie tabele) —
   wyrównuje nagłówki do góry zamiast centrować całe bloki */
.split-top {
  align-items: start;
}

/* 8) Media queries */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px;
    gap: 18px;
  }
  .hero { min-height: 76vh; }
  .hero-inner { padding-block: 110px 0; }
  .hero-stats { gap: 28px; flex-wrap: wrap; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 44px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .tile-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 1.3fr 1fr 1fr; height: 620px; }
  .gallery-strip a:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .gallery-strip a:nth-child(2) { grid-column: 1; grid-row: 2; }
  .gallery-strip a:nth-child(3) { grid-column: 2; grid-row: 2; }
  .gallery-strip a:nth-child(4) { grid-column: 1; grid-row: 3; }
  .gallery-strip a:nth-child(5) { grid-column: 2; grid-row: 3; }
  .gallery-full { grid-template-columns: repeat(2, 1fr); }
  .notice-row { grid-template-columns: 1fr; gap: 8px; }
  .notice-action { padding-top: 4px; }
  .doc-row { grid-template-columns: 1fr; align-items: start; gap: 8px; }
  .section { padding-block: 88px; }
}

@media (max-width: 560px) {
  .gallery-full { grid-template-columns: 1fr 1fr; }
}
