/* =========================================================
   DESIGN TOKENS (AS-IS z oryginału)
   ========================================================= */
:root {
  --c-text:            #2c2f37;
  --c-text-muted:      #5f6470;   /* WCAG AA: 5.9:1 (było #858993 – 3.5:1) */
  --c-text-light:      #b9bbbe;
  --c-link-dark:       #111111;
  --c-nav-sub:         #666666;   /* WCAG AA: 5.7:1 */
  --c-primary:         #8e3aa6;   /* WCAG AA: 6.4:1 (było #c16ad8 – 3.3:1) */
  --c-accent:          #176f9c;
  --c-accent-dark:     #125a80;
  --c-cta:             #176f9c;   /* WCAG AA: biały tekst 5.5:1 (było #1e8bc3 – 3.8:1) */
  --c-cta-hover:       #125a80;
  --c-cta-line:        #c9ccd2;
  --c-link-hover:      #3f62b0;
  --c-bg:              #ffffff;
  --c-bg-secondary:    #f2f4f8;
  --c-border-light:    #eeeeee;
  --c-overlay:         rgba(17, 20, 28, .55);

  --shadow-header:     0 5px 10px -6px rgba(0, 0, 0, .10);
  --shadow-card:       0 5px 20px 0 rgba(0, 0, 0, .07);
  --shadow-card-hover: 0 10px 28px 0 rgba(0, 0, 0, .12);
  --shadow-menu:       0 10px 28px rgba(0, 0, 0, .08);
  --shadow-drawer:     -10px 0 30px rgba(0, 0, 0, .15);
  --shadow-bar:        0 -4px 16px rgba(0, 0, 0, .08);

  --ff-body:           "Open Sans", Helvetica, Arial, sans-serif;
  --ff-heading:        "Roboto Slab", Helvetica, Arial, sans-serif;
  --fs-root:           14px;
  --fs-nav:            13px;
  --fs-h1:             35px;
  --fs-h2:             28px;
  --fs-h5:             17.5px;
  --fs-card-title:     16px;
  --fs-small:          12px;
  --lh-body:           1.6;
  --lh-text:           1.8;
  --lh-heading:        1.4;

  --container-max:     1140px;
  --gutter:            15px;
  --header-py:         10px;
  --radius-sm:         3px;
  --tap:               48px;      /* minimalny cel dotykowy */
  --bar-h:             60px;      /* dolny pasek kontaktu (mobile) */
  --drawer-w:          min(86vw, 360px);
  --transition:        .2s ease;
}

/* =========================================================
   BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs-root); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--c-primary); text-decoration: none; }
a:hover, a:focus { color: var(--c-link-hover); }
b, strong { font-weight: 600; color: var(--c-text); }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; }
h1, h2, h3 {
  font-family: var(--ff-heading);
  font-weight: 500;
  line-height: var(--lh-heading);
  color: var(--c-text);
  margin: 0 0 7px;
}
figure { margin: 0; }
button { font: inherit; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--c-cta); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: 15px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--c-cta);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}
.skip-link:focus { top: 10px; color: #fff; }

.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.row { display: flex; flex-wrap: wrap; margin: 0 calc(var(--gutter) * -1); }

.text-muted-p { color: var(--c-text-muted); line-height: var(--lh-text); }
.text-justify { text-align: justify; }

.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.icon--contact { width: 18px; height: 18px; margin-right: 5px; color: var(--c-cta); }
.contact-link { color: var(--c-cta); }
.contact-link:hover { color: var(--c-cta-hover); }

/* =========================================================
   PRZYCISKI (CTA) – neutralne, informacyjne
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--primary { background: var(--c-cta); color: #fff; }
.btn--primary:hover, .btn--primary:focus { background: var(--c-cta-hover); color: #fff; }
.btn--outline { background: transparent; color: var(--c-cta); border-color: var(--c-cta); }
.btn--outline:hover, .btn--outline:focus { background: var(--c-cta); color: #fff; }
.btn--ghost { background: #fff; color: var(--c-text); border-color: #dfe2e8; }
.btn--ghost:hover, .btn--ghost:focus { border-color: var(--c-cta); color: var(--c-cta); }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }

/* =========================================================
   PRIORYTET KANAŁU KONTAKTU
   desktop → formularz na /kontakt/ („Opisz swoją sprawę”)
   mobile  → telefon (jedno stuknięcie), formularz jako druga opcja
   ========================================================= */
.cta-form { background: var(--c-cta); color: #fff; border-color: var(--c-cta); }
.cta-form:hover, .cta-form:focus { background: var(--c-cta-hover); border-color: var(--c-cta-hover); color: #fff; }
.cta-phone { background: transparent; color: var(--c-cta); border-color: var(--c-cta-line); font-weight: 600; }
.cta-phone svg { color: var(--c-cta); }
.cta-phone:hover, .cta-phone:focus { border-color: var(--c-cta); color: var(--c-cta-hover); }

@media (max-width: 991.98px) {
  .cta-phone { order: -1; background: var(--c-cta); color: #fff; border-color: var(--c-cta); }
  .cta-phone svg { color: #fff; }
  .cta-phone:hover, .cta-phone:focus { background: var(--c-cta-hover); border-color: var(--c-cta-hover); color: #fff; }
  .cta-form { background: transparent; color: var(--c-cta); border-color: var(--c-cta-line); }
  .cta-form svg { color: var(--c-cta); }
  .cta-form:hover, .cta-form:focus { background: transparent; border-color: var(--c-cta); color: var(--c-cta-hover); }
}

/* Krótka, rzeczowa informacja pod CTA formularza */
.cta-note { margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: var(--c-text-muted); }

/* Dane kontaktowe jako zwykłe linki (informacja, nie "przycisk") */
.contact-lines { display: grid; gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e1e5ec; }
.contact-lines a { display: inline-flex; align-items: center; gap: 6px; color: var(--c-cta); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.contact-lines a:hover { color: var(--c-cta-hover); }
.contact-lines svg { width: 16px; height: 16px; flex-shrink: 0; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--c-bg);
  box-shadow: var(--shadow-header);
  padding: var(--header-py) 0;
}
.site-header__inner { position: relative; display: flex; align-items: center; }
.site-header__logo-col { width: 25%; padding: 0 var(--gutter); }
.site-header__inner.row { flex-wrap: nowrap; }
.site-header__logo-col { flex-shrink: 0; }
.site-header__nav-col  { flex: 1 1 auto; min-width: 0; padding: 0 var(--gutter); }

.brand { display: block; width: fit-content; padding: 2px 0; margin-right: 14px; }
.brand svg { width: 120px; height: 67px; display: block; transition: width .25s ease, height .25s ease; }

@media (min-width: 992px) {
  .site-header { position: sticky; top: 0; transition: padding .25s ease; }
  .site-header.is-scrolled { --header-py: 6px; }
  .site-header.is-scrolled .brand svg { width: 96px; height: 53px; }
}

.nav { padding: 7px 0; }
.nav__wrap { padding: 5px var(--gutter) 0; display: flex; align-items: center; }
.nav__panel { display: flex; align-items: center; }
.nav__panel-head, .nav__panel-contact { display: none; }
.nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--gutter);
  font-size: var(--fs-nav);
  font-weight: 600;
}
.nav__item { margin: 0 20px; }
.nav__link {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 7px 0;
  background: none;
  border: 0;
  color: var(--c-text);
  font: inherit;
  text-transform: uppercase;
  line-height: 20.8px;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--c-primary); }
.nav__link[aria-current="page"] { color: var(--c-primary); }
.nav__chevron { width: 11px; height: 11px; margin-left: 5px; transition: transform var(--transition); }

.mega {
  position: absolute;
  top: calc(100% + var(--header-py));
  left: calc(25% + 30px);
  width: 605px;
  padding: 30px;
  background: var(--c-bg);
  border-top: 2px solid var(--c-primary);
  box-shadow: var(--shadow-menu);
  font-weight: 400;
  text-transform: none;
}
.mega__row { display: flex; margin: 0 -15px; }
.mega__links { width: 58.3333%; padding: 0 15px; }
.mega__image { width: 41.6667%; padding: 0 15px; }
.mega__list { list-style: none; margin: 0; padding: 0; }
.mega__list > li { position: relative; padding: 10px 0; border-bottom: 1px solid var(--c-border-light); }
.mega__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px;
  background: none;
  border: 0;
  font: inherit;
  font-size: var(--fs-nav);
  line-height: 20.8px;
  text-align: left;
  color: var(--c-nav-sub);
  cursor: pointer;
}
.mega__link:hover, .mega__link:focus-visible { color: var(--c-link-hover); }

.submenu {
  position: absolute;
  top: -2px;
  left: 100%;
  min-width: 220px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--c-bg);
  border-top: 2px solid var(--c-primary);
  box-shadow: var(--shadow-menu);
  z-index: 3;
}
.submenu li { padding: 4px 21px; }
.submenu li:hover { background: #f8f9fa; }
.submenu .mega__link { padding: 7px 0; white-space: nowrap; }

/* Desktop: przycisk formularza zastępuje „Kontakt” i stoi przy prawej krawędzi */
.nav, .nav__wrap, .nav__panel, .nav__list { width: 100%; }
.nav__item--contact { display: none; }
.nav__list .nav__item--cta { margin-left: auto; margin-right: 0; display: flex; align-items: center; }
@media (min-width: 992px) { .nav__wrap { padding-right: 0; } }
.nav__cta {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}
.nav__cta svg { width: 16px; height: 16px; }

.nav__brand-mobile, .nav__toggle { display: none; }
.nav-overlay { display: none; }

/* --- Desktop: menu na hover + klawiatura (tylko urządzenia ≥ 992px) --- */
@media (min-width: 992px) {
  .mega, .submenu {
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
  }
  .mega::before {               /* mostek – hover nie gaśnie nad przerwą */
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 100%;
    height: 75px;
  }
  .nav__item--mega:hover > .mega,
  .nav__item--mega.is-expanded > .mega,
  .has-submenu:hover > .submenu,
  .has-submenu.is-expanded > .submenu { opacity: 1; visibility: visible; }
  .nav__item--mega:hover > .nav__link { color: var(--c-primary); }
}

/* =========================================================
   HERO / INTRO
   ========================================================= */
.intro__container { padding-top: 24px; }
.intro__row { align-items: center; justify-content: space-between; }
.intro__col { width: 50%; padding: 0 var(--gutter); }
.intro__title { font-size: var(--fs-h1); line-height: 1.3; margin-bottom: 18px; }
.intro__title-sub {
  display: block;
  margin-top: 6px;
  font-size: 19px;
  line-height: 1.4;
  color: var(--c-text-muted);
}
.intro__list { padding-left: 40px; color: var(--c-text); }
.intro__photo { width: 540px; max-width: 100%; aspect-ratio: 540 / 516; object-fit: contain; object-position: bottom; }
.intro__figure { position: relative; display: inline-block; max-width: 100%; margin: 0; }
.intro__figure::after {
  content: "";
  position: absolute;
  left: 27.7%;
  width: 41.5%;
  bottom: -2px;
  height: 2px;
  background: var(--c-text);
}
.intro__figure .intro__photo { display: block; }
@media (min-width: 768px) {
  .intro__row { align-items: flex-start; }
  .intro__col--image { margin-top: -12px; }
}
.intro__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.intro__cta .cta-note { flex-basis: 100%; }

/* =========================================================
   OFERTA + SIDEBAR
   ========================================================= */
.services { padding: 50px 0; }
.services__row { margin-bottom: 60px; }
.services__main { width: 66.6667%; padding: 0 var(--gutter); }
.services__aside { width: 33.3333%; padding: 0 var(--gutter); }

.cards { display: flex; flex-wrap: wrap; margin: 0 calc(var(--gutter) * -1); }
.card { position: relative; width: 33.3333%; padding: 0 var(--gutter); margin-bottom: 30px; }
.card__figure {
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .3s ease;
}
.card__figure img { width: 100%; aspect-ratio: 223 / 151; object-fit: cover; }
.card__title { font-family: var(--ff-heading); font-size: var(--fs-card-title); font-weight: 500; line-height: 22.4px; margin-bottom: 10px; }
.card__title a { color: var(--c-link-dark); transition: color var(--transition); }
/* cały kafel klikalny */
.card__title a::after { content: ""; position: absolute; inset: 0 var(--gutter); }
.card__title a:focus-visible { color: var(--c-primary); }
@media (hover: hover) {   /* bez "przyklejonego" hovera na ekranach dotykowych */
  .card:hover .card__title a { color: var(--c-primary); }
  .card:hover .card__figure { box-shadow: var(--shadow-card-hover); }
}

.about { margin: 10px 0 20px; }
.about__title { font-size: 24px; line-height: 1.35; margin: 0 0 16px; }
.about__title--next { margin-top: 40px; }
.about__sub { font-size: 17px; line-height: 1.4; font-weight: 700; color: var(--c-text); margin: 24px 0 8px; }
.about__steps { counter-reset: krok; list-style: none; margin: 0 0 18px; padding: 0; }
.about__steps li { counter-increment: krok; position: relative; padding-left: 40px; margin-bottom: 12px; color: var(--c-text-muted); line-height: var(--lh-text); }
.about__steps li::before {
  content: counter(krok);
  position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-text);
  font-family: var(--ff-heading); font-size: 13px; font-weight: 700;
  color: var(--c-text);
}
.faq { border-top: 1px solid #dfe2e8; }
.faq details { border-bottom: 1px solid #dfe2e8; }
.faq summary {
  position: relative;
  padding: 16px 36px 16px 0;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 6px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -6px;
  border-right: 1.5px solid var(--c-text);
  border-bottom: 1.5px solid var(--c-text);
  transform: rotate(45deg);
  transition: transform var(--transition);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 16px; color: var(--c-text-muted); line-height: var(--lh-text); }
.about__sign { margin-top: 32px; }
.about__cta { margin-top: 18px; }
.intro__list a, .about a:not(.btn) { color: var(--c-text); text-decoration: underline; text-decoration-color: #b9bcc4; text-underline-offset: 3px; }
.intro__list a:hover, .about a:not(.btn):hover { text-decoration-color: currentColor; }

.aside__sticky { position: sticky; top: 100px; padding-bottom: 15px; }
.aside__inner { margin-bottom: 50px; }
.info-box { background: var(--c-bg-secondary); margin-bottom: 20px; padding: 5px 15px; }
.info-box--first { padding: 15px; }
.info-box__spacer { margin: 0 0 14px; height: 0; }
.info-box__title { font-family: var(--ff-heading); font-size: var(--fs-h5); line-height: 24.5px; font-weight: 700; color: var(--c-text); margin: 0 0 7px; }
.info-box__route {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-cta);
}
.info-box__route svg { width: 15px; height: 15px; }
.info-box__route:hover { color: var(--c-cta-hover); text-decoration: underline; }
.info-box__contacts { display: grid; gap: 8px; margin-top: 4px; }
.info-box__contacts .btn { justify-content: flex-start; width: 100%; white-space: normal; word-break: break-all; }

/* Mapa ładowana dopiero po kliknięciu (RODO + wydajność) */
.map {
  position: relative;
  height: 200px;
  background:
    linear-gradient(135deg, rgba(30,139,195,.06) 25%, transparent 25%) 0 0 / 22px 22px,
    #e6eaf1;
}
.map__load {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 16px;
  background: none;
  border: 0;
  color: var(--c-text);
  text-align: center;
  cursor: pointer;
}
.map__load svg { width: 28px; height: 28px; color: var(--c-cta); }
.map__load strong { color: var(--c-cta); font-size: 14px; }
.map__load small { font-size: 11px; line-height: 1.4; color: var(--c-text-muted); max-width: 240px; }
.map__load:hover strong { text-decoration: underline; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--c-bg-secondary); color: var(--c-text); }
.site-footer__main { padding-top: 56px; padding-bottom: 40px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr .8fr;
  gap: 40px;
}
.site-footer__title {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dfe2e8;
  font-family: var(--ff-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}
.site-footer__brand { margin: 0 0 14px; font-weight: 700; color: var(--c-text); line-height: 1.5; }
.site-footer__office { margin: 0 0 14px; line-height: 1.7; color: #5f6470; font-style: normal; }
.site-footer__office strong { display: block; color: var(--c-text); font-weight: 600; }
.site-footer__contact { display: grid; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; }
.site-footer__offices { display: grid; gap: 14px; }
.site-footer__title--next { margin-top: 30px; }
.site-footer__offices .site-footer__office { margin: 0; }
.site-footer__legal { margin: 0; line-height: 1.7; color: #5f6470; }
.site-footer__legal strong { color: var(--c-text); font-weight: 600; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--c-text); word-break: break-all; }
.site-footer__contact a:hover { color: var(--c-cta-hover); text-decoration: underline; }
.site-footer__contact svg { width: 16px; height: 16px; flex-shrink: 0; }
.site-footer__links { margin: 0; padding: 0; list-style: none; }
.site-footer__links li { margin-bottom: 12px; line-height: 1.45; }
.site-footer__links a { color: #5f6470; transition: color var(--transition); }
.site-footer__links a:hover, .site-footer__links a:focus-visible { color: var(--c-cta-hover); text-decoration: underline; text-underline-offset: 2px; }
.site-footer__bottom { border-top: 1px solid #dfe2e8; padding: 18px 0; }
.site-footer__bottom p { margin: 0; font-size: 12px; color: #5f6470; text-align: center; } /* WCAG AA (było #8a8f99 – 2.9:1) */

/* =========================================================
   DOLNY PASEK KONTAKTU (mobile) + GO TO TOP
   ========================================================= */
.contact-bar { display: none; }

.go-top {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 40;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--c-cta);
  border-radius: var(--radius-sm);
  opacity: 0;
  transform: scale(.3);
  pointer-events: none;
  transition: background-color .3s ease-out, opacity .3s ease-out, transform .3s ease-out;
}
.go-top.is-visible { opacity: 1; transform: scale(1); pointer-events: auto; }
.go-top:hover, .go-top:focus { color: #fff; background: var(--c-cta-hover); }
.go-top svg { width: 14px; height: 14px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199.98px) {
  .container { max-width: 960px; }
  .nav__item { margin: 0 10px; }
  .mega { width: calc(58.3333% - 30px); }
}

/* ---------- TABLET / MOBILE: szuflada menu ---------- */
@media (max-width: 991.98px) {
  .container { max-width: 720px; }

  .site-header { position: sticky; top: 0; padding: 8px 0; }
  .site-header__inner { min-height: 0; }
  .site-header__logo-col { display: none; }
  .site-header__nav-col { width: 100%; }
  .nav { padding: 0; }
  .nav__wrap { padding: 0; justify-content: space-between; }
  .nav__brand-mobile { display: block; }
  .nav__brand-mobile svg { width: 120px; height: 67px; display: block; }

  .nav__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: var(--tap);
    padding: 0 4px 0 12px;
    background: none;
    border: 0;
    color: var(--c-text);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    cursor: pointer;
  }
  .nav__toggle-bars { display: grid; gap: 5px; }
  .nav__toggle-bars span { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 1px; }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    background: var(--c-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .nav-overlay.is-visible { opacity: 1; visibility: visible; }

  .nav__panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    width: var(--drawer-w);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-bg);
    box-shadow: var(--shadow-drawer);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .3s cubic-bezier(.2,.7,.3,1), visibility .3s;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .nav.is-open .nav__panel { transform: translateX(0); visibility: visible; }

  .nav__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 10px 20px;
    border-bottom: 1px solid var(--c-border-light);
    font-family: var(--ff-heading);
    font-size: 16px;
  }
  .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tap);
    height: var(--tap);
    background: none;
    border: 0;
    color: var(--c-text);
    cursor: pointer;
  }
  .nav__close svg { width: 22px; height: 22px; }

  .nav__list {
    flex: 1 1 auto;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 20px;
    font-size: 14px;
  }
  .nav__item { margin: 0; border-bottom: 1px solid var(--c-border-light); }
  .nav__item--contact { display: block; }
  .nav__list .nav__item--cta { display: none; }
  .nav__link { min-height: 52px; padding: 12px 0; justify-content: space-between; }
  .nav__chevron { width: 14px; height: 14px; }
  .is-expanded > .nav__link .nav__chevron,
  .is-expanded > .mega__link .nav__chevron { transform: rotate(180deg); }
  .has-submenu > .mega__link .nav__chevron { transform: rotate(90deg); }
  .has-submenu.is-expanded > .mega__link .nav__chevron { transform: rotate(270deg); }

  .mega, .submenu {
    position: static;
    width: auto;
    display: none;
    padding: 0 0 8px;
    border-top: 0;
    box-shadow: none;
    min-width: 0;
  }
  .is-expanded > .mega, .is-expanded > .submenu { display: block; }
  .mega::before { display: none; }
  .mega__row { margin: 0; }
  .mega__image { display: none; }
  .mega__links { width: 100%; padding: 0; }
  .mega__list > li { padding: 0; border-bottom: 0; }
  .mega__link { min-height: 44px; padding: 10px 0 10px 14px; font-size: 14px; color: #555; }
  .mega__list > li:not(:last-child) { border-bottom: 1px dashed var(--c-border-light); }
  .submenu { padding: 0 0 6px 14px; border-left: 2px solid var(--c-primary); margin-left: 14px; }
  .submenu li { padding: 0; }
  .submenu li:hover { background: none; }
  .submenu .mega__link { white-space: normal; font-size: 13px; padding-left: 12px; }

  .nav__panel-contact {
    display: grid;
    gap: 10px;
    padding: 16px 20px 20px;
    border-top: 1px solid var(--c-border-light);
    background: var(--c-bg-secondary);
  }
  .nav__panel-contact .btn { width: 100%; }
  .nav__panel-contact small { font-size: 12px; color: var(--c-text-muted); line-height: 1.5; }

  .services__main, .services__aside { width: 100%; }
  .services__main { margin-bottom: 30px; }
  .aside__sticky { position: static; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 28px; }
  .site-footer__grid > :nth-child(4) { order: 2; }
  .site-footer__grid > :nth-child(2) { order: 3; }
  .site-footer__grid > :nth-child(3) { order: 4; }

  /* dolny pasek kontaktu */
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .contact-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.98);
    border-top: 1px solid var(--c-border-light);
    transition: transform .3s ease;
  }
  .contact-bar .btn { min-height: 44px; padding: 8px 10px; }
  body.is-locked .contact-bar { transform: translateY(110%); }
  .go-top { bottom: calc(var(--bar-h) + 15px + env(safe-area-inset-bottom)); }
}

@media (max-width: 767.98px) {
  .container { max-width: 540px; }
  .intro__container { padding-top: 24px; }
  .intro__title { font-size: 30px; line-height: 1.3; }
  .intro__title-sub { font-size: 17px; }
  .intro__col { width: 100%; }
  .intro__col--image { margin-top: 30px; }
  .intro__cta .btn { flex: 1 1 100%; }
  .card { width: 50%; }
  .site-footer__main { padding-top: 40px; padding-bottom: 28px; }
}

@media (max-width: 575.98px) {
  .container { max-width: none; }
  .card { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .text-justify { text-align: left; }   /* bez "rzek" w justowaniu na wąskim ekranie */
}

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

/* =========================================================
   PODSTRONY (porady, oferta, kontakt) – dopisane do wizualizacji
   ========================================================= */
.page-head { background: var(--c-bg-secondary); padding: 28px 0 24px; }
.page-head__title { font-family: var(--ff-heading); font-size: 30px; line-height: 1.3; font-weight: 700; color: var(--c-text); margin: 6px 0 0; }
@media (max-width: 767.98px) { .page-head__title { font-size: 24px; } }

.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--fs-small); color: var(--c-text-muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; }
.breadcrumbs a { color: var(--c-text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-cta); text-decoration: underline; }

.services--sub { padding-top: 32px; }

.entry__meta { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; }
.entry__meta a { color: var(--c-cta); text-decoration: none; }
.entry__content { color: var(--c-text-muted); line-height: var(--lh-text); text-align: justify; }
.entry__content h2 { font-family: var(--ff-heading); font-size: 22px; line-height: 1.35; color: var(--c-text); margin: 32px 0 12px; text-align: left; }
.entry__content h3 { font-size: 17px; line-height: 1.4; color: var(--c-text); margin: 24px 0 8px; text-align: left; }
.entry__content h4 { font-size: 15px; color: var(--c-text); margin: 20px 0 6px; text-align: left; }
.entry__content a { color: var(--c-cta); }
.entry__content a:hover { color: var(--c-cta-hover); }
.entry__content img { max-width: 100%; height: auto; }
.entry__content blockquote { margin: 16px 0; padding: 8px 16px; border-left: 3px solid var(--c-cta); background: var(--c-bg-secondary); }
.entry__content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.entry__content th, .entry__content td { border: 1px solid #dfe2e8; padding: 8px; text-align: left; }

.entry__cta { margin-top: 36px; padding: 20px; background: var(--c-bg-secondary); }
.entry__cta-title { font-family: var(--ff-heading); font-size: var(--fs-h5); font-weight: 700; color: var(--c-text); margin: 0 0 6px; }

.related__list { margin: 0; padding-left: 18px; line-height: 1.9; }
.related__list a { color: var(--c-text); }
.related__list a:hover { color: var(--c-cta); }
.muted { color: var(--c-text-muted); font-size: var(--fs-small); }

.chips { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-block; padding: 6px 12px; border: 1px solid #dfe2e8; color: var(--c-text); text-decoration: none; font-size: 13px; }
.chips a:hover { border-color: var(--c-cta); color: var(--c-cta); }

.post-list { display: grid; gap: 18px; }
.post-card { padding: 0 0 18px; border-bottom: 1px solid var(--c-border-light); }
.post-card__title { font-family: var(--ff-heading); font-size: 19px; line-height: 1.4; margin: 0 0 6px; }
.post-card__title a { color: var(--c-text); text-decoration: none; }
.post-card__title a:hover { color: var(--c-cta); }
.post-card p { margin: 0 0 8px; }
.post-card__more { display: inline-flex; align-items: center; gap: 4px; color: var(--c-cta); font-weight: 600; text-decoration: none; }
.post-card__more svg { width: 12px; height: 12px; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.pagination > a, .pagination > span { min-width: 40px; min-height: 40px; padding: 8px 12px; border: 1px solid #dfe2e8; color: var(--c-text); text-decoration: none; text-align: center; }
.pagination > a:hover { border-color: var(--c-cta); color: var(--c-cta); }
.pagination [aria-current] { background: var(--c-cta); border-color: var(--c-cta); color: #fff; }

.cat-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cat-box { padding: 18px; background: var(--c-bg-secondary); }

/* Formularz kontaktowy */
.notice { padding: 12px 16px; margin: 0 0 20px; border-left: 4px solid var(--c-cta); background: var(--c-bg-secondary); }
.notice--ok { border-color: #2e8b57; background: #edf7f1; }
.notice--err { border-color: #c0392b; background: #fbeeec; }
.notice--warn { border-color: #d4a017; background: #fdf7e6; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 768px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form label { display: block; font-weight: 600; color: var(--c-text); margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea {
  width: 100%; padding: 12px; border: 1px solid #cfd3da; font: inherit; color: var(--c-text); background: #fff; border-radius: var(--radius-sm);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--c-cta); outline-offset: 1px; border-color: var(--c-cta); }
.form textarea { min-height: 160px; resize: vertical; }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--c-text-muted); line-height: 1.6; }
.form__check input { margin-top: 2px; width: 24px; height: 24px; flex-shrink: 0; }
.form__check label { font-weight: 400; color: inherit; margin: 0; }
.form__hint { font-size: var(--fs-small); color: var(--c-text-muted); margin: 4px 0 0; }
.form__error { color: #c0392b; font-size: 13px; margin: 4px 0 0; }
.form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; border: 0; cursor: pointer; }

/* =========================================================
   DOSTĘPNOŚĆ (WCAG 2.2 AA) – uzupełnienia
   ========================================================= */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* Linki w treści rozpoznawalne nie tylko kolorem (1.4.1) */
.entry__content a, .notice a, .form__check a { text-decoration: underline; text-underline-offset: 2px; }
/* Separator okruszków niewidoczny dla czytników ekranu */
.breadcrumbs li + li::before { content: "›"; content: "›" / ""; }
/* Pola formularza: obramowanie min. 3:1 (1.4.11) */
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea { border-color: #767b86; }
.form__check input { accent-color: var(--c-cta); }
.form__required-note { font-size: 13px; color: var(--c-text-muted); margin: 0; }
.error-summary { padding: 14px 18px; margin: 0 0 20px; border: 2px solid #c0392b; background: #fbeeec; }
.error-summary:focus { outline: 3px solid var(--c-text); outline-offset: 2px; }
.error-summary h3 { margin: 0 0 6px; font-size: 16px; color: var(--c-text); }
.error-summary ul { margin: 0; padding-left: 18px; }
.error-summary a { color: #a0281b; text-decoration: underline; }
.form__error, .notice--err { color: #a0281b; }
/* Widoczny fokus także na elementach, które mają własne obramowanie */
.pagination a:focus-visible, .chips a:focus-visible, .post-card__more:focus-visible, .breadcrumbs a:focus-visible { outline: 2px solid var(--c-cta); outline-offset: 2px; }
/* Wymuszone kolory (tryb wysokiego kontrastu Windows) */
@media (forced-colors: active) {
  .btn, .pagination a, .pagination span, .chips a { border: 1px solid ButtonText; }
  .pagination > [aria-current] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

/* Cele dotykowe min. 24×24 px (WCAG 2.2 – 2.5.8) */
.site-footer__contact a, .site-footer__links a, .contact-lines a, .info-box__route,
.post-card__more, .related__list a, .breadcrumbs a, .chips a {
  display: inline-flex; align-items: center; min-height: 24px;
}
.post-card__title a { display: inline-block; padding: 2px 0; }
/* Przycisk „do góry”: niewidoczny = nieosiągalny klawiaturą (2.4.7, 2.4.11) */
.go-top { visibility: hidden; transition: background-color .3s ease-out, opacity .3s ease-out, transform .3s ease-out, visibility 0s linear .3s; }
.go-top.is-visible { visibility: visible; transition-delay: 0s; }
/* Element z fokusem / cel kotwicy nie chowa się pod przyklejonym nagłówkiem (WCAG 2.2 – 2.4.11) */
html { scroll-padding-top: 110px; }
.error-summary, .notice, .form input, .form textarea, [id] { scroll-margin-top: 110px; }
