/* ПроГОСТ: шапка, основная навигация и мобильное меню. */
.pgh.pgx-header {
  --pgh-navy: #093853;
  --pgh-text: #123c54;
  --pgh-muted: #4b6577;
  --pgh-line: #d8e3ed;
  --pgh-pale: #eff5fa;
  --pgh-blue: #285d91;
  --pgh-red: #bc3035;
  --pgh-white: #fff;
  padding: 0;
  border: 0;
  color: var(--pgh-text);
  background: var(--pgh-white);
}
.pgh .pgh-wrap { width: min(1280px, calc(100% - 48px)); margin-inline: auto; }
.pgh button { border: 0; background: transparent; color: inherit; cursor: pointer; }
.pgh .pgh-symbol, .pgh .pgh-chevron, .pgh .pgh-link-arrow {
  display: inline-block;
  width: 19px;
  height: 19px;
  flex: none;
  vertical-align: middle;
}
.pgh .pgh-chevron, .pgh .pgh-link-arrow { width: 14px; height: 14px; }
.pgh :is(a, button, summary, input):focus-visible {
  outline: 2px solid #2472b4;
  outline-offset: 2px;
}
.pgh .pgh-bar, .pgh .pgh-drawer:not([open]), .pgh .pgh-back,
.pgh .pgh-secondary, .pgh .pgh-drawer-email { display: none; }

.pgh .pgh-top {
  display: flex;
  min-height: 84px;
  align-items: center;
  gap: clamp(17px, 2.4vw, 36px);
  padding-block: 2px;
}
.pgh .pgh-brand {
  display: inline-flex;
  flex: 0 0 clamp(148px, 14vw, 198px);
  min-height: 44px;
  align-items: center;
}
.pgh .pgh-brand img { display: block; width: 100%; height: auto; }
.pgh .pgh-city {
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 180px;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  text-align: start;
}
.pgh .pgh-city > .pgh-symbol { color: var(--pgh-blue); }
.pgh .pgh-city-text { display: grid; min-width: 0; gap: 1px; line-height: 1.2; }
.pgh .pgh-city-text small { color: var(--pgh-muted); font-size: 11px; font-weight: 500; }
.pgh .pgh-city-text strong { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.pgh .pgh-city:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.pgh .pgh-search {
  display: flex;
  flex: 1 1 200px;
  min-width: 140px;
  min-height: 44px;
  align-items: center;
  margin: 0;
  padding-inline-start: 13px;
  border: 1px solid #c8d9e7;
  border-radius: 8px;
  background: #f3f7fb;
}
.pgh .pgh-search:focus-within { outline: 2px solid var(--pgh-blue); outline-offset: 1px; background: white; }
.pgh .pgh-search input {
  flex: 1; width: 0; min-width: 0; height: 42px; padding: 0;
  border: 0; color: var(--pgh-text); background: transparent; font-size: 14px;
}
.pgh .pgh-search input:focus { outline: 0; }
.pgh .pgh-search input::placeholder { color: var(--pgh-muted); opacity: 1; }
.pgh .pgh-search button { display: grid; min-width: 44px; min-height: 44px; padding: 0 12px; place-items: center; color: var(--pgh-blue); }
.pgh .pgh-contacts { display: grid; flex: none; align-content: center; justify-items: start; }
.pgh .pgh-phone, .pgh .pgh-email { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; white-space: nowrap; }
.pgh .pgh-phone { align-items: end; padding-bottom: 2px; font-size: clamp(15px, 1.2vw, 18px); font-weight: 750; line-height: 1.4; font-variant-numeric: tabular-nums; }
.pgh .pgh-email { align-items: start; padding-top: 2px; font-size: 13px; color: var(--pgh-muted); }
.pgh .pgh-contacts .pgh-symbol { width: 15px; height: 15px; align-self: end; margin-bottom: 4px; }
.pgh .pgh-quote, .pgh .pgh-bar [data-popup="#popup"] {
  display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 10px 18px; border-radius: 8px; background: var(--pgh-red);
  color: white; font-size: 14px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.pgh .pgh-quote:hover, .pgh .pgh-bar [data-popup="#popup"]:hover { background: #9c222a; text-decoration: none; }

.pgh .pgh-strip { background: var(--pgh-navy); color: white; }
.pgh .pgh-nav { position: relative; display: flex; align-items: stretch; gap: 12px; }
.pgh .pgh-level { display: flex; flex: 1; min-width: 0; flex-wrap: wrap; align-items: stretch; }
.pgh .pgh-level > li, .pgh .pgh-group { position: static; margin: 0; padding: 0; }
.pgh .pgh-entry, .pgh .pgh-directory {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 10px clamp(10px, 1.25vw, 22px);
  border: 0; color: white; background: transparent; font-size: 15px; font-weight: 650;
  line-height: 1.25; text-decoration: none; cursor: pointer; list-style: none;
}
.pgh summary::-webkit-details-marker { display: none; }
.pgh .pgh-entry > .pgh-symbol { width: 18px; height: 18px; color: #c7e0f3; }
.pgh .pgh-entry:hover, .pgh .pgh-group[open] > .pgh-entry, .pgh .pgh-directory:hover {
  background: #194a66; color: white; text-decoration: none;
}
.pgh .pgh-entry.is-current, .pgh .pgh-entry[aria-current="page"] {
  background: #174760; box-shadow: inset 0 -3px #ff7475;
}
.pgh .pgh-entry:focus-visible, .pgh .pgh-directory:focus-visible, .pgh .pgh-bar > :focus-visible { outline: 2px solid white; outline-offset: -4px; }
.pgh .pgh-group[open] > .pgh-entry .pgh-chevron { transform: rotate(180deg); }
.pgh .pgh-menu-tools { display: flex; flex: none; align-items: center; }
.pgh .pgh-directory { min-height: 44px; padding: 7px 13px; border: 1px solid #598096; border-radius: 7px; font-size: 14px; }

.pgh .pgh-panel {
  position: absolute; inset: 100% 0 auto; z-index: 4; padding: 23px 27px 27px;
  border: 1px solid var(--pgh-line); border-top: 0; border-radius: 0 0 14px 14px;
  background: white; color: var(--pgh-text); box-shadow: 0 15px 35px #062f4826;
}
.pgh .pgh-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; padding-bottom: 12px; border-bottom: 1px solid var(--pgh-line); }
.pgh .pgh-panel-title { margin: 0; color: var(--pgh-text); font-size: 25px; font-weight: 750; letter-spacing: -.035em; line-height: 1.16; }
.pgh .pgh-all { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 6px; color: var(--pgh-blue); font-size: 14px; font-weight: 700; }
.pgh .pgh-all:hover { background: var(--pgh-pale); }
.pgh .pgh-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 40px); }
.pgh .pgh-column { min-width: 0; }
.pgh .pgh-column h3 { margin: 0 0 8px; padding-inline: 9px; color: var(--pgh-muted); font-size: 13px; font-weight: 650; line-height: 1.4; }
.pgh .pgh-items { display: grid; gap: 1px; }
.pgh .pgh-items li { margin: 0; min-width: 0; }
.pgh .pgh-items a {
  display: flex; align-items: center; gap: 9px; min-height: 44px; height: 100%;
  padding: 8px 9px; border-radius: 6px; font-size: 15px; font-weight: 550;
  line-height: 1.35; color: var(--pgh-text); overflow-wrap: anywhere;
}
.pgh .pgh-items a:hover, .pgh .pgh-items a:focus-visible, .pgh .pgh-items a[aria-current="page"] {
  background: var(--pgh-pale); color: var(--pgh-blue); text-decoration: none;
}
.pgh .pgh-items a[aria-current="page"], .pgh .pgh-all[aria-current="page"] {
  background: var(--pgh-pale); box-shadow: inset 3px 0 var(--pgh-red); font-weight: 700;
}
.pgh .pgh-items :is(a.is-ancestor, a[aria-current="location"]) {
  background: #f4f7fb; color: var(--pgh-blue); box-shadow: inset 2px 0 #678ab1;
  font-weight: 650;
}
.pgh .pgh-items .pgh-symbol { color: var(--pgh-blue); }
.pgh .pgh-link-arrow { margin-inline-start: auto; color: var(--pgh-blue); }
.pgh .pgh-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pgh .pgh-products a { min-height: 58px; padding: 9px 13px; border: 1px solid var(--pgh-line); border-radius: 8px; }
.pgh .pgh-products .pgx-product-icon { width: 30px; height: 30px; flex: none; }
.pgh [data-group="guides"] { position: relative; }
.pgh [data-group="guides"] .pgh-panel { inset-inline-end: auto; width: 310px; }
.pgh .pgh-guides a { min-height: 46px; }
@media (min-width: 921px) {
  .pgh .pgh-panel { max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); overflow-y: auto; scroll-padding-block: 12px; }
}
@media (min-width: 921px) and (max-width: 1140px) {
  .pgh .pgh-wrap { width: calc(100% - 36px); }
  .pgh .pgh-top { gap: 16px; min-height: 76px; }
  .pgh .pgh-brand { flex-basis: 148px; }
  .pgh .pgh-city { max-width: 143px; }
  .pgh .pgh-quote { padding-inline: 12px; }
  .pgh .pgh-entry { gap: 5px; padding-inline: 10px; font-size: 14px; }
  .pgh .pgh-entry > .pgh-symbol { width: 16px; height: 16px; }
  .pgh .pgh-nav { gap: 6px; }
  .pgh .pgh-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  html.pgh-menu-open, html.pgh-menu-open body { overflow: hidden; }
  .pgh .pgh-wrap { width: min(700px, calc(100% - 28px)); }
  .pgh .pgh-top {
    flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; min-height: 65px; padding-block: 9px;
  }
  .pgh .pgh-brand { flex-basis: min(43%, 172px); }
  .pgh .pgh-city { max-width: 48%; }
  .pgh .pgh-city-text strong { font-size: 13px; }
  .pgh .pgh-search { flex: 1 1 100%; }
  .pgh.is-enhanced .pgh-top :is(.pgh-search, .pgh-contacts, .pgh-quote),
  .pgh.is-enhanced .pgh-nav-home { display: none; }
  .pgh.is-enhanced .pgh-bar {
    display: flex; min-height: 52px; align-items: stretch; justify-content: space-between; gap: 3px;
  }
  .pgh .pgh-bar > :is(button, a) {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px;
    min-height: 44px; padding: 4px 8px; color: white; font-size: 14px; font-weight: 650; line-height: 1.15;
  }
  .pgh .pgh-bar > :is(button, a):hover { background: #194a66; text-decoration: none; }
  .pgh .pgh-bar > [data-popup="#popup"] { align-self: center; min-height: 44px; margin-block: 4px; padding-inline: 12px; background: var(--pgh-red); }
  .pgh .pgh-bar > [data-popup="#popup"]:hover { background: #9c222a; }
  .pgh .pgh-drawer {
    position: fixed; inset: 0 0 0 auto; width: min(100%, 440px); max-width: 100%;
    height: 100%; height: 100dvh; max-height: 100%; max-height: 100dvh;
    margin: 0; padding: 0; overflow: hidden; border: 0;
    background: white; color: var(--pgh-text); box-shadow: -10px 0 45px #082b4424;
  }
  .pgh .pgh-drawer[open] { display: flex; flex-direction: column; }
  .pgh .pgh-drawer::backdrop { background: #09283fb3; }
  .pgh .pgh-drawer-head {
    display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 60px; padding: max(6px, env(safe-area-inset-top)) 14px 6px;
    background: var(--pgh-navy); color: white;
  }
  .pgh .pgh-drawer-head strong { font-size: 22px; letter-spacing: -.025em; line-height: 1.2; }
  .pgh .pgh-drawer-head button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 8px; border-radius: 6px; color: white; font-size: 14px; }
  .pgh .pgh-drawer-head button:hover { background: #194a66; }
  .pgh .pgh-drawer-head button:focus-visible { outline-color: white; outline-offset: -3px; }
  .pgh .pgh-drawer-body {
    min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain;
    padding: 4px 14px max(18px, env(safe-area-inset-bottom));
  }
  .pgh .pgh-nav { display: block; color: var(--pgh-text); background: white; }
  .pgh .pgh-level { display: block; }
  .pgh .pgh-level > li { border-bottom: 1px solid var(--pgh-line); }
  .pgh .pgh-entry {
    width: 100%; gap: 12px; justify-content: flex-start; min-height: 51px;
    padding: 9px 10px; color: var(--pgh-text); font-size: 16px; text-align: start;
  }
  .pgh .pgh-entry > .pgh-symbol { color: var(--pgh-blue); }
  .pgh .pgh-entry .pgh-chevron { margin-inline-start: auto; transform: rotate(-90deg); }
  .pgh .pgh-entry:hover, .pgh .pgh-group[open] > .pgh-entry, .pgh .pgh-entry.is-current, .pgh .pgh-entry[aria-current="page"] {
    background: var(--pgh-pale); color: var(--pgh-text);
  }
  .pgh .pgh-entry.is-current, .pgh .pgh-entry[aria-current="page"] { box-shadow: inset 3px 0 var(--pgh-red); }
  .pgh .pgh-entry:focus-visible, .pgh .pgh-directory:focus-visible { outline-color: #2472b4; }
  .pgh .pgh-panel, .pgh [data-group="guides"] .pgh-panel { position: static; width: auto; padding: 8px 0; border: 0; border-radius: 0; box-shadow: none; }
  .pgh .pgh-panel-head { flex-wrap: wrap; justify-content: flex-start; gap: 5px 12px; padding-bottom: 12px; margin-bottom: 12px; }
  .pgh .pgh-panel-title { width: 100%; padding-inline: 7px; font-size: 24px; }
  .pgh .pgh-all { min-height: 44px; padding-inline: 7px; }
  .pgh .pgh-columns, .pgh .pgh-products { grid-template-columns: 1fr; gap: 12px; }
  .pgh .pgh-column h3 { padding: 8px; margin: 0; }
  .pgh .pgh-items a { min-height: 46px; padding: 8px; font-size: 15px; }
  .pgh .pgh-products { gap: 5px; }
  .pgh .pgh-products a { padding: 8px 12px; }
  .pgh .pgh-menu-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0; }
  .pgh .pgh-directory, .pgh .pgh-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 44px; padding: 8px 13px; border: 1px solid var(--pgh-line); border-radius: 7px;
    background: white; color: var(--pgh-text); font-weight: 650; font-size: 14px;
  }
  .pgh .pgh-directory { background: var(--pgh-pale); color: var(--pgh-blue); }
  .pgh .pgh-directory:hover, .pgh .pgh-secondary:hover { background: #e5eef6; color: var(--pgh-blue); }
  .pgh .pgh-drawer-email { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--pgh-blue); }
  .pgh .pgh-nav-home { padding-inline: 10px; background: white; }
  .pgh .pgh-drawer .pgh-back { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; padding: 5px 7px; border-radius: 5px; color: var(--pgh-blue); font-weight: 650; }
  .pgh .pgh-drawer .pgh-panel-head {
    position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: auto 1fr;
    align-items: center; background: white; padding-block: 2px 6px; gap: 0 8px;
  }
  .pgh .pgh-drawer .pgh-panel-title { font-size: 22px; }
  .pgh .pgh-drawer .pgh-all { grid-column: 1 / -1; justify-self: start; }
  .pgh .pgh-drawer-body { scroll-padding-block-start: 105px; }
  .pgh .pgh-drawer [data-pgh-level="section"] > .pgh-menu-tools,
  .pgh .pgh-drawer [data-pgh-level="section"] .pgh-level > li:not(.pgh-selected),
  .pgh .pgh-drawer [data-pgh-level="section"] .pgh-group[open] > .pgh-entry { display: none; }
  .pgh .pgh-drawer [data-pgh-level="section"] .pgh-level > li { border: 0; }
}
@media (max-width: 440px) {
  .pgh .pgh-bar > :is(button, a) { gap: 5px; padding-inline: 5px; font-size: 13px; }
  .pgh .pgh-bar .pgh-symbol { width: 17px; height: 17px; }
}
@media (max-width: 365px) {
  .pgh .pgh-wrap { width: calc(100% - 20px); }
  .pgh .pgh-bar { gap: 1px; }
  .pgh .pgh-bar > :is(button, a) { gap: 4px; padding-inline: 3px; font-size: 12px; }
  .pgh .pgh-bar > [data-popup="#popup"] { padding-inline: 10px; }
  .pgh .pgh-bar > [data-popup="#popup"] .pgh-symbol { display: none; }
  .pgh .pgh-drawer-head { min-height: 52px; padding-inline: 10px; }
  .pgh .pgh-drawer-body { padding-inline: 10px; }
}
@media (max-width: 920px) and (max-height: 480px) {
  .pgh .pgh-drawer .pgh-panel-head { display: contents; }
  .pgh .pgh-drawer .pgh-back {
    position: sticky; inset-block-start: 0; z-index: 2; width: 100%;
    border-bottom: 1px solid var(--pgh-line); background: white;
  }
  .pgh .pgh-drawer .pgh-panel-title { display: block; margin-block: 8px 0; }
  .pgh .pgh-drawer-body { scroll-padding-block-start: 50px; }
}
@media (prefers-reduced-motion: no-preference) {
  .pgh .pgh-entry, .pgh .pgh-items a, .pgh .pgh-quote { transition: background-color .14s ease, color .14s ease; }
}

/* Полный каталог использует существующее окно и ссылки CMS. */
.pgh-service-catalog.popup.services { inset: 0; height: 100%; height: 100dvh; padding: 18px; overflow: hidden; }
.pgh-service-catalog .popup__wrapper { height: 100%; min-height: 0; }
.pgh-service-catalog .services__content.popup__content {
  position: relative; display: flex; flex-direction: column;
  width: min(1120px, 100%); height: min(810px, 100%); max-height: 100%;
  overflow: hidden; border: 1px solid #d8e3ed; border-radius: 14px;
  background: white; color: #123c54; font-family: Inter, Arial, sans-serif;
  box-shadow: 0 20px 76px #092d494d;
}
.pgh-service-catalog .pgh-catalog-title {
  display: flex; flex: none; align-items: center; min-height: 62px;
  margin: 0; padding: 8px 76px 8px 24px; color: white; background: #093853;
  font-size: clamp(20px, 2.3vw, 27px); line-height: 1.2; font-weight: 750; letter-spacing: -.025em;
}
.pgh-service-catalog .popup__close {
  position: absolute; inset: 9px 16px auto auto; z-index: 2;
  display: grid; width: 44px; height: 44px; place-items: center;
  padding: 0; border: 1px solid #698698; border-radius: 7px; background: transparent; color: white;
}
.pgh-service-catalog .popup__close img { display: none; }
.pgh-service-catalog .popup__close::before, .pgh-service-catalog .popup__close::after {
  position: absolute; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transform: rotate(45deg); content: '';
}
.pgh-service-catalog .popup__close::after { transform: rotate(-45deg); }
.pgh-service-catalog .popup__close:hover { background: #194a66; }
.pgh-service-catalog .popup__close:focus-visible { outline: 2px solid white; outline-offset: -4px; }
.pgh-service-catalog.popup.services .megamenu {
  display: block; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain;
  padding: 20px 24px 24px; background: white; scrollbar-gutter: stable; scroll-padding-block: 12px;
}
.pgh-service-catalog .menu__container { max-width: none; margin: 0; padding: 0; }
.pgh-service-catalog .services__content .megamenu__inn { margin: 0; columns: 3; column-gap: 24px; }
.pgh-service-catalog .list { display: block; break-inside: avoid-column; padding: 0 0 19px; }
.pgh-service-catalog .list__tit {
  display: block; margin: 0; padding: 8px 9px; border: 0; border-radius: 4px;
  background: #edf4fa; color: #19425d; font-size: 15px; line-height: 1.35; font-weight: 700; text-transform: none;
}
.pgh-service-catalog .list__tit::after { display: none; }
.pgh-service-catalog .list__tit-mob { display: block; margin: 0 0 14px; padding: 0; background: transparent; }
.pgh-service-catalog .list__tit-mob a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 9px; color: #285d91; font-weight: 700; }
.pgh-service-catalog .list__roll, .pgh-service-catalog .list._open .list__roll { display: block; margin: 3px 0 0; }
.pgh-service-catalog .list__roll a {
  display: flex; align-items: center; min-height: 44px; margin: 0; padding: 7px 9px;
  border-radius: 5px; color: #214961; font-size: 14px; line-height: 1.35; text-align: start;
  text-decoration: none; overflow-wrap: anywhere;
}
.pgh-service-catalog .list__roll a:hover, .pgh-service-catalog .list__tit-mob a:hover {
  color: #204f7c; background: #f0f5fa; text-decoration: underline; text-underline-offset: .18em;
}
.pgh-service-catalog a:focus-visible { outline: 2px solid #2472b4; outline-offset: -2px; }
@media (max-width: 1020px) {
  .pgh-service-catalog .services__content .megamenu__inn { columns: 2; column-gap: 18px; }
}
@media (max-width: 620px) {
  .pgh-service-catalog.popup.services { padding: 0; }
  .pgh-service-catalog .services__content.popup__content { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .pgh-service-catalog .pgh-catalog-title { min-height: 56px; padding-left: 16px; }
  .pgh-service-catalog .popup__close { top: 6px; right: 10px; }
  .pgh-service-catalog.popup.services .megamenu { padding: 10px 12px max(14px, env(safe-area-inset-bottom)); }
  .pgh-service-catalog .services__content .megamenu__inn { columns: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pgh-service-catalog.popup, .pgh-service-catalog .services__content.popup__content, .pgh-service-catalog .list__roll a { transition: none; }
}
