/* Contact tail restore: injected after truncated root stylesheet. */
.contact-page .contact-map a,
.contact-page .contact-map img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-form-section #contact-form {
  max-width: 980px;
  margin: 0 auto 30px;
  padding: clamp(18px, 2.3vw, 28px);
  border: 1px solid #e4e5e8;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form-section #contact-form .form-field {
  margin: 0;
}

.contact-form-section #contact-form .field-imie,
.contact-form-section #contact-form .field-email,
.contact-form-section #contact-form .field-tel {
  grid-column: span 1;
}

.contact-form-section #contact-form .field-message,
.contact-form-section #contact-form .h-captcha,
.contact-form-section #contact-form .field-zgoda,
.contact-form-section #contact-form .contact-submit {
  grid-column: 1 / -1;
}

.contact-form-section #contact-form input[type="text"],
.contact-form-section #contact-form input[type="email"],
.contact-form-section #contact-form input[type="tel"],
.contact-form-section #contact-form textarea {
  border: 1px solid #d7d9df;
  border-radius: 10px;
  padding: 13px 14px;
  background: #fff;
  line-height: 1.45;
}

.contact-form-section #contact-form input[type="text"]::placeholder,
.contact-form-section #contact-form input[type="email"]::placeholder,
.contact-form-section #contact-form input[type="tel"]::placeholder,
.contact-form-section #contact-form textarea::placeholder {
  color: #777d86;
}

.contact-form-section #contact-form input[type="text"]:focus,
.contact-form-section #contact-form input[type="email"]:focus,
.contact-form-section #contact-form input[type="tel"]:focus,
.contact-form-section #contact-form textarea:focus {
  border-color: var(--col1);
  box-shadow: 0 0 0 4px rgba(225, 17, 20, 0.14);
}

.contact-form-section #contact-form .field-message textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form-section #contact-form .h-captcha {
  margin: 2px 0 0;
  min-height: 86px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: visible;
  position: relative;
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

.contact-form-section #contact-form .h-captcha > div,
.contact-form-section #contact-form .h-captcha iframe {
  max-width: 100%;
}

.contact-form-section #contact-form .h-captcha > div {
  min-width: 303px;
  min-height: 78px;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.contact-form-section #contact-form .h-captcha iframe {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.contact-form-section #contact-form .h-captcha * {
  opacity: 1 !important;
  visibility: visible !important;
}

.contact-form-section #contact-form .h-captcha > div,
.contact-form-section #contact-form .h-captcha > div > div {
  display: block !important;
  overflow: visible !important;
  min-height: 78px;
}

.contact-form-section #contact-form .h-captcha iframe[src*="hcaptcha"] {
  min-height: 78px !important;
  background: #fff !important;
}

.contact-form-section #contact-form .field-zgoda {
  padding: 12px 14px;
  border: 1px solid #ebebee;
  border-radius: 10px;
  background: #f8f8fa;
  text-align: left;
}

.contact-form-section #contact-form .field-zgoda label {
  display: block;
  line-height: 1.45;
}

.contact-form-section #contact-form .field-zgoda input[type="checkbox"] {
  display: inline-block;
  vertical-align: text-top;
  margin: 2px 8px 0 0;
  width: 18px;
  height: 18px;
  accent-color: var(--col1);
}

.contact-form-section #contact-form .contact-submit {
  margin-top: 2px;
  margin-bottom: 0;
}

.contact-form-section #contact-form .contact-submit input[type=submit] {
  min-width: 220px;
  border-radius: 999px;
  padding: 13px 28px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

/* On contact page this global section separator is visually redundant. */
.contact-form-section {
  border-top: 0 !important;
}

.contact-page + .contact-form-section {
  padding-top: 34px;
}

.contact-form-section h2.large_bottom_space {
  margin-bottom: 22px !important;
}

@media (min-width: 1001px) {
  .contact-page .row.middle {
    align-items: stretch;
  }

  .contact-page .contact-details,
  .contact-page .contact-map {
    display: flex;
  }

  .contact-page .contact-details {
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: 20px 22px;
    border: 1px solid #ececef;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
  }

  .contact-page .contact-map {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    border-radius: 14px;
  }

  .contact-page .contact-details .large_bottom_space {
    margin-bottom: 18px !important;
  }

  .contact-page .contact-iconbox {
    margin-bottom: 18px;
  }

  .contact-page .contact-iconbox .contact-icon {
    flex-basis: 42px;
    width: 42px;
    max-width: 42px;
    padding-right: 8px;
  }

  .contact-page .contact-icon i {
    font-size: 32px;
  }

  .contact-page .contact-text .contact-label {
    margin-bottom: 4px;
    font-size: 14px;
    color: #6b7178;
  }

  .contact-page .contact-text p {
    line-height: 1.38;
  }

  .contact-page + .contact-form-section {
    padding-top: 28px;
  }

  .contact-form-section h2.large_bottom_space {
    margin-bottom: 18px !important;
  }

  .contact-form-section #contact-form {
    max-width: 940px;
    margin-bottom: 26px;
    padding: 20px 22px;
    gap: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  }

  .contact-form-section #contact-form .field-message textarea {
    min-height: 158px;
  }

  .contact-form-section #contact-form .field-zgoda {
    padding: 10px 12px;
  }

  .contact-form-section #contact-form .contact-submit input[type=submit] {
    min-width: 208px;
    padding: 12px 24px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.14);
  }

  .contact-page .contact-map .contact-map-facade {
    width: 100%;
    height: 100%;
    border-radius: 14px;
  }
}

/* /kontakt: use one already-needed family in the first viewport to trim font surface. */
body.contact-page-view header nav ul li a,
body.contact-page-view h1,
body.contact-page-view h2,
body.contact-page-view h3,
body.contact-page-view h4,
body.contact-page-view h5,
body.contact-page-view h6,
body.contact-page-view .contact-page .contact-map .contact-map-trigger,
body.contact-page-view .contact-page .contact-map .contact-map-summary,
body.contact-page-view .contact-page .contact-map .contact-map-summary span,
body.contact-page-view .contact-page .contact-map .contact-map-chip,
body.contact-page-view .contact-page .contact-map .contact-map-summary strong,
body.contact-page-view .contact-form-section #contact-form .contact-submit input[type=submit],
body.contact-page-view .contact-form-section .cta .button {
  font-family: Barlow, sans-serif;
}

.contact-form-section .cta {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 24px;
  padding: 38px 0;
  border-radius: 0;
  content-visibility: auto;
  contain-intrinsic-size: 340px;
}

.contact-form-section .cta .container {
  width: min(90%, 1240px);
}

.contact-form-section .cta .spread-row {
  gap: 18px;
}

.contact-form-section .cta h4,
.contact-form-section .cta .cta-heading {
  margin: 0;
  line-height: 1.25;
}

@media (max-width: 1000px) {
  .contact-page .contact-map {
    margin-top: 10px;
  }

  .contact-page .contact-iconbox .contact-icon {
    flex-basis: 44px;
    width: 44px;
    max-width: 44px;
  }

  .contact-page .contact-icon i {
    font-size: 32px;
  }

  .contact-form-section #contact-form {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 12px;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-page + .contact-form-section {
    padding-top: 20px;
  }

  .contact-form-section #contact-form .field-imie,
  .contact-form-section #contact-form .field-email,
  .contact-form-section #contact-form .field-tel {
    grid-column: 1 / -1;
  }

  .contact-form-section #contact-form .contact-submit input[type=submit] {
    width: 100%;
    min-width: 0;
  }

  .contact-form-section .cta {
    margin-top: 18px;
    padding: 28px 0;
  }

  .contact-form-section .cta .spread-row {
    gap: 12px;
  }
}

/* Subpage hero final balancing:
   - desktop: wider, less wrapped headline and stable proportions
   - mobile: keep compact layout
   (homepage slider H1 remains untouched) */
body:not(.home) .page-title {
  background-size: cover;
  background-repeat: no-repeat;
}

@media (min-width: 1001px) {
  body:not(.home) .page-title {
    height: clamp(260px, 21vw, 420px);
    min-height: 0;
    padding: clamp(16px, 1.3vw, 26px) 0 !important;
  }

  body:not(.home) .page-title h1 {
    max-width: min(40ch, 72%);
    font-size: clamp(30px, 2.2vw, 44px) !important;
    line-height: 1.08 !important;
    text-wrap: pretty;
  }

  body:not(.home) .page-title-subtitle {
    max-width: min(78ch, 78%);
    font-size: clamp(15px, 1vw, 20px);
  }

  body:not(.home) .breadcrumbs {
    font-size: clamp(13px, 0.78vw, 15px);
  }
}

/* Contact map: performant facade + click-to-load interactive map */
.contact-page .contact-map .contact-map-facade {
  position: relative;
  border: 1px solid rgba(32, 30, 30, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
  background: #f3f3f3;
}

.contact-page .contact-map .contact-map-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
  text-align: left;
  line-height: 0;
}

.contact-page .contact-map .contact-map-trigger:focus-visible {
  outline: 3px solid var(--col1);
  outline-offset: 2px;
}

.contact-page .contact-map .contact-map-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 30, 30, 0.08) 0%, rgba(32, 30, 30, 0) 44%, rgba(32, 30, 30, 0.18) 100%);
  pointer-events: none;
}

.contact-page .contact-map .contact-map-trigger img {
  display: block;
  width: 100%;
  height: clamp(220px, 29vw, 400px);
  object-fit: cover;
  object-position: center;
}

@media (min-width: 1001px) {
  .contact-page .contact-map .contact-map-facade {
    aspect-ratio: 16 / 9;
  }

  .contact-page .contact-map .contact-map-trigger img {
    height: 100%;
  }

  .contact-page .contact-map .contact-map-facade iframe {
    height: 100%;
  }
}

@media (min-width: 1400px) {
  .contact-page {
    max-width: 1320px;
  }

  .contact-page .row.middle {
    align-items: stretch;
  }

  .contact-page .contact-details.col_3 {
    width: 30%;
  }

  .contact-page .contact-map.col_9 {
    width: 70%;
  }

  .contact-page .contact-map .contact-map-facade {
    aspect-ratio: auto;
  }

  .contact-page .contact-map .contact-map-trigger img,
  .contact-page .contact-map .contact-map-facade iframe {
    height: clamp(300px, 20vw, 360px);
  }
}

.contact-page .contact-map .contact-map-trigger picture {
  display: block;
}

.contact-page .contact-map .contact-map-summary {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  max-width: min(430px, calc(100% - 116px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  line-height: 1.25;
}

.contact-page .contact-map .contact-map-summary strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
}

.contact-page .contact-map .contact-map-summary span {
  display: block;
  font-size: 12px;
  color: rgba(32, 30, 30, 0.78);
}

.contact-page .contact-map .contact-map-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(32, 30, 30, 0.9);
  color: #fff;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(32, 30, 30, 0.88);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.contact-page .contact-map .contact-map-facade iframe {
  display: block;
  width: 100%;
  height: clamp(220px, 29vw, 400px);
}

.contact-page .contact-map .contact-map-actions {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: auto;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-page .contact-map .contact-map-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(32, 30, 30, 0.88);
  border-radius: 999px;
  background: rgba(32, 30, 30, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.contact-page .contact-map .contact-map-actions a:hover,
.contact-page .contact-map .contact-map-actions a:focus-visible {
  border-color: var(--col1);
  background: var(--col1);
  color: #fff;
}

@media (max-width: 1000px) {
  .contact-page .contact-map .contact-map-trigger img {
    height: clamp(220px, 56vw, 290px);
  }

  .contact-page .contact-map .contact-map-facade iframe {
    height: clamp(220px, 56vw, 290px);
  }

  .contact-page .contact-map .contact-map-summary {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 9px 10px;
  }

  .contact-page .contact-map .contact-map-summary strong {
    font-size: 12px;
  }

  .contact-page .contact-map .contact-map-summary span {
    font-size: 11px;
  }

  .contact-page .contact-map .contact-map-chip {
    top: auto;
    right: auto;
    left: 10px;
    bottom: 54px;
    font-size: 11px;
    padding: 6px 9px;
  }

  .contact-page .contact-map .contact-map-actions {
    left: 10px;
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }

  .contact-page .contact-map .contact-map-actions a {
    min-height: 32px;
    font-size: 11px;
    padding: 6px 7px;
  }
}


/* CWV: avoid loading FontAwesome webfont for common site icons (menu/contact/footer) */
.fa-bars,
.fa-map-marker,
.fa-phone,
.fa-envelope {
  font-family: inherit !important;
  font-style: normal !important;
  font-variant: normal !important;
  font-weight: inherit !important;
}

.fa-bars:before,
.fa-map-marker:before,
.fa-phone:before,
.fa-envelope:before {
  font-family: inherit !important;
  font-style: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  line-height: 1 !important;
}

.fa-bars:before {
  content: "\2630" !important; /* hamburger */
  font-weight: 700 !important;
}

.fa-phone:before {
  content: "\260E" !important; /* phone */
  font-weight: 400 !important;
}

.fa-envelope:before {
  content: "\2709" !important; /* email */
  font-weight: 400 !important;
}

.fa-map-marker:before {
  content: "\2316" !important; /* location */
  font-weight: 400 !important;
}
/* CLS fix: avoid anchoring full page content to viewport bottom during early render */
body {
  justify-content: flex-start !important;
}

/* Keep sticky footer behavior without shifting main content */
footer {
  margin-top: auto;
}

footer .footer-widgets {
  content-visibility: auto;
  contain-intrinsic-size: 980px;
}

footer .footer-copyright {
  content-visibility: auto;
  contain-intrinsic-size: 52px;
}

/* Runtime stability overrides: avoid broad transitions on first paint */
a {
  transition: color 0.3s ease;
}

input[type=text],
input[type=email],
input[type=password],
input[type=tel],
input[type=url],
input[type=search],
input[type=date],
textarea,
select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.button,
input[type=submit],
button {
  transition: background-color 0.4s ease, color 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

nav li .submenu a:after {
  transition: transform 0.3s ease;
}

nav li .submenu a span {
  transition: color 0.3s ease;
}

.slick-arrow {
  transition: opacity 0.3s ease;
}

.fancybox-bg {
  transition: transform 0.4s ease;
}

.fancybox-overlay {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fancybox .button {
  transition: background-color 0.4s ease, color 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.mapa img {
  transition: transform 0.4s ease;
}

.katalogi a img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formularz .form-success {
  transition: opacity 0.5s ease;
}

