/* Poprawki wersji mobilnej (Nicepage xs/sm, < 768 px). Desktop bez zmian.
   Nakładane przez build/apply_overrides.py jako ostatni arkusz w <body>. */
@media (max-width: 767px) {

  /* --- HERO: plakietka "Lokalny Instalator…" wychodziła poza prawą krawędź ekranu --- */
  #block-1 .u-group-1 {
    width: auto !important;
    min-height: 0 !important;
    margin: 20px 25px 40px !important;
  }
  #block-1 .u-group-1 > .u-container-layout { padding: 8px 14px !important; }
  #block-1 .u-group-1 .u-text-3 {
    width: auto !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  /* --- USŁUGI (szare kafelki z ikonami): ogromne odstępy między pozycjami --- */
  #block-9 .u-layout-cell,
  #block-9 .u-layout-cell > .u-container-layout { min-height: 0 !important; height: auto !important; }
  #block-9 .u-layout-cell > .u-container-layout { padding: 8px 8px 20px !important; }
  #block-9 .u-layout-cell .u-icon {
    width: 72px !important;
    height: 72px !important;
    padding: 16px !important;
    margin: 20px auto 0 !important;
  }
  #block-9 .u-layout-cell h4 {
    width: auto !important;
    margin: 16px auto 0 !important;
    font-size: 21px !important;
    text-align: center !important;
  }
  #block-9 .u-layout-cell p { margin-top: 6px !important; }

  /* --- DLACZEGO WARTO: dwa ostatnie opisy były ściśnięte do wąskiej kolumny --- */
  #block-5 .u-layout-cell-1 .u-group-elements {
    height: auto !important;
    min-height: 0 !important;
    margin-top: 20px !important;
  }
  #block-5 .u-layout-cell-1 .u-group-elements p {
    width: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* --- JAK PRACUJEMY: ikony wyśrodkowane, a nagłówek i opisy do lewej → wszystko na środek --- */
  #block-5 .u-text-7 { text-align: center !important; }
  #block-5 .u-layout-cell:not(.u-layout-cell-1):not(.u-layout-cell-2) p.u-text { text-align: center !important; }

  /* --- STOPKA: hamburger menu nachodził na logo (menu jest już w nagłówku) --- */
  #footer .u-menu-1 { display: none !important; }

  /* --- BANER COOKIES: zajmował ponad pół ekranu --- */
  .u-cookies-consent .u-sheet-1 { min-height: 0 !important; }
  .u-cookies-consent .u-layout-wrap-1 { margin: 14px 0 !important; }
  .u-cookies-consent .u-layout-cell { min-height: 0 !important; }
  .u-cookies-consent .u-container-layout { padding: 0 !important; }
  .u-cookies-consent h4 { font-size: 18px !important; margin: 0 !important; }
  .u-cookies-consent .u-text-2 { font-size: 13px !important; line-height: 1.4 !important; margin: 4px 0 0 !important; }
  .u-cookies-consent .u-cookie-preferences { margin: 8px 0 0 !important; }
  .u-cookies-consent .u-form-checkbox-group-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
  .u-cookies-consent .u-field-label { font-size: 13px !important; }
  .u-cookies-consent .u-layout-cell-2 > .u-container-layout { display: flex; gap: 10px; }
  .u-cookies-consent .u-layout-cell-2 .u-btn {
    flex: 1 1 0;
    width: auto !important;
    margin: 10px 0 0 !important;
    padding: 10px 0 !important;
    text-align: center;
  }
}
