/* Existing WordPress image renditions for the mobile homepage.
   Original inline backgrounds and desktop styles remain the source of truth. */
@media screen and (max-width: 767px) {
  body.page-id-571 .elementor-571 .elementor-element.elementor-element-6tvy454 {
    background-image: url("https://max-space.ru/wp-content/uploads/2022/04/fon-1024x683.jpg") !important;
  }

  /* These also cover the source accordion before the mobile JS is ready.
     Match each original URL so a future image change keeps its own source. */
  body.page-id-571 #eael-img-accordion-7c5296f > .eael-image-accordion-hover:nth-child(1)[style*="/2022/06/listovki-4.jpg"] {
    background-image: url("https://max-space.ru/wp-content/uploads/2022/06/listovki-4-300x200.jpg") !important;
  }
  body.page-id-571 #eael-img-accordion-7c5296f > .eael-image-accordion-hover:nth-child(2)[style*="/2022/10/na-glavnuyu-mnogostranichnaya.jpg"] {
    background-image: url("https://max-space.ru/wp-content/uploads/2022/10/na-glavnuyu-mnogostranichnaya-300x169.jpg") !important;
  }
  body.page-id-571 #eael-img-accordion-7c5296f > .eael-image-accordion-hover:nth-child(3)[style*="/2022/10/Na-glavnuyu-samokleyushayasya.jpg"] {
    background-image: url("https://max-space.ru/wp-content/uploads/2022/10/Na-glavnuyu-samokleyushayasya-300x169.jpg") !important;
  }
  body.page-id-571 #eael-img-accordion-7c5296f > .eael-image-accordion-hover:nth-child(4)[style*="/2022/10/na-glavnuyu-upakovka.jpg"] {
    background-image: url("https://max-space.ru/wp-content/uploads/2022/10/na-glavnuyu-upakovka-300x169.jpg") !important;
  }
  body.page-id-571 #eael-img-accordion-7c5296f > .eael-image-accordion-hover:nth-child(5)[style*="/2022/10/Capture0059-redakt.jpg"] {
    background-image: url("https://max-space.ru/wp-content/uploads/2022/10/Capture0059-redakt-300x225.jpg") !important;
  }
}
