/* Premium Speakers — menu główne (styl glass / overlay) */

header.ps-header,
#ps-site-header.ps-header {
  position: relative;
  z-index: 100;
  width: 100%;
  padding: 0;
  background: transparent;
  border-bottom: 0;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.ps-header__bar {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.07) 0%,
      rgba(255, 255, 255, 0.02) 45%,
      rgba(0, 0, 0, 0.08) 100%
    );
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ps-header__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.55px, transparent 0.55px);
  background-size: 11px 11px;
}

.ps-header.is-scrolled .ps-header__bar,
body:not(.ps-home) .ps-header .ps-header__bar {
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.48) 100%
    );
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

body.ps-home .ps-header .ps-header__bar {
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(0, 0, 0, 0.04) 100%
    );
}

body.ps-home .ps-header.is-scrolled .ps-header__bar {
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.58) 100%
    );
}

.ps-header__inner {
  position: relative;
  z-index: 125;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  box-sizing: border-box;
}

.ps-header__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
  text-decoration: none;
  margin-right: 0.5rem;
}

.ps-header__logo {
  display: block;
  height: 34px;
  width: auto;
}

.ps-header__tagline {
  font-family: "Raleway", sans-serif;
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.25;
  text-align: center;
  width: 100%;
  color: #e13b63;
}

.ps-header__toggle {
  display: none;
  position: relative;
  z-index: 130;
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.ps-header__toggle-icon {
  display: block;
  position: relative;
  width: 1.25rem;
  height: 1px;
  margin: 0 auto;
  background: #ffffff;
  transition: background 0.25s ease;
}

.ps-header__toggle-icon::before,
.ps-header__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.25rem;
  height: 1px;
  background: #ffffff;
  transition: transform 0.25s ease, top 0.25s ease;
}

.ps-header__toggle-icon::before {
  top: -7px;
}

.ps-header__toggle-icon::after {
  top: 7px;
}

.ps-header.is-open .ps-header__toggle-icon {
  background: transparent;
}

.ps-header.is-open .ps-header__toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.ps-header.is-open .ps-header__toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.ps-header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 1.5rem;
  min-width: 0;
}

.ps-header__menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ps-header__item {
  position: relative;
}

.ps-header__link,
.ps-header__util-link {
  font-family: "Raleway", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.ps-header__link:hover,
.ps-header__util-link:not(.ps-header__util-link--cta):hover,
.ps-header__sublink:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(6px) saturate(165%);
  -webkit-backdrop-filter: blur(6px) saturate(165%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.18);
}

.ps-header__link.is-active,
.ps-header__util-link.is-active {
  color: #ffffff;
  background: rgba(225, 59, 99, 0.2);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(6px) saturate(165%);
  -webkit-backdrop-filter: blur(6px) saturate(165%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 4px 12px rgba(0, 0, 0, 0.16);
}

.ps-header__sublink.is-active {
  color: #e13b63;
}

.ps-header__chevron {
  margin-top: 0.1rem;
  transition: transform 0.2s ease;
}

.ps-header__item--open .ps-header__chevron {
  transform: rotate(180deg);
}

.ps-header__submenu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 12.5rem;
  margin: 0;
  padding: 0.45rem 0;
  list-style: none;
  background: rgba(8, 8, 8, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.ps-header__item--has-sub.is-open .ps-header__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.ps-header__subitem {
  display: block;
}

.ps-header__sublink {
  display: block;
  padding: 0.55rem 1.1rem;
  font-family: "Raleway", sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ps-header__sublink:hover {
  background: rgba(255, 53, 111, 0.12);
}

.ps-header__utils {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
  flex-shrink: 0;
}

.ps-header__util-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}

.ps-header__util-link--cta {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  padding: 0.45rem 1rem;
}

.ps-header__util-link--cta:hover {
  color: #ffffff;
  background: rgba(225, 59, 99, 0.46);
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px) saturate(165%);
  -webkit-backdrop-filter: blur(6px) saturate(165%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 6px 16px rgba(0, 0, 0, 0.22);
}

body.ps-header-nav-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .ps-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ps-header__nav {
    position: fixed;
    top: 4.25rem;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 5.5rem 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.97);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    overflow-y: auto;
  }

  .ps-header__nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .ps-header__menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .ps-header__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .ps-header__link,
  .ps-header__link--toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .ps-header__util-link:not(.ps-header__util-link--cta) {
    width: 100%;
    padding: 0.85rem 1rem;
  }

  .ps-header__submenu {
    position: static;
    transform: none;
    min-width: 0;
    margin: 0;
    padding: 0 0 0.5rem;
    background: transparent;
    border: 0;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: max-height 0.25s ease;
  }

  .ps-header__item--has-sub.is-open .ps-header__submenu {
    max-height: 14rem;
  }

  .ps-header__sublink {
    padding: 0.55rem 0 0.55rem 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
  }

  .ps-header__utils {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .ps-header__util-link {
    font-size: 1rem;
    text-align: left;
  }

  .ps-header__util-link--cta {
    text-align: center;
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 576px) {
  .ps-header__inner {
    padding: 0.75rem 1rem;
  }

  .ps-header__tagline {
    font-size: 0.48rem;
    letter-spacing: 0.1em;
  }
}
