.pd-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: none;
}

.pd-topbar .pd-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.pd-topbar-inner {
  width: 100%;
  max-width: none;
  transition: none;
}

.pd-header-panel {
  position: relative;
  --pd-meta-space: 0px;
  padding: 12px 34px calc(12px + var(--pd-meta-space));
  clip-path: inset(0 0 0 0 round 18px);
  border: 1px solid rgba(225, 43, 255, .18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(15, 15, 24, .96), rgba(11, 11, 18, .96)),
    #0d0d16;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .03),
    0 0 0 1px rgba(34, 20, 67, .36),
    0 0 22px rgba(222, 17, 255, .10),
    0 0 16px rgba(53, 135, 255, .08);
  transition:
    background-color .3s ease,
    box-shadow .3s ease,
    backdrop-filter .3s ease,
    border-color .3s ease,
    clip-path .18s ease,
    border-radius .28s ease;
  overflow: visible;
}

.pd-header-panel.header-scrolled,
.header-scrolled {
  background:
    linear-gradient(180deg, rgba(12, 12, 20, .96), rgba(10, 10, 16, .96)),
    rgba(12, 12, 20, .96);
  backdrop-filter: blur(18px);
  border-color: rgba(181, 38, 235, .16);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, .34),
    0 0 18px rgba(128, 47, 255, .08);
  padding: 12px 34px calc(12px + var(--pd-meta-space));
}

.pd-header-panel.has-meta {
  --pd-meta-space: 34px;
}

.pd-header-panel.has-meta:not(.header-scrolled) {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  clip-path: inset(-12px 0 0 0 round 0 0 18px 18px);
}

.pd-header-panel.has-meta:not(.header-scrolled)::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -1px;
  right: -1px;
  height: 12px;
  border-left: 1px solid rgba(225, 43, 255, .18);
  border-right: 1px solid rgba(225, 43, 255, .18);
  background:
    linear-gradient(180deg, rgba(15, 15, 24, .96), rgba(11, 11, 18, .96)),
    #0d0d16;
  pointer-events: none;
}

.pd-header-panel.has-meta.header-scrolled,
.has-meta.header-scrolled {
  --pd-meta-space: 0px;
  padding-bottom: 12px;
  clip-path: inset(0 0 0 0 round 18px);
}

.pd-header-panel.has-meta.header-scrolled .pd-header-meta,
.has-meta.header-scrolled .pd-header-meta {
  display: none;
}

.pd-header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.pd-site-logo-text {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 0 auto;
  margin-right: 0;
  font-family: "Inter", "Roboto", "Manrope", system-ui, sans-serif;
  font-size: 36px;
  font-weight: 780;
  letter-spacing: -.045em;
}

.pd-site-logo-text.is-pending {
  opacity: 0;
}

.pd-site-logo-media {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-width: 0;
}

.pd-site-logo-icon-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex: 0 0 auto;
}

.pd-site-logo-wordmark-img {
  height: 48px;
  width: auto;
  max-width: min(420px, 34vw);
  object-fit: contain;
  flex: 0 1 auto;
  margin-left: -1px;
}

.logo-prodark,
.logo-net {
  color: #fff;
}

.pd-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: rgba(255, 255, 255, .84);
  font-family: "Inter", "Roboto", "Manrope", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 450;
  line-height: 1;
  white-space: nowrap;
  text-shadow: none;
  transition: color .2s ease, opacity .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, text-shadow .2s ease;
}

.pd-header-meta {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-left: 0;
  opacity: 1;
  transition: opacity .18s ease;
}

.pd-header-meta[hidden] {
  display: none;
}

.pd-header-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  width: 100%;
  margin: 0 auto;
  max-width: min(920px, 100%);
}

.pd-header-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  color: #fff;
  font-size: 15px;
  font-weight: 570;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid rgba(0, 255, 255, .42);
  border-radius: 999px;
  background:
    radial-gradient(circle at 12% 100%, rgba(0, 255, 255, .10), transparent 42%),
    linear-gradient(180deg, rgba(14, 24, 34, .84), rgba(10, 17, 24, .88));
  background-size: 180% 100%, 100% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .03),
    0 0 0 1px rgba(0, 255, 255, .05),
    0 0 14px rgba(0, 255, 255, .14);
  text-shadow: 0 0 10px rgba(0, 255, 255, .18);
  animation: pdHeaderQuickGlow 4.8s ease-in-out infinite;
  transition: color .2s ease, text-shadow .2s ease, opacity .2s ease, border-color .2s ease, background .2s ease;
}

.pd-header-quick-link:hover {
  color: #fff;
  border-color: rgba(0, 255, 255, .54);
  background:
    radial-gradient(circle at 12% 100%, rgba(0, 255, 255, .15), transparent 42%),
    linear-gradient(180deg, rgba(14, 30, 38, .88), rgba(10, 18, 26, .92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .04),
    0 0 0 1px rgba(0, 255, 255, .06),
    0 0 16px rgba(0, 255, 255, .18);
  text-shadow: 0 0 12px rgba(0, 255, 255, .28);
}

.header-scrolled .pd-header-meta {
  opacity: 0;
  pointer-events: none;
}

@keyframes pdHeaderQuickGlow {

  0%,
  100% {
    border-color: rgba(0, 255, 255, .34);
    background-position: 0% 50%, 0 0;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .03),
      0 0 0 1px rgba(0, 255, 255, .05),
      0 0 12px rgba(0, 255, 255, .12);
  }

  50% {
    border-color: rgba(0, 255, 255, .58);
    background-position: 100% 50%, 0 0;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .04),
      0 0 0 1px rgba(0, 255, 255, .06),
      0 0 18px rgba(0, 255, 255, .20);
  }
}

.pd-header-link::after {
  content: "";
  display: none;
}

.pd-header-link:hover {
  color: #fff;
  text-shadow: 0 0 12px rgba(242, 32, 255, .16), 0 0 10px rgba(47, 120, 255, .12);
}

.pd-header-contact-link {
  margin-left: 0;
  margin-right: 0;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(243, 26, 255, .42);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 31, 255, .22), transparent 38%),
    linear-gradient(180deg, rgba(20, 18, 32, .96), rgba(10, 10, 18, .96));
  color: #fff;
  font-weight: 680;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .04),
    0 0 24px rgba(218, 15, 255, .16);
  text-shadow: 0 0 10px rgba(242, 32, 255, .16);
}

.pd-header-contact-link:hover {
  color: #fff;
  border-color: rgba(243, 26, 255, .58);
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 31, 255, .26), transparent 38%),
    linear-gradient(180deg, rgba(23, 20, 38, .96), rgba(12, 12, 22, .98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 0 20px rgba(218, 15, 255, .20);
  text-shadow: 0 0 12px rgba(242, 32, 255, .24);
}

.pd-header-link#pd-telegram-link {
  margin-left: 0;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(243, 26, 255, .42);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 31, 255, .22), transparent 38%),
    linear-gradient(180deg, rgba(20, 18, 32, .96), rgba(10, 10, 18, .96));
  color: #fff;
  font-weight: 680;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .04),
    0 0 24px rgba(218, 15, 255, .16);
}

.pd-header-link#pd-telegram-link:hover {
  border-color: rgba(243, 26, 255, .58);
  background:
    radial-gradient(circle at 100% 0%, rgba(244, 31, 255, .30), transparent 38%),
    linear-gradient(180deg, rgba(23, 20, 38, .98), rgba(12, 12, 22, .98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .05),
    0 0 30px rgba(218, 15, 255, .22);
}

.pd-topbar.is-bottom-docked {
  top: 0;
}

.pd-topbar.is-bottom-docked .pd-topbar-inner {
  width: 100%;
  max-width: none;
}

.pd-topbar.is-bottom-docked .pd-header-panel {
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

.pd-topbar.is-bottom-docked .pd-header-panel.has-meta:not(.header-scrolled) {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.pd-search-wrap {
  position: relative;
  flex: 0 1 248px;
  max-width: 248px;
  min-width: 140px;
  margin-left: auto;
  transition: max-width .18s ease, flex-basis .18s ease, transform .18s ease;
}

.pd-search-toggle {
  display: none;
}

.pd-header-panel.search-open .pd-search-wrap {
  flex-basis: min(420px, 34vw);
  max-width: min(420px, 34vw);
  z-index: 12;
}

.pd-search {
  width: 100%;
  height: 40px;
  min-width: 0;
  padding: 0 42px 0 18px;
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: 12px;
  background: rgba(17, 18, 29, .9);
  color: #f7f8ff;
  font-size: 15px;
  font-weight: 470;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

.pd-search::placeholder {
  color: rgba(205, 208, 228, .48);
}

.pd-search:focus {
  outline: none;
  border-color: rgba(102, 152, 255, .2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .03),
    0 0 0 1px rgba(191, 35, 255, .18),
    0 0 16px rgba(70, 122, 255, .12);
}

.pd-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  z-index: 5;
  display: none;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  cursor: pointer;
  transform: translateY(-50%);
}

.pd-search-wrap.has-text .pd-search-clear {
  display: block;
}

#pd-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: min(420px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  z-index: 9999;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(228, 36, 255, .12);
  border-radius: 16px;
  background: rgba(12, 12, 20, .98);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, .44),
    0 0 16px rgba(196, 35, 255, .10);
}

.pd-header-panel.search-open,
.pd-header-panel.has-search-results,
.pd-header-panel:focus-within {
  clip-path: none !important;
  overflow: visible;
}

.pd-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  transition: background .15s ease;
}

.pd-search-item:hover {
  background: rgba(255, 255, 255, .05);
}

.pd-search-item:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.pd-search-item img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.pd-search-item-title {
  color: #fff;
  font-size: 15px;
  font-weight: 650;
}

.pd-search-item-category {
  color: #9a9fc2;
  font-size: 13px;
}

@media (max-width: 980px) {
  .pd-header-top {
    gap: 12px;
    flex-wrap: wrap;
  }

  .pd-header-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding-left: 0;
    max-height: 64px;
  }

  .pd-header-quick-links {
    justify-content: flex-end;
  }

  .pd-site-logo-text {
    margin-right: 0;
    gap: 10px;
  }

  .pd-search-wrap {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }

  .pd-header-link#pd-telegram-link {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .pd-topbar {
    top: 8px;
    transition: none;
  }

  .pd-topbar .pd-container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .pd-topbar-inner {
    width: 100%;
    transition: none;
  }

  .pd-header-panel {
    position: relative;
    padding: 8px 10px 12px;
    border-radius: 16px;
    background:
      linear-gradient(180deg, rgba(15, 15, 24, .97), rgba(11, 11, 18, .97)),
      #0d0d16;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .03),
      0 0 0 1px rgba(34, 20, 67, .24),
      0 0 10px rgba(222, 17, 255, .05),
      0 0 8px rgba(53, 135, 255, .04);
    transition: none;
  }

  .pd-header-panel.has-meta {
    --pd-meta-space: 0px;
  }

  .pd-header-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px 10px;
    align-items: center;
    grid-template-areas:
      "logo search-toggle telegram"
      "search search search";
  }

  .pd-site-logo-text {
    grid-area: logo;
    grid-column: auto;
    font-size: 28px;
    gap: 2px;
  }

  .pd-site-logo-icon-img {
    width: 44px;
    height: 44px;
  }

  .pd-site-logo-wordmark-img {
    height: 34px;
    max-width: min(180px, 46vw);
    margin-left: -1px;
  }

  .pd-header-link {
    font-size: 12px;
    font-weight: 450;
  }

  .pd-header-contact-link {
    display: none;
  }

  .pd-header-link#pd-telegram-link {
    grid-area: telegram;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    justify-self: end;
    align-self: center;
  }

  .pd-search-wrap {
    grid-area: search;
    order: initial;
    min-width: 0;
    width: 100%;
    max-width: none;
    max-height: 0;
    margin: 0;
    justify-self: stretch;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity .16s ease, max-height .16s ease, margin-top .16s ease;
  }

  .pd-search-toggle {
    grid-area: search-toggle;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background:
      radial-gradient(circle at 50% 50%, rgba(0, 255, 255, .07), transparent 58%),
      rgba(13, 15, 20, .52);
    color: rgba(0, 255, 255, .78);
    font-size: 22px;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 255, 255, .24);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .025);
  }

  .pd-search {
    height: 36px;
    padding-inline: 12px 32px;
    border-color: rgba(255, 255, 255, .025);
    background: rgba(17, 18, 29, .64);
    color: rgba(247, 248, 255, .84);
    font-size: 16px;
  }

  #pd-search-results {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
  }

  .pd-header-meta {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    flex-direction: row;
    width: 100%;
    margin: 8px 0 0;
    padding-left: 0;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-height: 34px;
    transition: opacity .16s ease, max-height .16s ease, margin-top .16s ease;
    transform: none;
    overflow: visible;
  }

  .pd-header-quick-links {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 9px;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 10px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 10px;
    scroll-snap-type: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  .pd-header-quick-links::-webkit-scrollbar {
    display: none;
  }

  .pd-header-quick-link {
    min-height: 26px;
    flex: 0 0 auto;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 560;
    scroll-snap-align: none;
    border-color: rgba(0, 255, 255, .50);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .04),
      0 0 0 1px rgba(0, 255, 255, .06),
      0 0 14px rgba(0, 255, 255, .18);
  }

  .pd-header-meta::after {
    content: none;
  }

  .pd-header-panel.mobile-meta-hidden .pd-header-meta {
    margin-top: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
  }

  .pd-header-panel.mobile-meta-hidden .pd-search-wrap {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .pd-header-panel.search-open .pd-search-wrap {
    grid-area: search;
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    max-height: 42px;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    z-index: 12;
  }

  .pd-header-panel.search-open.mobile-meta-hidden .pd-search-wrap {
    max-height: 42px;
    opacity: 1;
    pointer-events: auto;
  }

  .pd-topbar.is-bottom-docked {
    top: 8px;
  }

  .pd-topbar.is-bottom-docked .pd-topbar-inner {
    width: 100%;
  }

  .pd-topbar.is-bottom-docked .pd-header-panel {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }
}
