/*
Theme Name: Экспертиза-21 — Twenty Twenty-Five
Theme URI: https://expertiza-21.ru/
Description: Дочерняя блочная тема Twenty Twenty-Five для безопасного переноса действующего дизайна.
Author: АНО «НЭЦ»
Template: twentytwentyfive
Version: 0.6.35
Text Domain: expertiza-tt25
*/

:root {
  --nec-blue: #0d4c86;
  --nec-blue-light: #0879ad;
  --nec-cyan: #06a6d7;
  --nec-red: #f53d55;
  --nec-text: #303030;
  --nec-muted: #666;
  --nec-border: #d9e1e8;
  --nec-surface: #f5f6f7;
  --nec-content: 1116px;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--nec-text);
  background: #fff;
  font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
}

.wp-site-blocks {
  padding: 0;
  background: url('/wp-content/uploads/2019/03/footer.png') bottom center / auto no-repeat;
}

.wp-site-blocks > * {
  margin-block-start: 0;
}

.wp-block-template-part > p:empty,
.nec-header p:empty,
.nec-sidebar p:empty,
.nec-footer p:empty {
  display: none;
}

.nec-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 99999;
  padding: 10px 14px;
  background: #fff;
  color: #111;
}

.nec-skip-link:focus {
  left: 8px;
}

.nec-header {
  margin-bottom: 0;
  background: #fafafa url('/wp-content/uploads/2019/02/header.png') top center / auto no-repeat;
  letter-spacing: normal;
}

.nec-header__top {
  display: flex;
  max-width: 1176px;
  height: 222.5px;
  margin: 0 auto;
  padding: 35px 30px;
  box-sizing: border-box;
}

.nec-header__logo {
  display: block;
  flex: 0 0 446.4px;
  min-width: 0;
  min-height: auto;
  padding-right: 32px;
  box-sizing: border-box;
}

.nec-header__logo img {
  display: block;
  width: 416px;
  max-width: 416px;
  height: auto;
}

.nec-header__meta,
.nec-header__address {
  margin-top: 21px;
  color: #333;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.nec-header__meta {
  flex: 0 0 278.71875px;
}

.nec-header__address {
  flex: 0 0 384.601562px;
}

.nec-header__phone {
  display: block;
  margin-left: 10px;
  color: #0d427d;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  text-decoration: none;
  white-space: nowrap;
}

.nec-header__meta ul,
.nec-header__address ul {
  margin: 0;
  padding: 0 0 0 25px;
  list-style: none;
}

.nec-header .item-phone {
  display: flex;
  align-items: center;
  height: 36px;
}

.nec-header__icon {
  display: block;
  flex: 0 0 auto;
  fill: #f74431;
}

.nec-header .item-phone .nec-header__icon {
  width: 24px;
  height: 24px;
}

.nec-header__phone:hover,
.nec-header__phone:focus,
.nec-header__address a:hover,
.nec-header__address a:focus {
  color: var(--nec-cyan);
}

.nec-header .item-phone-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 52.5px;
  margin-top: 10px;
  color: #0d427d;
  font-size: 14px;
  line-height: 17.5px;
  text-transform: uppercase;
}

.nec-header .item-phone-info > span {
  display: block;
}

.nec-header .item-address {
  display: flex;
  height: 24.5px;
  line-height: 24px;
}

.nec-header .item-address .nec-header__icon {
  flex-basis: 16.5px;
  width: 16.5px;
  height: 22px;
}

.nec-header .item-address > span {
  padding-left: 21px;
}

.nec-header .item-address-info {
  height: 24.5px;
  line-height: 24px;
}

.nec-header .item-address-info .nec-header__icon {
  display: inline-block;
  width: 19px;
  height: 19px;
  vertical-align: -3px;
}

.nec-header .item-address-info > span {
  padding-left: 14px;
}

.nec-header__address a:not(.nec-header__apply) {
  color: #0095d0;
  text-decoration: none;
}

.nec-header__apply {
  display: block;
  height: 38px;
  margin-top: 10px;
  padding: 0 30px;
  border-radius: 0;
  background: #ff293f;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 38px;
}

.nec-header__apply:hover,
.nec-header__apply:focus {
  background: #d72f47;
  color: #fff;
}

.nec-nav {
  height: 71px;
  background: #0d427d;
}

.nec-nav__inner {
  position: relative;
  max-width: 1176px;
  height: 71px;
  margin: 0 auto;
  padding: 10.5px 30px;
  box-sizing: border-box;
}

.nec-menu-toggle {
  display: none;
  width: 100%;
  padding: 15px 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
}

.nec-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nec-nav .menu {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  column-gap: 3.9px;
  row-gap: 0;
  height: 50px;
}

.nec-nav .menu > li {
  position: relative;
}

.nec-nav .menu > li > a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: normal;
  line-height: 21px;
  text-decoration: none;
  text-transform: uppercase;
}

.nec-nav .nec-menu-angle {
  position: relative;
  left: 4px;
  display: block;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.nec-nav .menu > li:hover > a,
.nec-nav .menu > li:focus-within > a,
.nec-nav .current-menu-item > a,
.nec-nav .current-menu-ancestor > a {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.nec-nav .sub-menu {
  position: absolute;
  z-index: 1000;
  top: 100%;
  left: 0;
  display: none;
  width: 340px;
  max-height: 70vh;
  overflow-y: auto;
  border-top: 3px solid var(--nec-cyan);
  box-shadow: 0 8px 22px rgba(0,0,0,.2);
  background: #fff;
}

.nec-nav li:hover > .sub-menu,
.nec-nav li:focus-within > .sub-menu,
.nec-nav li.is-open > .sub-menu {
  display: block;
}

.nec-nav .sub-menu a {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid #e8edf1;
  color: #234;
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
}

.nec-nav .sub-menu a:hover,
.nec-nav .sub-menu a:focus {
  background: #edf6fb;
  color: var(--nec-blue);
}

.nec-layout-grid {
  display: grid;
  grid-template-columns: 279px minmax(0, 1fr);
  gap: 55px;
  align-items: start;
  width: min(calc(100% - 48px), var(--nec-content));
  margin: 0 auto;
  padding: 42px 0 58px;
}

.nec-layout-grid > * {
  margin-block-start: 0 !important;
}

.nec-layout-grid--front .nec-main-content {
  margin-top: -42px !important;
  padding-top: 5px;
}

.nec-main-content .wp-block-post-content.has-global-padding {
  padding-right: 0;
  padding-left: 0;
}

.nec-main-content,
.nec-main-content > * {
  min-width: 0;
}

.nec-main-content .wp-block-post-title {
  margin: 0 0 30px;
  color: var(--nec-muted);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.nec-main-content .wp-block-post-content {
  margin-top: 0;
  color: #333;
  font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.nec-main-content .wp-block-post-content > * {
  max-width: none;
}

.nec-main-content .wp-block-post-content > h1,
.nec-main-content .wp-block-post-content > h1.wp-block-heading {
  margin: 0 0 35px !important;
  color: #666;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.nec-main-content .wp-block-post-content h2,
.nec-main-content .wp-block-post-content h2.wp-block-heading {
  margin: 0 0 20px !important;
  color: #666;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.nec-main-content .wp-block-post-content > p {
  margin: 0 0 24px !important;
  color: #333;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.nec-main-content .wp-block-post-content > ul,
.nec-main-content .wp-block-post-content > ol {
  margin: 0 0 24px !important;
  padding-left: 25px;
}

.nec-main-content .wp-block-post-content > .wp-block-columns {
  gap: 32px !important;
  margin: 0 0 28px !important;
}

.nec-main-content .block-form.nec-global-cta {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.nec-main-content .block-form.nec-global-cta .ex-form.bottom {
  width: 100%;
  box-sizing: border-box;
}

.nec-main-content .entry-content,
.nec-main-content .wp-block-post-content {
  max-width: none;
}

.nec-sidebar {
  min-width: 0;
}

.nec-sidebar .widget {
  margin: 0 0 22px;
}

.nec-sidebar .widget-title {
  margin: 18px 0 14px;
  color: #222;
  font-size: 28px;
  font-weight: 400;
}

.nec-sidebar .search-form {
  position: relative;
  margin: 0 0 28px;
}

.nec-sidebar .search-field {
  width: 100%;
  height: 54px;
  box-sizing: border-box;
  padding: 0 58px 0 14px;
  border: 1px solid var(--nec-red);
  border-radius: 0;
  background: #fff;
  color: #222;
  font-size: 17px;
}

.nec-sidebar .search-submit {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 54px;
  height: 52px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.nec-sidebar .search-submit::after {
  position: absolute;
  top: 13px;
  left: 14px;
  width: 17px;
  height: 17px;
  border: 4px solid var(--nec-red);
  border-radius: 50%;
  content: "";
  box-sizing: border-box;
}

.nec-sidebar .search-submit::before {
  position: absolute;
  top: 31px;
  left: 31px;
  width: 13px;
  height: 4px;
  border-radius: 2px;
  background: var(--nec-red);
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}

.nec-sidebar .fw-first-menu {
  margin: 0 0 26px !important;
}

.nec-sidebar .fw-first-menu > div {
  margin: 10px 0 0;
  box-sizing: border-box;
}

.nec-sidebar .fw-first-menu a {
  display: flex;
  align-items: center;
  width: 100%;
  height: 50px;
  min-height: 50px;
  box-sizing: border-box;
  padding: 0;
  background-color: #00629a;
  color: #fff !important;
  font-size: 16px;
  line-height: 17px;
  text-decoration: none;
  transition: background .3s;
}

.nec-sidebar .fw-first-menu a:hover,
.nec-sidebar .fw-first-menu a:focus {
  background-color: #0095d0;
  text-decoration: none;
}

.nec-sidebar .fw-first-menu a > span {
  flex: 0 0 60px;
  width: 60px;
  height: 50px;
  box-sizing: border-box;
}

.nec-sidebar #custom_html-2 {
  display: none;
}

.nec-sidebar .ubermenu-item-level-0.ubermenu-active {
  background-color: #eef1f3 !important;
}

.nec-sidebar .ubermenu-item-level-0.ubermenu-active > .ubermenu-target {
  background-color: #0095d0 !important;
}

.nec-sidebar .ubermenu-submenu,
.nec-sidebar .ubermenu-submenu.ubermenu-submenu-drop {
  background-color: #eef1f3 !important;
}

.nec-sidebar .ubermenu-submenu .ubermenu-target {
  color: #30363b !important;
}

.nec-sidebar .ubermenu-submenu .ubermenu-target::before {
  filter: brightness(0) saturate(100%) invert(25%) sepia(46%) saturate(1737%) hue-rotate(174deg) brightness(89%) contrast(97%);
}

.nec-sidebar .ubermenu-skin-minimal .ubermenu-submenu .ubermenu-item-header > .ubermenu-target {
  background-color: transparent !important;
  color: #30363b !important;
}

.nec-sidebar .ubermenu-submenu .ubermenu-target:hover,
.nec-sidebar .ubermenu-submenu .ubermenu-target:focus {
  background-color: #e0e5e8 !important;
  color: #0d4c86 !important;
}

.nec-archive-list .wp-block-post {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--nec-border);
}

.nec-footer-note {
  height: 42px;
  margin-bottom: 10px;
  padding: 0 24px;
  box-sizing: border-box;
  background: transparent;
  color: #333;
  font-size: 13px;
  line-height: 21px;
  text-align: center;
}

.wp-site-blocks > footer.wp-block-template-part {
  background: transparent !important;
}

.nec-search-results > h1 {
  margin: 0 0 28px;
  color: #666;
  font-size: 28px;
  line-height: 1.2;
}

.nec-search-results .wp-block-post-template {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nec-search-results .wp-block-post {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid #d9e1e8;
}

.nec-search-results .wp-block-post-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.nec-search-results .wp-block-post-title a {
  color: #0d4c86;
  text-decoration: none;
}

.nec-search-results .wp-block-post-title a:hover,
.nec-search-results .wp-block-post-title a:focus {
  color: #0095d0;
  text-decoration: underline;
}

.nec-search-highlight {
  padding: 0 .12em;
  border-radius: 2px;
  background: #ffe48a;
  color: inherit;
}

#contact_form_pop p:empty,
#contact_form_pop-2 p:empty {
  display: none !important;
  margin: 0 !important;
}

#fancybox-content .forminator-field-consent {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

#fancybox-content .forminator-field-consent .forminator-checkbox__label {
  min-width: 0 !important;
  max-width: none !important;
}

/* Keep the two deliberately separated consent sentences on exactly two lines. */
@media (min-width: 768px) {
  .page-id-2895 .forminator-field-consent .forminator-checkbox__label,
  .page-id-2895 .forminator-field-consent .forminator-checkbox__label > p {
    width: max-content !important;
    max-width: none !important;
    white-space: nowrap !important;
  }
}

#fancybox-close > i.nec-fancybox-hit-area {
  position: fixed !important;
  z-index: 1102 !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  font-style: normal !important;
  text-decoration: none !important;
  cursor: pointer;
}

.nec-main-content iframe {
  max-width: 100%;
  box-sizing: border-box;
}

.nec-main-content iframe[src*="rutube.ru/play/embed"],
.nec-main-content iframe[src*="youtube.com/embed"],
.nec-main-content iframe[src*="youtube-nocookie.com/embed"] {
  display: block;
  width: 375px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  border: 0;
}

/* A clicked RuTube facade must fill the reserved poster area. The generic
   embed rule above is only for standalone iframes and otherwise shrinks the
   player to 375 px in the top-left corner. */
.nec-main-content .nec-rutube-facade iframe {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
}

.nec-footer {
  background: #0877a8;
  color: #fff;
}

.nec-footer__inner {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  gap: 24px;
  align-items: center;
  max-width: var(--nec-content);
  margin: 0 auto;
  padding: 11px 24px;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.35;
}

.nec-footer a {
  color: #fff;
  text-decoration: none;
}

.nec-footer a:hover,
.nec-footer a:focus {
  color: #fff;
  text-decoration: underline;
}

.nec-footer__legal {
  text-align: center;
  white-space: nowrap;
}

.nec-footer__map {
  text-align: right;
}

@media (max-width: 1199px) {
  .nec-nav .nec-menu-angle {
    flex-basis: 13px;
    width: 13px;
    height: 13px;
  }
}

@media (max-width: 1199px) and (min-width: 993px) {
  .nec-header__top {
    max-width: 992px;
    height: 208px;
  }

  .nec-header__logo {
    display: flex;
    flex: 0 0 337.4609375px;
    align-items: center;
    justify-content: center;
    width: 337.4609375px;
  }

  .nec-header__logo img {
    width: 416px;
    max-width: 100%;
  }

  .nec-header__meta {
    flex: 0 0 249.8203125px;
    width: 249.8203125px;
    margin-top: 25px;
  }

  .nec-header__address {
    flex: 0 0 344.71875px;
    width: 344.71875px;
    margin-top: 25px;
  }

  .nec-header .item-phone {
    height: 28.5px;
  }

  .nec-header__phone {
    line-height: 28.5px;
  }

  .nec-header .item-phone-info {
    height: 70px;
  }

  .nec-header .item-address {
    height: auto;
    min-height: 24.5px;
  }

  .nec-header__apply {
    height: 30px;
    padding: 0 25px;
    font-size: 14px;
    line-height: 30px;
  }

  .nec-nav,
  .nec-nav__inner {
    height: 50px;
  }

  .nec-nav__inner {
    max-width: 992px;
    padding: 0 30px;
  }

  .nec-nav .menu {
    flex-wrap: nowrap;
    height: 50px;
  }

  .nec-nav .menu > li > a {
    padding-inline: 5px;
    font-size: 13px;
    line-height: 19.5px;
  }
}

@media (max-width: 992px) {
  .nec-header__top {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: none;
    height: auto;
    padding: 35px 30px;
  }

  .nec-header__logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 330px;
    padding-right: 0;
  }

  .nec-header__logo img {
    width: 330px;
    max-width: 330px;
    margin: 0 auto;
  }

  .nec-header__meta {
    flex: 0 0 auto;
    width: 328px;
    margin-top: 15px;
  }

  .nec-header__address {
    flex: 0 0 auto;
    width: 384.601562px;
    max-width: 100%;
    margin-top: 15px;
  }

  .nec-header .item-phone {
    height: 46.5px;
  }

  .nec-header__phone {
    line-height: 46.5px;
  }

  .nec-header__apply {
    height: 30px;
    padding: 0 25px;
    font-size: 14px;
    line-height: 30px;
  }

  .nec-nav,
  .nec-nav__inner {
    height: auto;
  }

  .nec-nav__inner {
    max-width: 992px;
    padding: 0 30px;
  }

  .nec-nav .menu {
    flex-wrap: wrap;
    height: auto;
  }

  .nec-nav .menu > li {
    flex: 0 0 auto;
  }

  .nec-nav .menu > li > a {
    padding-inline: 5px;
    font-size: 13px;
    line-height: 19.5px;
  }

  .nec-layout-grid {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
  }

  .nec-layout-grid--front .nec-main-content {
    margin-top: 0 !important;
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .nec-header__top {
    align-items: center;
    padding: 35px 15px;
    text-align: left;
  }

  .nec-header__meta,
  .nec-header__address {
    width: 100%;
    margin-top: 15px;
    font-size: 15px;
    line-height: 24.9px;
  }

  .nec-header__meta ul,
  .nec-header__address ul {
    padding-left: 0;
  }

  .nec-header .item-phone {
    height: 39.84px;
  }

  .nec-header__phone {
    font-size: 24px;
    line-height: 39.84px;
  }

  .nec-header .item-address,
  .nec-header .item-address-info {
    height: 25.4px;
    line-height: 24.9px;
  }

  .nec-nav,
  .nec-nav__inner {
    height: 49px;
    min-height: 49px;
  }

  .nec-nav {
    margin-top: 1px;
  }

  .nec-nav__inner {
    padding: 0 15px;
  }

  .nec-header__apply {
    max-width: none;
  }

  .nec-menu-toggle {
    display: block;
    width: auto;
    min-width: 89.7px;
    height: 49px;
    margin: 0 auto;
    padding: 14px 10px;
    font-size: 14px;
    font-weight: 800;
    line-height: 21px;
    text-align: center;
  }

  .nec-nav .menu {
    display: none;
    padding-bottom: 10px;
  }

  .nec-nav.is-open .menu {
    display: block;
  }

  .nec-nav .menu > li > a {
    min-height: 0;
    padding: 12px 4px;
    border-top: 1px solid rgba(255,255,255,.15);
    font-size: 14px;
  }

  .nec-nav .sub-menu {
    position: static;
    width: 100%;
    max-height: none;
    border-top: 0;
    box-shadow: none;
  }

  .nec-layout-grid {
    grid-template-columns: 1fr;
    width: min(calc(100% - 30px), var(--nec-content));
    gap: 34px;
    padding-top: 28px;
  }

  .nec-main-content {
    grid-row: 1;
  }

  .nec-sidebar {
    grid-row: 2;
  }

  .nec-footer__inner {
    grid-template-columns: 1fr;
    gap: 7px;
    text-align: center;
  }

  .nec-footer__legal,
  .nec-footer__map {
    text-align: center;
    white-space: normal;
  }
}

@media (max-width: 500px) {
  .nec-header__top,
  .nec-nav__inner,
  .nec-footer__inner {
    padding-inline: 15px;
  }

  .nec-header__logo,
  .nec-header__logo img {
    width: 227.875px;
    max-width: 100%;
  }

  .nec-header__phone {
    font-size: 24px;
  }

  .nec-layout-grid {
    width: min(calc(100% - 20px), var(--nec-content));
  }

  .nec-main-content .wp-block-post-title {
    font-size: 30px;
  }

  .nec-footer__legal a {
    display: block;
  }

  .nec-footer__sep {
    display: none;
  }
}

/* Mobile navigation, slider spacing and footer flow — 2026-09-13 */
@media (max-width: 992px) {
    .nec-nav.is-open,
    .nec-nav.is-open .nec-nav__inner {
        height: auto;
        min-height: 49px;
    }

    .nec-nav.is-open {
        position: relative;
        z-index: 100;
    }

    .nec-nav.is-open .menu {
        position: relative;
        z-index: 101;
    }

    .nec-layout-grid--front {
        padding-top: 14px;
    }

    .nec-layout-grid--front .entry-content > .wp-block-spacer:first-child {
        display: none;
    }

    .nec-layout-grid--front .entry-content > .wp-block-spacer:first-child + .n2-section-smartslider {
        margin-top: 0 !important;
    }
}

@media (max-width: 500px) {
    .nec-footer-note {
        height: auto;
        min-height: 42px;
        margin-bottom: 14px;
        padding: 0 16px;
    }
}

/* Mobile submenu state and neutral background — 2026-09-13 */
@media (max-width: 780px) {
    .nec-nav .menu > li.menu-item-has-children:not(.is-open) > .sub-menu {
        display: none !important;
    }

    .nec-nav .menu > li.menu-item-has-children.is-open > .sub-menu {
        display: block !important;
    }

    .nec-nav .sub-menu,
    .nec-nav .sub-menu > li,
    .nec-nav .sub-menu > li > a {
        background: #f0f2f4 !important;
        color: #0d4c86 !important;
    }

    .nec-nav .sub-menu > li > a {
        border-top: 1px solid #d8dee5 !important;
    }

    .nec-nav .sub-menu > li > a:hover,
    .nec-nav .sub-menu > li > a:focus {
        background: #e3e8ed !important;
        color: #0d4c86 !important;
    }
}

/* Max Mega Menu migration 2026-09-14 */
@media (min-width: 993px) {
  .nec-nav #mega-menu-wrap-top { width:100%; background:transparent; }
  .nec-nav #mega-menu-wrap-top #mega-menu-top { display:flex; align-items:stretch; justify-content:flex-start; height:50px; background:transparent; }
  .nec-nav #mega-menu-wrap-top #mega-menu-top > li.mega-menu-item { flex:0 0 auto; }
  .nec-nav #mega-menu-wrap-top #mega-menu-top > li.mega-menu-item > a.mega-menu-link { display:flex; align-items:center; height:50px; line-height:21px; padding:0 14px; background:transparent; color:#fff; font-size:14px; font-weight:300; letter-spacing:normal; text-transform:uppercase; }
  .nec-nav #mega-menu-wrap-top #mega-menu-top > li.mega-menu-item:hover > a.mega-menu-link,
  .nec-nav #mega-menu-wrap-top #mega-menu-top > li.mega-current-menu-item > a.mega-menu-link,
  .nec-nav #mega-menu-wrap-top #mega-menu-top > li.mega-current-menu-ancestor > a.mega-menu-link { background:rgba(255,255,255,.12); color:#fff; }
  .nec-nav #mega-menu-wrap-top #mega-menu-top > li.mega-menu-item > ul.mega-sub-menu { width:340px; max-height:70vh; overflow-y:auto; border-top:3px solid #00a6d6; box-shadow:0 8px 22px rgba(0,0,0,.2); background:#fff; }
  .nec-nav #mega-menu-wrap-top #mega-menu-top > li.mega-menu-item > ul.mega-sub-menu li.mega-menu-item > a.mega-menu-link { height:auto; line-height:1.35; padding:10px 14px; border-bottom:1px solid #e8edf1; background:#fff; color:#234; font-size:14px; font-weight:400; text-transform:none; }
  .nec-nav #mega-menu-wrap-top #mega-menu-top > li.mega-menu-item > ul.mega-sub-menu li.mega-menu-item > a.mega-menu-link:hover,
  .nec-nav #mega-menu-wrap-top #mega-menu-top > li.mega-menu-item > ul.mega-sub-menu li.mega-menu-item > a.mega-menu-link:focus { background:#edf6fb; color:#0d427d; }
}
@media (min-width:993px) and (max-width:1199px) {
  .nec-nav #mega-menu-wrap-top #mega-menu-top > li.mega-menu-item > a.mega-menu-link { padding:0 5px; font-size:13px; line-height:19.5px; }
}
@media (max-width:992px) {
  .nec-nav, .nec-nav__inner { min-height:49px; height:auto; }
  .nec-nav__inner { padding:0 15px; }
  .nec-nav #mega-menu-wrap-top { width:100%; background:transparent; }
  .nec-nav #mega-menu-wrap-top .mega-menu-toggle { height:49px; background:transparent; color:#fff; }
  .nec-nav #mega-menu-wrap-top .mega-menu-toggle .mega-toggle-block { color:#fff; }
  .nec-nav #mega-menu-wrap-top #mega-menu-top { background:#0d427d; }
  .nec-nav #mega-menu-wrap-top #mega-menu-top > li.mega-menu-item > a.mega-menu-link { min-height:46px; height:auto; line-height:21px; padding:12px 14px; background:#0d427d; color:#fff; font-size:14px; font-weight:600; text-transform:uppercase; }
  .nec-nav #mega-menu-wrap-top #mega-menu-top > li.mega-menu-item > ul.mega-sub-menu { background:#f2f4f6; box-shadow:none; }
  .nec-nav #mega-menu-wrap-top #mega-menu-top > li.mega-menu-item > ul.mega-sub-menu li.mega-menu-item > a.mega-menu-link { height:auto; line-height:1.35; padding:11px 18px; border-bottom:1px solid #d8dee4; background:#f2f4f6; color:#0d427d; font-size:14px; font-weight:500; text-transform:none; }
}

/* Native block expertise navigation migration 2026-09-14 */
.nec-expertise-navigation { width:100%; }
.nec-expertise-navigation .wp-block-navigation__container { width:100%; gap:0; align-items:stretch; }
.nec-expertise-navigation .wp-block-navigation__container > .wp-block-navigation-item { width:100%; position:relative; }
.nec-expertise-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { position:relative; display:flex; align-items:center; width:100%; min-height:72px; box-sizing:border-box; padding:7px 38px 7px 82px; border:0; background:#fff; color:#303030; font:inherit; font-size:17px; font-weight:400; line-height:1.18; text-align:left; text-decoration:none; cursor:pointer; }
.nec-expertise-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
.nec-expertise-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:focus { background:#f5f8fa; color:#0d427d; }
.nec-expertise-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::before { content:''; position:absolute; left:0; top:50%; width:64px; height:64px; transform:translateY(-50%); background-position:center; background-repeat:no-repeat; background-size:contain; }
.nec-expertise-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-icon { position:absolute; z-index:2; right:8px; top:50%; width:18px; height:18px; margin:0; transform:translateY(-50%) rotate(-90deg); pointer-events:none; }
.nec-expertise-navigation .wp-block-navigation__container > .wp-block-navigation-item:has(> .wp-block-navigation-submenu__toggle[aria-expanded='true']) > .wp-block-navigation__submenu-icon { transform:translateY(-50%) rotate(0deg); }
.nec-expertise-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-container { display:none; position:static; visibility:visible; opacity:1; width:100%; min-width:0; height:auto; padding:0; border:0; box-shadow:none; background:#f2f4f6; }
.nec-expertise-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-submenu__toggle[aria-expanded='true'] ~ .wp-block-navigation__submenu-container { display:block; }
.nec-expertise-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item { width:100%; }
.nec-expertise-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display:block; width:100%; box-sizing:border-box; padding:10px 14px; border-bottom:1px solid #d8dee4; background:#f2f4f6; color:#0d427d; font-size:14px; line-height:1.35; text-decoration:none; }
.nec-expertise-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.nec-expertise-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus { background:#e6edf2; color:#062f61; }
.nec-expertise-navigation .menu-item-1657 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/02/110.png')}
.nec-expertise-navigation .menu-item-1669 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/02/121.png')}
.nec-expertise-navigation .menu-item-1680 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/131.png')}
.nec-expertise-navigation .menu-item-1681 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/134.png')}
.nec-expertise-navigation .menu-item-1686 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/111.png')}
.nec-expertise-navigation .menu-item-1687 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/139.png')}
.nec-expertise-navigation .menu-item-1690 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/142.png')}
.nec-expertise-navigation .menu-item-1693 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/145.png')}
.nec-expertise-navigation .menu-item-1697 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/149.png')}
.nec-expertise-navigation .menu-item-1708 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/150.png')}
.nec-expertise-navigation .menu-item-1709 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/151.png')}
.nec-expertise-navigation .menu-item-1710 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/152.png')}
.nec-expertise-navigation .menu-item-1711 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/153.png')}
.nec-expertise-navigation .menu-item-1716 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/icon-bio.png')}
.nec-expertise-navigation .menu-item-1717 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/156.png')}
.nec-expertise-navigation .menu-item-1721 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/160.png')}
.nec-expertise-navigation .menu-item-1738 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/170.png')}
.nec-expertise-navigation .menu-item-1739 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/icon-eco.png')}
.nec-expertise-navigation .menu-item-1740 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/icon-art.png')}
.nec-expertise-navigation .menu-item-1741 > .wp-block-navigation-item__content::before{background-image:url('/wp-content/uploads/2019/03/172.png')}

/* Native block expertise icon visibility 2026-09-14 */
.nec-expertise-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::before { left:4px; width:56px; height:56px; border-radius:50%; background-color:#0879b7; background-size:50px 50px; }

/* Native block expertise accordion flow fix 2026-09-14 */
.nec-expertise-navigation .wp-block-navigation__container > .wp-block-navigation-item { display:block; }
.nec-expertise-navigation .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-container { width:100%!important; min-width:100%!important; max-width:100%!important; }


/* Header logo click focus and Mega Menu indicator alignment 2026-09-14 */
.nec-header__logo { -webkit-tap-highlight-color: transparent; }
.nec-header__logo:focus { outline:none!important; box-shadow:none!important; }
.nec-header__logo:focus-visible { outline:3px solid var(--nec-cyan)!important; outline-offset:4px; }
@media (min-width:993px) {
  #mega-menu-wrap-top #mega-menu-top > li.mega-menu-item-has-children > a.mega-menu-link > .mega-indicator { display:inline-flex!important; align-items:center!important; justify-content:center!important; align-self:center!important; height:auto!important; line-height:1!important; }
  #mega-menu-wrap-top #mega-menu-top > li.mega-menu-item-has-children > a.mega-menu-link > .mega-indicator::after { line-height:1!important; vertical-align:middle!important; }
}

/* Engagement prompt: online application is the primary conversion action. */
.nec-engagement-prompt[hidden] {
	display: none !important;
}

.nec-engagement-prompt {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: grid;
	place-items: center;
	padding: 24px;
}

.nec-engagement-prompt__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(13, 35, 54, 0.38);
	cursor: default;
}

.nec-engagement-prompt__card {
	position: relative;
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	box-sizing: border-box;
	padding: 34px 40px 28px;
	border: 1px solid #d8e2ea;
	border-top: 5px solid #0c5d94;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 22px 65px rgba(7, 34, 54, 0.28);
	color: #303840;
	text-align: center;
	animation: nec-engagement-arrive 180ms ease-out;
}

.nec-engagement-prompt__card h2 {
	margin: 0 36px 14px;
	color: #174e79;
	font-size: clamp(25px, 3vw, 32px);
	line-height: 1.2;
}

.nec-engagement-prompt__card > p:not(.nec-engagement-prompt__question) {
	margin: 0 0 22px;
	font-size: 17px;
	line-height: 1.55;
}

.nec-engagement-prompt__close {
	position: absolute;
	top: 10px;
	right: 12px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #536573;
	font-size: 32px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.nec-engagement-prompt__close:hover,
.nec-engagement-prompt__close:focus-visible {
	background: #edf4f8;
	color: #0c5d94;
}

.nec-engagement-prompt__primary,
.nec-engagement-prompt__secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	box-sizing: border-box;
	padding: 11px 24px;
	border: 2px solid #0c5d94;
	border-radius: 5px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none !important;
	transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.nec-engagement-prompt__primary {
	width: 100%;
	background: #0c5d94;
	color: #fff !important;
}

.nec-engagement-prompt__primary:hover,
.nec-engagement-prompt__primary:focus-visible {
	border-color: #084873;
	background: #084873;
	color: #fff !important;
}

.nec-engagement-prompt__question {
	margin: 21px 0 10px;
	font-size: 16px;
	font-weight: 700;
}

.nec-engagement-prompt__secondary {
	min-width: 170px;
	background: #fff;
	color: #0c5d94 !important;
}

.nec-engagement-prompt__secondary:hover,
.nec-engagement-prompt__secondary:focus-visible {
	background: #edf5fa;
	color: #084873 !important;
}

.nec-engagement-prompt__phone {
	display: block;
	width: max-content;
	margin: 8px auto 0;
	color: #264b67 !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
}

.nec-engagement-prompt__preference {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: 22px;
	color: #56646e;
	font-size: 14px;
	cursor: pointer;
}

.nec-engagement-prompt__preference input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #0c5d94;
}

.nec-engagement-prompt a:focus-visible,
.nec-engagement-prompt button:focus-visible,
.nec-engagement-prompt input:focus-visible {
	outline: 3px solid rgba(12, 93, 148, 0.32);
	outline-offset: 3px;
}

body.nec-engagement-prompt-open {
	overflow: hidden;
}

@keyframes nec-engagement-arrive {
	from { opacity: 0; transform: translateY(10px) scale(0.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
	.nec-engagement-prompt {
		align-items: end;
		padding: 0;
	}

	.nec-engagement-prompt__backdrop {
		background: rgba(13, 35, 54, 0.22);
	}

	.nec-engagement-prompt__card {
		width: 100%;
		max-height: min(68vh, 540px);
		padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
		border-right: 0;
		border-bottom: 0;
		border-left: 0;
		border-radius: 16px 16px 0 0;
	}

	.nec-engagement-prompt__card h2 {
		margin: 0 34px 10px;
		font-size: 22px;
	}

	.nec-engagement-prompt__card > p:not(.nec-engagement-prompt__question) {
		margin-bottom: 16px;
		font-size: 15px;
		line-height: 1.45;
	}

	.nec-engagement-prompt__primary,
	.nec-engagement-prompt__secondary {
		min-height: 44px;
		padding: 9px 16px;
		font-size: 15px;
	}

	.nec-engagement-prompt__question {
		margin: 14px 0 8px;
		font-size: 15px;
	}

	.nec-engagement-prompt__preference {
		margin-top: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nec-engagement-prompt__card {
		animation: none;
	}
}

/* Keep desktop columns after the main content renders first on mobile. */
@media (min-width: 1025px) {
  body.home main#content.nec-layout-grid--front > .nec-main-content { grid-column: 2; grid-row: 1; }
  body.home main#content.nec-layout-grid--front > .wp-block-template-part { grid-column: 1; grid-row: 1; }
}
