/* === HEADER CSS (auto-ekstrakt z index.html) START === */
/* Reguły nagłówka (inc/header.php) wyodrębnione z inline <style> w index.html.
   Zmienne motywu (:root) i .oa-container/.btn-oa są w assets/otoauta.css.
   Dzięki temu inc/header.php jest samowystarczalny na KAŻDEJ podstronie. */

/* ===== Header ===== */
.va-head { background: #fff; border-bottom: 1px solid var(--line); }
.va-head__inner { display: flex; align-items: center; gap: 18px; height: 70px; }

/* ===== Logo ===== */
.va-logo { height: 46px; width: auto; display: block; }

/* ===== Wyszukiwarka ===== */
.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__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); }
.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 (PRO) ===== */
.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; } }

/* ===== Ikony nagłówka ===== */
.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); }
.va-ico--1g i { color: #ff5a00; }
.va-ico--1g:hover { background: #fff3ec; color: #c8470f; }

/* ===== Hamburger ===== */
.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; }

/* ===== 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-search-wrap { display: none; }
  .va-head__inner { height: 60px; gap: 10px; }
  .va-head__icons { margin-left: auto; }
  .va-logo { height: 40px; }
}
@media (max-width: 479.98px){
  .va-logo { height: 36px; }
}
/* === HEADER CSS END === */
