:root {
  --po-blue: #004588;
  --po-blue-dark: #163a63;
  --po-orange: #f58220;
  --po-text: #1c2f44;
  --po-muted: #6c7b8b;
  --po-bg: #ffffff;
  --po-soft: #f4f8fc;
  --po-soft-2: #eef5fc;
  --po-border: rgba(0, 69, 136, 0.12);
  --po-shadow: 0 10px 30px rgba(22, 58, 99, 0.08);
  --po-shadow-strong: 0 14px 34px rgba(22, 58, 99, 0.12);
  --po-radius: 16px;
  --po-speed: 0.22s ease;
}

.po-header-wrap,
.po-header-wrap * {
  box-sizing: border-box;
}

.po-header-wrap {
  position: relative;
  z-index: 1000;
  font-family: "Inter", Arial, sans-serif;
}

.po-schema-hidden {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.po-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.po-topline {
  background: linear-gradient(90deg, #eef4fb 0%, #f8fbff 100%);
  border-bottom: 1px solid var(--po-border);
}

.po-topline__inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
}

.po-topline__item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--po-blue-dark);
  font-size: 13px;
  line-height: 1.35;
}

.po-topline__item i {
  color: var(--po-orange);
  font-size: 14px;
}

.po-topline__item--strong {
  font-weight: 700;
}

.po-header-bar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 69, 136, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow var(--po-speed), background var(--po-speed);
}

.po-header-bar.is-sticky {
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: var(--po-shadow);
}

.po-header-bar__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.po-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex: 1 1 auto;
  min-width: 0;
}

.po-logo svg {
  display: block;
  max-width: 100%;
  height: auto;
  width: 176px;
}

.po-nav--desktop,
.po-actions--desktop {
  display: none;
}

.po-mobile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.po-call-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: var(--po-blue-dark);
  border: 1px solid var(--po-border);
  box-shadow: 0 6px 18px rgba(22, 58, 99, 0.08);
}

.po-burger {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--po-border);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 6px 18px rgba(22, 58, 99, 0.08);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}

.po-burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--po-blue-dark);
  transition: transform var(--po-speed), opacity var(--po-speed);
}

.po-burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.po-burger.is-active span:nth-child(2) {
  opacity: 0;
}

.po-burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.po-mobile-panel {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--po-border);
  box-shadow: var(--po-shadow-strong);
}

.po-mobile-panel.is-open {
  display: block;
}

.po-mobile-panel__inner {
  padding: 12px 0 18px;
}

.po-mobile-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px;
}

.po-mobile-head__title {
  font-size: 18px;
  font-weight: 800;
  color: var(--po-blue-dark);
}

.po-mobile-head__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  text-decoration: none;
  color: var(--po-blue-dark);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
  border: 1px solid var(--po-border);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 6px 18px rgba(22, 58, 99, 0.08);
  font-weight: 700;
}

.po-mobile-nav {
  margin-top: 8px;
}

.po-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0, 69, 136, 0.08);
}

.po-mobile-list__item {
  border-bottom: 1px solid rgba(0, 69, 136, 0.08);
}

.po-mobile-list__item > a,
.po-mobile-services-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 6px;
  text-decoration: none;
  color: var(--po-text);
  font-size: 15px;
  font-weight: 700;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.po-mobile-services-toggle i {
  transition: transform var(--po-speed);
}

.po-mobile-services-toggle.is-open i {
  transform: rotate(180deg);
}

.po-mobile-submenu {
  display: none;
  padding: 0 0 10px 0;
}

.po-mobile-submenu.is-open {
  display: block;
}

.po-mobile-submenu a {
  display: block;
  text-decoration: none;
  color: #4d6177;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  padding: 10px 6px 10px 18px;
}

@media (min-width: 768px) {
  .po-container {
    padding: 0 20px;
  }

  .po-topline__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
  }

  .po-header-bar__inner {
    min-height: 86px;
    gap: 22px;
  }

  .po-logo svg {
    width: 210px;
  }
}

@media (min-width: 1100px) {
  .po-mobile-actions,
  .po-mobile-panel {
    display: none !important;
  }

  .po-nav--desktop,
  .po-actions--desktop {
    display: block !important;
  }

  .po-header-bar__inner {
    min-height: 92px;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr) 260px;
    align-items: center;
    gap: 26px;
  }

  .po-logo {
    width: 230px;
    min-width: 230px;
    max-width: 230px;
    flex: 0 0 auto;
  }

  .po-logo svg {
    width: 220px;
  }

  .po-nav {
    width: 100%;
    min-width: 0;
  }

  .po-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
  }

  .po-menu__item {
    position: relative;
    flex: 0 0 auto;
  }

  .po-menu__link,
  .po-menu__toggle {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--po-blue-dark);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: relative;
    transition: color var(--po-speed), background var(--po-speed), box-shadow var(--po-speed);
  }

  .po-menu__link:hover,
  .po-menu__toggle:hover,
  .po-menu__item:hover > .po-menu__link,
  .po-menu__item:hover > .po-menu__toggle {
    background: linear-gradient(180deg, #ffffff 0%, #f2f8fd 100%);
    color: var(--po-blue);
    box-shadow: inset 0 0 0 1px rgba(0, 69, 136, 0.08);
  }

  .po-menu__toggle i {
    font-size: 11px;
  }

  .po-menu__item--dropdown {
    padding-bottom: 0;
  }

  .po-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    padding-top: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 50;
  }

  .po-dropdown::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 14px;
  }

  .po-menu__item--dropdown:hover .po-dropdown,
  .po-menu__item--dropdown:focus-within .po-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .po-dropdown {
    transform: translateY(0);
  }

  .po-dropdown > .po-dropdown__link:first-child,
  .po-dropdown-inner .po-dropdown__link:first-child {
    margin-top: 0;
  }

  .po-dropdown {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .po-dropdown::after {
    content: "";
    display: block;
    background: #fff;
    border: 1px solid var(--po-border);
    border-radius: 20px;
    box-shadow: var(--po-shadow-strong);
    position: absolute;
    inset: 10px 0 0 0;
    z-index: -1;
  }

  .po-dropdown__link {
    display: block;
    text-decoration: none;
    color: var(--po-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    padding: 11px 14px;
    margin: 0 10px;
    border-radius: 12px;
    white-space: normal;
    transition: background var(--po-speed), color var(--po-speed);
  }

  .po-dropdown__link:first-child {
    margin-top: 20px;
  }

  .po-dropdown__link:last-child {
    margin-bottom: 10px;
  }

  .po-dropdown__link:hover {
    background: var(--po-soft);
    color: var(--po-blue);
  }

  .po-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 260px;
  }

  .po-contacts {
    text-align: right;
  }

  .po-phone {
    display: inline-block;
    text-decoration: none;
    color: var(--po-text);
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
  }

  .po-contacts__note {
    margin-top: 6px;
    font-size: 12px;
    color: var(--po-muted);
    line-height: 1.2;
  }
}