:root {
  --site-notice-height: 40px;
  --site-nav-height: 82px;
  --site-mobile-menu-gap: 10px;
}

.top-notice-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--site-notice-height);
  background: var(--honey-bright, #fcc92c);
  color: var(--brown, #6e3d2f);
  transition: opacity 0.2s ease;
}

.top-notice-bar:hover {
  opacity: 0.92;
}

.top-notice-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 56px;
  text-align: center;
}

.top-notice-link {
  color: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.top-notice-link.is-fading {
  opacity: 0;
}

.top-notice-close {
  position: absolute;
  top: 50%;
  right: 16px;
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transform: translateY(-50%);
  color: inherit;
  font-size: 22px;
  line-height: 1;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.top-notice-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

body.notice-closed .top-notice-bar {
  display: none;
}

.main-header {
  height: var(--site-nav-height);
}

.nav {
  position: fixed;
  top: var(--site-notice-height);
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--site-nav-height);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(110, 61, 47, 0.08);
  transition: top 0.25s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

body.notice-closed .nav {
  top: 0;
}

.nav.solid {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(110, 61, 47, 0.1);
  box-shadow: 0 8px 24px rgba(110, 61, 47, 0.06);
}

.nav-in {
  position: relative;
  display: flex;
  height: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  overflow: visible;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.nav-brand:hover {
  opacity: 0.6;
}

.nav-brand img {
  display: block;
  width: auto;
  height: 48px;
}

.nav-links {
  display: flex;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  align-items: center;
  gap: 20px;
  position: static;
  overflow: visible;
}

.nav-links li,
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-links li.nav-item-mega,
.nav-item.nav-item-mega {
  position: static;
}

.nav-links a,
.nav-menu-trigger,
.nav-link-with-menu {
  display: inline-flex;
  min-height: 44px;
  padding: 0 2px;
  align-items: center;
  gap: 6px;
  color: var(--brown, #6e3d2f);
  font-family: var(--sans, "Segoe UI", sans-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.nav-menu-trigger {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-link-with-menu {
  position: relative;
}

.nav-links a:hover,
.nav-links a.is-current,
.nav-menu-trigger:hover,
.nav-menu-trigger.is-current,
.nav-link-with-menu:hover,
.nav-link-with-menu.is-current,
.nav-item.open .nav-menu-trigger,
.nav-item.open .nav-link-with-menu {
  color: #9a5c16;
}

.nav-menu-trigger svg,
.nav-link-with-menu svg {
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}

.nav-item.open .nav-menu-trigger svg,
.nav-item.open .nav-link-with-menu svg {
  transform: rotate(180deg);
}

.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  right: auto;
  width: min(calc(100vw - 128px), 1040px);
  min-width: 0;
  max-width: none;
  padding: 24px 28px 28px;
  background: var(--cream, #fdf8ef);
  border: 1px solid rgba(110, 61, 47, 0.08);
  border-radius: 26px;
  box-shadow: 0 24px 58px rgba(110, 61, 47, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.mega-menu--solutions {
  width: min(calc(100vw - 128px), 360px);
  padding: 14px;
}

.mega-menu--brand {
  width: min(calc(100vw - 128px), 280px);
  padding: 12px;
}

.mega-menu--text {
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(110, 61, 47, 0.1);
}

.nav-item.open .mega-menu,
.nav-item:focus-within .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-layout {
  display: grid;
  gap: 18px;
  width: 100%;
}

.mega-list {
  display: grid;
  gap: 2px;
}

.mega-link {
  display: flex;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 10px;
  color: var(--brown, #6e3d2f);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  transition: color 0.2s ease, background 0.2s ease, text-decoration-color 0.2s ease;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.mega-link-label {
  display: block;
}

.mega-link-hint {
  flex: 0 0 auto;
  color: var(--ochre, #b47c3d);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.9;
}

.mega-link:hover,
.mega-link.is-current {
  color: #9a5c16;
  background: rgba(252, 201, 44, 0.08);
  text-decoration-color: currentColor;
}

.mega-link.is-disabled {
  color: rgba(110, 61, 47, 0.68);
  background: transparent;
  cursor: default;
}

.mega-link.is-disabled:hover,
.mega-link.is-disabled.is-current {
  color: rgba(110, 61, 47, 0.68);
  background: rgba(110, 61, 47, 0.04);
  text-decoration-color: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-contact {
  display: inline-flex;
  min-height: 36px;
  padding: 0 15px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(110, 61, 47, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--brown, #6e3d2f);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-contact:hover {
  background: rgba(252, 201, 44, 0.18);
  border-color: var(--honey-bright, #fcc92c);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(110, 61, 47, 0.18);
  border-radius: 999px;
  color: var(--brown, #6e3d2f);
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  background: rgba(252, 201, 44, 0.16);
  border-color: rgba(252, 201, 44, 0.6);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: calc(var(--site-notice-height) + var(--site-nav-height) + var(--site-mobile-menu-gap));
  left: 16px;
  right: 16px;
  z-index: 998;
  display: none;
  max-height: calc(100vh - (var(--site-notice-height) + var(--site-nav-height) + var(--site-mobile-menu-gap)) - 24px);
  padding: 14px 18px;
  overflow: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(26, 22, 18, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

body.notice-closed .mobile-menu {
  top: calc(var(--site-nav-height) + var(--site-mobile-menu-gap));
  max-height: calc(100vh - (var(--site-nav-height) + var(--site-mobile-menu-gap)) - 24px);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.mobile-menu a {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--brown, #6e3d2f);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a.is-current {
  color: #9a5c16;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu-group {
  padding: 6px 0 2px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-menu-group-title {
  display: block;
  padding: 8px 4px 6px;
  color: var(--ochre, #b47c3d);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

.mobile-menu-group a {
  gap: 8px;
  padding-left: 16px;
}

.mobile-menu-label {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.mobile-menu a.is-disabled {
  color: rgba(110, 61, 47, 0.72);
}

.mobile-menu-hint {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--ochre, #b47c3d);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.9;
}

@media (max-width: 1180px) {
  .nav-links,
  .nav-contact {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .mobile-menu {
    display: block;
  }
}

@media (max-width: 680px) {
  :root {
    --site-notice-height: 34px;
    --site-nav-height: 70px;
    --site-mobile-menu-gap: 0px;
  }

  .top-notice-inner {
    justify-content: flex-start;
    padding: 0 44px 0 16px;
    text-align: left;
  }

  .top-notice-link {
    font-size: 12px;
  }

  .top-notice-close {
    right: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }

  .nav-in {
    padding: 0 16px;
  }

  .nav-brand img {
    height: 42px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .mobile-menu {
    left: 12px;
    right: 12px;
    padding: 14px 16px;
    border-radius: 18px;
  }

  .mobile-menu-group a {
    gap: 6px;
  }

  .mobile-menu-hint {
    font-size: 10px;
  }
}
