.nz-lang, #nz-drawer-lang { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
img, svg, video { max-width: 100%; }

#nz-burger { display: none; }

@media (max-width: 1080px) {

  html.nz-js .nz-header nav,
  html.nz-js .nz-header nav + div { display: none !important; }

  html.nz-js .nz-header .nz-c {
    justify-content: space-between !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  html.nz-js .nz-header .nz-logo-icon { height: 46px !important; }
  html.nz-js .nz-header.nz-scrolled .nz-logo-icon { height: 40px !important; }

  html.nz-js #nz-topbar {
    font-size: 12px !important;
    padding: 8px 14px !important;
    line-height: 1.45 !important;
  }

  html.nz-js #nz-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 9px;
    margin-left: auto;
    border: 1px solid #C9D6E5;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1300;
    position: relative;
  }
  html.nz-js #nz-burger span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: #0C447C;
    transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .2s ease;
  }
  html.nz-drawer-open #nz-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  html.nz-drawer-open #nz-burger span:nth-child(2) { opacity: 0; }
  html.nz-drawer-open #nz-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

}

#nz-drawer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 10000;
  background: rgba(2,24,41,.5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
  font-family: 'Inter', system-ui, sans-serif;
}
html.nz-drawer-open #nz-drawer { opacity: 1; pointer-events: auto; }

#nz-drawer-inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(360px, 86vw);
  background: #fff;
  box-shadow: -14px 0 44px rgba(2,24,41,.26);
  padding: 86px 22px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4,0,.2,1);
}
html.nz-drawer-open #nz-drawer-inner { transform: translateX(0); }

#nz-drawer-nav { display: flex; flex-direction: column; }
.nz-drawer-link {
  display: block;
  padding: 13px 10px;
  font-size: 16px;
  font-weight: 500;
  color: #0F1B2D;
  text-decoration: none;
  border-radius: 9px;
  border-bottom: 1px solid #EDF0F4;
  transition: background .15s, color .15s;
}
.nz-drawer-link:last-child { border-bottom: none; }
.nz-drawer-link:hover, .nz-drawer-link:focus { background: #F0F6FF; color: #0C447C; }
.nz-drawer-active { color: #0C447C; font-weight: 600; }

#nz-drawer-cta { display: flex; flex-direction: column; gap: 10px; }
.nz-drawer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: #0C447C;
  border: 1px solid #C9D6E5;
}
.nz-drawer-btn-primary {
  background: linear-gradient(135deg,#0C447C,#185FA5);
  color: #fff;
  border: none;
  box-shadow: 0 6px 18px rgba(12,68,124,.3);
}

#nz-drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E0E6EE;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
#nz-drawer-close:hover { background: #F0F6FF; border-color: #C3D4E8; }

#nz-drawer-lang {
  position: relative;
  padding-top: 18px;
  border-top: 1px solid #EDF0F4;
  margin-top: auto;
}
#nz-drawer-lang-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #C9D6E5;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #0F1B2D;
  cursor: pointer;
}
#nz-drawer-lang-btn svg.nz-lang-flag { width: 18px; height: 18px; flex-shrink: 0; }
#nz-drawer-lang-chev {
  margin-left: auto;
  display: inline-flex;
  color: #0C447C;
  transition: transform .2s ease;
}
#nz-drawer-lang.open #nz-drawer-lang-chev { transform: rotate(180deg); }

#nz-drawer-lang-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 8px);
  background: #fff;
  border: 1px solid #E0E6EE;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15,27,45,.16);
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
#nz-drawer-lang.open #nz-drawer-lang-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }

.nz-drawer-lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
}
.nz-drawer-lang-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nz-drawer-lang-item:hover { background: #F0F6FF; color: #0C447C; }
.nz-drawer-lang-active { background: #F0F6FF; color: #0C447C; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  #nz-drawer, #nz-drawer-inner, #nz-burger span { transition: none; }
}

@media (max-width: 900px) {
  .nz-foot-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 26px !important;
    align-items: start !important;
  }
  .nz-re-grid,
  .nz-app-grid,
  .nz-kalk-grid,
  .nz-kontakt-grid,
  .nz-faq-grid { grid-template-columns: 1fr !important; }

  .nz-kroki-grid { grid-template-columns: repeat(2, 1fr) !important; }
  #nz-tabs { grid-template-columns: repeat(2, 1fr) !important; }
  .nz-pane > div { grid-template-columns: minmax(0, 1fr) !important; }

  .nz-kontakt-grid { gap: 24px !important; }
  .nz-kalk-grid { gap: 16px !important; }

  #nz-hero-bld {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 380px;
    width: 100%;
  }

  #nz-badge-left-wrap,
  #nz-badge-right-wrap {
    position: static !important;
    top: auto !important; right: auto !important;
    bottom: auto !important; left: auto !important;
  }
  #nz-badge-left-wrap > div,
  #nz-badge-right-wrap > div { animation: none !important; font-size: 13px !important; }

  .nz-wyk-cta {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 26px 22px !important;
    gap: 18px !important;
  }
  .nz-wyk-btns { width: 100%; }

  .nz h2 { font-size: 30px !important; }
  .nz-hero h1 { font-size: 36px !important; }

  .nz-c { padding-left: 20px !important; padding-right: 20px !important; }
}

@media (max-width: 620px) {
  .nz-c { padding-left: 16px !important; padding-right: 16px !important; }

  .nz-kroki-grid,
  .nz-zmien-grid,
  .nz-zmien-compare,
  .nz-form-row { grid-template-columns: 1fr !important; }

  #nz-tabs { gap: 7px !important; }
  #nz-tabs .nz-tab { padding: 11px 10px !important; }
  #nz-tabs .nz-tab > div:last-child { font-size: 14px !important; }

  #nz-steps > div:first-child,
  #nz-stbar { display: none !important; }

  .nz-kroki-grid { gap: 0 !important; }
  .nz-step {
    display: flex !important;
    align-items: center;
    gap: 14px;
    text-align: left !important;
    padding: 6px 0;
    position: relative;
  }
  .nz-step::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #EDF0F4;
  }
  .nz-step:first-child::before { top: 50%; }
  .nz-step:last-child::before { bottom: 50%; }
  .nz-step .sn {
    margin: 0 !important;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }
  .nz-step .st { font-size: 15px !important; }

  #nz-ct-p { font-size: 14px !important; line-height: 1.6 !important; }

  .nz-foot-bottom {
    align-items: center !important;
    text-align: center !important;
    padding-bottom: 72px !important;
  }

  #nz-alarm-wrap { bottom: 14px !important; left: 14px !important; }
  #nz-alarm-trigger {
    font-size: 12px !important;
    padding: 8px 13px 8px 10px !important;
    gap: 6px !important;
  }
  #nz-alarm-trigger svg { width: 12px !important; height: 12px !important; }
  .nz-alarm-dot { width: 7px !important; height: 7px !important; }
  #nz-alarm-panel { width: min(330px, calc(100vw - 28px)) !important; }

  .nz h1 { font-size: 30px !important; }
  .nz h2 { font-size: 25px !important; }
  .nz h3 { font-size: 19px !important; }
  #nz-vid-sekcja h3 { font-size: 27px !important; }
  .nz-hero h1 { font-size: 30px !important; }

  .nz-nowrap-desk { white-space: normal !important; }

  #nz-map { height: 460px !important; }

  .nz-table-wrap { overflow-x: auto !important; }
  .nz-table-wrap:has(.nz-empty-row) .nz-table thead { display: none; }
  .nz-table { table-layout: fixed; width: 100% !important; }
  .nz-table thead th {
    white-space: normal !important;
    padding: 12px 10px !important;
    width: auto !important;
  }
  .nz-table thead th:first-child { width: 36px !important; text-align: center; }
  .nz-table thead th:last-child { width: 96px !important; }
  .nz-table tbody td { padding: 14px 10px !important; }
  .nz-table td, .nz-table th { overflow-wrap: anywhere; }
  .nz-empty-row td {
    padding: 44px 18px !important;
    font-size: 14px !important;
    white-space: normal !important;
    line-height: 1.6;
  }

  .nz-wyk-btns > a { flex: 1 1 100%; justify-content: center; }

  .nz-stpane.active { grid-template-columns: minmax(0, 1fr) !important; gap: 18px !important; }
  .nz-stpane.active svg { max-width: 160px; height: auto; justify-self: center; }

  .nz-foot-grid { grid-template-columns: 1fr !important; gap: 22px !important; }
  .nz-foot-grid img { height: 62px !important; }
  .nz-foot-grid p { padding-right: 0 !important; }

  .nz-foot-bottom {
    flex-direction: column !important;
    gap: 8px !important;
  }

  #oferta,
  #nz-app-section,
  #nz-kroki,
  #nz-zmien,
  #kalkulator,
  #faq,
  #nz-map-section { padding-top: 38px !important; padding-bottom: 38px !important; }
}
