/* PASTIGACOR88 — Modern Header Polish
   Header-only visual overrides. Existing structure, links, JS and other sections remain untouched. */
.hm-header{
  position:relative;
  z-index:100;
  background:rgba(255,255,255,.98);
  border-bottom:1px solid #e9e9e9;
  box-shadow:0 2px 18px rgba(0,0,0,.045);
  backdrop-filter:saturate(150%) blur(10px);
}
.hm-header .header-top{
  min-height:40px;
  max-width:1440px;
  margin:0 auto;
  padding:7px 28px;
  gap:22px;
  color:#4a4a4a;
  font-size:11px;
  letter-spacing:.01em;
}
.hm-header .hm-logo{
  display:inline-flex;
  align-items:center;
  color:#111;
  font-size:31px;
  line-height:1;
  font-weight:900;
  letter-spacing:-3.5px;
  transition:opacity .2s ease, transform .2s ease;
}
.hm-header .hm-logo:hover{opacity:.72;transform:translateY(-1px)}
.hm-header .audience-nav{
  display:flex;
  align-items:center;
  gap:22px;
  margin-left:6px;
}
.hm-header .audience-nav a{
  position:relative;
  padding:7px 0;
  color:#333;
  font-weight:600;
  transition:color .2s ease;
}
.hm-header .audience-nav a:after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:2px;
  height:1.5px;
  background:#111;
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .2s ease;
}
.hm-header .audience-nav a:hover:after,
.hm-header .audience-nav a.active:after{transform:scaleX(1)}
.hm-header .audience-nav a.active{color:#111;text-decoration:none}

.hm-header .header-right{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:17px;
  white-space:nowrap;
}
.hm-header .header-right a{
  color:#333;
  transition:color .2s ease;
}
.hm-header .header-right a:hover{color:#000;text-decoration:underline;text-underline-offset:3px}

.hm-header .brand-row{
  max-width:1440px;
  margin:0 auto;
  padding:18px 28px 13px;
  display:grid;
  grid-template-columns:minmax(210px,1fr) minmax(320px,620px) minmax(210px,1fr);
  align-items:center;
  gap:30px;
}
.hm-header .site-brand{
  justify-self:start;
  color:#111;
  font-size:24px;
  line-height:1;
  font-weight:900;
  letter-spacing:.8px;
}
.hm-header .site-search{
  width:100%;
  max-width:none;
  height:43px;
  margin:0 auto;
  border:1px solid #d8d8d8;
  border-radius:999px;
  background:#fafafa;
  display:flex;
  align-items:center;
  overflow:hidden;
  transition:border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.hm-header .site-search:focus-within{
  background:#fff;
  border-color:#111;
  box-shadow:0 0 0 3px rgba(0,0,0,.055);
}
.hm-header .site-search input{
  min-width:0;
  height:100%;
  padding:0 16px 0 19px;
  border:0;
  outline:0;
  background:transparent;
  color:#111;
  font-size:13px;
}
.hm-header .site-search input::placeholder{color:#888}
.hm-header .site-search button{
  width:48px;
  height:100%;
  flex:0 0 48px;
  border:0;
  background:transparent;
  color:#111;
  font-size:21px;
  cursor:pointer;
  transition:background .2s ease;
}
.hm-header .site-search button:hover{background:#ededed}

.hm-header .brand-actions{
  justify-self:end;
  display:flex;
  align-items:center;
  gap:9px;
}
.hm-header .brand-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:74px;
  height:36px;
  padding:0 14px;
  border:1px solid #111;
  border-radius:999px;
  color:#111;
  background:#fff;
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
  transition:all .2s ease;
}
.hm-header .brand-actions a:first-child{
  color:#fff;
  background:#111;
}
.hm-header .brand-actions a:hover{
  transform:translateY(-1px);
  box-shadow:0 5px 14px rgba(0,0,0,.12);
}
.hm-header .brand-actions a:first-child:hover{background:#2a2a2a}

.hm-header .main-nav{
  max-width:1440px;
  margin:0 auto;
  min-height:50px;
  padding:4px 28px 14px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.055em;
}
.hm-header .nav-item{position:relative}
.hm-header .nav-item>button{
  min-height:36px;
  padding:0 15px;
  border:1px solid transparent;
  border-radius:999px;
  background:transparent;
  color:#222;
  font:inherit;
  cursor:pointer;
  transition:all .2s ease;
}
.hm-header .nav-item>button:hover,
.hm-header .nav-item.open>button{
  background:#f4f4f4;
  border-color:#e5e5e5;
}
.hm-header .nav-item.open>button{box-shadow:0 3px 10px rgba(0,0,0,.04)}

.hm-header .dropdown{
  top:calc(100% + 9px);
  left:50%;
  width:340px;
  padding:8px;
  border:1px solid #e4e4e4;
  border-radius:14px;
  background:#fff;
  box-shadow:0 18px 45px rgba(0,0,0,.13);
  transform:translateX(-50%) translateY(-5px);
  opacity:0;
  visibility:hidden;
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.hm-header .nav-item.open .dropdown{
  display:block;
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}
.hm-header .dropdown:before{
  content:"";
  position:absolute;
  top:-6px;
  left:50%;
  width:11px;
  height:11px;
  border-left:1px solid #e4e4e4;
  border-top:1px solid #e4e4e4;
  background:#fff;
  transform:translateX(-50%) rotate(45deg);
}
.hm-header .dropdown a{
  position:relative;
  display:block;
  padding:13px 13px;
  border:0;
  border-radius:9px;
  transition:background .16s ease, transform .16s ease;
}
.hm-header .dropdown a:hover{
  background:#f5f5f5;
  transform:translateX(2px);
}
.hm-header .dropdown b{
  display:block;
  margin-bottom:4px;
  color:#151515;
  font-size:12px;
  line-height:1.35;
}
.hm-header .dropdown small{
  display:block;
  color:#777;
  font-size:10.5px;
  line-height:1.45;
  font-weight:400;
  letter-spacing:0;
}

@media(max-width:1100px){
  .hm-header .brand-row{
    grid-template-columns:1fr minmax(280px,1.5fr) auto;
    gap:18px;
  }
  .hm-header .header-right span{display:none}
  .hm-header .main-nav{gap:4px}
  .hm-header .nav-item>button{padding:0 11px;font-size:10px}
}
@media(max-width:800px){
  .hm-header .header-top{padding:7px 16px}
  .hm-header .header-right a:nth-of-type(2){display:none}
  .hm-header .brand-row{
    grid-template-columns:1fr auto;
    padding:15px 16px 10px;
  }
  .hm-header .site-brand{font-size:21px}
  .hm-header .site-search{
    grid-column:1 / -1;
    grid-row:2;
    height:41px;
  }
  .hm-header .brand-actions{gap:6px}
  .hm-header .brand-actions a{min-width:65px;height:34px;padding:0 10px}
  .hm-header .main-nav{
    justify-content:flex-start;
    overflow-x:auto;
    scrollbar-width:none;
    padding:3px 16px 11px;
  }
  .hm-header .main-nav::-webkit-scrollbar{display:none}
  .hm-header .dropdown{
    position:fixed;
    top:auto;
    left:12px;
    right:12px;
    bottom:auto;
    width:auto;
    max-height:70vh;
    overflow:auto;
    transform:translateY(-5px);
  }
  .hm-header .nav-item.open .dropdown{transform:translateY(0)}
  .hm-header .dropdown:before{display:none}
}
@media(max-width:520px){
  .hm-header .hm-logo{font-size:27px}
  .hm-header .audience-nav{gap:12px;margin-left:0}
  .hm-header .audience-nav a{font-size:10px}
  .hm-header .header-right{gap:8px}
  .hm-header .header-right a{font-size:10px}
  .hm-header .brand-actions a{min-width:61px;font-size:10px}
}
