/* Global header — scoped .sm-global-head (navy #102A43, orange #F47B20) */
.sm-global-head {
  --sm-navy: #102a43;
  --sm-orange: #f47b20;
  --sm-gray: #f3f6f9;
  --sm-ink: #243447;
  --sm-head-h: 76px;
  --sm-head-h-compact: 60px;
  position: sticky;
  top: 0;
  z-index: 120;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  transition: box-shadow 0.2s ease;
}
.sm-global-head.is-compact {
  box-shadow: 0 4px 20px rgba(16, 42, 67, 0.08);
}
.sm-global-head.is-compact .sm-global-head__bar {
  min-height: var(--sm-head-h-compact);
}
.sm-global-head__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  min-height: var(--sm-head-h);
}
.sm-global-head__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--sm-navy);
  flex-shrink: 0;
}
.sm-global-head__logo img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid var(--sm-orange);
}
.sm-global-head__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.sm-global-head__wordmark {
  font: 800 0.95rem/1.1 Montserrat, system-ui, sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--sm-navy);
}
.sm-global-head__wordmark em {
  font-style: normal;
  color: var(--sm-orange);
}
.sm-global-head__name {
  font: 800 0.95rem/1.1 Montserrat, system-ui, sans-serif;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.sm-global-head__tag {
  display: none;
  font: 500 0.68rem/1.2 Montserrat, system-ui, sans-serif;
  color: #64748b;
  letter-spacing: 0.02em;
  max-width: 14rem;
}
@media (min-width: 900px) {
  .sm-global-head__tag {
    display: block;
  }
}
@media (min-width: 1024px) and (max-width: 1150px) {
  .sm-global-head__tag {
    display: none;
  }
}
.sm-global-head__nav {
  flex: 1 1 auto;
  min-width: 0;
}
.sm-global-head__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sm-global-head__link,
.sm-global-head__drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  font: 600 0.86rem/1.2 Inter, system-ui, sans-serif;
  color: var(--sm-ink);
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.sm-global-head__link:hover,
.sm-global-head__drop-btn:hover,
.sm-global-head__link:focus-visible,
.sm-global-head__drop-btn:focus-visible {
  background: var(--sm-gray);
  outline: none;
}
.sm-global-head__link[aria-current="page"],
.sm-global-head__drop-btn[aria-current="page"] {
  color: var(--sm-navy);
  background: color-mix(in srgb, var(--sm-orange) 12%, #fff);
}
.sm-global-head__item {
  position: relative;
}
.sm-global-head__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}
.sm-global-head__drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(16, 42, 67, 0.12);
  z-index: 130;
}
.sm-global-head__drop[hidden] {
  display: none;
}
.sm-global-head__drop a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sm-ink);
  text-decoration: none;
}
.sm-global-head__drop-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sm-global-head__drop-title {
  font-weight: 600;
  color: var(--sm-navy);
  font-size: 0.88rem;
}
.sm-global-head__drop-desc {
  font-weight: 500;
  font-size: 0.78rem;
  color: #627386;
  line-height: 1.35;
}
.sm-global-head__drop-all {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid #e2e8f0;
}
.sm-global-head__drop-all a {
  font-weight: 700;
  color: var(--sm-orange);
  font-size: 0.85rem;
}
.sm-global-head__drop a:hover {
  background: var(--sm-gray);
}
.sm-global-head__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.sm-global-head__lang {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.sm-global-head__lang-btn {
  border: 0;
  background: #fff;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: #64748b;
}
.sm-global-head__lang-btn.is-on {
  background: var(--sm-orange);
  color: #fff;
}
.sm-global-head__phone {
  display: none;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sm-orange);
  text-decoration: none;
  white-space: nowrap;
}
.sm-global-head__cta {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sm-orange);
  color: #fff !important;
  font: 700 0.8rem/1 Inter, system-ui, sans-serif;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.sm-global-head__cta:hover {
  filter: brightness(1.05);
}
.sm-global-head__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0 11px;
}
.sm-global-head__burger span {
  display: block;
  height: 2px;
  background: var(--sm-navy);
  border-radius: 1px;
}
.sm-global-head__drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16, 42, 67, 0.45);
}
.sm-global-head__drawer[hidden] {
  display: none;
}
.sm-global-head__drawer-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 320px);
  height: 100%;
  background: #fff;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}
.sm-global-head__drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--sm-gray);
  border-radius: 10px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.sm-global-head__drawer-list {
  list-style: none;
  margin: 48px 0 16px;
  padding: 0;
}
.sm-global-head__drawer-list > li {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
}
.sm-global-head__drawer-list a {
  font-weight: 600;
  color: var(--sm-navy);
  text-decoration: none;
  font-size: 1rem;
}
.sm-global-head__drawer-sub {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 12px;
}
.sm-global-head__drawer-sub a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--sm-ink);
  display: block;
  padding: 6px 0;
}
.sm-global-head__drawer-label {
  display: block;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #627386;
  margin-bottom: 4px;
}
body.sm-global-layout #main {
  scroll-margin-top: calc(var(--sm-head-h) + 12px);
}
.sm-global-head__drop-btn:focus-visible,
.sm-global-head__link:focus-visible,
.sm-global-head__cta:focus-visible,
.sm-global-head__burger:focus-visible {
  outline: 2px solid var(--sm-orange);
  outline-offset: 2px;
}
.sm-global-head__cta--drawer,
.sm-global-head__phone--drawer {
  display: flex;
  width: 100%;
  margin-top: 12px;
  text-align: center;
  justify-content: center;
}
.sm-global-head__phone--drawer {
  display: flex;
  padding: 12px;
  border: 1px solid var(--sm-orange);
  border-radius: 12px;
}

.sm-global-dock {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid #e2e8f0;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
body.sm-global-layout .sm-global-dock {
  display: grid;
}
body.sm-global-layout .dock {
  display: none !important;
}
body.sm-global-layout .sticky-call {
  display: none !important;
}
body.sm-global-layout .site-head {
  display: none !important;
}
body.sm-global-layout {
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}
.sm-global-dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}
.sm-global-dock__call {
  background: var(--sm-navy);
  color: #fff;
}
.sm-global-dock__est {
  background: var(--sm-orange);
  color: #fff;
}

@media (min-width: 1024px) {
  .sm-global-head__burger {
    display: none;
  }
  .sm-global-head__nav {
    display: block;
  }
  .sm-global-head__phone {
    display: inline-flex;
  }
  .sm-global-head__cta {
    display: inline-flex;
  }
  body.sm-global-layout .sm-global-dock {
    display: none;
  }
  body.sm-global-layout {
    padding-bottom: 0;
  }
}
@media (max-width: 1023px) {
  .sm-global-head__nav {
    display: none;
  }
  .sm-global-head__lang {
    display: none;
  }
}
