/* ==============================================================
 * Dopasowanie oryginalnego szablonu do kontenerów Elementora.
 * Kontener-sekcja: klasa CSS "nk-section" + ID (about, resume...).
 * ============================================================== */

/* Kontenery Elementora bez własnych odstępów – układ robią widżety */
.e-con.nk-section,
.e-con.nk-header-wrap {
  padding: 0 !important;
  gap: 0 !important;
  --padding-top: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --padding-right: 0px;
  --gap: 0px;
  --row-gap: 0px;
  --column-gap: 0px;
  --widgets-spacing: 0px;
  max-width: none;
}

.e-con.nk-section > .elementor-widget,
.e-con.nk-header-wrap > .elementor-widget {
  margin: 0 !important;
  width: 100%;
}

/* Zachowanie sekcji jak w oryginale (absolutne, ukryte do kliknięcia w menu) */
.e-con.nk-section {
  overflow: hidden !important;
  position: absolute !important;
  width: 100% !important;
  top: 140px !important;
  bottom: 100% !important;
  opacity: 0;
  transition: ease-in-out 0.4s;
  z-index: 2;
  display: block !important;
  background: none;
  min-height: 0 !important;
}

.e-con.nk-section.section-show {
  top: 100px !important;
  bottom: auto !important;
  opacity: 1;
  padding-bottom: 45px !important;
}

@media (max-width: 768px) {
  .e-con.nk-section {
    top: 120px !important;
  }

  .e-con.nk-section.section-show {
    top: 80px !important;
  }
}

/* Nagłówek nie może dostawać ograniczeń szerokości z Elementora */
.e-con.nk-header-wrap {
  display: block !important;
  position: static !important;
  min-height: 0 !important;
}

/* Elementor nadpisuje obramowanie obrazków – przywracamy z szablonu */
.elementor .testimonials .testimonial-item .testimonial-img {
  border: 6px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

/* Pasek administratora (tylko po zalogowaniu) */
.admin-bar #header.header-top,
.admin-bar .navbar-mobile {
  top: 32px;
}
.admin-bar .mobile-nav-toggle {
  top: 47px;
}
@media (max-width: 782px) {
  .admin-bar #header.header-top,
  .admin-bar .navbar-mobile {
    top: 46px;
  }
  .admin-bar .mobile-nav-toggle {
    top: 61px;
  }
}

/* ==============================================================
 * Tryb edycji w Elementorze: wszystkie sekcje widoczne jedna pod drugą
 * ============================================================== */
.elementor-editor-active .e-con.nk-section {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  opacity: 1;
  overflow: visible !important;
  padding: 30px 0 !important;
  min-height: 120px !important;
}

.elementor-editor-active .e-con.nk-section::before {
  content: "Sekcja: #" attr(id) "  (widoczna po kliknięciu w menu)";
  display: block;
  width: max-content;
  margin: 0 auto 10px;
  padding: 4px 12px;
  background: orange;
  color: #000;
  font: 600 12px/1.4 "Poppins", sans-serif;
  border-radius: 4px;
}

.elementor-editor-active #header {
  height: auto;
  min-height: 100vh;
}

.elementor-editor-active .mobile-nav-toggle {
  position: absolute;
}

.elementor-editor-active #opening-hours-popup,
.elementor-editor-active #cb-cookie-banner {
  display: none !important;
}

/* ==============================================================
 * Opinie Google
 * ============================================================== */
.nk-gr-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: -5px 0 30px;
  font-family: "Poppins", sans-serif;
}
.nk-gr-score {
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.nk-gr-stars-big {
  font-size: 22px;
  letter-spacing: 2px;
  color: orange;
}
.nk-gr-count {
  color: #aaa;
  font-size: 14px;
}
.nk-gr-links {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.nk-gr-links a {
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: 0.3s;
}
.nk-gr-links a:last-child {
  background: orange;
}
.nk-gr-links a:hover {
  background: #fff;
  color: #000;
}
.testimonials .testimonial-item h3 a {
  color: #fff;
}
.testimonials .testimonial-item h3 a:hover {
  color: orange;
}
.nk-gr-stars {
  color: orange;
  letter-spacing: 1px;
  margin-right: 8px;
}
.testimonials .testimonial-item .nk-gr-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  background: #333;
  color: #fff;
  font: 600 34px/1 "Poppins", sans-serif;
  box-sizing: border-box;
}
.nk-gr-attr {
  margin: 12px 0 0;
  font-size: 12px;
  color: #777;
  text-align: right;
}
.nk-gr-note {
  padding: 10px 14px;
  border: 1px dashed orange;
  color: #ccc;
  font-size: 13px;
}
@media (max-width: 768px) {
  .nk-gr-links {
    margin-left: 0;
    width: 100%;
  }
}

/* ==============================================================
 * Małe logo (telefon/tablet, < 1200 px): przypięte w rogu, nad belką.
 * Wcześniej stało w układzie strony – odjeżdżało przy przewijaniu,
 * a w sekcjach przykrywała je półprzezroczysta belka nagłówka.
 * ============================================================== */
@media (max-width: 1199.98px) {
  .elementor-widget-nk_header img.logo2 {
    position: fixed;
    top: 6px;
    left: 12px;
    z-index: 1000;
    width: auto;
    height: 64px;
    transition: height 0.3s ease-in-out, top 0.3s ease-in-out;
  }

  /* belka w sekcjach: 81 px (tablet) / 60 px (telefon) */
  .elementor-widget-nk_header:has(#header.header-top) img.logo2,
  .elementor-widget-nk_header:has(.navbar-mobile) img.logo2 {
    top: 12px;
    height: 56px;
  }

  .admin-bar .elementor-widget-nk_header img.logo2 {
    top: 38px;
  }
  .admin-bar .elementor-widget-nk_header:has(#header.header-top) img.logo2,
  .admin-bar .elementor-widget-nk_header:has(.navbar-mobile) img.logo2 {
    top: 44px;
  }
}

@media (max-width: 768px) {
  .elementor-widget-nk_header:has(#header.header-top) img.logo2,
  .elementor-widget-nk_header:has(.navbar-mobile) img.logo2 {
    top: 8px;
    height: 44px;
  }
  .admin-bar .elementor-widget-nk_header:has(#header.header-top) img.logo2,
  .admin-bar .elementor-widget-nk_header:has(.navbar-mobile) img.logo2 {
    top: 54px;
  }
}

/* 992–1199 px: belka ma układ „komputerowy” z nazwą po lewej – tam małe logo by na nią nachodziło */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .elementor-widget-nk_header:has(#header.header-top) img.logo2 {
    display: none;
  }
}

.elementor-editor-active .elementor-widget-nk_header img.logo2 {
  position: static;
}

/* ==============================================================
 * SEO: poprawiona hierarchia nagłówków – wygląd bez zmian
 * ============================================================== */
/* Usługi: h4 -> h3 */
.services .icon-box h3.nk-svc-title {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 24px;
}
.services .icon-box h3.nk-svc-title a,
.services .icon-box:hover h3.nk-svc-title a {
  color: #fff;
}

/* Opinie: autor i data to nie nagłówki (h3/h4 -> div) */
.testimonials .testimonial-item .nk-t-name,
.testimonials .testimonial-item .nk-t-sub {
  font-family: "Raleway", sans-serif;
  line-height: 1.2;
}
.testimonials .testimonial-item .nk-t-name {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 45px;
  color: #fff;
}
.testimonials .testimonial-item .nk-t-name a {
  color: #fff;
}
.testimonials .testimonial-item .nk-t-name a:hover {
  color: orange;
}
.testimonials .testimonial-item .nk-t-sub {
  font-size: 14px;
  font-weight: 500;
  color: #999;
  margin: 0 0 0 45px;
}

/* Okienko godzin: tytuł h3 -> div */
.popup-content .popup-title {
  font-family: "Raleway", sans-serif;
  font-size: calc(1.3rem + 0.6vw);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
@media (min-width: 1200px) {
  .popup-content .popup-title {
    font-size: 1.75rem;
  }
}

/* Tekst tylko dla wyszukiwarek i czytników ekranu */
.nk-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==============================================================
 * Okienko godzin otwarcia – animacja pojawiania/zamykania, przycisk
 * (ruch przez translate/scale, żeby nie psuć centrowania na telefonie)
 * ============================================================== */
#opening-hours-popup.nk-hp-in {
  animation-duration: var(--nk-hp-ms, 600ms);
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
}
#opening-hours-popup.nk-hp-out {
  animation-duration: calc(var(--nk-hp-ms, 600ms) * 0.7);
  animation-timing-function: cubic-bezier(0.55, 0, 0.75, 0.2);
  animation-fill-mode: both;
  pointer-events: none;
}
#opening-hours-popup[data-anim="fade-up"].nk-hp-in { animation-name: nk-hp-fade-up-in; }
#opening-hours-popup[data-anim="fade-up"].nk-hp-out { animation-name: nk-hp-fade-up-out; }
#opening-hours-popup[data-anim="slide"].nk-hp-in { animation-name: nk-hp-slide-in; }
#opening-hours-popup[data-anim="slide"].nk-hp-out { animation-name: nk-hp-slide-out; }
#opening-hours-popup[data-anim="zoom"].nk-hp-in { animation-name: nk-hp-zoom-in; }
#opening-hours-popup[data-anim="zoom"].nk-hp-out { animation-name: nk-hp-zoom-out; }
#opening-hours-popup[data-anim="fade"].nk-hp-in { animation-name: nk-hp-fade-in; }
#opening-hours-popup[data-anim="fade"].nk-hp-out { animation-name: nk-hp-fade-out; }

@keyframes nk-hp-fade-up-in { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@keyframes nk-hp-fade-up-out { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 0 30px; } }
@keyframes nk-hp-slide-in { from { opacity: 0; translate: 110% 0; } to { opacity: 1; translate: 0 0; } }
@keyframes nk-hp-slide-out { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 110% 0; } }
@keyframes nk-hp-zoom-in { from { opacity: 0; scale: 0.8; } to { opacity: 1; scale: 1; } }
@keyframes nk-hp-zoom-out { from { opacity: 1; scale: 1; } to { opacity: 0; scale: 0.8; } }
@keyframes nk-hp-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nk-hp-fade-out { from { opacity: 1; } to { opacity: 0; } }

@media (max-width: 768px) {
  /* na telefonie okienko jest na środku – wjazd z boku z prawej krawędzi ekranu */
  @keyframes nk-hp-slide-in { from { opacity: 0; translate: 100vw 0; } to { opacity: 1; translate: 0 0; } }
  @keyframes nk-hp-slide-out { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 100vw 0; } }
}

#opening-hours-popup .nk-hp-close {
  display: inline-block;
  margin-top: 4px;
  padding: 7px 26px;
  border: 2px solid orange;
  border-radius: 4px;
  background: orange;
  color: #000;
  font: 600 13px/1.2 "Poppins", sans-serif;
  cursor: pointer;
  transition: 0.25s;
}
#opening-hours-popup .nk-hp-close:hover,
#opening-hours-popup .nk-hp-close:focus-visible {
  background: #fff;
  border-color: #fff;
}
#close-popup:focus-visible {
  outline: 2px solid orange;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html.nk-rm #opening-hours-popup.nk-hp-in,
  html.nk-rm #opening-hours-popup.nk-hp-out {
    animation-duration: 1ms;
  }
}

/* ==============================================================
 * Podstrony usług (body.nk-subpage)
 * Nazwa i hasło w nagłówku to <div> zamiast h1/h2 – ten sam wygląd.
 * ============================================================== */
#header .nk-brand { margin: 0; padding: 0; font: 200 48px/1 "Poppins", sans-serif; }
#header .nk-brand a, #header .nk-brand a:hover { color: #fff; line-height: 1; display: inline-block; text-shadow: 0 0 3px rgba(0, 0, 0, 1); }
#header .nk-tagline { margin: 20px 0 .5rem; font: 500 24px/1.2 "Raleway", sans-serif; color: rgba(255, 255, 255, .8); }
#header .nk-tagline span { color: #fff; border-bottom: 2px solid orange; padding-bottom: 6px; }
#header.header-top .nk-tagline { display: none; }
@media (min-width: 992px) { #header.header-top .nk-brand { margin-right: 13px !important; font-size: 36px; } }
@media (max-width: 992px) {
  #header .nk-brand { font-weight: 200; font-size: 25px; }
  #header .nk-tagline { font-size: 20px; line-height: 30px; }
}
#header.header-top .nk-brand { margin-right: 0; font-size: 36px; }
@media (max-width: 768px) { #header.header-top .nk-brand { font-size: 22px; } }

/* Sekcje na podstronie: zwykły układ, wszystko widoczne */
.nk-subpage .e-con.nk-section {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  opacity: 1;
  overflow: visible !important;
  padding: 110px 0 50px !important;
  min-height: 0 !important;
}
.nk-subpage .e-con.nk-section > .elementor-widget + .elementor-widget { margin-top: 24px !important; }
@media (max-width: 768px) { .nk-subpage .e-con.nk-section { padding-top: 84px !important; } }

/* H1 podstrony – wygląd dużego napisu sekcji */
.section-title h1.nk-title-h1 {
  margin: -15px 0 15px;
  font: 700 36px/1.25 "Poppins", sans-serif;
  text-transform: uppercase;
  color: #fff;
}
@media (max-width: 768px) { .section-title h1.nk-title-h1 { font-size: 27px; } }

/* Treść podstron */
.nk-crumbs { margin: 0 0 18px; font-size: 13px; color: #999; }
.nk-crumbs a { color: #bbb; }
.nk-crumbs a:hover { color: orange; }
.nk-section .container h2.nk-h { margin: 28px 0 12px; font: 600 24px/1.3 "Raleway", sans-serif; color: #fff; }
.nk-section .container h3.nk-h { margin: 20px 0 8px; font: 600 19px/1.3 "Raleway", sans-serif; color: orange; }
.nk-section .container ul.nk-list { padding-left: 0; list-style: none; }
.nk-section .container ul.nk-list li { position: relative; padding: 0 0 8px 26px; }
.nk-section .container ul.nk-list li::before { content: "\F285"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1px; color: orange; font-size: 14px; }
.nk-cta-box { margin: 26px 0 4px; padding: 22px 24px; border-left: 3px solid orange; background: rgba(255, 255, 255, .05); border-radius: 4px; }
.nk-cta-box p { margin: 0 0 12px; }
.nk-btn {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 11px 24px;
  border: 2px solid orange;
  border-radius: 4px;
  background: orange;
  color: #000 !important;
  font: 600 14px/1.2 "Poppins", sans-serif;
  transition: .25s;
}
.nk-btn:hover { background: #fff; border-color: #fff; }
.nk-btn-outline { background: transparent; color: #fff !important; }
.nk-faq details { margin: 0 0 10px; padding: 12px 16px; background: rgba(255, 255, 255, .05); border-radius: 4px; }
.nk-faq summary { cursor: pointer; font-weight: 600; color: #fff; }
.nk-faq details[open] summary { color: orange; margin-bottom: 8px; }
.nk-faq details p { margin: 0; }
.nk-price-table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.nk-price-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.nk-price-table td:last-child { text-align: right; white-space: nowrap; color: orange; font-weight: 600; }

/* Kafelki usług: link „Więcej →” */
.services .icon-box .nk-svc-more { display: inline-block; margin-top: 14px; color: orange; font-weight: 600; font-size: 14px; }
.services .icon-box:hover .nk-svc-more { color: #fff; }
.services .icon-box h3.nk-svc-title a[href]:hover { color: orange; }
/* Etykieta i duży napis bloków na podstronach (div/h2 zamiast h2/p) */
.section-title .nk-st-label {
  font: 500 14px/1px "Poppins", sans-serif;
  padding: 0;
  margin: 0 0 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
}
.section-title .nk-st-label::after {
  content: "";
  width: 120px;
  height: 1px;
  display: inline-block;
  background: orange;
  margin: 4px 10px;
}
.section-title h2.nk-st-big {
  margin: -15px 0 15px;
  font: 700 36px/1.5 "Poppins", sans-serif;
  text-transform: uppercase;
  color: #fff;
}
@media (max-width: 768px) { .section-title h2.nk-st-big { font-size: 26px; line-height: 1.3; } }
/* Tabela cen na telefonie: nazwa nad ceną (bez wypychania strony poza ekran) */
@media (max-width: 600px) {
  .nk-price-table, .nk-price-table tbody, .nk-price-table tr, .nk-price-table td { display: block; width: 100%; }
  .nk-price-table tr { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nk-price-table td { padding: 2px 0; border: 0; }
  .nk-price-table td:last-child { text-align: left; white-space: normal; }
}
