:root{
  --header-h-desktop: 96px;
  --header-h-tablet: 82px;
  --header-h-mobile: 74px;
}

/* =========================
   BASE
========================= */
html,
body{
  margin:0;
  padding:0;
}

body{
  overflow-x:hidden;
}

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

.site-header{
  position:fixed !important;
  top:0;
  left:50% !important;
  width:100vw !important;
  max-width:100vw !important;
  margin:0 !important;
  padding:14px 0;
  z-index:99999;
  background:transparent;
  transform:translateX(-50%);
  transition:background .3s ease, box-shadow .3s ease;
}

.site-header::before{
  content:"";
  position:absolute;
  inset:0;
  background:inherit;
  z-index:-1;
}

.site-header.header_fixed{
  background:#F5F5F5;
  box-shadow:0 8px 20px rgba(0,0,0,.12);
}

/* если ты залогинена в WP */
body.admin-bar .site-header{
  top:32px;
}

@media (max-width:782px){
  body.admin-bar .site-header{
    top:46px;
  }
}

.site-header .header-flex{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 18px;
}

.header-left,
.header-right{
  display:flex;
  align-items:center;
}

.header-right{
  flex:1;
  justify-content:flex-end;
}

.header-logo{
  margin:0;
  line-height:0;
}

.custom-logo{
  display:block;
  width:156px;
  height:auto;
}

.header-title,
.header-title a,
.header-title h2{
  display:none !important;
}

/* =========================
   DESKTOP MENU
========================= */
.header-menu{
  display:flex;
  align-items:center;
}

.header-menu ul{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  list-style:none;
  margin:0;
  padding:0;
}

.header-menu ul li{
  position:relative;
  margin:0 4px;
}

.header-menu ul a{
  display:inline-block;
  padding:14px 18px;
  text-decoration:none;
  font:600 16px 'Inter', sans-serif;
  color:#1D4136;
  white-space:nowrap;
  transition:color .3s ease;
}

.header-menu ul a:hover{
  color:#A73C2A;
}

.site-header.header_fixed .header-menu ul a{
  color:#000000;
}

/* =========================
   BURGER
========================= */
.burger-icon{
  display:none;
  position:relative;
  width:28px;
  height:22px;
  margin-left:auto;
  cursor:pointer;
  z-index:100001;
}

.burger-icon span{
  position:absolute;
  left:0;
  width:100%;
  height:3px;
  background:#fff;
  transition:.3s ease;
}

.burger-icon span:nth-child(1){ top:0; }
.burger-icon span:nth-child(2){ top:9px; }
.burger-icon span:nth-child(3){ top:18px; }

.burger-icon.open span:nth-child(1){
  top:9px;
  transform:rotate(45deg);
}

.burger-icon.open span:nth-child(2){
  opacity:0;
}

.burger-icon.open span:nth-child(3){
  top:9px;
  transform:rotate(-45deg);
}

/* =========================
   CONTENT / ELEMENTOR
========================= */
.custom-page-content,
.custom-page-content > .elementor,
.custom-page-content > .elementor-section-wrap{
  margin-top:0 !important;
  padding-top:0 !important;
}

.custom-page-content > .elementor > .elementor-section:first-child{
  margin-top:0 !important;
  position:relative;
  z-index:1;
}

/* =========================
   DESKTOP
========================= */
@media (min-width:1201px){
  .site-header{
    min-height:var(--header-h-desktop);
  }

  .burger-icon{
    display:none !important;
  }

  .header-menu{
    position:static !important;
    opacity:1 !important;
    pointer-events:auto !important;
    max-height:none !important;
    overflow:visible !important;
    background:transparent !important;
    border:none !important;
  }

  .custom-page-content > .elementor > .elementor-section:first-child{
    margin-top:calc(var(--header-h-desktop) * -1) !important;
    padding-top:var(--header-h-desktop) !important;
  }
}

/* =========================
   TABLET + MOBILE
========================= */
@media (max-width:1200px){
  .site-header{
    background:#2D3F47;
  }

  .site-header.header_fixed{
    background:#C14935;
  }

  .burger-icon{
    display:block;
  }

  .header-menu{
    position:fixed !important;
    left:0;
    right:0;
    width:100%;
    background:#212E33;
    border-bottom:1px solid rgba(255,255,255,.12);
    max-height:0;
    overflow:hidden;
    opacity:0;
    pointer-events:none;
    transition:max-height .35s ease, opacity .25s ease;
    z-index:99998;
  }

  .header-menu.open{
    max-height:80vh;
    opacity:1;
    pointer-events:auto;
  }

  .header-menu ul{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    padding:10px 18px;
  }

  .header-menu ul li{
    width:100%;
    margin:0;
    border-bottom:1px solid rgba(255,255,255,.12);
  }

  .header-menu ul a{
    display:block;
    width:100%;
    padding:14px 0;
    color:#fff !important;
  }
}

/* =========================
   TABLET
========================= */
@media (min-width:768px) and (max-width:1200px){
  .site-header{
    min-height:var(--header-h-tablet);
  }

  .custom-logo{
    width:110px;
  }

  .custom-page-content > .elementor > .elementor-section:first-child{
    margin-top:calc(var(--header-h-tablet) * -1) !important;
    padding-top:var(--header-h-tablet) !important;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width:767px){
  .site-header{
    min-height:var(--header-h-mobile);
    padding:12px 0;
  }

  .site-header .header-flex{
    padding:0 16px;
  }

  .header-logo{
    max-width:200px;
  }

  .custom-logo{
    width:96px;
  }

  .custom-page-content > .elementor > .elementor-section:first-child{
    margin-top:calc(var(--header-h-mobile) * -1) !important;
    padding-top:var(--header-h-mobile) !important;
  }
}

@media (max-width:480px){
  .custom-logo{
    width:88px;
  }
}



