/* Warta Biuro Projektowe: paleta aubergine, lila i szałwia na papierze. Czołówka wyśrodkowana, sekcje numerowane. */
:root {
  --ink: #241A2B;
  --plum: #4B2A54;
  --mauve: #B79AC4;
  --sage: #7FA892;
  --paper: #F7F4FA;
  --mist: #E9E2F0;
  --serif: Charter, "Bitstream Charter", "Sitka Text", "Iowan Old Style", serif;
  --sans: Verdana, "DejaVu Sans", sans-serif;
  --gut: 16px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #F3EEF7; --plum: #C9B0DA; --mauve: #8E6E9E; --sage: #8DB9A0; --paper: #1B1421; --mist: #2B2033; }
}
:root[data-theme="dark"] { --ink: #F3EEF7; --plum: #C9B0DA; --mauve: #8E6E9E; --sage: #8DB9A0; --paper: #1B1421; --mist: #2B2033; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--plum); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.18; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pomin { position: absolute; left: var(--gut); top: -60px; background: var(--ink); color: var(--paper); padding: .5em 1em; z-index: 10; }
.pomin:focus { top: 8px; }

/* czołówka */
.czolo { border-bottom: 3px double var(--ink); background: var(--paper); }
.pasek-gora { display: flex; justify-content: space-between; gap: 1em; padding: .55em var(--gut); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--mauve); max-width: var(--max); margin: 0 auto; }
.godziny { color: var(--plum); }
.wiersz-logo { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gut); max-width: var(--max); margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.znak { width: 40px; height: 30px; }
.logo-tekst { display: flex; flex-direction: column; line-height: 1; }
.logo-tekst b { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; }
.logo-tekst small { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; margin-top: 4px; }
.mb { display: inline-flex; align-items: center; gap: 10px; background: none; border: 2px solid var(--ink); padding: .45em .9em; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.mb-kreski { width: 18px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.mb-kreski::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.mb[aria-expanded="true"] .mb-kreski { border-color: transparent; }
.menu { display: none; }
.menu.otwarte { display: block; border-top: 1px solid var(--mauve); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: .85em var(--gut); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--mist); }
.menu a[aria-current="page"] { color: var(--plum); font-weight: 700; }

/* przyciski, wspólne */
.przycisk { display: inline-block; background: var(--plum); color: var(--paper); padding: .75em 1.3em; text-decoration: none; font-weight: 700; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.przycisk:hover { background: var(--ink); color: var(--paper); }
.przycisk.drugi { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.przycisk.drugi:hover { background: var(--mist); color: var(--ink); }
.przyciski { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.kicker { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); margin-bottom: .8em; }
.kicker a { color: inherit; }
.lead { font-size: 1.12rem; max-width: 46em; }
.data { font-size: .85rem; color: var(--plum); margin-bottom: .4em; }
.etykieta { display: inline-block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: var(--mist); color: var(--plum); padding: .2em .55em; margin-bottom: .5em; }

/* strona główna: hero */
.hero { display: grid; gap: 28px; padding: 36px var(--gut) 28px; max-width: var(--max); margin: 0 auto; }
.hero-foto { margin: 0; position: relative; }
.hero-foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; outline: 1px solid var(--ink); outline-offset: 10px; }
.liczby { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); max-width: var(--max); margin-left: auto; margin-right: auto; }
.liczby li { padding: 18px var(--gut); border-right: 1px solid var(--mauve); }
.liczby li:nth-child(2n) { border-right: 0; }
.liczby li + li:nth-child(-n+2) { border-bottom: 1px solid var(--mauve); }
.liczby strong { display: block; font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--plum); }
.liczby span { font-size: .85rem; }

/* bloki numerowane */
.blok { max-width: var(--max); margin: 0 auto; padding: 48px var(--gut) 8px; }
.blok-glowa { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--mauve); margin-bottom: 26px; padding-bottom: 6px; }
.blok-glowa h2 { margin: 0; }
.num { font-family: var(--serif); font-size: 1rem; color: var(--sage); font-weight: 700; }

/* karuzela */
.slider { position: relative; }
.slider-okno { position: relative; background: var(--mist); }
.slajd { margin: 0; }
.slajd[hidden] { display: none; }
.slajd img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.slajd figcaption { padding: 18px var(--gut) 20px; background: var(--mist); display: grid; gap: 4px; }
.slajd figcaption strong { font-family: var(--serif); font-size: 1.35rem; }
.slider-pasek { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.strzalka { width: 46px; height: 46px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-size: 1.2rem; cursor: pointer; font: inherit; }
.strzalka:hover { background: var(--ink); color: var(--paper); }
.kropki { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.kropki button { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--plum); background: transparent; padding: 0; cursor: pointer; }
.kropki button[aria-current="true"] { background: var(--plum); }
.licznik { font-size: .85rem; white-space: nowrap; }
.podpowiedz { font-size: .8rem; color: var(--plum); margin-top: 10px; }

/* karty */
.karty-3, .karty-2 { display: grid; gap: 22px; }
.karta { border-top: 3px solid var(--plum); padding-top: 14px; }
.karta h3 a { color: var(--ink); text-decoration: none; }
.karta h3 a:hover { text-decoration: underline; }
.karta-foto img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 14px; }
.wiecej { font-weight: 700; }
.wezwanie { margin: 48px auto 0; max-width: var(--max); background: var(--plum); color: var(--paper); padding: 40px var(--gut); }
.wezwanie h2 { color: var(--paper); }
.wezwanie .przycisk { background: var(--paper); color: var(--ink); }
.wezwanie .przycisk:hover { background: var(--mist); }

/* podstrony */
.naglowek-strony { max-width: var(--max); margin: 0 auto; padding: 44px var(--gut) 18px; }
.szeroka-foto { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.szeroka-foto img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tekst { max-width: 44em; margin: 0 auto; padding: 0 var(--gut); }
.tekst h2 { margin-top: 1.6em; font-size: 1.35rem; }
.powrot { max-width: 44em; margin: 2em auto 0; padding: 0 var(--gut); }

ol.os-czasu { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--plum); }
.os-czasu li { padding: 0 0 22px 22px; position: relative; }
.os-czasu li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; background: var(--paper); border: 3px solid var(--sage); border-radius: 50%; }
.os-czasu time { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--plum); display: block; }
.ludzie { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.osoba { border: 1px solid var(--mauve); padding: 18px; background: var(--paper); }
.osoba strong { display: block; font-family: var(--serif); font-size: 1.2rem; }
.rola { display: block; font-size: .85rem; color: var(--plum); margin-bottom: .6em; }
.zasady { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.zasady li { padding: 14px 16px; background: var(--mist); }
.zasady strong { display: block; color: var(--plum); }

/* zakładki (usługi) */
.zakladki { }
.zak-lista { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 2px solid var(--ink); margin-bottom: 26px; }
.zak-lista button { font: inherit; font-size: .92rem; background: transparent; border: 0; padding: .7em .9em; color: var(--ink); cursor: pointer; border-bottom: 4px solid transparent; margin-bottom: -2px; }
.zak-lista button:hover { color: var(--plum); }
.zak-lista button[aria-selected="true"] { border-bottom-color: var(--plum); color: var(--plum); font-weight: 700; }
.panel { display: grid; gap: 24px; }
.panel[hidden] { display: none; }
.panel-foto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.punkty { list-style: square; }
.punkty li { margin-bottom: .4em; }
.etapy { list-style: none; padding: 0; margin: 0; counter-reset: etap; display: grid; gap: 14px; }
.etapy li { counter-increment: etap; padding: 18px 18px 18px 64px; background: var(--mist); position: relative; }
.etapy li::before { content: counter(etap); position: absolute; left: 18px; top: 16px; font-family: var(--serif); font-size: 1.8rem; color: var(--plum); font-weight: 700; }
.etapy h3 { font-size: 1.05rem; margin-bottom: .3em; }
.etapy p { margin: 0; }

/* realizacje i aktualności */
.siatka-real { list-style: none; padding: 0; margin: 0 auto; max-width: var(--max); padding: 0 var(--gut) 40px; display: grid; gap: 26px; }
.real figure { margin: 0; }
.real img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; margin-bottom: 12px; }
.real figcaption { display: grid; gap: 4px; }
.real figcaption strong { font-family: var(--serif); font-size: 1.25rem; }
.lista-newsow { list-style: none; padding: 0; margin: 0 auto; max-width: var(--max); padding: 0 var(--gut) 40px; display: grid; gap: 30px; }
.newsy img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 14px; }
.newsy h2 { font-size: 1.5rem; }
.newsy h2 a { color: var(--ink); }
.artykul .naglowek-strony { padding-bottom: 10px; }
.artykul .data { margin-bottom: .6em; }

/* kariera */
.stanowiska { display: grid; gap: 12px; }
.stan { border: 1px solid var(--mauve); background: var(--paper); }
.stan summary { cursor: pointer; padding: 18px var(--gut); font-family: var(--serif); font-size: 1.2rem; font-weight: 700; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.stan summary::-webkit-details-marker { display: none; }
.stan summary::after { content: "+"; font-family: var(--sans); font-size: 1.4rem; color: var(--plum); }
.stan[open] summary::after { content: "–"; }
.stan summary:hover { background: var(--mist); }
.stan-tresc { padding: 0 var(--gut) 18px; }
.tag { font: 400 .72rem var(--sans); text-transform: uppercase; letter-spacing: .08em; background: var(--plum); color: var(--paper); padding: .25em .6em; }

/* kontakt i formularz */
.kontakt-uklad { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 56px; display: grid; gap: 40px; }
.kontakt-dane address { font-style: normal; margin-bottom: 1em; }
.kontakt-dane a { color: var(--ink); }
.godz { font-size: .92rem; }
.kontakt-dane img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-top: 16px; }
.formularz { background: var(--mist); padding: 26px var(--gut); }
.formularz h2 { font-size: 1.5rem; }
.uwaga { font-size: .85rem; color: var(--plum); border-left: 3px solid var(--sage); padding-left: 10px; }
.pole { margin-bottom: 18px; }
.pole label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.pole input:not([type="checkbox"]), .pole select, .pole textarea { width: 100%; font: inherit; padding: .65em .75em; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 0; }
.pole-zgoda { display: flex; gap: 10px; align-items: flex-start; }
.pole-zgoda input { width: 20px; height: 20px; margin-top: 4px; flex: 0 0 auto; }
.pole-zgoda label { font-weight: 400; margin: 0; }
.wym { color: var(--plum); }
.pomoc { font-size: .8rem; color: var(--plum); margin: 4px 0 0; }
.blad { color: #8a1c3d; font-size: .85rem; margin: 6px 0 0; font-weight: 700; }
.pole input[aria-invalid="true"], .pole select[aria-invalid="true"], .pole textarea[aria-invalid="true"] { border-color: #8a1c3d; box-shadow: 0 0 0 2px #8a1c3d inset; }
.formularz button { cursor: pointer; }
.wynik { margin-top: 14px; font-weight: 700; color: var(--plum); }

/* stopka */
.stopka { margin-top: 56px; background: var(--ink); color: var(--paper); padding: 36px var(--gut) 24px; }
.stopka a { color: var(--paper); }
.stopka-siatka { max-width: var(--max); margin: 0 auto; display: grid; gap: 22px; }
.stopka-nazwa { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; margin-bottom: .4em; }
.stopka address { font-style: normal; font-size: .92rem; }
.stopka ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.demo { max-width: var(--max); margin: 26px auto 0; font-size: .82rem; color: var(--mauve); border-top: 1px solid var(--plum); padding-top: 14px; }
.prawa { max-width: var(--max); margin: 12px auto 0; font-size: .78rem; opacity: .85; }

/* szerokie ekrany */
@media (min-width: 720px) {
  .karty-3 { grid-template-columns: repeat(3, 1fr); }
  .karty-2 { grid-template-columns: repeat(2, 1fr); }
  .liczby { grid-template-columns: repeat(4, 1fr); }
  .liczby li { border-bottom: 0 !important; }
  .liczby li:nth-child(2n) { border-right: 1px solid var(--mauve); }
  .liczby li:last-child { border-right: 0; }
  .ludzie { grid-template-columns: repeat(2, 1fr); }
  .siatka-real { grid-template-columns: repeat(2, 1fr); }
  .real img { aspect-ratio: 3 / 2; }
  .kontakt-uklad { grid-template-columns: 1fr 1.3fr; align-items: start; }
  .stopka-siatka { grid-template-columns: 1fr auto; }
}
@media (min-width: 900px) {
  .pasek-gora { border-bottom: 0; }
  .wiersz-logo { padding-top: 22px; padding-bottom: 14px; justify-content: center; position: relative; }
  .logo { flex-direction: column; gap: 6px; text-align: center; }
  .logo-tekst { align-items: center; }
  .logo-tekst b { font-size: 3rem; letter-spacing: .01em; }
  .mb { display: none; }
  .menu { display: block; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .menu ul { display: flex; justify-content: center; flex-wrap: wrap; }
  .menu li + li { border-left: 1px solid var(--mauve); }
  .menu a { padding: .75em 1.15em; border: 0; font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; }
  .menu a:hover, .menu a[aria-current="page"] { background: var(--mist); }
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding-top: 56px; }
  .hero-foto img { aspect-ratio: 4 / 5; }
  .karty-3 { grid-template-columns: repeat(3, 1fr); }
  .panel { grid-template-columns: 1fr 1fr; align-items: center; }
  .panel[hidden] { display: none; }
  .slajd img { aspect-ratio: 2 / 1; }
  .szeroka-foto img { aspect-ratio: 21 / 8; }
  .newsy { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
  .newsy img { margin-bottom: 0; }
  .lista-newsow { gap: 44px; }
  .liczby { margin-top: 0; }
  .kontakt-uklad { grid-template-columns: 1fr 1.2fr; }
  .stopka-siatka { grid-template-columns: 1.4fr 1fr; }
}
@media (max-width: 899px) {
  .menu.otwarte { position: relative; }
  .menu.otwarte ul { background: var(--paper); }
}
@media (max-width: 374px) {
  .logo-tekst b { font-size: 1.5rem; }
  .liczby strong { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
