/* Bąkowski Nieruchomości — menu v2, spójne z home v2 (ink / paper / sage).
   Nakładka tylko na nagłówek. */
#kontakt,
#mieszkania,
#rynek,
#wlasciciele,
#start,
#ogrod {
  scroll-margin-top: calc(var(--header-height, 72px) + 16px);
}

.site-header {
  height: 72px;
  background: rgba(246, 244, 238, 0.92);
  border-bottom: 1px solid rgba(25, 40, 48, 0.12);
  box-shadow: none;
  color: #303232;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

html.header-scrolled {
  --header-height: 68px;
}

html.header-scrolled .site-header,
.site-header.header-scrolled {
  height: 68px;
  box-shadow: none;
  background: rgba(246, 244, 238, 0.96);
}

.site-header .header-inner {
  gap: 0.75rem;
  align-items: center;
}

.site-header .logo-text {
  font-family: Fraunces, Georgia, serif;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: #303232;
  line-height: 1;
}
.site-header .logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}
.site-header .logo-img {
  display: block !important;
  height: 44px !important;
  width: auto !important;
  max-height: 44px !important;
  max-width: 190px !important;
  object-fit: contain;
}
@media (max-width: 860px) {
  .site-header .logo-img { height: 32px !important; max-height: 32px !important; max-width: 148px !important; }
}

.site-header .main-nav {
  gap: 0.1rem;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.site-header .nav-item {
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: #303232;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.site-header .nav-item:after {
  display: none !important;
}

.site-header .nav-item:hover,
.site-header .nav-item:focus-visible,
.site-header .nav-active,
.site-header .nav-item.nav-active {
  color: #303232 !important;
  background: #F3EEDF;
}

.site-header .nav-dropdown-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font: inherit;
}

.site-header .nav-dropdown-menu {
  background: #F7F6F2;
  border: 1px solid rgba(25, 40, 48, 0.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px -24px rgba(25, 40, 48, 0.45);
  min-width: 280px;
  padding: 0.5rem;
  margin-top: 0.4rem;
}

.site-header .nav-dropdown-item {
  color: #303232;
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}

.site-header .nav-dropdown-item:hover,
.site-header .nav-dropdown-item:focus-visible,
.site-header .nav-dropdown-item.nav-active {
  color: #303232;
  background: #F3EEDF;
}

.site-header .header-favorites {
  color: #303232;
  border-radius: 999px;
}

.site-header .header-favorites:hover,
.site-header .header-favorites:focus-visible {
  color: #303232;
  background: #F3EEDF;
}

.site-header .header-favorites-badge {
  background: #8C6B2C;
  color: #fff;
}

.site-header .language-switch {
  border-color: rgba(25, 40, 48, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.site-header .language-switch button,
.mobile-language-switch button {
  color: #303232;
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
}

.site-header .language-switch button.active,
.mobile-language-switch button.active {
  background: #303232;
  color: #fff;
}

.site-header .header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid #303232;
  background: transparent;
  color: #303232;
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.site-header .header-call:hover,
.site-header .header-call:focus-visible {
  background: #303232;
  color: #fff;
}

.site-header .header-cta.btn-primary,
.site-header a.header-cta {
  background: #303232;
  color: #fff;
  border-radius: 999px;
  box-shadow: none;
  min-height: 44px;
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 0 20px;
}

.site-header .header-cta.btn-primary:hover,
.site-header a.header-cta:hover,
.site-header .header-cta.btn-primary:focus-visible {
  background: #303232;
  color: #fff;
  transform: none;
  box-shadow: none;
}

.site-header .header-call-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #303232;
  text-decoration: none;
}

.site-header .header-call-icon:hover,
.site-header .header-call-icon:focus-visible {
  background: #F3EEDF;
}

.site-header .mobile-toggle {
  color: #303232;
  width: 44px;
  height: 44px;
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.mobile-menu a:focus-visible,
.mobile-menu button:focus-visible {
  outline: 3px solid #8C6B2C;
  outline-offset: 2px;
}

.mobile-overlay {
  background: rgba(25, 40, 48, 0.4);
}

.mobile-menu {
  width: min(360px, 100vw);
  max-width: 100vw;
  background: #F7F6F2;
  color: #303232;
  box-shadow: -16px 0 40px -24px rgba(25, 40, 48, 0.5);
  padding: calc(var(--header-height) + 0.5rem) 1.15rem 1.15rem;
}

.mobile-nav-item {
  color: #303232;
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  border-radius: 12px;
  padding: 0.62rem 0.85rem;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus-visible {
  background: #F3EEDF;
  color: #303232;
}

.mobile-nav-active {
  background: #F3EEDF !important;
  color: #303232 !important;
}

.mobile-nav-label {
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  color: #8C6B2C;
  letter-spacing: 0.14em;
}

.mobile-language-switch {
  border-color: rgba(25, 40, 48, 0.2);
  background: #fff;
}

.mobile-nav-cta {
  background: #303232;
  color: #fff !important;
  border-radius: 999px;
  min-height: 44px;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}

.mobile-nav-cta:hover,
.mobile-nav-cta:focus-visible {
  background: #303232;
}

.mobile-nav-cta .header-phone-num {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}

.mobile-nav-email {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1rem;
  color: #303232;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  border-radius: 12px;
}

.mobile-nav-email:hover,
.mobile-nav-email:focus-visible {
  background: #F3EEDF;
}

.mobile-nav-actions {
  margin-top: 1rem;
  padding-top: 0.75rem;
}

.mobile-nav-actions .btn-primary {
  background: #8C6B2C;
  color: #fff;
  border-radius: 999px;
  box-shadow: none;
  min-height: 44px;
  font-weight: 500;
}

.mobile-nav-actions .btn-primary:hover,
.mobile-nav-actions .btn-primary:focus-visible {
  background: #8C6B2C;
  transform: none;
  box-shadow: none;
}

/* Hamburger od 1179px, bo doszedł przycisk Zadzwoń. */
@media (max-width: 1179px) {
  .site-header .main-nav,
  .site-header .header-favorites,
  .site-header .header-cta,
  .site-header .header-call,
  .site-header .language-switch {
    display: none !important;
  }

  .site-header .header-call-icon,
  .site-header .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 1180px) {
  .site-header .header-call-icon,
  .site-header .mobile-toggle {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .mobile-menu,
  .mobile-overlay,
  .site-header .nav-dropdown-menu,
  .site-header .header-call,
  .site-header .header-cta {
    transition: none;
  }
}

/* 22.11.2026 audyt: zamknięte menu mobilne bez cienia przy prawej krawędzi i poza tabulacją */
.mobile-menu:not(.mobile-menu-open){box-shadow:none!important;visibility:hidden;transition:transform .35s cubic-bezier(.16,1,.3,1),visibility 0s linear .35s}
.mobile-menu.mobile-menu-open{visibility:visible;transition:transform .35s cubic-bezier(.16,1,.3,1),visibility 0s}

/* Bąkowski: sekcja agentów w barwach marki */
.agents-section{background:linear-gradient(135deg,#f7f6f2,#fff 55%,#f3efe6)!important;border-color:rgba(204,163,84,.3)!important}
.agent-card__photo{object-position:center 18%}
