.site-header,
.site-header .nav-shell,
.site-header .desktop-nav {
  overflow: visible !important;
}

.desktop-nav > .nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.desktop-nav > .nav-dropdown > .nav-dropdown-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  color: #34464d;
  font-size: 15px;
  white-space: nowrap;
}

.desktop-nav > .nav-dropdown > .nav-dropdown-trigger::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  left: 50%;
  height: 3px;
  background: #c3202f;
  transition: right 180ms ease, left 180ms ease;
}

.desktop-nav > .nav-dropdown:hover > .nav-dropdown-trigger,
.desktop-nav > .nav-dropdown:focus-within > .nav-dropdown-trigger,
.desktop-nav > .nav-dropdown > .nav-dropdown-trigger.active {
  color: #961523;
  font-weight: 700;
}

.desktop-nav > .nav-dropdown:hover > .nav-dropdown-trigger::after,
.desktop-nav > .nav-dropdown:focus-within > .nav-dropdown-trigger::after,
.desktop-nav > .nav-dropdown > .nav-dropdown-trigger.active::after {
  right: 0;
  left: 0;
}

.nav-dropdown-caret {
  display: inline-grid;
  flex: 0 0 14px;
  place-items: center;
  width: 14px;
  height: 14px;
  color: #8b969d;
  font-size: 0;
  line-height: 1;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 180ms ease, color 180ms ease;
}

.nav-dropdown-caret::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transform-origin: 50% 50%;
}

.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret {
  color: #c3202f;
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  z-index: 1000;
  display: grid;
  gap: 4px;
  width: 218px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid rgba(195, 32, 47, 0.14);
  border-top: 3px solid #c3202f;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 18px 46px rgba(24, 35, 42, 0.17);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  pointer-events: none;
}

.nav-dropdown-menu-scenes {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(840px, calc(100vw - 32px));
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(195, 32, 47, 0.035), transparent 42%),
    rgba(248, 250, 250, 0.99);
}

.nav-dropdown-menu-scenes .nav-scene-link {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 92px;
  padding: 13px;
  background: #fff;
  border: 1px solid #e6ebec;
  border-radius: 7px;
  box-shadow: 0 5px 14px rgba(23, 54, 63, 0.035);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav-dropdown-menu-scenes .nav-scene-link::before {
  display: none;
}

.nav-dropdown-menu-scenes .nav-scene-link:hover,
.nav-dropdown-menu-scenes .nav-scene-link:focus-visible {
  color: #7f1621;
  background: linear-gradient(135deg, #fff8f9, #ffffff 74%);
  border-color: rgba(195, 32, 47, 0.24);
  box-shadow: 0 10px 24px rgba(111, 24, 34, 0.1);
  transform: translateY(-2px);
}

.nav-scene-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #a91927;
  background: #fff2f3;
  border: 1px solid #f0d0d4;
  border-radius: 8px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-scene-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-scene-link:hover .nav-scene-icon,
.nav-scene-link:focus-visible .nav-scene-icon {
  color: #fff;
  background: #b51d2b;
  border-color: #b51d2b;
  transform: scale(1.04);
}

.nav-scene-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nav-scene-copy strong {
  overflow: hidden;
  color: #253940;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-scene-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: #78878c;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nav-dropdown-menu-ecosystem {
  width: 190px;
}

.nav-dropdown-menu-trusted-space {
  width: 210px;
}

.nav-dropdown:hover > .nav-dropdown-menu,
.nav-dropdown:focus-within > .nav-dropdown-menu,
.nav-dropdown.is-open > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  color: #34464d;
  font-size: 14px;
  line-height: 1.55;
  background: #fff;
  border-radius: 5px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.nav-dropdown-menu a::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  background: #c3202f;
  border-radius: 50%;
  opacity: 0.56;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: #961523;
  font-weight: 700;
  background: #fbf0f1;
  transform: translateX(2px);
}

@media (max-width: 1020px) {
  .desktop-nav > .nav-dropdown { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-menu,
  .nav-dropdown-caret { transition: none; }
}

.global-ai-ask {
  position: fixed;
  right: 20px;
  bottom: 108px;
  z-index: 1005;
  display: grid;
  width: 72px;
  min-height: 88px;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: #fff;
  background: linear-gradient(145deg, #c12232, #831421);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px 4px 14px 4px;
  box-shadow: 0 16px 36px rgba(94, 16, 27, .28);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.global-ai-ask:hover,.global-ai-ask:focus-visible { color: #fff; transform: translateY(-4px); box-shadow: 0 20px 44px rgba(94,16,27,.36); }
.global-ai-ask span { font-size: 19px; font-weight: 900; letter-spacing: .04em; }
.global-ai-ask strong { font-size: 14px; }
.global-ai-ask small { color: rgba(255,255,255,.65); font-size: 9px; }
.footer-main-reviewed { grid-template-columns: 1.25fr 1fr .85fr .85fr !important; }
.footer-unit-list { display: grid; gap: 9px; }
.footer-unit-list p { display: grid; grid-template-columns: 64px 1fr; gap: 9px; margin: 0; color: rgba(255,255,255,.68); font-size: 12px; }
.footer-unit-list span { color: rgba(255,255,255,.42); }
.footer-unit-list strong { color: rgba(255,255,255,.8); font-weight: 600; }
@media (max-width: 1020px) { .footer-main-reviewed { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 640px) { .global-ai-ask { right: 12px; bottom: 18px; width: 62px; min-height: 66px; } .global-ai-ask small { display: none; } .footer-main-reviewed { grid-template-columns: 1fr !important; } }

.contact-login-backdrop[hidden] {
  display: none;
}

.contact-login-backdrop {
  position: fixed;
  z-index: 10060;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 30, 35, 0.52);
  opacity: 0;
  transition: opacity 180ms ease;
}

.contact-login-backdrop.is-visible {
  opacity: 1;
}

.contact-login-dialog {
  width: min(430px, 100%);
  padding: 34px 32px 30px;
  background: #ffffff;
  border-top: 4px solid #c3202f;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(12, 28, 34, 0.24);
  text-align: center;
  transform: translateY(10px);
  transition: transform 180ms ease;
}

.contact-login-backdrop.is-visible .contact-login-dialog {
  transform: translateY(0);
}

.contact-login-dialog h2 {
  margin: 0;
  color: #20383f;
  font-size: 22px;
}

.contact-login-dialog p {
  margin: 14px 0 26px;
  color: #687a80;
  font-size: 14px;
  line-height: 1.8;
}

.contact-login-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.contact-login-actions button,
.contact-login-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 42px;
  padding: 9px 20px;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.contact-login-cancel {
  color: #53666c;
  background: #ffffff;
  border: 1px solid #d5dcde;
}

.contact-login-confirm {
  color: #ffffff;
  background: #c3202f;
  border: 1px solid #c3202f;
}

.contact-login-confirm:hover,
.contact-login-confirm:focus-visible {
  background: #a71927;
  border-color: #a71927;
}
