/* Pi-Víz Centrum — kompakt mobilfejléc, 2026-11-30, v2.
   Kizárólag <=700 px; header.php fájlt nem módosítja. */
@media (max-width: 700px) {
  :is(body > header, body > .site-header, body > #header, header.site-header, header#header) {
    text-align: center !important;
  }
  :is(body > header, body > .site-header, header.site-header, header#header)
    :is(.container, .wrap, .header-inner, .header-content, .header-container) {
    display: flex !important;
    flex-flow: column nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 7px 10px 9px !important;
    margin-inline: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  :is(body > header, body > .site-header, header.site-header, header#header)
    :is(.logo, .brand, .site-logo, .custom-logo-link, .logo-container, .header-logo) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    text-align: center !important;
    max-width: 100% !important;
  }
  :is(body > header, body > .site-header, header.site-header, header#header)
    :is(.logo, .brand, .site-logo, .custom-logo-link, .logo-container, .header-logo) img {
    max-width: min(205px, 72vw) !important;
    width: auto !important;
    height: auto !important;
    max-height: 47px !important;
    object-fit: contain !important;
  }
  :is(body > header, body > .site-header, header.site-header, header#header)
    :is(nav, .main-menu, .navbar, .nav-menu) {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 2px 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
  :is(body > header, body > .site-header, header.site-header, header#header)
    :is(nav ul, .nav-menu, .menu) {
    display: flex !important;
    flex-flow: row wrap !important;
    justify-content: center !important;
    align-items: center !important;
    column-gap: 4px !important;
    row-gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    list-style: none !important;
  }
  :is(body > header, body > .site-header, header.site-header, header#header)
    :is(nav li, .nav-menu li, .menu li) {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
  }
  :is(body > header, body > .site-header, header.site-header, header#header)
    :is(nav a, .nav-menu > a, .menu > a) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 5px !important;
    margin: 0 !important;
    min-height: 24px !important;
    font-size: 12.5px !important;
    line-height: 1.15 !important;
    font-weight: 650 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }
  /* A telefon egy sorban marad. */
  :is(body > header, body > .site-header, header.site-header, header#header) a[href^="tel:"] {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 32px) !important;
    padding: 9px 16px !important;
    margin: 3px auto 0 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    gap: 6px !important;
  }
}
@media (max-width: 370px) {
  :is(body > header, body > .site-header, header.site-header, header#header)
    :is(nav a, .nav-menu > a, .menu > a) {
    font-size: 11.5px !important;
    padding-inline: 3px !important;
  }
}
