.ccs-site-header,
.ccs-site-header * {
  box-sizing: border-box;
}

.ccs-site-header {
  position: relative;
  z-index: 999;
  width: 100%;
  color: #fff;
  background: var(--ccs-navy);
}

.ccs-site-header a {
  text-decoration: none;
}

.ccs-header-container {
  width: 100%;
  max-width: var(--ccs-container);
  margin: 0 auto;
  padding-right: 40px;
  padding-left: 40px;
}

.ccs-topbar {
  min-height: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  background: var(--ccs-navy);
}

.ccs-topbar-inner,
.ccs-topbar-left,
.ccs-topbar-link,
.ccs-social-links {
  display: flex;
  align-items: center;
}

.ccs-topbar-inner {
  min-height: 36px;
  justify-content: space-between;
  gap: 24px;
}

.ccs-topbar-left {
  gap: 24px;
}

.ccs-topbar-link {
  gap: 7px;
  color: rgba(255, 255, 255, 0.9);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.ccs-topbar-link:hover,
.ccs-topbar-link:focus-visible,
.ccs-social-links a:hover,
.ccs-social-links a:focus-visible {
  color: var(--ccs-amber);
}

.ccs-site-header svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ccs-social-links {
  gap: 14px;
}

.ccs-social-links a {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease;
}

.ccs-mainbar {
  min-height: 96px;
  border-bottom: 1px solid rgba(198, 198, 205, 0.1);
  background: var(--ccs-navy);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ccs-mainbar-inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.ccs-site-branding {
  flex: 0 0 auto;
  justify-self: start;
}

.ccs-site-branding .custom-logo-link,
.ccs-fallback-logo {
  width: 112px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.ccs-site-branding .custom-logo,
.ccs-fallback-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 72px;
  object-fit: contain;
}

.ccs-primary-navigation {
  margin-left: 0;
  justify-self: center;
}

.ccs-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ccs-menu > li {
  position: relative;
}

.ccs-menu > li > a {
  position: relative;
  display: block;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.8);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.ccs-menu > li > a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--ccs-amber);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ccs-menu > li > a:hover,
.ccs-menu > li > a:focus-visible,
.ccs-menu > .current-menu-item > a,
.ccs-menu > .current-menu-ancestor > a {
  color: #fff;
}

.ccs-menu > li > a:hover::after,
.ccs-menu > li > a:focus-visible::after,
.ccs-menu > .current-menu-item > a::after,
.ccs-menu > .current-menu-ancestor > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.ccs-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  z-index: 10;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  background: var(--ccs-navy);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ccs-menu li:hover > .sub-menu,
.ccs-menu li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ccs-menu .sub-menu a {
  display: block;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 14px;
}

.ccs-menu .sub-menu a:hover,
.ccs-menu .sub-menu a:focus-visible {
  color: var(--ccs-amber);
}

.ccs-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.ccs-contact-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid var(--ccs-amber);
  border-radius: 4px;
  color: #fff;
  background: var(--ccs-amber);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.05em;
  transition: filter 0.2s ease, transform 0.1s ease;
}

.ccs-contact-button:hover,
.ccs-contact-button:focus-visible {
  color: #fff;
  filter: brightness(1.1);
}

.ccs-contact-button:active {
  transform: scale(0.98);
}

.ccs-menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.ccs-menu-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 900px) {
  .ccs-header-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .ccs-topbar {
    display: none;
  }

  .ccs-mainbar,
  .ccs-mainbar-inner {
    min-height: 80px;
  }

  .ccs-mainbar-inner {
    display: flex;
    justify-content: space-between;
  }

  .ccs-site-branding .custom-logo-link,
  .ccs-fallback-logo {
    width: 88px;
    height: 64px;
  }

  .ccs-site-branding .custom-logo,
  .ccs-fallback-logo img {
    max-height: 58px;
  }

  .ccs-menu-toggle {
    display: inline-flex;
  }

  .ccs-primary-navigation {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--ccs-navy);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  }

  .ccs-primary-navigation.is-open {
    display: block;
  }

  .ccs-menu {
    width: 100%;
    display: block;
    padding: 8px 16px 16px;
  }

  .ccs-menu > li > a,
  .ccs-menu .sub-menu a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .ccs-menu > li > a::after {
    display: none;
  }

  .ccs-menu .sub-menu {
    position: static;
    min-width: 0;
    display: block;
    padding: 0 0 0 16px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

@media (max-width: 410px) {
  .ccs-contact-button {
    display: none;
  }
}
