#ag-header .ag-layout__elem[data-elem-id="1705064938070"],
#ag-header .ag-layout__elem[data-elem-id="1705065168035"],
#ag-header .ag-layout__elem[data-elem-id="1706009990553"],
#ag-header .ag-layout__elem[data-elem-id="1706009990572"] {
  display: none !important;
}

@media screen and (min-width: 960px) {
  #ag-header .ag-layout__elem[data-elem-id="1705054529094"],
  #ag-header .ag-layout__elem[data-elem-id="1706009990529"] { display: none !important; }
}

#ag-header .ag-header-actions {
  position: absolute;
  z-index: 20;
  box-sizing: border-box;
  width: 337px;
  height: 61px;
  font-family: 'TTFirsNeue', Arial, sans-serif;
}

#ag-header .ag-header-actions__inner {
  position: relative;
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: 61px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 0 0 12px 12px;
  background: #fff;
}

/* Keep the light backing of the regular home header. The compact header uses
 * white on every page, including the home page after scrolling. */
body.ag-home-shell #ag-header:not(.ag-header-scrolled) > .r[data-record-type="396"]:not(.uc-scrollmenu) .ag-header-actions__inner {
  background: #edf7f3;
}
#ag-header.ag-header-scrolled > .uc-scrollmenu .ag-header-actions__inner {
  background: #fff;
}

#ag-header .ag-header-actions a {
  display: inline-flex;
  box-sizing: border-box;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #1e4c43;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

#ag-header .ag-header-actions a:hover { filter: brightness(.95); }
#ag-header .ag-header-actions a:focus-visible { outline: 2px solid #1e4c43; outline-offset: 2px; }
#ag-header .ag-header-actions__cta { width: 153px; background: #c9e5de; }
#ag-header .ag-header-actions__contacts { width: 105px; background: #c9e5de; }
#ag-header .ag-header-actions__telegram { width: 43px; background: #c9eb67; }
#ag-header .ag-header-actions__telegram img { display: block; width: 21px; height: 19px; }

@media screen and (max-width: 1199px) and (min-width: 960px) {
  #ag-header .ag-header-actions { width: 278px; }
  #ag-header .ag-header-actions__inner { gap: 6px; }
  #ag-header .ag-header-actions__cta { width: 124px; }
  #ag-header .ag-header-actions__contacts { width: 84px; }
  #ag-header .ag-header-actions__telegram { width: 38px; }
}

@media screen and (max-width: 959px) {
  #ag-header .ag-header-actions,
  #ag-header .ag-layout__elem[data-elem-id="1705587654379"],
  #ag-header .ag-layout__elem[data-elem-id="1773687331378000002"],
  #ag-header .ag-layout__elem[data-elem-id="1773687300073000001"] { display: none !important; }
}
