/* =========================================================
   HEADER.CSS — MM-MEBLE (spójny burger + drawer)
   ========================================================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 300;
  transform: translateY(0);
  transition: transform .22s var(--ease), background-color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}

/* stany ze скрипта */
.site-header--hidden{ transform: translateY(-110%); }

.site-header--transparent{
  background: color-mix(in srgb, var(--surface) 35%, transparent 65%);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(10px);
}

.site-header--solid{
  background: color-mix(in srgb, var(--surface) 86%, transparent 14%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}

.header-topbar{
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent 30%);
  background: color-mix(in srgb, var(--surface) 60%, transparent 40%);
}

.header-topbar-inner{
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-topbar-text{
  font-size: 13px;
  color: var(--muted);
}

.header-topbar-right{
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-topbar-link{
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.header-topbar-link:hover{ text-decoration: underline; }

.header-topbar-social{
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-social-link{
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid transparent;
}
.top-social-link img{ width: 18px; height: 18px; }
.top-social-link:hover{ border-color: var(--line); text-decoration: none; }
.top-social-link.is-disabled{ opacity: .45; pointer-events: none; }

.header-main{ background: transparent; }

.site-header-inner{
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent 30%);
  background: var(--surface);
}
.logo-mark img{ width: 100%; height: 100%; object-fit: contain; }

.site-brand-name{
  font-weight: 860;
  letter-spacing: -.01em;
  font-size: 16px;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link{
  font-size: 14px;
  font-weight: 760;
  color: color-mix(in srgb, var(--text) 92%, #fff 8%);
  text-decoration: none;
  padding: 10px 6px;
  border-radius: 12px;
}
.nav-link:hover{
  text-decoration: none;
  background: color-mix(in srgb, var(--surface) 65%, transparent 35%);
}
.nav-link.is-active{
  background: color-mix(in srgb, var(--accent) 12%, transparent 88%);
}

.header-actions{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-social{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-link{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 86%, transparent 14%);
  text-decoration: none;
}
.social-link:hover{ text-decoration: none; }

.social-ico{
  font-size: 12px;
  font-weight: 820;
  color: var(--muted);
}

/* Burger */
.nav-toggle{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 86%, transparent 14%);
  display: grid;
  place-items: center;
}

.nav-toggle__bars{
  width: 20px;
  height: 14px;
  position: relative;
  display: block;
}

.nav-toggle__bar{
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--text) 86%, #fff 14%);
  transition: transform .2s var(--ease), opacity .2s var(--ease), top .2s var(--ease), bottom .2s var(--ease);
}

.nav-toggle__bar--top{ top: 0; }
.nav-toggle__bar--middle{ top: 6px; }
.nav-toggle__bar--bottom{ bottom: 0; }

body.is-nav-open .nav-toggle__bar--top{
  top: 6px;
  transform: rotate(45deg);
}
body.is-nav-open .nav-toggle__bar--middle{
  opacity: 0;
}
body.is-nav-open .nav-toggle__bar--bottom{
  bottom: 6px;
  transform: rotate(-45deg);
}

/* Mobile: ukryj desktop nav, pokaż burger */
@media (max-width: 960px){
  .main-nav{ display: none; }
  .header-social{ display: none; }
}

/* Desktop: ukryj drawer */
@media (min-width: 961px){
  .nav-toggle{ display: none; }
  .header-overlay,
  .header-drawer{ display: none !important; }
}

/* Overlay + Drawer */
.header-overlay{
  position: fixed;
  inset: 0;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(3px);
  transition: opacity .18s var(--ease);
}

body.is-nav-open .header-overlay{
  opacity: 1;
  pointer-events: auto;
}

.header-drawer{
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92vw, 420px);
  z-index: 910;
  background: color-mix(in srgb, var(--surface) 92%, transparent 8%);
  border-left: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,.22);
  transform: translateX(14px);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

body.is-nav-open .header-drawer,
.header-drawer.is-open{
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.header-drawer-inner{
  padding: 16px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  overflow: auto;
}

.drawer-close{
  align-self: flex-end;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 86%, transparent 14%);
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.drawer-nav{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}

.drawer-link{
  display: block;
  padding: 12px 12px;
  border-radius: 16px;
  font-weight: 780;
  text-decoration: none;
  background: transparent;
}
.drawer-link:hover{
  text-decoration: none;
  background: color-mix(in srgb, var(--surface) 70%, transparent 30%);
}
.drawer-link.is-active{
  background: color-mix(in srgb, var(--accent) 12%, transparent 88%);
}

.drawer-cta{
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line) 65%);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface) 88%);
  font-weight: 820;
  text-decoration: none;
}
.drawer-cta:hover{ text-decoration: none; }

.drawer-contact{
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}
.drawer-meta{
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
.drawer-meta:hover{ text-decoration: underline; }

.drawer-social{
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
}.header-overlay{
  position: fixed;
  inset: 0;
  z-index: 900;
}

.header-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh; /* zamiast 100% */
  z-index: 910;
}