.gr-site-header,
.gr-site-header * {
  box-sizing: border-box;
}

header.gr-site-header.header {
  position: fixed !important;
  inset: 0 0 auto !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  height: 76px !important;
  min-height: 76px !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(237, 231, 219, .13) !important;
  border-radius: 0 !important;
  background: rgba(11, 16, 20, .76) !important;
  color: #ede7db !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: blur(18px) !important;
  backdrop-filter: blur(18px) !important;
  transition: box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease !important;
}

header.gr-site-header.header.compact {
  height: 76px !important;
  min-height: 76px !important;
}

header.gr-site-header.header.gr-scrolled {
  border-bottom-color: rgba(31, 38, 43, .13) !important;
  background: rgba(248, 247, 243, .985) !important;
  color: #20272d !important;
  box-shadow: 0 12px 34px rgba(21, 27, 31, .09) !important;
}

.gr-site-header__inner {
  width: min(1520px, calc(100% - 44px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.gr-site-logo {
  width: 252px;
  min-width: 252px;
  aspect-ratio: 1523 / 266;
  position: relative;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.gr-site-logo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  opacity: 0;
  transition: opacity .24s ease;
}

.gr-site-logo .gr-site-logo__on-light {
  display: block !important;
  opacity: 0;
}

.gr-site-logo .gr-site-logo__on-dark {
  display: block !important;
  opacity: 1;
}

.gr-site-header.gr-scrolled .gr-site-logo .gr-site-logo__on-light {
  display: block !important;
  opacity: 1;
}

.gr-site-header.gr-scrolled .gr-site-logo .gr-site-logo__on-dark {
  display: block !important;
  opacity: 0;
}

.gr-site-nav {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.25vw, 22px);
  font: 650 12px/1.2 Onest, Inter, Arial, sans-serif;
  white-space: nowrap;
}

.gr-site-nav > a,
.gr-site-products__trigger {
  position: relative;
  min-height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #ede7db !important;
  text-decoration: none;
  cursor: pointer;
  transition: color .24s ease;
}

.gr-site-header.gr-scrolled .gr-site-nav > a,
.gr-site-header.gr-scrolled .gr-site-products__trigger {
  color: #20272d !important;
}

.gr-site-nav > a::after,
.gr-site-products__trigger::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 6px;
  left: 0;
  height: 2px;
  background: #df7434;
  transition: right .25s cubic-bezier(.2,.7,.2,1);
}

.gr-site-nav > a:hover::after,
.gr-site-nav > a:focus-visible::after,
.gr-site-products:hover .gr-site-products__trigger::after,
.gr-site-products:focus-within .gr-site-products__trigger::after {
  right: 0;
}

.gr-site-products {
  position: relative;
}

.gr-site-products__chevron {
  color: #e07b3f;
  font-size: 12px;
  transition: transform .25s ease;
}

.gr-site-header.gr-scrolled .gr-site-products__chevron {
  color: #b85a27;
}

.gr-site-products:hover .gr-site-products__chevron,
.gr-site-products:focus-within .gr-site-products__chevron {
  transform: rotate(180deg);
}

.gr-site-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: -20px;
  width: 310px;
  padding: 10px;
  border: 1px solid rgba(31, 38, 43, .12);
  border-radius: 12px;
  background: #fbfaf7;
  box-shadow: 0 22px 55px rgba(21, 27, 31, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s ease, visibility .22s ease, transform .22s ease;
}

.gr-site-products:hover .gr-site-dropdown,
.gr-site-products:focus-within .gr-site-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.gr-site-dropdown a {
  min-height: 42px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 8px;
  color: #20272d !important;
  font: 650 12px/1.25 Onest, Inter, Arial, sans-serif;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.gr-site-dropdown a::after {
  content: "↗";
  color: #bf5b25;
  font-size: 14px;
}

.gr-site-dropdown a:hover,
.gr-site-dropdown a:focus-visible {
  background: rgba(223, 116, 52, .11);
  color: #a9471c !important;
}

.gr-site-dropdown__all {
  margin-top: 6px;
  border-top: 1px solid rgba(31, 38, 43, .1);
  border-radius: 0 0 8px 8px !important;
}

.gr-site-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.gr-site-contacts {
  display: grid;
  gap: 3px;
  text-align: right;
  white-space: nowrap;
}

.gr-site-phone,
.gr-site-email {
  color: #ede7db !important;
  text-decoration: none;
  transition: color .24s ease;
}

.gr-site-phone {
  font: 750 12px/1.2 Onest, Inter, Arial, sans-serif;
}

.gr-site-email {
  color: #ef9d6b !important;
  font: 500 10px/1.2 "IBM Plex Mono", Consolas, monospace;
}

.gr-site-header.gr-scrolled .gr-site-phone {
  color: #20272d !important;
}

.gr-site-header.gr-scrolled .gr-site-email {
  color: #ad4e20 !important;
}

.gr-site-cta {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #df7434;
  border-radius: 9px;
  background: #df7434;
  color: #161c20 !important;
  font: 750 12px/1 Onest, Inter, Arial, sans-serif;
  text-decoration: none;
  box-shadow: 0 9px 22px rgba(223, 116, 52, .2);
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
  white-space: nowrap;
}

.gr-site-cta span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #20272d;
  color: #fff;
  transition: transform .22s ease, color .22s ease, background .22s ease;
}

.gr-site-cta:hover,
.gr-site-cta:focus-visible {
  transform: translateY(-2px);
  background: #eb8245;
  box-shadow: 0 14px 28px rgba(223, 116, 52, .3);
}

.gr-site-cta:hover span,
.gr-site-cta:focus-visible span {
  transform: rotate(45deg);
  background: #fff;
  color: #20272d;
}

.gr-site-menu-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  display: none;
  place-items: center;
  border: 1px solid rgba(237, 231, 219, .26);
  border-radius: 9px;
  background: transparent;
  color: #ede7db;
  cursor: pointer;
}

.gr-site-header.gr-scrolled .gr-site-menu-toggle {
  border-color: rgba(31, 38, 43, .16);
  color: #20272d;
}

.gr-site-menu-toggle__lines,
.gr-site-menu-toggle__lines::before,
.gr-site-menu-toggle__lines::after {
  width: 19px;
  height: 2px;
  display: block;
  background: currentColor;
  content: "";
  transition: transform .24s ease, opacity .2s ease;
}

.gr-site-menu-toggle__lines {
  position: relative;
}

.gr-site-menu-toggle__lines::before,
.gr-site-menu-toggle__lines::after {
  position: absolute;
  left: 0;
}

.gr-site-menu-toggle__lines::before { top: -6px; }
.gr-site-menu-toggle__lines::after { top: 6px; }

.gr-site-menu-toggle[aria-expanded="true"] .gr-site-menu-toggle__lines {
  background: transparent;
}

.gr-site-menu-toggle[aria-expanded="true"] .gr-site-menu-toggle__lines::before {
  top: 0;
  transform: rotate(45deg);
}

.gr-site-menu-toggle[aria-expanded="true"] .gr-site-menu-toggle__lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.gr-site-mobile {
  position: fixed;
  z-index: 1100;
  inset: 0 0 0 auto;
  width: min(430px, 100%);
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: #f7f5ef;
  color: #20272d;
  box-shadow: -24px 0 60px rgba(14, 19, 22, .22);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition: opacity .3s ease, visibility .3s ease, transform .3s cubic-bezier(.2,.7,.2,1);
}

.gr-site-mobile[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.gr-site-mobile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(31, 38, 43, .12);
}

.gr-site-mobile__top .gr-site-logo {
  width: 185px;
  min-width: 0;
}

.gr-site-mobile .gr-site-logo .gr-site-logo__on-light {
  display: block !important;
  opacity: 1;
}

.gr-site-mobile .gr-site-logo .gr-site-logo__on-dark {
  display: block !important;
  opacity: 0;
}

.gr-site-mobile__close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(31, 38, 43, .16);
  border-radius: 9px;
  background: #fff;
  color: #20272d;
  font: 400 26px/1 Arial, sans-serif;
  cursor: pointer;
}

.gr-site-mobile__nav {
  margin: 20px 0;
  display: grid;
  overflow-y: auto;
}

.gr-site-mobile__nav > a {
  padding: 14px 2px;
  border-bottom: 1px solid rgba(31, 38, 43, .1);
  color: #20272d !important;
  font: 700 21px/1.18 Onest, Inter, Arial, sans-serif;
  text-decoration: none;
}

.gr-site-mobile__products {
  padding: 14px 2px;
  border-bottom: 1px solid rgba(31, 38, 43, .1);
}

.gr-site-mobile__products > a {
  display: block;
  color: #20272d !important;
  font: 700 21px/1.18 Onest, Inter, Arial, sans-serif;
  text-decoration: none;
}

.gr-site-mobile__product-links {
  margin-top: 11px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.gr-site-mobile__product-links a {
  min-height: 38px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  background: rgba(31, 38, 43, .055);
  color: #596269 !important;
  font: 650 11px/1.25 Onest, Inter, Arial, sans-serif;
  text-decoration: none;
}

.gr-site-mobile__footer {
  margin-top: auto;
  padding-top: 18px;
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(31, 38, 43, .12);
}

.gr-site-mobile__contacts {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
}

.gr-site-mobile__footer .gr-site-cta {
  width: 100%;
}

.gr-site-backdrop {
  position: fixed;
  z-index: 1090;
  inset: 0;
  border: 0;
  background: rgba(10, 14, 17, .56);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.gr-site-backdrop[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

body.gr-menu-open {
  overflow: hidden !important;
}

body main > .hero:not(.hero-home) {
  padding-top: 76px !important;
}

.anchorbar {
  top: 76px !important;
}

.gr-site-footer-logo {
  width: min(255px, 100%);
  margin: 0 0 18px;
  display: inline-flex !important;
  color: inherit;
  text-decoration: none;
}

.gr-site-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

/* Старые мобильные панели сохранены только для совместимости со скриптами шаблонов. */
.mobile-panel:not(.gr-site-mobile) {
  display: none !important;
}

@media (max-width: 1320px) {
  .gr-site-header__inner { width: min(100% - 30px, 1520px); gap: 15px; }
  .gr-site-logo { width: 220px; min-width: 220px; }
  .gr-site-nav { gap: 13px; font-size: 11px; }
  .gr-site-email { display: none; }
}

@media (max-width: 1120px) {
  .gr-site-nav { display: none; }
  .gr-site-actions { margin-left: auto; }
  .gr-site-menu-toggle { display: grid !important; }
}

@media (max-width: 700px) {
  header.gr-site-header.header,
  header.gr-site-header.header.compact {
    height: 68px !important;
    min-height: 68px !important;
  }
  .gr-site-header__inner { width: calc(100% - 24px); gap: 10px; }
  .gr-site-logo { width: 180px; min-width: 180px; }
  .gr-site-contacts,
  .gr-site-actions > .gr-site-cta { display: none; }
  .gr-site-menu-toggle { width: 42px; height: 42px; }
  body main > .hero:not(.hero-home) { padding-top: 68px !important; }
  .anchorbar { top: 68px !important; }
  .gr-site-mobile { padding: 18px; }
  .gr-site-mobile__top .gr-site-logo { width: 166px; }
  .gr-site-mobile__contacts { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  .gr-site-header *,
  .gr-site-mobile,
  .gr-site-backdrop { transition-duration: .001ms !important; }
}
