/* Меню: фиксированные px — без скачков между страницами */
html {
  font-size: 18px !important;
  overflow-y: scroll;
}

header.site-header {
  height: 76px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  box-sizing: border-box !important;
  background: #fff !important;
}

header.site-header,
header.site-header * {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif !important;
  box-sizing: border-box !important;
}

header.site-header > nav {
  height: 76px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

header.site-header .logo-img {
  height: 40px !important;
  width: auto !important;
  display: block !important;
}

header.site-header .logo-text {
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 40px !important;
  letter-spacing: 0 !important;
  color: #2563eb !important;
}

header.site-header .nav-links {
  display: none;
  align-items: center !important;
  gap: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  column-gap: 32px !important;
  row-gap: 0 !important;
}

@media (min-width: 768px) {
  header.site-header .nav-links {
    display: flex !important;
  }
  header.site-header .nav-cta {
    display: inline-flex !important;
  }
}

header.site-header .nav-links a.nav-link {
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  color: #4b5563 !important;
  white-space: nowrap !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  transform: none !important;
  transition: color 0.15s ease !important;
}

header.site-header .nav-links a.nav-link:hover,
header.site-header .nav-links a.nav-link:focus,
header.site-header .nav-links a.nav-link:active,
header.site-header .nav-links a.nav-link.is-active {
  color: #2563eb !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  letter-spacing: 0 !important;
  transform: none !important;
}

/* Telegram в шапке — голубая кнопка */
header.site-header a.nav-cta {
  display: none;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 4px 18px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  color: #fff !important;
  background: #2563eb !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transform: none !important;
}

header.site-header a.nav-cta .nav-cta-sub {
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;
  color: #dbeafe !important;
}

header.site-header a.nav-cta:hover,
header.site-header a.nav-cta:focus,
header.site-header a.nav-cta:active {
  background: #1d4ed8 !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  height: 48px !important;
  transform: none !important;
}

header.site-header .space-x-8 > :not([hidden]) ~ :not([hidden]),
header.site-header .nav-links > :not([hidden]) ~ :not([hidden]) {
  margin-left: 0 !important;
  margin-inline-start: 0 !important;
}

/* Кнопка Telegram в контенте */
a.tg-btn {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: #2563eb !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  border: 0 !important;
  padding: 0.85rem 1rem !important;
  transition: background 0.15s ease !important;
}
a.tg-btn:hover {
  background: #1d4ed8 !important;
  color: #fff !important;
}
a.tg-btn .tg-btn-sub {
  display: block !important;
  margin-top: 0.2rem !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  color: #dbeafe !important;
}
