
.site-header{
  position: relative;
  top: 0;
  z-index: 40;

  /* светлая “шапка” без неона */
  background: rgba(246,244,230,.86);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);

  border-bottom: 1px solid rgba(82,87,93,.14);
  box-shadow:
    0 10px 26px rgba(65,68,75,.08),
    0 1px 0 rgba(255,255,255,.75);
}

.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

/* тонкая акцентная линия снизу (желтая) */
.site-header::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:-1px;
  height:2px;
  background: linear-gradient(90deg, transparent, rgba(253,219,58,.95), transparent);
  opacity:.9;
  pointer-events:none;
}

/* ---------- Logo ---------- */
.logo{
  display:inline-flex;
  align-items:center;
  gap:10px;

  font: 900 18px/1 "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration:none;

  color:#41444B;
  position: relative;
}

/* желтый “маркер” под лого */
.logo::before{
  content:"";
  position:absolute;
  left:-6px;
  bottom:-6px;
  width: calc(100% + 12px);
  height: 10px;
  border-radius: 999px;
  background: rgba(253,219,58,.75);
  z-index:-1;
}

.logo span{
  color: inherit;
}

/* ---------- Desktop nav ---------- */
.nav{
  display:flex;
  align-items:center;
  gap:18px;
}

.nav a,
.header__nav > ul a{
  position:relative;
  text-decoration:none;

  font-family:"Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 900;
  font-size: 14px;         /* лейблы 14px */
  line-height: 1.1;
  letter-spacing: .12em;
  text-transform: uppercase;

  color: rgba(65,68,75,.86);
  padding: 8px 10px;
  border-radius: 999px;

  transition:
    transform .2s ease,
    color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}

/* аккуратный hover: желтая подложка + микроподъем */
.nav a:hover,
.header__nav > ul a:hover{
  color:#41444B;
  background: rgba(253,219,58,.30);
  box-shadow: 0 10px 20px rgba(65,68,75,.10);
  transform: translateY(-1px);
}

/* фокус */
.nav a:focus-visible,
.header__nav > ul a:focus-visible{
  outline: 2px solid rgba(253,219,58,.95);
  outline-offset: 3px;
}

/* ---------- Burger (mobile) ---------- */
.burger{
  display:none;
  position:relative;
  width:46px;
  height:46px;
  border-radius: 14px;

  background: rgba(255,255,255,.65);
  border: 1px solid rgba(82,87,93,.18);
  box-shadow:
    0 12px 24px rgba(65,68,75,.10),
    0 1px 0 rgba(255,255,255,.8);

  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.burger:hover{
  transform: translateY(-1px);
  border-color: rgba(82,87,93,.28);
  box-shadow:
    0 16px 30px rgba(65,68,75,.14),
    0 1px 0 rgba(255,255,255,.9);
}

/* 3 lines */
.burger::before,
.burger::after,
.burger .icon-left{
  content:"";
  position:absolute;
  left:50%;
  width:22px;
  height:2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: #52575D;
  transition: transform .25s ease, opacity .2s ease, top .25s ease, bottom .25s ease, background .2s ease;
}

.burger::before{ top: 16px; }
.burger::after{ bottom: 16px; }
.burger .icon-left{
  top:50%;
  transform: translate(-50%,-50%);
}

/* subtle yellow accent on hover */
.burger:hover::before,
.burger:hover::after,
.burger:hover .icon-left{
  background: #41444B;
}

/* opened state -> X */
.burger.open{
  background: rgba(253,219,58,.22);
  border-color: rgba(253,219,58,.55);
}

.burger.open::before{
  top:50%;
  transform: translateX(-50%) rotate(45deg);
  background:#41444B;
}
.burger.open::after{
  bottom:auto;
  top:50%;
  transform: translateX(-50%) rotate(-45deg);
  background:#41444B;
}
.burger.open .icon-left{
  opacity:0;
  transform: translate(-50%,-50%) scale(.6);
}

/* ---------- Your existing header layout hooks ---------- */
header,
.fadeInDown{
  animation-delay: .25s !important;
}

header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 0;
}

header > a{
  max-width: 186px;
  z-index: 80;
}

/* desktop menu list */
.header__nav > a{ display:none !important; }

.header__nav > ul{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap: 18px;
  list-style:none;
  margin:0;
  padding:0;
  justify-content:center;
  margin-inline:auto;
}

/* =========================================================
   MOBILE — Off-canvas menu (light, high-contrast)
========================================================= */
@media (max-width: 1024px){
  .nav{ display:none; }
  .burger{ display:flex; z-index: 100;}

  header{ padding: 12px 0; }
  header > a:last-child{ display:none; }


   .site-header .cta-btn {
    display: none !important;
  }
  .header__nav{
    position:fixed;
    inset:0;
    width:100vw;
    height:100dvh;

    /* светлая панель, но не “плоская” */
    background:
      radial-gradient(900px 700px at 20% 10%, rgba(253,219,58,.18), transparent 60%),
      radial-gradient(900px 700px at 80% 90%, rgba(82,87,93,.10), transparent 60%),
      rgba(246,244,230,.96);

    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);

    z-index:50;
    transform: translateX(-120%);
    transition: transform .35s cubic-bezier(.2,.75,.2,1);

    display:flex;
    flex-direction:column;

    border-right: 1px solid rgba(82,87,93,.14);
    box-shadow: 18px 0 50px rgba(65,68,75,.14);
  }

  .header__nav > ul{
    margin-top: 84px;
    margin-left: 20px;
    margin-right: 20px;

    flex-direction:column;
    align-items:flex-start;
    gap: 28px;

    height: calc(100dvh - 170px);
    overflow-y:auto;
    overflow-x:hidden;
    padding-bottom: 12px;
  }

  .header__nav > ul a{
    font-size: 14px; /* лейблы остаются 14px */
    color: rgba(65,68,75,.92);
    width: 100%;
    padding: 12px 12px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(82,87,93,.12);
    box-shadow: 0 10px 24px rgba(65,68,75,.08);
  }

  .header__nav > ul a:hover{
    background: rgba(253,219,58,.26);
    border-color: rgba(253,219,58,.55);
    transform: translateY(-1px);
  }

  /* CTA link in menu bottom */
  .header__nav > a{
    display:inline-block !important;
    margin: auto 20px 28px;
    max-width: 100%;
    text-align:center;
    text-decoration:none;

    font-family:"Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: .12em;
    text-transform: uppercase;

    color:#41444B !important;
    background: linear-gradient(135deg, rgba(253,219,58,1), rgba(253,219,58,.78));
    border-radius: 999px;
    padding: 14px 18px;

    border: 1px solid rgba(253,219,58,.55);
    box-shadow:
      0 18px 40px rgba(65,68,75,.14),
      0 1px 0 rgba(255,255,255,.8);

    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  }

  .header__nav > a:hover{
    transform: translateY(-2px);
    filter: contrast(1.05);
    box-shadow:
      0 24px 54px rgba(65,68,75,.18),
      0 1px 0 rgba(255,255,255,.9);
  }
  .btn--header{
display: none !important;
  }

  /* open state */
  .navOpen{ transform: translateX(0%); }
}

/* ---------- Accessibility + motion ---------- */
.burger:focus-visible{
  outline: 2px solid rgba(253,219,58,.95);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce){
  .burger,
  .burger *{
    transition:none !important;
  }
  .header__nav{
    transition:none !important;
  }
 
}

