/* Unified Premium Navigation Layer v5 */
:root {
  --etl-dd-bg-1: rgba(255, 255, 255, 0.99);
  --etl-dd-bg-2: rgba(245, 247, 251, 0.98);
  --etl-dd-border: rgba(14, 21, 32, 0.11);
  --etl-dd-text: rgba(12, 18, 28, 0.94);
  --etl-dd-muted: rgba(46, 58, 77, 0.72);
  --etl-dd-soft: rgba(14, 21, 32, 0.05);
  --etl-dd-soft-2: rgba(14, 21, 32, 0.1);
  --etl-dd-accent: #e52629;
  --etl-dd-shadow: 0 28px 66px rgba(7, 12, 20, 0.18);
}

#p-header,
#p-header .p-container,
#p-header .p-nav,
#p-header .p-menu-desktop,
#p-header .p-menu-list,
#p-header .p-has-dropdown {
  overflow: visible !important;
}

#p-header .p-menu-list {
  gap: 24px !important;
}

#p-header .p-link {
  color: rgba(255, 255, 255, 0.8) !important;
  letter-spacing: 0.05em;
}

#p-header .p-link:hover,
#p-header .p-link:focus-visible,
#p-header .p-link.is-active,
#p-header .p-link[aria-current="page"],
#p-header .p-has-dropdown.is-open > .p-dd-toggle {
  color: rgba(255, 255, 255, 0.98) !important;
}

body#top #p-header.p-header .p-cabinet,
body#top #p-header.p-header .p-site-search-trigger,
body#top #p-header.p-header .p-city-switch__select,
body#top #p-header.p-header .theme-switch {
  border-radius: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

body#top #p-header.p-header .p-cabinet:hover,
body#top #p-header.p-header .p-site-search-trigger:hover,
body#top #p-header.p-header .p-city-switch__select:hover,
body#top #p-header.p-header .theme-switch:hover {
  transform: translateY(-1px);
}

body#top #p-header.p-header .p-btn-primary {
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(229, 38, 41, 0.24);
}

#p-header .p-has-dropdown {
  position: static;
}

#p-header .p-dd-caret,
#p-header .p-dd-trigger .ph-caret-down {
  display: none !important;
}

#p-header .p-has-dropdown > .p-dd {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  transform: translateX(-50%);
  width: min(1080px, calc(100vw - 32px));
  max-width: min(1080px, calc(100vw - 32px));
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--etl-dd-border);
  background:
    radial-gradient(840px 300px at 8% -12%, rgba(229, 38, 41, 0.08), rgba(229, 38, 41, 0) 62%),
    linear-gradient(180deg, var(--etl-dd-bg-1), var(--etl-dd-bg-2));
  box-shadow: var(--etl-dd-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(1.04);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
  display: none !important;
  z-index: 2400;
  overflow: hidden;
}

#p-header .p-has-dropdown > .p-dd::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(229, 38, 41, 0), rgba(229, 38, 41, 0.3), rgba(229, 38, 41, 0));
}

#p-header .p-has-dropdown.is-open > .p-dd,
#p-header .p-has-dropdown:hover > .p-dd,
#p-header .p-has-dropdown:focus-within > .p-dd {
  display: block !important;
  animation: etlDdIn 0.2s ease;
}

@keyframes etlDdIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

#p-header .p-dd-shell {
  position: relative;
  z-index: 1;
}

#p-header .p-dd-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px 14px;
  margin: 0 0 14px;
  border-bottom: 1px solid rgba(14, 21, 32, 0.08);
}

#p-header .p-dd-head-title {
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  color: var(--etl-dd-text);
}

#p-header .p-dd-head-copy {
  max-width: 520px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--etl-dd-muted);
}

#p-header .p-dd-core {
  display: grid;
  gap: 12px;
}

#p-header .p-dd-core--services {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#p-header .p-dd-core--about {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#p-header .p-dd-section {
  min-height: 100%;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--etl-dd-soft-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58));
}

#p-header .p-dd-col-title {
  margin: 0 0 10px;
  font-family: "Bowler", "Instrument Sans", "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--etl-dd-muted);
}

#p-header .p-dd-list {
  display: grid;
  gap: 8px;
}

#p-header .p-dd-link {
  position: relative;
  display: block;
  padding: 10px 12px 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  color: var(--etl-dd-text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

#p-header .p-dd-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(229, 38, 41, 0.84), rgba(229, 38, 41, 0.2));
}

#p-header .p-dd-link-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 7px;
  margin: 0 0 7px;
  border-radius: 999px;
  background: rgba(229, 38, 41, 0.08);
  color: rgba(160, 22, 24, 0.95);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

#p-header .p-dd-link b {
  display: block;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.24;
  color: var(--etl-dd-text);
}

#p-header .p-dd-link small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.38;
  color: var(--etl-dd-muted);
}

#p-header .p-dd-link:hover,
#p-header .p-dd-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(229, 38, 41, 0.26);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 22px rgba(14, 21, 32, 0.08);
}

#p-header .p-dd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 2px 0;
  margin-top: 16px;
  border-top: 1px solid rgba(14, 21, 32, 0.08);
}

#p-header .p-dd-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--etl-dd-soft-2);
  background: rgba(255, 255, 255, 0.8);
  color: var(--etl-dd-text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

#p-header .p-dd-footer-link:hover {
  transform: translateY(-1px);
  border-color: rgba(229, 38, 41, 0.26);
}

#p-header .p-dd-footer-link--primary {
  margin-left: auto;
  background: rgba(229, 38, 41, 0.08);
  border-color: rgba(229, 38, 41, 0.18);
}

#p-header .p-dd-split,
#p-header .p-dd-right,
#p-header .p-dd-foot,
#p-header .p-dd-actions,
#p-header .p-dd-note,
#p-header .p-dd-btn,
#p-header .p-dd-dot,
#p-header .p-dd-card,
#p-header .p-dd-grid > div:nth-child(2) {
  display: none !important;
}

html[data-theme="dark"] #p-header .p-has-dropdown > .p-dd {
  --etl-dd-bg-1: rgba(10, 15, 24, 0.985);
  --etl-dd-bg-2: rgba(7, 11, 18, 0.985);
  --etl-dd-border: rgba(255, 255, 255, 0.14);
  --etl-dd-text: rgba(236, 242, 255, 0.95);
  --etl-dd-muted: rgba(196, 210, 235, 0.74);
  --etl-dd-soft: rgba(255, 255, 255, 0.08);
  --etl-dd-soft-2: rgba(255, 255, 255, 0.14);
  --etl-dd-shadow: 0 32px 76px rgba(0, 0, 0, 0.56);
}

html[data-theme="dark"] #p-header .p-dd-head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] #p-header .p-dd-section {
  background: linear-gradient(180deg, rgba(20, 29, 43, 0.92), rgba(16, 24, 36, 0.84));
}

html[data-theme="dark"] #p-header .p-dd-link {
  background: rgba(20, 29, 43, 0.92);
}

html[data-theme="dark"] #p-header .p-dd-link-badge {
  background: rgba(229, 38, 41, 0.14);
  color: rgba(255, 236, 236, 0.95);
}

html[data-theme="dark"] #p-header .p-dd-link:hover,
html[data-theme="dark"] #p-header .p-dd-link:focus-visible {
  background: rgba(27, 39, 58, 0.98);
  border-color: rgba(229, 38, 41, 0.34);
}

html[data-theme="dark"] #p-header .p-dd-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] #p-header .p-dd-footer-link {
  background: rgba(20, 29, 43, 0.92);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(236, 242, 255, 0.94);
}

html[data-theme="dark"] #p-header .p-dd-footer-link--primary {
  background: rgba(229, 38, 41, 0.14);
  border-color: rgba(229, 38, 41, 0.26);
}

@media (max-width: 980px) {
  #p-header .p-has-dropdown > .p-dd {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    padding: 14px;
    border-radius: 18px;
  }

  #p-header .p-dd-head {
    display: block;
  }

  #p-header .p-dd-head-copy {
    max-width: none;
    margin-top: 8px;
  }

  #p-header .p-dd-core--services,
  #p-header .p-dd-core--about {
    grid-template-columns: 1fr;
  }

  #p-header .p-dd-footer {
    flex-wrap: wrap;
  }

  #p-header .p-dd-footer-link--primary {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #p-header .p-has-dropdown > .p-dd,
  #p-header .p-dd-link,
  #p-header .p-dd-footer-link,
  body#top #p-header.p-header .p-cabinet,
  body#top #p-header.p-header .p-site-search-trigger,
  body#top #p-header.p-header .p-city-switch__select,
  body#top #p-header.p-header .theme-switch {
    animation: none !important;
    transition: none !important;
  }
}
