.fm-site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  width: 100%;
  padding: 12px 18px !important;
  border-top: 3px solid #151713 !important;
  border-bottom: 1px solid rgba(21, 23, 19, .10) !important;
  background:
    radial-gradient(circle at 82% -60%, rgba(185, 242, 39, .18), transparent 36%),
    rgba(250, 250, 247, .94) !important;
  box-shadow: 0 18px 48px rgba(24, 28, 17, .10) !important;
  backdrop-filter: blur(18px);
}

.fm-site-header::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 22%;
  height: 3px;
  background: #b9f227;
}

.header.fm-site-header {
  position: fixed !important;
  top: 0 !important;
  right: 0;
  left: 0;
}

.has-preview-banner .fm-site-header {
  top: 50px;
}

.fm-site-nav {
  position: relative;
  width: min(100%, 1440px);
  min-height: 64px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(450px, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 2.2vw, 38px);
}

.fm-site-brand {
  position: relative;
  width: 138px;
  height: 28px;
  display: block;
  flex: 0 0 138px;
  overflow: hidden;
  color: #151713 !important;
  text-decoration: none !important;
}

.fm-site-brand img {
  position: absolute;
  top: -25px;
  left: -40px;
  width: 1183px !important;
  height: auto !important;
  max-width: none !important;
  border-radius: 0 !important;
  pointer-events: none;
  user-select: none;
}

.fm-site-links {
  min-width: 0;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border: 1px solid rgba(21, 23, 19, .08);
  border-radius: 16px;
  background: rgba(255, 255, 255, .68);
  box-shadow: inset 0 1px 0 #fff, 0 8px 25px rgba(31, 34, 25, .05);
}

.fm-site-links a {
  position: relative;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 12px;
  border-radius: 11px;
  color: #41443d !important;
  background: transparent;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.fm-site-links a:hover,
.fm-site-links a:focus-visible,
.fm-site-links a.is-active {
  color: #151713 !important;
  background: rgba(185, 242, 39, .32);
  box-shadow: 0 5px 12px rgba(94, 126, 15, .10);
  transform: translateY(-2px);
  outline: none;
}

.fm-site-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.fm-site-phone {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-right: 4px;
  padding: 0;
  color: #151713 !important;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
}

.fm-site-action,
.fm-site-menu-toggle {
  height: 42px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid rgba(21, 23, 19, .10);
  border-radius: 13px;
  color: #151713 !important;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 5px 16px rgba(24, 28, 17, .05);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.fm-site-action[aria-label="Telegram"] {
  width: 42px;
  padding: 0;
}

.fm-site-action:hover,
.fm-site-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(21, 23, 19, .22);
  outline: none;
}

.fm-site-action svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: currentColor;
}

.fm-site-action--primary {
  min-width: 78px;
  padding: 0 18px;
  color: #fff !important;
  border: 0;
  background: #151713;
  box-shadow: inset 0 -3px 0 #b9f227;
}

.fm-site-action--primary:hover,
.fm-site-action--primary:focus-visible {
  border-color: #151713;
  background: #151713;
  box-shadow: inset 0 -4px 0 #b9f227;
}

.fm-site-menu-toggle {
  position: relative;
  display: none;
  width: 42px;
  flex: 0 0 42px;
  padding: 0;
  cursor: pointer;
}

.fm-site-menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #151713;
  transition: transform .2s ease, opacity .2s ease;
}

.fm-site-menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.fm-site-menu-toggle span:nth-child(3) { transform: translateY(6px); }
.fm-site-header.is-menu-open .fm-site-menu-toggle span:nth-child(1) { transform: rotate(45deg); }
.fm-site-header.is-menu-open .fm-site-menu-toggle span:nth-child(2) { opacity: 0; }
.fm-site-header.is-menu-open .fm-site-menu-toggle span:nth-child(3) { transform: rotate(-45deg); }

.fm-site-mobile-only {
  display: none !important;
}

@media (max-width: 1280px) and (min-width: 1051px) {
  .fm-site-header { padding-inline: 12px !important; }
  .fm-site-nav { grid-template-columns: auto minmax(410px, 1fr) auto; gap: 10px; }
  .fm-site-links a { padding-inline: 6px; font-size: 11px; }
  .fm-site-actions { gap: 5px; }
  .fm-site-phone { margin-right: 0; font-size: 12px; }
  .fm-site-action { padding-inline: 10px; font-size: 10px; }
  .fm-site-action--primary { padding-inline: 13px; }
}

@media (max-width: 1050px) {
  .fm-site-header { padding-inline: 14px !important; }
  .fm-site-nav { min-height: 58px; display: flex; gap: 10px; }
  .fm-site-brand { margin-right: auto; }
  .fm-site-menu-toggle { display: inline-flex; order: 4; }
  .fm-site-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    width: 100%;
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    max-height: calc(100dvh - 92px);
    padding: 10px;
    overflow-y: auto;
    background: rgba(250, 250, 247, .99);
    box-shadow: 0 18px 48px rgba(24, 28, 17, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    pointer-events: none;
  }
  .fm-site-header.is-menu-open .fm-site-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .fm-site-links a {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 12px 13px;
    font-size: 14px;
    white-space: normal;
  }
  .fm-site-mobile-only { display: inline-flex !important; }
}

@media (max-width: 720px) {
  .fm-site-header { min-height: 76px; padding: 9px 10px !important; }
  .fm-site-nav { width: 100%; min-height: 54px; }
  .fm-site-phone,
  .fm-site-actions .fm-site-action:not(.fm-site-action--primary) { display: none; }
  .fm-site-action--primary { height: 40px; min-width: 0; padding-inline: 13px; font-size: 12px; }
  .fm-site-links { top: calc(100% + 8px); grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
  .fm-site-brand { width: 124px; flex-basis: 124px; }
  .fm-site-action--primary { padding-inline: 10px; }
}
