/* Services sub-navigation — Tilda T794-style bar + dropdowns */

.crt-services-subnav {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--crt-header-bottom, 72px);
  z-index: 100002;
  pointer-events: none;
}

.crt-services-subnav.is-open,
.crt-services-subnav.is-persistent {
  pointer-events: auto;
}

.crt-services-subnav[hidden]:not(.is-persistent) {
  display: none !important;
}

.crt-services-subnav__bar {
  background: #fff;
  border-bottom: 1px solid #e1e1e1;
  box-shadow: 0 2px 5px rgba(144, 144, 144, 0.3);
}

.crt-services-subnav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

.crt-services-subnav__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: 72px;
}

.crt-services-subnav__item {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.crt-services-subnav__item + .crt-services-subnav__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #e1e1e1;
  pointer-events: none;
}

.crt-services-subnav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 72px;
  padding: 8px 10px;
  box-sizing: border-box;
  color: #322e4a;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  transition: color 0.2s ease;
}

.crt-services-subnav__item.has-dropdown .crt-services-subnav__link::after {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 0;
  height: 0;
  margin-top: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.85;
}

.crt-services-subnav__item.is-active .crt-services-subnav__link,
.crt-services-subnav__item.is-open .crt-services-subnav__link,
.crt-services-subnav__link:hover,
.crt-services-subnav__link:focus-visible {
  color: var(--crt-primary, #f70c13);
}

.crt-services-subnav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  max-width: min(340px, 92vw);
  z-index: 3;
}

.crt-services-subnav__dropdown[hidden] {
  display: none !important;
}

.crt-services-subnav__dropdown-corner {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(0, 0, 0, 0.04);
  z-index: 1;
}

.crt-services-subnav__dropdown-list {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 14px 0;
  list-style: none;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.2);
}

.crt-services-subnav__dropdown-link {
  display: block;
  padding: 9px 22px;
  color: #313131;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease;
}

.crt-services-subnav__dropdown-link:hover,
.crt-services-subnav__dropdown-link:focus-visible,
.crt-services-subnav__dropdown-link.is-current {
  color: var(--crt-primary, #f70c13);
}

body.crt-services-context {
  --crt-services-subnav-offset: 72px;
}

body.crt-services-context .crt-main {
  padding-top: var(--crt-services-subnav-offset, 72px);
}

body.crt-services-context.crt-services-subnav-open {
  --crt-services-subnav-offset: 72px;
}

@media screen and (max-width: 979px) {
  .crt-services-subnav {
    display: none !important;
  }
}

@media screen and (max-width: 1200px) {
  .crt-services-subnav__link {
    padding: 8px 8px;
    font-size: 13px;
  }
}
