/* ============================================================
   osiedlo.pl — Header / Nav / Logo CSS (self-contained)
   Extracted from index.html <style> so that pages which include
   inc/header.php (blog.html, etc.) render the same header as index.
   Wzorzec 1g: header_default.php samowystarczalny przez sztywny <link>.
   Wymaga zmiennych z otoauta.css (:root) — override marki osiedlo niżej.
   ============================================================ */

/* ---- osiedlo brand override (navy + pomarańcz) ---- */
:root{
  --navy-950:#0a1730; --navy-900:#11233f; --navy-800:#1a2f51; --navy-700:#21395d; --navy-600:#2c4d7d; --navy-500:#39608f; --navy-100:#e7edf5; --navy-50:#f3f6fb;
  --orange-700:#b85e10; --orange-600:#cf6f15; --orange-500:#e57d1a; --orange-400:#f5933a; --orange-100:#fdeada;
}

/* Pozwól elementom flexa kurczyć się poniżej szerokości zawartości */
.va-nav__inner { min-width: 0; }

/* Utility bar */
.va-util { position: relative; overflow: hidden; background: linear-gradient(100deg,#0a1730 0%, #1a2f51 55%, #24406a 100%); color: #cdd8ee; font-size: .8rem; }
.va-util::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 47%; background: linear-gradient(100deg, var(--orange-700) 0%, var(--orange-500) 60%, var(--orange-400) 100%); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40px 50%); }
.va-util a { color: #d4ddf0; }
.va-util a:hover { color: #fff; }
.va-util__r a { color: #eafffb; }
.va-util__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 40px; }
.va-util__l { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .02em; }
.va-util__r { display: flex; align-items: center; gap: 16px; }
.va-util__r .sep { width: 1px; height: 16px; background: rgba(255,255,255,.16); }

/* Header */
.va-head { background: #fff; border-bottom: 1px solid var(--line); }
.va-head__inner { display: flex; align-items: center; gap: 18px; height: 70px; }
.va-search-wrap { position: relative; flex: 1; max-width: 500px; }
.va-search {
  width: 100%; display: flex; align-items: stretch; background: #fff; border: 1.5px solid var(--line);
  border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.va-search:focus-within { border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(37,99,196,.12); }
.va-search select { -webkit-appearance: none; appearance: none; border: 0; background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235e6a7d' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right .7rem center; font-weight: 700; font-size: .85rem; color: var(--ink-2); padding: 0 2rem 0 .85rem; cursor: pointer; max-width: 155px; }
.va-search input { border: 0; flex: 1; padding: .7rem .9rem; font-size: .92rem; outline: none; min-width: 0; }
.va-search__submit { border: 0; background: var(--orange-500); color: #fff; padding: 0 1.05rem; font-size: 1.05rem; cursor: pointer; }
.va-search__submit:hover { background: var(--orange-600); }

/* ===== Autouzupełnianie ===== */
.va-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 95; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; display: none; }
.va-suggest.show { display: block; }
.va-suggest__hd { font-size: .66rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); padding: 7px 11px 4px; }
.va-sug { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; cursor: pointer; }
.va-sug:hover, .va-sug.active { background: var(--navy-50); }
.va-sug__ic { color: var(--muted-2); font-size: .92rem; width: 17px; text-align: center; flex: none; }
.va-sug.active .va-sug__ic, .va-sug:hover .va-sug__ic { color: var(--orange-500); }
.va-sug__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .92rem; font-weight: 500; color: var(--ink-2); line-height: 1.25; }
.va-sug__t b { font-weight: 800; color: var(--ink); }
.va-sug__tag { font-size: .71rem; color: var(--muted-2); font-weight: 700; flex: none; }
.va-sug__go { color: var(--muted-2); font-size: .78rem; flex: none; opacity: 0; transform: rotate(45deg); }
.va-sug.active .va-sug__go, .va-sug:hover .va-sug__go { opacity: 1; }

/* ===== Konto — rozwijane menu (hover) ===== */
.va-account { position: relative; padding-bottom: 12px; margin-bottom: -12px; }
.va-acc-menu { position: absolute; top: 100%; right: 0; width: 308px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 16px; z-index: 130; opacity: 0; visibility: hidden; transform: translateY(7px); transition: opacity .16s, transform .16s; }
.va-account:hover .va-acc-menu, .va-account:focus-within .va-acc-menu { opacity: 1; visibility: visible; transform: none; }
.va-acc__t { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; margin: 0 0 2px; }
.va-acc__s { font-size: .8rem; color: var(--muted); margin: 0 0 13px; }
.va-acc__btns { display: flex; flex-direction: column; gap: 8px; }
.va-soc { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; border-radius: 10px; padding: .6rem .9rem;
  font-family: var(--font-ui); font-weight: 700; font-size: .87rem; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); transition: .15s; }
.va-soc:hover { background: var(--bg-2); border-color: var(--muted-2); }
.va-soc svg { width: 18px; height: 18px; flex: none; }
.va-acc__sep { display: flex; align-items: center; gap: 10px; margin: 13px 0; color: var(--muted-2); font-size: .73rem; font-weight: 700; }
.va-acc__sep::before, .va-acc__sep::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.va-acc__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; }
.va-acc__links a { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: .87rem; }
.va-acc__links a:hover { background: var(--navy-50); color: var(--navy-700); }
.va-acc__links a .bi { color: var(--muted-2); font-size: 1rem; width: 18px; }
.va-acc__links a:hover .bi { color: var(--orange-500); }
.va-acc__foot { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; }
.va-acc__foot a { color: var(--navy-700); font-weight: 700; font-size: .8rem; }
.va-acc__foot a:hover { color: var(--orange-600); }
@media (max-width: 991.98px){ .va-acc-menu { display: none !important; } .va-account { padding-bottom: 0; margin-bottom: 0; } }
.va-head__icons { display: flex; align-items: center; gap: 4px; }
.va-ico { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 10px; border-radius: 10px; color: var(--ink-2); font-size: .68rem; font-weight: 600; position: relative; }
.va-ico:hover { background: var(--navy-50); color: var(--navy-700); }
.va-ico i { font-size: 1.15rem; }
.va-ico .dot { position: absolute; top: 4px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-500); }

/* Nav */
.va-nav { background: var(--navy-700); }
.va-nav__inner { display: flex; align-items: center; gap: 4px; height: 48px; }
.va-nav a { color: #dbe4f7; font-weight: 600; font-size: .9rem; padding: .5rem .85rem; border-radius: 9px; white-space: nowrap; }
.va-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.va-nav__cat { display: flex; align-items: center; gap: 8px; background: transparent; color: #fff !important; font-weight: 700 !important; }
.va-nav__spacer { flex: 1; }
.va-nav__add { background: var(--orange-500); color: #fff !important; font-weight: 700 !important; }
.va-nav__add:hover { background: var(--orange-600) !important; }

/* ============ Logo (obraz) — NORMALNY rozmiar, nie gigantyczny ============ */
.va-logo { height: 46px; width: auto; display: block; }
.va-foot-logo { height: 34px; width: auto; display: block; }

/* ============ Ikony w wyszukiwarce (mic/aparat) ============ */
.va-search__ico { border: 0; background: transparent; padding: 0; width: 38px; height: 38px; align-self: center; margin: 0 1px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.va-search__ico svg { display: block; }
.va-search__ico:hover { background: rgba(60,64,67,.09); }
.va-search__ico.listening { animation: micPulse 1s infinite; box-shadow: inset 0 0 0 2px rgba(234,67,53,.45); }
@keyframes micPulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.va-search__div { width: 1px; align-self: center; height: 22px; background: var(--line); }

/* ============ Hamburger + pełnoekranowe menu (drawer) ============ */
.va-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 46px; height: 46px;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; margin-left: 8px; padding: 0 12px; flex: none; transition: .15s; }
.va-burger span { display: block; height: 2.5px; border-radius: 2px; background: var(--navy-800); transition: .2s; width: 100%; }
.va-burger span:nth-child(2) { width: 68%; }
.va-burger:hover { background: var(--navy-700); border-color: var(--navy-700); }
.va-burger:hover span { background: #fff; }

.va-menu { position: fixed; inset: 0; z-index: 1200; background: #fff;
  color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .3s ease; display: flex; flex-direction: column; }
.va-menu.open { opacity: 1; visibility: visible; }
.va-menu__bar { display: flex; align-items: center; justify-content: space-between; height: 70px; flex: none; border-bottom: 1px solid var(--line); }
.va-menu__logo { background: #fff; padding: 5px 11px; border-radius: 9px; display: inline-flex; }
.va-menu__logo img, .va-menu__logo .va-logo { height: 38px; display: block; }
.va-menu__close { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 1.15rem; cursor: pointer; transition: .15s; }
.va-menu__close:hover { background: var(--bg-2); transform: rotate(90deg); }
.va-menu__scroll { flex: 1; overflow-y: auto; padding: 34px 0 56px; }

/* ===== Menu mobilne (logowanie / nav) ===== */
.va-login { max-width: 420px; margin: 0 auto; padding: 18px 16px 0; text-align: center; }
.va-login__h { font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; margin: 6px 0 6px; }
.va-login__s { color: var(--muted); font-size: .92rem; margin: 0 0 22px; }
.va-social { display: flex; flex-direction: column; gap: 11px; }
.va-sbtn { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; height: 52px; border-radius: 13px;
  font-family: var(--font-ui); font-weight: 700; font-size: 1rem; cursor: pointer; border: 1px solid transparent; transition: transform .14s, box-shadow .16s, filter .15s; }
.va-sbtn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.va-sbtn .bi { font-size: 1.25rem; }
.va-sbtn__ic { display: inline-flex; }
.va-sbtn__ic svg { width: 21px; height: 21px; display: block; }
.va-sbtn--google { background: #fff; color: #3c4043; border-color: #dadce0; }
.va-sbtn--google:hover { background: #f8f9fa; }
.va-sbtn--fb { background: #1877F2; color: #fff; }
.va-sbtn--li { background: #0A66C2; color: #fff; }
.va-sbtn--apple { background: #000; color: #fff; }
.va-login__or { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: .82rem; font-weight: 600; margin: 18px 0; }
.va-login__or::before, .va-login__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.va-login__reg { font-size: .9rem; color: var(--muted); margin: 14px 0 0; }
.va-login__reg a { color: var(--navy-700); font-weight: 700; }
.va-mnav { max-width: 420px; margin: 28px auto 0; padding: 20px 16px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.va-mnav a { display: flex; align-items: center; gap: 13px; padding: 13px 10px; border-radius: 11px; color: var(--ink-2); font-weight: 600; font-size: 1rem; }
.va-mnav a .bi { color: var(--navy-600); font-size: 1.18rem; width: 22px; text-align: center; }
.va-mnav a:hover { background: var(--bg-2); color: var(--navy-700); }
.va-menu__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; margin: 0 auto; align-items: start; }
.va-menu__side { width: 100%; }
.va-menu__h { font-family: var(--font-display); font-weight: 800; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.va-menu__h:not(:first-child) { margin-top: 22px; }
.va-menu__h .bi { color: var(--orange-500); font-size: .95rem; }
.va-mcats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.va-mcat { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; text-align: left; transition: .14s; }
.va-mcat:hover { border-color: var(--navy-100); background: var(--navy-50); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.va-mcat .ic { width: 24px; height: 24px; color: var(--navy-700); flex: none; }
.va-mcat:hover .ic { color: var(--orange-500); }
.va-mcat .ic svg { width: 100%; height: 100%; }
.va-mcat .l { display: block; font-weight: 700; font-size: .85rem; color: var(--ink); line-height: 1.15; }
.va-mcat .c { font-size: .67rem; color: var(--muted-2); }
.va-menu__side .va-mnav { max-width: none; margin: 0; padding: 4px 0 0; border-top: 0; }
.va-menu__cta { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }

/* ============ Responsywność nagłówka ============ */
@media (max-width: 991.98px){
  .va-head__inner { gap: 12px; }
  .va-search-wrap { max-width: 460px; }
  .va-head__icons .va-ico, .va-account { display: none; }
}
@media (max-width: 767.98px){
  .va-util { display: none; }
  .va-nav { display: none; }
  .va-search-wrap { display: none; }
  .va-head__inner { height: 60px; gap: 10px; }
  .va-head__icons { margin-left: auto; }
  .va-logo { height: 40px; }
  .va-menu__cols { grid-template-columns: 1fr; gap: 28px; max-width: 440px; }
  .va-login { max-width: 100%; }
}
@media (max-width: 479.98px){
  .va-logo { height: 36px; }
  .va-mcats { grid-template-columns: 1fr; }
}
