/* =====================================================================
   GESAnet – wspólne style strony (własny kod, bez Joomli i Gantry)
   Kolory i wymiary odtworzone ze strony gesanet.net (szablon z 2018 r.)
   ===================================================================== */

:root {
  --niebieski: #4e6fa5;        /* menu, przyciski, akcenty */
  --niebieski-ciemny: #354c71; /* najechanie na link */
  --niebieski-ramka: #3e5882;
  --link: #337ab7;
  --tekst: #333;
  --naglowki: #303030;
  --stopka-tlo: #eaeaea;
  --stopka-tekst: #a1a1a1;
  --pomaranczowy: #ff7900;
  --szerokosc: 1200px;
  --roboto: "Roboto", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--tekst);
  background-color: #fcfcfc;
  /* delikatny wzór w trójkąty (zamiast obrazka grid.png z szablonu) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' viewBox='0 0 56 48'%3E%3Cpath d='M0 0l28 24L56 0M0 48l28-24 28 24M0 0v48M56 0v48' fill='none' stroke='%23f1f1f1' stroke-width='1'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--link); text-decoration: none; transition: color .2s ease-out; }
a:hover, a:focus { color: var(--niebieski-ciemny); }
p { margin: 0 0 15px; }
ul, ol { margin: 0 0 10px 25px; padding: 0; }
table { border-collapse: collapse; border-spacing: 0; max-width: 100%; }
hr { margin: 20px 0; border: 0; border-top: 1px solid #eee; border-bottom: 1px solid #fff; }
sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; top: -.5em; }
button, input, select, textarea { font: inherit; }

h1, h2, h3, h4, h5, h6 {
  margin: 10px 0;
  font-family: var(--roboto);
  font-weight: 300;
  line-height: 1.25;
  color: var(--naglowki);
}
h1 { font-size: 260%; }
h2 { font-size: 200%; }
h3 { font-size: 175%; }
h4 { font-size: 130%; }
h5 { font-size: 110%; }
b, strong { font-weight: bold; }

.kontener { max-width: var(--szerokosc); margin: 0 auto; padding: 0; }

.ikona { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; fill: currentColor; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10001; }
.skip-link:focus { left: 10px; }

/* ------------------------------------------------------------------ */
/* Nagłówek                                                            */
/* ------------------------------------------------------------------ */
#naglowek { position: relative; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.1); z-index: 50; }

#typ-klienta { background: #f7f7f7; height: 24px; line-height: 24px; font-size: 14px; }
#typ-klienta .kontener { padding: 0 25px; }
.ibok { float: right; padding: 0 10px; }

#pasek-glowny .kontener { display: flex; align-items: center; min-height: 124px; padding-top: 10px; padding-bottom: 20px; }
#logo { display: block; flex: 0 0 auto; width: 280px; margin: 0 10px; line-height: 0; }
#logo img { width: 280px; height: auto; }
#menu-glowne { flex: 1 1 auto; margin: 0 10px; }

/* Menu – poziom 1 */
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu.l1 { display: flex; flex-wrap: wrap; font-weight: 500; }
.menu li { position: relative; border-left: 1px solid transparent; }
.menu .pozycja {
  display: block;
  font-family: var(--roboto);
  font-size: 13px;
  line-height: 21px;
  font-weight: 500;
  color: var(--niebieski);
  text-transform: uppercase;
  padding: 10px 20px;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  width: 100%;
}
.menu.l1 > li > .pozycja { font-size: 15px; line-height: 24px; padding-top: 16px; padding-bottom: 16px; }
.menu li.rodzic > .pozycja { padding-right: 25px; position: relative; }
.menu li.rodzic > .pozycja::after {
  content: ""; position: absolute; right: 12px; top: 50%; margin-top: -2px;
  border: 4px solid transparent; border-top: 5px solid currentColor; border-bottom: 0;
}
.menu li:hover, .menu li:focus-within, .menu li.otwarta, .menu li.aktywna { background: var(--niebieski); border-left-color: var(--niebieski-ramka); }
.menu li:hover > .pozycja, .menu li:focus-within > .pozycja, .menu li.otwarta > .pozycja, .menu li.aktywna > .pozycja { color: #fff; }

/* Rozwijane podmenu */
.menu .podmenu {
  position: absolute; left: -999em; top: 100%;
  width: 180px; padding: 3px; background: var(--niebieski);
  opacity: 0; transition: opacity .2s ease-out; z-index: 1000;
}
@media (hover: hover) { .menu li:hover > .podmenu { left: -1px; opacity: 1; } }
.menu li:focus-within > .podmenu, .menu li.otwarta > .podmenu { left: -1px; opacity: 1; }
.menu .podmenu li { border: 0; padding-top: 1px; }
.menu .podmenu .pozycja { color: #fff; }
.menu .podmenu li:hover, .menu .podmenu li:focus-within { background: var(--niebieski-ramka); border: 0; }
.menu .podmenu li.rodzic > .pozycja::after { border: 4px solid transparent; border-left: 5px solid #fff; border-right: 0; margin-top: -4px; }
/* trzeci poziom wysuwa się w prawo */
.menu .podmenu .podmenu { top: -3px; }
@media (hover: hover) { .menu .podmenu li:hover > .podmenu { left: 100%; } }
.menu .podmenu li:focus-within > .podmenu, .menu .podmenu li.otwarta > .podmenu { left: 100%; }

.menu-przelacznik { display: none; }

/* ------------------------------------------------------------------ */
/* Treść                                                               */
/* ------------------------------------------------------------------ */
main { display: block; padding-top: 30px; }
main::after { content: ""; display: block; max-width: calc(var(--szerokosc) - 20px); margin: 30px auto 0; border-bottom: 2px solid #d6d6d6; }
.tresc-artykulu { background: #fff; margin: 0 10px; padding: 10px 0 20px; min-height: 200px; }
.tresc-artykulu::after { content: ""; display: table; clear: both; }
.strona-glowna .tresc-artykulu { background: transparent; padding-top: 30px; }

/* Pokaz slajdów na stronie głównej */
.slajdy-sekcja { padding-top: 20px; }
.slajdy { position: relative; margin: 10px 10px 0; aspect-ratio: 2 / 1; overflow: hidden; background: #f3f3f3; }
.slajd { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; display: block; }
.slajd.aktywny { opacity: 1; z-index: 1; }
.slajd img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slajdy-kropki { display: flex; justify-content: flex-end; list-style: none; margin: 0 10px; padding: 0; height: 64px; align-items: center; }
.slajdy-kropki button {
  width: 16px; height: 16px; margin: 0 5px; padding: 0; border: 0; border-radius: 50%;
  background: #b7b7b7; cursor: pointer; position: relative;
}
.slajdy-kropki button[aria-current="true"]::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #434648; }
.slajdy-kropki button:hover { background: #a3a3a3; }

/* Kafelki usług na stronie głównej */
.row-flex-option { display: flex; flex-flow: row wrap; justify-content: space-around; margin-top: 3rem; }
.row-flex-option h3 { font-family: var(--roboto); font-weight: 300; font-size: 24.5px; line-height: 40px; color: var(--naglowki); text-align: center; margin: 10px 0; }
.row-flex-option h3::after { content: ""; display: block; width: 50px; height: 2px; background: var(--pomaranczowy); margin: 10px 0; }
.selectService a, .selectService a:hover { color: #000; text-decoration: none; }
.row-item { background: #fff; width: 250px; padding: 10px; margin: 10px 0; box-shadow: 0 0 20px 3px #6e6e6e; color: #000; }
.row-item .ikona { font-size: 56px; width: 60px; height: 56px; color: #000; vertical-align: top; }
.row-item .ikona + .ikona { margin-left: 4px; }

/* Siatka kolumn używana w treści artykułów (klasy jak w Bootstrap 3) */
.tresc-artykulu .container { width: 100%; max-width: 1170px; margin: 0 auto; padding: 0 15px; }
.row { margin-left: -15px; margin-right: -15px; }
.row::after, .container::after { content: ""; display: table; clear: both; }
[class*="col-xs-"], [class*="col-sm-"], [class*="col-md-"], [class*="col-lg-"] { position: relative; min-height: 1px; padding-left: 15px; padding-right: 15px; }
.col-xs-1{width:8.3333%}.col-xs-2{width:16.6667%}.col-xs-3{width:25%}.col-xs-4{width:33.3333%}.col-xs-5{width:41.6667%}.col-xs-6{width:50%}.col-xs-7{width:58.3333%}.col-xs-8{width:66.6667%}.col-xs-9{width:75%}.col-xs-10{width:83.3333%}.col-xs-11{width:91.6667%}.col-xs-12{width:100%}
[class*="col-xs-"] { float: left; }
@media (min-width: 768px) {
  [class*="col-sm-"] { float: left; }
  .col-sm-1{width:8.3333%}.col-sm-2{width:16.6667%}.col-sm-3{width:25%}.col-sm-4{width:33.3333%}.col-sm-5{width:41.6667%}.col-sm-6{width:50%}.col-sm-7{width:58.3333%}.col-sm-8{width:66.6667%}.col-sm-9{width:75%}.col-sm-10{width:83.3333%}.col-sm-11{width:91.6667%}.col-sm-12{width:100%}
}
@media (min-width: 992px) {
  [class*="col-md-"] { float: left; }
  .col-md-1{width:8.3333%}.col-md-2{width:16.6667%}.col-md-3{width:25%}.col-md-4{width:33.3333%}.col-md-5{width:41.6667%}.col-md-6{width:50%}.col-md-7{width:58.3333%}.col-md-8{width:66.6667%}.col-md-9{width:75%}.col-md-10{width:83.3333%}.col-md-11{width:91.6667%}.col-md-12{width:100%}
}

/* Przyciski (styl jak w szablonie) */
.btn {
  display: inline-block; padding: 4px 14px; margin-bottom: 0; font-size: 14px; line-height: 20px;
  text-align: center; vertical-align: middle; cursor: pointer; color: #333;
  background: linear-gradient(#fff, #e6e6e6); border: 1px solid #c5c5c5; border-radius: 4px;
}
.btn-group { position: relative; display: inline-block; font-size: 0; white-space: nowrap; vertical-align: middle; }
.btn-group > .btn { position: relative; border-radius: 0; font-size: 14px; }
.btn-group > .btn + .btn { margin-left: -1px; }
.btn-group > .btn:first-child { border-radius: 4px 0 0 4px; }
.btn-group > .btn:last-child { border-radius: 0 4px 4px 0; }
.btn-group .btn-primary-font { font-size: 1.2rem; }

/* ------------------------------------------------------------------ */
/* Stopka                                                              */
/* ------------------------------------------------------------------ */
#stopka { background: var(--stopka-tlo); color: var(--stopka-tekst); text-align: center; margin-top: 30px; }
.stopka-kolumny { display: flex; align-items: center; min-height: 217px; }
.stopka-kol { flex: 1 1 33.333%; margin: 10px; }
#stopka p { color: var(--stopka-tekst); margin: 0 0 15px; }
#stopka a { color: var(--niebieski); }
#stopka a:hover { color: var(--niebieski-ciemny); }

/* ------------------------------------------------------------------ */
/* Pływające elementy: Zadzwoń, dostępność, do góry                    */
/* ------------------------------------------------------------------ */
.boczne-przyciski { position: fixed; right: 0; top: 32%; margin: 0; padding: 0; list-style: none; z-index: 900; }
.boczne-przyciski li { margin: 2px 0; }
.boczne-przyciski a {
  display: flex; align-items: center; gap: 12px;
  width: 268px; padding: 10px; font-size: 16px; line-height: 20px; color: var(--niebieski);
  background: #fff; border: 1px solid #ddd; border-right: 0; border-radius: 4px 0 0 4px;
  transform: translateX(calc(100% - 46px)); transition: transform .3s ease;
  box-shadow: 0 0 4px rgba(0,0,0,.08);
}
.boczne-przyciski a:hover, .boczne-przyciski a:focus { transform: translateX(0); color: var(--niebieski); }
.boczne-przyciski .ikona { font-size: 2rem; width: 26px; height: 26px; color: #6596e2; flex: 0 0 26px; }

#dostepnosc { position: fixed; top: 0; right: 0; height: 100%; width: 0; z-index: 950; }
.dostepnosc-przelacznik {
  position: fixed; right: 0; top: 45%; width: 46px; height: 46px; padding: 0;
  background: transparent; border: 0; color: #000; cursor: pointer;
}
.dostepnosc-przelacznik .ikona { width: 34px; height: 34px; }
#dostepnosc-panel {
  position: fixed; top: 0; right: 0; height: 100%; width: 210px; padding: 20px 12px; overflow-y: auto;
  background: #fff; box-shadow: -2px 0 12px rgba(0,0,0,.25);
  transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
}
#dostepnosc.otwarty #dostepnosc-panel { transform: translateX(0); visibility: visible; }
#dostepnosc.otwarty .dostepnosc-przelacznik { right: 216px; }
#dostepnosc-panel button {
  display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 6px; padding: 8px 10px;
  font-size: 14px; text-align: left; color: #222; background: #f2f2f2; border: 1px solid #ddd; border-radius: 4px; cursor: pointer;
}
#dostepnosc-panel button:hover, #dostepnosc-panel button[aria-pressed="true"] { background: var(--niebieski); color: #fff; }
#dostepnosc-panel button.ukryty { display: none; }
#dostepnosc-panel hr { margin: 10px 0; }

#do-gory {
  position: fixed; left: 5px; bottom: 5px; width: 40px; height: 40px; padding: 0;
  background: var(--niebieski); color: #fff; border: 1px solid #dbdbdb; cursor: pointer; z-index: 100;
  opacity: 0; visibility: hidden; transition: opacity .3s;
}
#do-gory.widoczny { opacity: 1; visibility: visible; }
#do-gory .ikona { width: 22px; height: 22px; }

/* Informacja o cookies */
#cookies {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000;
  min-height: 100px; padding: 10px; text-align: center; color: #000;
  background: #fff; border-top: 1px solid #fff; box-shadow: 0 0 40px #444;
}
#cookies h2 { font-family: var(--roboto); font-size: 20px; font-weight: 700; line-height: 24px; color: #000; margin: 4px 0; }
#cookies p { margin: 4px 0; font-size: 14px; line-height: 1.2; }
.cookies-wiecej { background: none; border: 0; padding: 0; color: var(--link); font-weight: bold; text-decoration: underline; cursor: pointer; }
.cookies-akceptuj { width: 120px; height: 30px; margin: 5px auto 0; color: #fff; border: 0; border-radius: 3px; cursor: pointer; background: linear-gradient(#0089f2, #0072ca); }
#cookies-info { position: fixed; inset: 0; z-index: 9100; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
#cookies-info[hidden], #cookies[hidden] { display: none; }
.cookies-info-okno { position: relative; background: #fff; max-width: 760px; max-height: 85vh; overflow-y: auto; padding: 30px; text-align: justify; border-radius: 4px; }
.cookies-info-zamknij { position: absolute; top: 6px; right: 10px; font-size: 30px; line-height: 1; background: none; border: 0; cursor: pointer; }
.cookies-info-okno h2 { font-size: 22px; font-weight: 500; margin-top: 0; }

/* ------------------------------------------------------------------ */
/* Ułatwienia dostępu – klasy ustawiane przez skrypt                   */
/* ------------------------------------------------------------------ */
html.a11y-szarosc { filter: grayscale(100%); }
html.a11y-ciemny body, html.a11y-ciemny .tresc-artykulu, html.a11y-ciemny #naglowek, html.a11y-ciemny #typ-klienta, html.a11y-ciemny #stopka { background: #000 !important; color: #fff !important; }
html.a11y-ciemny h1, html.a11y-ciemny h2, html.a11y-ciemny h3, html.a11y-ciemny h4, html.a11y-ciemny p, html.a11y-ciemny li, html.a11y-ciemny td, html.a11y-ciemny #stopka p { color: #fff !important; }
html.a11y-ciemny a, html.a11y-ciemny .menu .pozycja { color: #ff0 !important; }
html.a11y-jasny body, html.a11y-jasny .tresc-artykulu, html.a11y-jasny #stopka { background: #fff !important; color: #000 !important; }
html.a11y-jasny h1, html.a11y-jasny h2, html.a11y-jasny h3, html.a11y-jasny p, html.a11y-jasny li, html.a11y-jasny #stopka p { color: #000 !important; }
html.a11y-jasny a { color: #00e !important; }
html.a11y-podkresl a { text-decoration: underline !important; }
html.a11y-nawigacja *:focus { outline: 3px solid #f90 !important; outline-offset: 2px; }

/* Mapa dojazdu na stronie Kontakt */
.mapa-dojazdu { margin: 30px 10px 0; height: 400px; border: 0; width: calc(100% - 20px); display: block; }

/* ------------------------------------------------------------------ */
/* Telefon i tablet                                                    */
/* ------------------------------------------------------------------ */
@media (max-width: 1200px) {
  #menu-glowne { padding-left: 1rem; }
}
@media (min-width: 768px) and (max-width: 959px) {
  .menu.l1 > li > .pozycja { font-size: 14px; padding-left: 12px; padding-right: 22px; }
  #logo { width: 200px; }
}
@media (max-width: 767px) {
  #typ-klienta .kontener { padding: 0 6px 0 60px; }
  .ibok { padding: 0 6px; }
  #pasek-glowny .kontener { min-height: 0; padding: 10px; justify-content: center; }
  #logo { width: 220px; margin: 0 auto; }
  #logo img { width: 220px; }

  .menu-przelacznik {
    display: block; position: absolute; top: 4px; left: 10px; z-index: 60;
    width: 44px; height: 38px; padding: 9px 11px; cursor: pointer;
    background: linear-gradient(#fff, #e6e6e6); border: 1px solid #cbcbcb; border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
  }
  .menu-przelacznik span { display: block; height: 2px; margin: 3px 0; background: #6e6e6e; border-radius: 1px; }
  #menu-glowne {
    position: fixed; top: 0; left: 0; bottom: 0; width: 280px; max-width: 85vw; margin: 0; padding: 50px 0 20px;
    background: var(--niebieski); overflow-y: auto; z-index: 55;
    transform: translateX(-100%); transition: transform .3s ease; visibility: hidden;
  }
  body.menu-otwarte #menu-glowne { transform: translateX(0); visibility: visible; box-shadow: 4px 0 16px rgba(0,0,0,.3); }
  body.menu-otwarte .menu-przelacznik { position: fixed; left: 225px; }
  .menu.l1 { display: block; }
  .menu li, .menu li:hover, .menu li:focus-within { background: transparent; border: 0; }
  .menu .pozycja, .menu.l1 > li > .pozycja { color: #fff; padding: 12px 20px; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .menu .podmenu, .menu .podmenu .podmenu {
    position: static; left: auto; width: auto; opacity: 1; display: none; padding: 0 0 0 14px; background: rgba(0,0,0,.12);
  }
  .menu li.otwarta > .podmenu { display: block; }
  .menu li:hover > .podmenu { left: auto; }
  .menu .podmenu .pozycja { font-size: 14px; }
  .menu li.rodzic > .pozycja::after { border: 5px solid transparent; border-top: 6px solid #fff; border-bottom: 0; right: 18px; }
  .menu li.otwarta > .pozycja::after { transform: rotate(180deg); }
  .menu .podmenu li.rodzic > .pozycja::after { border: 5px solid transparent; border-top: 6px solid #fff; border-bottom: 0; margin-top: -2px; }
  body.menu-otwarte::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 54; }

  main { padding-top: 10px; }
  .slajdy-sekcja { padding-top: 0; }
  .slajdy { margin: 10px 10px 0; }
  .slajdy-kropki { height: 40px; justify-content: center; }
  .tresc-artykulu { margin: 0; padding: 10px 15px 20px; }
  .strona-glowna .tresc-artykulu { padding-top: 0; }
  .row-flex-option { margin-top: 1.5rem; }
  .mapa-dojazdu { margin: 20px 0 0; width: 100%; height: 320px; }
  .mapa-link { padding: 0 15px; }
  .boczne-przyciski a { padding: 7px; transform: translateX(calc(100% - 40px)); }
  .boczne-przyciski .ikona { width: 22px; height: 22px; flex-basis: 22px; }
  h1 { font-size: 200%; }
  h2 { font-size: 160%; }
  .stopka-kolumny { flex-direction: column; min-height: 0; padding: 20px 10px; }
  .stopka-kol { margin: 0 0 6px; }
  .boczne-przyciski { top: auto; bottom: 70px; }
  .dostepnosc-przelacznik { top: auto; bottom: 16px; right: 4px; }
  #cookies h2 { font-size: 16px; line-height: 20px; }
  table { width: auto; }
  .tabela-przewijana { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slajd, .boczne-przyciski a, #menu-glowne, #dostepnosc-panel { transition: none; }
}

@media print {
  #typ-klienta, #menu-glowne, .boczne-przyciski, #dostepnosc, #do-gory, #cookies, .slajdy-sekcja { display: none !important; }
  body { background: #fff; }
}

/* Pomocnicze klasy używane w treści */
.text-center { text-align: center; }
.text-right { text-align: right; }
.niewidoczny-tytul { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Ekrany dotykowe: przyciski reagują od razu na pierwsze dotknięcie */
button, a, label, .pozycja { touch-action: manipulation; -webkit-tap-highlight-color: rgba(78,111,165,.2); }
button, label { cursor: pointer; }
@media (hover: none) {
  /* „Zadzwoń”: sama ikona, dotknięcie od razu wybiera numer (bez wysuwania) */
  .boczne-przyciski a, .boczne-przyciski a:hover, .boczne-przyciski a:focus { width: auto; transform: none; font-size: 0; gap: 0; padding: 8px; }
  .boczne-przyciski .ikona { font-size: 1rem; }
}
