:root {
  --ip-max: 1200px;
  --ip-gap: 12px;
  --ip-pad: 14px;
  --ip-border: #eee;
  --ip-text: #222;
  --ip-primary: #0d6efd;
  --ip-primary-m: #5c86ff;
}

.ip-header,
.ip-nav,
.ip-search {
  z-index: 99999999;
}

.ip-wrap {
  max-width: var(--ip-max);
  margin: 0 auto;
  padding: 0 var(--ip-pad);
}

/* ===== HEADER ===== */
.ip-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--ip-border);
}

.ip-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ip-gap);
  height: 60px;
}

.siec {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ip-logo img {
  display: block;
  height: 44px;
  width: auto;
}

.siec-portali {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

.siec-portali strong {
  color: #222;
}

/* Nawigacja - szybkie akcje */
.ip-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ip-action {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #272727;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--ip-border);
  font-size: 13px;
  transition: 0.2s;
}

.ip-action img {
  width: 22px;
  height: 22px;
  display: block;
}

.ip-action:hover {
  background: #f7f7f7;
}

.ip-action span {
  display: none;
}

/* Social icons */
.ip-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}

.ip-social img {
  width: 20px;
  height: 20px;
  display: block;
}

.ip-social:hover {
  opacity: 0.8;
}

/* Menu burger toggle */
.ipr-menu-toggle {
  display: flex !important;
  cursor: pointer;
}

/* Menu drawer (sidebar) */
.ipr-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.ipr-overlay.ipr-open {
  display: block;
}

.ipr-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.ipr-drawer.ipr-open {
  transform: translateX(0);
}

.ipr-drawer[aria-hidden="true"] {
  visibility: hidden;
}

.ipr-drawer-inner {
  padding: 20px;
}

.ipr-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #222;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ipr-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ipr-nav li {
  margin: 0;
}

.ipr-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  text-decoration: none;
  color: #222;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.ipr-nav a img {
  width: 20px;
  height: 20px;
}

.ipr-nav h3,
.ipr-nav h4 {
  margin: 20px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.ipr-nav h3 {
  margin-top: 0;
  border-top: none;
}

.menu-section .menu-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-weight: 600;
}

.menu-section .submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding-left: 20px;
}

.menu-section .submenu.open {
  display: block;
}

.menu-section .submenu li {
  padding: 8px 0;
}

.submenu-extra {
  display: none !important;
}

.toggle-submenu {
  display: block;
  padding: 8px 0;
  color: var(--ip-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
}

body.ipr-lock {
  overflow: hidden;
}

/* ===== DESKTOP (>=960px) ===== */
@media (min-width: 960px) {
  .ip-header-row {
    height: 72px;
  }

  .ipr-menu-toggle {
    display: none !important;
  }

  .ip-action span {
    display: inline;
  }

  .ipr-drawer,
  .ipr-overlay {
    display: none !important;
  }
}

/* ===== MOBILE (<960px) ===== */
@media (max-width: 959.98px) {
  .ip-action span {
    display: none;
  }

  .ip-actions {
    gap: 6px;
  }

  .ip-action {
    padding: 6px 8px;
  }
}
