/* Shared service navigation. Typography and colors inherit the approved theme. */
.header > .wrap { position: relative; }
.header .burger { flex: none; }
.pd-services { position: static; }
.pd-services > summary { display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--muted); font-size: var(--fs-sm); list-style: none; white-space: nowrap; }
.pd-services > summary::-webkit-details-marker { display: none; }
.pd-services > summary:hover, .pd-services[open] > summary { color: var(--warm); }
.pd-menu-chevron { display: inline-block; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -4px; flex: none; }
.pd-services[open] > summary .pd-menu-chevron, .pd-menu-toggle[aria-expanded="true"] .pd-menu-chevron { transform: rotate(225deg); margin-top: 3px; }
.pd-services-panel { position: absolute; top: 100%; right: 0; width: min(1080px, 100%); padding: 24px; background: #101724; border: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: 0 22px 48px #0007; max-height: var(--pd-menu-available, calc(100dvh - 200px)); overflow-y: auto; overscroll-behavior: contain; }
.pd-services-list, .pd-services-list .sub-menu { list-style: none; padding: 0; margin: 0; }
.pd-services-list { display: grid; grid-template-columns: minmax(max-content,1.2fr) minmax(max-content,1.1fr) minmax(max-content,1fr); column-gap: 22px; row-gap: 20px; }
.pd-services-list li { margin: 0; padding: 0; min-width: 0; }
.nav .pd-services-list a { display: block; white-space: normal; border: 0; line-height: 1.5; padding: 7px 0; font-size: 14px; color: var(--muted); }
.nav .pd-services-list > li > a { color: var(--text); font-weight: 500; font-size: 16px; padding: 0 0 12px; }
.nav .pd-services-list > li.menu-item-has-children > a { min-height: 66px; white-space: normal; }
.pd-service-kind, .pd-service-heading-detail { display: block; }
.nav .pd-services-list .sub-menu a { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 10px 0; white-space: nowrap; }
.pd-service-icon { display: grid; place-items: center; flex: 0 0 18px; width: 18px; height: 20px; color: var(--warm); opacity: .86; }
.pd-service-icon svg { display: block; width: 18px; height: 18px; }
.pd-service-label { min-width: 0; }
.pd-services-list > li > .sub-menu { border-top: 1px solid var(--line); padding-top: 9px; }
.nav .pd-services-list > li:not(.menu-item-has-children) { border-top: 1px solid var(--line); padding-top: 18px; }
.nav .pd-services-list > li:not(.menu-item-has-children) > a { font-size: 14px; padding: 0; }
.nav .pd-services-list a:hover, .nav .pd-services-list a[aria-current="page"] { color: var(--warm); }
.pd-menu-toggle { display: none; }
.pd-services summary:focus-visible, .pd-services a:focus-visible, .pd-menu-toggle:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; border-radius: 3px; }
@media (min-width: 1081px) and (max-width: 1279px) {
  .header .wrap { gap: 8px; }
  .header .nav { gap: 12px; }
  .header__contacts .icon-btn { display: none; }
  .pd-services-panel { padding: 20px; }
  .pd-services-list { column-gap: 18px; }
  .nav .pd-services-list a, .nav .pd-services-list > li:not(.menu-item-has-children) > a { font-size: 13px; }
  .nav .pd-services-list > li > a { font-size: 14px; }
  .nav .pd-services-list .sub-menu a { gap: 8px; }
}
@media (max-width: 1080px) {
  .header .nav { max-height: var(--pd-nav-available, calc(100dvh - 250px)); overflow-y: auto; overscroll-behavior: contain; align-items: stretch; }
  .pd-services { width: 100%; }
  .pd-services > summary { justify-content: space-between; padding: 12px 0; color: var(--text); font-size: var(--fs-md); border-bottom: 1px solid var(--line); min-height: 48px; }
  .pd-services-panel { position: static; width: 100%; max-height: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; overflow: visible; }
  .pd-services-list { display: block; }
  .pd-services-list > li { position: relative; border-bottom: 1px solid var(--line); }
  .nav .pd-services-list > li > a, .nav .pd-services-list > li.menu-item-has-children > a { min-height: 0; padding: 16px 48px 16px 0; font-size: 15px; white-space: normal; }
  .nav .pd-services-list > li:not(.menu-item-has-children) { border-top: 0; padding: 0; }
  .nav .pd-services-list > li:not(.menu-item-has-children) > a { padding: 14px 0; font-size: 14px; }
  .pd-services-list > li > .sub-menu { padding: 0 10px 14px 16px; border-top: 0; border-left: 1px solid var(--warm); margin: 0 0 16px 0; }
  .nav .pd-services-list .sub-menu a { padding: 10px 0; font-size: 14px; min-height: 44px; white-space: normal; }
  .pd-menu-enhanced .pd-menu-toggle { display: grid; place-items: center; position: absolute; right: 0; top: 7px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--warm); cursor: pointer; }
  .pd-menu-enhanced > li.menu-item-has-children:not(.is-expanded) > .sub-menu { display: none; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .header__contacts .icon-btn { display: none; }
}
@media (min-width: 641px) and (max-width: 760px) {
  .header__contacts > .btn { display: none; }
}
