/* ArCADiasoft: responsive additions, desktop layout stays in the original styles. */
.responsive-header, .responsive-nav-toggle, #responsive-category-toggle { display: none; }
.responsive-table-scroll { display: contents; }

@media screen and (max-width: 1230px) {
  /* Stack each embedded film and its description instead of squeezing columns. */
  .td_text table:has(> tbody > tr > td > iframe[src*="youtube.com/embed/"]) { width: 100% !important; table-layout: fixed; }
  .td_text table:has(> tbody > tr > td > iframe[src*="youtube.com/embed/"]) > tbody,
  .td_text table:has(> tbody > tr > td > iframe[src*="youtube.com/embed/"]) > tbody > tr,
  .td_text table:has(> tbody > tr > td > iframe[src*="youtube.com/embed/"]) > tbody > tr > td { display: block; width: 100% !important; }
  .td_text table:has(> tbody > tr > td > iframe[src*="youtube.com/embed/"]) > tbody > tr.border_bottom:not(:has(iframe)) { display: none; }
  .td_text tr.border_bottom:has(> td > iframe[src*="youtube.com/embed/"]) > td { padding: 10px 0; border-bottom: 0; }
  .td_text tr.border_bottom:has(> td > iframe[src*="youtube.com/embed/"]) > td:last-child { padding-bottom: 22px; border-bottom: 1px solid #ddd; }
  .td_text iframe[src*="youtube.com/embed/"] { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  /* Support downloads retain their original links and file information. */
  .td_text table.news_cp:has(> tbody > tr > td > .listaPlikow) > tbody,
  .td_text table.news_cp:has(> tbody > tr > td > .listaPlikow) > tbody > tr,
  .td_text table.news_cp:has(> tbody > tr > td > .listaPlikow) > tbody > tr > td { display: block; width: 100% !important; }
  .td_text .listaPlikow, .td_text .listaPlikow .nazwaKategorii, .td_text .listaPlikow .nazwaGrupy,
  .td_text .listaPlikow .wpis, .td_text .listaPlikow .linia_oddzielajaca { width: 100%; max-width: 100%; }
  .td_text .listaPlikow .wpis { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 12px; }
  .td_text .listaPlikow .wpis .wpisOpis { grid-column: 1; grid-row: 1; min-width: 0; width: auto; padding: 0; }
  .td_text .listaPlikow .wpis .wpisPrzyciski { grid-column: 2; grid-row: 1; float: none; width: auto; padding: 0; text-align: right; }
  .td_text .listaPlikow .wpis > div[style*="clear"] { display: none; }
  /* The mobile header already contains the same shop destination. */
  #div_strona[data-responsive-ready]:has(.responsive-header .responsive-cart) #menu_mini_top_pasek_bottom .menu_top_pasek { display: none; }
  /* Program support tiles are a layout table, not a data table. */
  .td_text table.txt2:has(a[title^="Zobacz wsparcie"]) { width: 100% !important; table-layout: fixed; }
  .td_text table.txt2:has(a[title^="Zobacz wsparcie"]) td > div { width: 100% !important; float: none !important; }
  .td_text div:has(> div > a[title^="Zobacz wsparcie"]) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 18px; }
  .td_text div:has(> a[title^="Zobacz wsparcie"]) { width: auto !important; height: auto !important; margin: 0 !important; padding: 10px !important; float: none !important; }
  .td_text a[title^="Zobacz wsparcie"] { display: block; line-height: 1.5; overflow-wrap: anywhere; }
  .td_text a[title^="Zobacz wsparcie"] img { display: block; margin: 0 auto 8px; }
  .td_text table:has(.programSetupTable), .td_text .programSetupTable, .td_text .programSetupInclude { width: 100% !important; table-layout: fixed; }
  .td_text .responsive-arcadia-catalog-table { width: 100% !important; table-layout: fixed; }
  .responsive-arcadia-catalog-card { width: 100% !important; float: none !important; }
  .responsive-arcadia-catalog-card::after { content: ''; display: block; clear: both; }
  .responsive-arcadia-catalog-table td > div { max-width: 100%; clear: both; }
}
@media screen and (max-width: 800px) {
  /* Stack labels above fields without replacing or submitting the form. */
  #sp_formularz .sp_row { clear: both; padding: 8px 0; }
  #sp_formularz .sp_row .sp_label { float: none; width: 100%; text-align: left; padding: 0 0 4px; }
  #sp_formularz .sp_row .sp_field { margin-left: 0; }
  #sp_formularz .sp_field input[type=text], #sp_formularz .sp_field select { width: 100%; }
  #sp_formularz .sp_left, #sp_formularz #emailUczelniaInfo > div { margin-left: 0 !important; margin-right: 0 !important; }
  #sp_formularz .sp_left, #sp_formularz .sp_center, #sp_formularz .sp_field_join { line-height: 1.6; }
  .responsive-arcadia-catalog > tbody, .responsive-arcadia-catalog > tbody > tr, .responsive-arcadia-catalog > tbody > tr > td { display: block; width: 100% !important; }
  .responsive-arcadia-catalog-card > img { float: none; display: block; margin: 0 auto 12px; }
  .responsive-arcadia-catalog-card > h2, .responsive-arcadia-catalog-card > div { margin-left: 0 !important; }
  .responsive-arcadia-catalog-table td { overflow-wrap: anywhere; }
  .responsive-arcadia-catalog-table td > div { float: none !important; width: auto !important; padding-top: 12px !important; }
  .responsive-arcadia-catalog-table td > a > img[align=right] { float: none; display: block; margin: 12px auto; }
}

@media screen and (max-width: 1230px) {
  body { min-width: 0; margin: 0; }
  #div_strona, #div_strona *, #div_strona *::before, #div_strona *::after { box-sizing: border-box; }
  #div_strona, #div_strona .responsive-page-wrap { width: 100% !important; max-width: 100%; margin: 0 !important; background: #fff; }
  #sliderwrapperbackground, #ikonySpolecznosciowe, #ikonySpolecznoscioweButton { display: none !important; }
  .responsive-page-table, .responsive-page-table > tbody, .responsive-page-table > tbody > tr, .responsive-page-table > tbody > tr > td { display: block; width: 100% !important; max-width: 100%; height: auto; }
  .responsive-page-table > tbody > tr.responsive-empty-row { display: none; }
  .responsive-page-table .tresc_tr { background: #fff !important; }

  /* Mobile controls are additional links/buttons; original navigation is retained. */
  .responsive-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; min-height: 66px; border-bottom: 1px solid #ddd; background: #fafafa; }
  .responsive-logo { display: flex; align-items: center; min-height: 40px; }
  .responsive-logo img { width: 115px; height: auto; }
  .responsive-header-actions { display: flex; gap: 8px; align-items: center; }
  .responsive-header button, .responsive-header .responsive-cart { font: 600 14px Cambay, Arial, sans-serif; min-height: 42px; border: 1px solid #d8d8d8; border-radius: 3px; padding: 9px 12px; background: #fff; color: #222; cursor: pointer; text-decoration: none; }
  #responsive-menu-toggle::before { content: '\2630'; margin-right: 6px; }
  #responsive-menu-toggle[aria-expanded=true] { color: #fff; background: #242c70; border-color: #242c70; }
  #div_strona button:focus-visible, #div_strona a:focus-visible, #div_strona input:focus-visible, #slidernav div:focus-visible, .responsive-table-scroll:focus-visible { outline: 3px solid #285ca8 !important; outline-offset: 2px; }

  #menu_mini_top_pasek_bottom { height: auto !important; min-height: 0 !important; padding: 10px 18px !important; display: flex; flex-direction: column; background: #eee; }
  #menu_mini_top_pasek_bottom .menu_top_pasek { width: 100% !important; height: auto !important; margin: 8px 0 0; padding: 0; float: none; }
  #menu_mini_top_pasek_bottom .menu_top_pasek > div:first-child { display: none; }
  #twojeZakupy, #twojeZakupy > a, #twojeZakupy > div, #twojeZakupy > a > div { width: 100% !important; height: auto !important; float: none !important; min-height: 22px; }
  #twojeZakupy > div, #twojeZakupy > a > div { padding-left: 84px !important; background-position: left 3px; line-height: 1.5; }
  .divSearchbox { width: 100% !important; height: auto !important; float: none !important; margin: 0 !important; position: relative !important; }
  .divSearchbox > div:first-child:not(.resultbox) { display: none; }
  #searchform { margin: 0; width: 100%; }
  #searchform .searchbox { width: 100% !important; height: 42px !important; margin: 0 !important; padding: 0 !important; position: relative; display: flex; align-items: center; border: 1px solid #ccc; background: #fff; }
  #searchform .searchfield { flex: 1; width: 100% !important; min-width: 0; height: 40px !important; padding: 8px 12px !important; font: 16px Cambay, Arial, sans-serif !important; color: #333; background: transparent; border: 0; }
  #searchform .search { order: 2; flex: 0 0 42px; width: 42px !important; height: 40px !important; background: #f7f7f7 !important; border: 0; }
  #searchform .search::before { content: '\2315'; font: 30px Arial, sans-serif; color: #555; }
  #searchform .loader { flex: 0 0 30px; width: 30px !important; height: 30px; background-position: center; }
  .divSearchbox .resultbox { width: 100% !important; max-width: 100%; right: 0; top: 44px; max-height: 60vh; overflow: auto; }
  .divSearchbox .resultbox-header, .divSearchbox .resultbox-h-b { height: auto; min-height: 30px; }
  .divSearchbox .search-results ul.results-list li { height: auto; min-height: 55px; }

  #menu { width: 100% !important; position: relative !important; z-index: 30 !important; }
  #menu .sf-menu { float: none; width: 100% !important; height: auto !important; margin: 0; padding: 4px 18px 12px; background: #fafafa; }
  #div_strona[data-responsive-ready] #menu .sf-menu { display: none; }
  #div_strona[data-responsive-ready] #menu .sf-menu.responsive-open { display: block; }
  #menu .sf-menu > li { float: none !important; width: 100% !important; height: auto !important; margin: 0 !important; position: static !important; border-bottom: 1px solid #dedede; }
  #div_strona[data-responsive-ready] #menu .sf-menu > li:first-child, #menu .responsive-desktop-label { display: none; }
  #menu .responsive-nav-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 48px; padding: 12px 4px; border: 0; background: none; text-align: left; font: 600 15px Cambay, Arial, sans-serif; color: #333; cursor: pointer; }
  #menu .responsive-nav-toggle::after, #responsive-category-toggle::after { content: '\2304'; margin-left: 12px; }
  #menu .responsive-nav-toggle[aria-expanded=true]::after, #responsive-category-toggle[aria-expanded=true]::after { content: '\2303'; }
  #menu .sf-menu > li > a { display: block; padding: 12px 4px; }
  #menu .sf-menu ul { position: static !important; top: auto !important; left: auto !important; width: 100% !important; float: none; margin: 0 !important; padding: 0 0 12px !important; background: #fff !important; opacity: 1 !important; visibility: visible !important; }
  #div_strona[data-responsive-ready] #menu .sf-menu > li > ul { display: none !important; }
  #div_strona[data-responsive-ready] #menu .sf-menu > li.responsive-open > ul { display: block !important; }
  #menu .sf-menu ul li { float: none; position: static; height: auto !important; margin: 0 !important; width: 100% !important; white-space: normal; }
  #menu .sf-menu ul a { white-space: normal; line-height: 1.45; padding: 10px 12px !important; min-height: 40px; }

  /* Keep the existing slider's animation, links and thumbnail targets. */
  #sliderwrapper { height: auto !important; display: flex; flex-direction: column; overflow: hidden; }
  #sliderwrapper .sliderpanel { order: 0; width: 100%; position: relative; }
  #sliderwrapper .sliderpanel > img { display: block; width: 100%; height: auto; }
  #sliderwrapper .panelcontent, #sliderwrapper .panelcontent-small { width: 100%; height: 100%; top: 0; left: 0; }
  #sliderwrapper .panelcontent > a, #sliderwrapper .panelcontent-small > a { display: block; width: 100%; height: 100%; }
  #sliderwrapper .panelcontent img, #sliderwrapper .panelcontent-small img { width: 100%; height: auto; max-width: 100%; }
  #sliderwrapper #slidernav { position: static; display: flex; order: 1; gap: 8px; justify-content: center; padding: 8px 12px; background: #f5f5f5; width: 100%; margin: 0; }
  #sliderwrapper #slidernav > div { float: none; margin: 0; height: auto; flex: 0 1 111px; min-width: 0; border: 2px solid transparent; }
  #sliderwrapper #slidernav .selected { border-color: #2b327a; }
  #sliderwrapper #slidernav img { display: block; width: 100%; height: auto; }
  #koszykInfoPokaz { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px 18px !important; width: 100% !important; }
  #koszykInfoPokaz td { display: block !important; width: auto !important; padding: 0 !important; height: auto !important; }
  #koszykInfoPokaz img { width: 100% !important; height: auto !important; display: block; }
  #koszykInfoPokaz td a { display: block; width: 100%; }
  table:has(> #koszykInfoPokaz), table:has(> tbody > #koszykInfoPokaz) { width: 100% !important; height: auto !important; margin: 0 !important; }

  .td_menu { padding: 0 !important; background: #fff !important; }
  #responsive-category-toggle { display: flex; justify-content: space-between; align-items: center; border: 1px solid #d6d6d6; background: #f2f2f2; width: calc(100% - 36px); margin: 12px 18px 4px; min-height: 48px; padding: 12px 14px; font: 600 16px Cambay, Arial, sans-serif; color: #333; cursor: pointer; }
  #responsive-category-toggle[aria-expanded=true] { border-color: #2b327a; color: #242c70; }
  #responsive-category-panel { display: none; padding: 10px 18px 18px; max-width: 100%; background: #fafafa; }
  #responsive-category-panel.responsive-open { display: block; }
  #responsive-category-panel > div { max-width: 100% !important; width: 100% !important; margin-left: 0 !important; float: none !important; }
  #responsive-category-panel img { max-width: 100%; height: auto; }
  #responsive-category-panel a { overflow-wrap: anywhere; }
  #responsive-category-panel a { display: inline-block; max-width: 100%; padding-top: 6px; padding-bottom: 6px; line-height: 1.5; }
  #responsive-category-panel .table_menu_lewe { width: 100% !important; max-width: 100%; table-layout: fixed; margin-left: 0 !important; }
  #responsive-category-panel .menu_lewe_linki { width: auto !important; padding-left: 4px; padding-right: 0; }
  #responsive-category-panel .menu_programy, #responsive-category-panel .menu_programy > div { width: 100% !important; max-width: 100%; }
  #responsive-category-panel .menu_programy { overflow-x: auto; }
  #responsive-category-panel .menu_programy a { display: block; white-space: nowrap; overflow-wrap: normal; font-size: clamp(12.5px, 3.7vw, 14px); min-height: 36px; }

  #div_strona .td_text { padding: 16px 18px !important; background: #fff !important; max-width: 100%; min-width: 0; overflow-wrap: break-word; }
  .td_text > table, .td_text > div > table, .td_text table.news, .td_text table.news_profile, .td_text table.news_cp, #trescSrodek { width: 100% !important; max-width: 100%; table-layout: fixed; }
  .td_text > div { max-width: 100%; width: auto !important; }
  .td_text div[style*="width:"] { max-width: 100%; }
  .td_text .infoPrzypomnijIDklienta { max-width: 100%; }
  #InfoBoxPromo > div { width: 100% !important; height: auto !important; padding: 10px !important; line-height: 1.5 !important; }
  .td_text img, .td_text video, .td_text iframe, .td_text input[type=image] { max-width: 100%; }
  .td_text img, .td_text video { height: auto; }
  .td_text img[hspace] { margin-left: 0; margin-right: 0; }
  .td_text video { width: 100%; display: block; }
  .td_text .container { width: 100% !important; max-width: 100%; height: auto !important; }
  .td_text .menu_mini { float: none !important; white-space: normal; line-height: 1.5; }
  .td_text .menu_mini_ukrywaj_druk { height: auto !important; }
  .td_text h1, .td_text h2, .td_text h3 { max-width: 100%; overflow-wrap: break-word; }
  table.news { height: auto !important; margin: 0 0 22px !important; border-bottom: 1px solid #e4e4e4; padding-bottom: 18px; }
  table.news .tresc { vertical-align: top; }
  table.news .tresc .miniaturka { width: 25%; max-width: 210px; height: auto; float: left; padding-right: 15px; }
  table.news .tresc .opis_newsa_miniaturka { width: 75% !important; float: left; height: auto !important; padding: 0 !important; }
  table.news .tresc .opis_newsa_bez_miniturki { width: 100% !important; float: none; height: auto !important; }
  table.news .naglowek, table.news .naglowek h2 { width: auto !important; float: none; height: auto; }
  table.news .tresc_k { height: auto !important; overflow: visible !important; line-height: 1.55; }
  table.news .link { height: auto !important; padding: 10px 0 !important; }

  /* Product lists keep all prices and links from PHP. */
  .lista_produkty { height: auto !important; padding: 18px 0 !important; }
  .responsive-product-list > tbody > tr:has(> td.txt14) { display: none; }
  .lista_cena_netto::before { content: 'Netto: '; font-size: 14px; font-weight: normal; }
  .lista_cena_brutto::after { content: ' brutto'; font-size: 14px; font-weight: normal; }
  .lista_produkty::after { content: ''; display: block; clear: both; }
  .lista_numerowanie { display: none; }
  .lista_miniaturki { width: 26%; height: auto; min-height: 120px; overflow: visible; padding: 0 12px 12px 0; }
  .lista_miniaturki a { width: 100%; height: auto; margin: 0; }
  .lista_miniaturki img { width: 100%; max-width: 210px; height: auto; margin: 0 !important; }
  .lista_opis_programu { width: 54%; height: auto; overflow: visible; padding: 0 16px 10px 0; }
  .lista_opis_programu a { width: auto; height: auto; line-height: 1.5; }
  .lista_cena_rabat { float: right; width: 20%; height: auto; }
  .lista_cena_brutto, .lista_cena_netto, .lista_cena { float: none; width: 100%; white-space: normal; }
  .lista_rabat { float: none; width: 100%; }
  .lista_obrazek_nowosc { clear: right; }
  .lista_obrazek_nowosc img { width: 150px; height: 24px; object-fit: contain; }
  #div_sklep_koszyk_ajax { max-width: 100%; margin-left: auto !important; margin-right: auto !important; }
  .gallery_div, .gallery_div .galeria, .gallery_div .miniatury, #reseller-mapa, #arcadia-mapa { max-width: 100% !important; }
  .gallery_div .galeria { width: 100% !important; height: auto !important; }
  .gallery_div .duzy { max-width: 100%; height: auto; }
  .responsive-table-scroll { display: block; width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .responsive-table-scroll > table { max-width: none; }

  /* Existing form fields and hidden states remain intact. */
  .td_text form, .td_text form table, .td_text table:has(form) { max-width: 100% !important; width: 100% !important; }
  .td_text input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=image]), .td_text select, .td_text textarea { max-width: 100%; box-sizing: border-box; font-size: 16px; min-height: 36px; }
  #przyciskiKoszyk { height: auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
  #przyciskiKoszyk > div { float: none !important; position: static !important; margin: 0 !important; max-width: 100%; }
  .pasekPusty { max-width: 100%; overflow-x: auto; }
  .overlay, .simple_overlay, .zamawiamDemo, .polecam_strone, .informacjaSklep, .bony_promocja_pytanie { box-sizing: border-box; max-width: calc(100vw - 24px) !important; max-height: calc(100vh - 32px); overflow: auto; left: 12px !important; margin-left: 0 !important; }
  .overlay table, .simple_overlay table { max-width: 100%; width: 100% !important; }
  .overlay input, .simple_overlay input { max-width: 100%; box-sizing: border-box; }

  .responsive-footer, .responsive-footer > tbody, .responsive-footer > tbody > tr, .responsive-footer > tbody > tr > td { display: block; width: 100% !important; height: auto !important; }
  .responsive-footer { margin: 0 !important; padding: 20px 18px 72px !important; background: #f2f2f2; border-top: 1px solid #ddd; }
  .responsive-footer td > div { padding-left: 0 !important; width: auto !important; float: none !important; height: auto !important; max-width: 100%; margin-top: 10px !important; }
  #stopka_linki table, #stopka_linki tbody, #stopka_linki tr, #stopka_linki td { display: block; width: 100% !important; }
  #stopka_linki .blok { margin: 20px 0; padding: 0 !important; border: 0; }
  #stopka_linki .linki, #stopka_linki .linki ul li { height: auto; overflow: visible; line-height: 1.65; }
  #stopka_linki .tytul, #stopka_linki .blok > div { padding-left: 0 !important; }
  .responsive-footer .tr_ikony_stopka { background: none; }
  .responsive-footer img { max-width: 100%; height: auto; }
  .responsive-footer .linia_1, .responsive-footer .linia_2 { line-height: 1.8; white-space: normal; }
  #cookies-info { box-sizing: border-box; min-width: 0 !important; width: 100% !important; max-height: none !important; font-size: 12px !important; line-height: 1.45 !important; padding: 10px 14px !important; text-align: left !important; position: static !important; border-bottom: 1px solid #ddd; }
  #cookies-info a { display: inline-block; min-height: 24px; }
}

@media screen and (max-width: 600px) {
  .td_text .blokMultimedia { float: none; width: 100%; max-width: 270px; margin: 0 auto 18px; }
  .td_text .blokMultimedia h3 { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 55px; height: auto; margin: 0; }
  /* Keep the two original YouTube widgets aligned and separated on phones. */
  .td_text .news_cp:has(.blokMultimedia) div:has(> .g-ytsubscribe),
  .td_text .news_cp:has(.blokMultimedia) div:has(> [id^="___ytsubscribe_"]) {
    float: none !important; width: 220px !important; max-width: 100%;
    max-height: none !important; min-height: 48px; padding: 0 !important;
    margin: 16px auto !important; text-align: left !important;
  }
  .td_text .programSetupTable > tbody > tr > td, .td_text .programSetupInclude > tbody > tr > td { display: block; width: 100% !important; }
  .td_text .programSetupInclude .two > br:first-child { display: none; }
  .td_text .programSetupTable .btn { max-width: 100%; overflow-wrap: anywhere; }
  .responsive-header { padding: 10px 14px; gap: 6px; }
  .responsive-header button, .responsive-header .responsive-cart { padding: 9px 10px; }
  #menu_mini_top_pasek_bottom { padding: 9px 14px !important; }
  #koszykInfoPokaz { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 14px !important; }
  #responsive-category-toggle { width: calc(100% - 28px); margin: 10px 14px 4px; }
  #responsive-category-panel { padding: 10px 14px 16px; }
  #div_strona .td_text { padding: 16px 14px !important; }
  table.news .tresc .miniaturka { width: 100%; max-width: none; float: none; padding: 0; margin: 0 0 12px; display: block; height: auto; }
  table.news .tresc .miniaturka a { display: block; }
  table.news .tresc .miniaturka img { width: 100%; height: auto; object-fit: contain; max-width: 100%; }
  table.news .tresc .opis_newsa_miniaturka { width: 100% !important; float: none; }
  table.news .naglowek a, table.news .naglowek h2 { font-size: 20px; line-height: 1.35; }
  table.news .link a { padding: 8px 0; display: inline-block; }
  .lista_miniaturki { width: 100%; min-height: 0; float: none; padding: 0 0 12px; }
  .lista_miniaturki img { width: 100%; max-width: 280px; display: block; margin: auto !important; }
  .lista_opis_programu { width: 100%; float: none; padding: 0 0 12px; }
  .lista_opis_programu h4 { font-size: 19px; line-height: 1.4; }
  .lista_cena_rabat { float: none; width: 100%; }
  .lista_cena, .lista_cena_brutto, .lista_cena_netto { text-align: left; }
  .lista_obrazek_nowosc { display: block; min-height: 24px; }
  .responsive-product-summary, .responsive-product-summary > td { display: block; width: 100% !important; height: auto !important; }
  .responsive-product-summary table, #trescSrodek:has(#formTestKodRabat) table { width: 100% !important; max-width: 100%; table-layout: fixed; }
  #trescSrodek:has(#formTestKodRabat) td > div[style*="margin: 20px 60px"] { margin: 16px 8px !important; }
  #formPodajDane td.label, #formPodajDane td.input { display: block; width: 100% !important; text-align: left; }
  #formPodajDane td.label { padding-top: 12px; }
  #formPodajDane td.input input[type=text], #formPodajDane td.input select { width: 100%; }
  .responsive-footer { padding: 18px 14px 30px !important; }
}

/* ArCADiasoft footer after removing the external shop, 2026-10-08. */
#arcadia-footer { box-sizing: border-box; padding: 24px 20px !important; border-top: 1px solid #d5d5d5; background: #f2f2f2; }
#arcadia-footer > tbody > tr > td > div { padding-left: 0 !important; }
#arcadia-footer #stopka_linki > table { width: 100%; }
#arcadia-footer #stopka_linki .arcadia-footer-partners { width: 175px !important; padding-right: 24px; }
#arcadia-footer .arcadia-footer-partners img { max-width: 134px; height: auto; }
#arcadia-footer #stopka_linki .arcadia-footer-resources { width: auto !important; }
#arcadia-footer #stopka_linki .blok { border: 0; margin: 0; padding: 0; }
#arcadia-footer #stopka_linki .blok > div { padding-left: 0 !important; }
#arcadia-footer #stopka_linki .tytul { margin-bottom: 8px; }
#arcadia-footer .arcadia-footer-resources a.linki_stopka { display: inline-block; padding: 3px 0; line-height: 1.55; }
#arcadia-footer .arcadia-footer-awards { padding: 18px 0 !important; }
#arcadia-footer .tr_ikony_stopka { background: none; }
#arcadia-footer .tr_ikony_stopka > td { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; height: auto !important; padding: 20px 0; border-top: 1px solid #d5d5d5; }
#arcadia-footer .arcadia-footer-brand { width: 180px !important; float: none !important; }
#arcadia-footer .arcadia-footer-brand img { margin: 0 !important; max-width: 170px; height: auto; }
#arcadia-footer .arcadia-footer-navigation { flex: 1 1 360px; width: auto !important; float: none !important; margin: 0 !important; }
#arcadia-footer .arcadia-footer-navigation a { display: inline-block; padding: 4px 0; line-height: 1.65; }
#arcadia-footer .arcadia-footer-social { width: auto !important; float: none !important; padding: 0 !important; margin: 0 !important; }

#arcadia-footer .arcadia-footer-legal { border-top: 1px solid #ddd; padding-top: 14px; }
#arcadia-footer .arcadia-footer-legal a { display: inline-block; padding: 5px 0; }
@media screen and (max-width: 1230px) {
  #arcadia-footer #stopka_linki .arcadia-footer-partners { width: 100% !important; padding: 0 0 18px; }
  #arcadia-footer .arcadia-footer-partners > div { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
  #arcadia-footer .arcadia-footer-partners > div > div:empty { display: none; }
  #arcadia-footer .arcadia-footer-partners img { max-width: 100px; }
  #arcadia-footer #stopka_linki .arcadia-footer-resources { width: 100% !important; }
  #arcadia-footer .arcadia-footer-awards table { display: table !important; width: auto !important; max-width: 100%; }
  #arcadia-footer .arcadia-footer-awards tbody { display: table-row-group !important; }
  #arcadia-footer .arcadia-footer-awards tr { display: flex !important; flex-wrap: wrap; gap: 8px; }
  #arcadia-footer .arcadia-footer-awards td { display: block !important; width: auto !important; padding: 0 !important; }
  #arcadia-footer .arcadia-footer-awards td img { max-width: 90px; }
  #arcadia-footer .arcadia-footer-legal > div { text-align: left !important; }
}
@media screen and (max-width: 600px) {
  #arcadia-footer { padding: 20px 16px 36px !important; }
  #arcadia-footer .tr_ikony_stopka > td { display: block; }
  #arcadia-footer .arcadia-footer-brand, #arcadia-footer .arcadia-footer-navigation, #arcadia-footer .arcadia-footer-social { margin: 0 0 16px !important; }
  #arcadia-footer .arcadia-footer-navigation a, #arcadia-footer .arcadia-footer-legal a { padding: 7px 0; }
}

@media screen and (max-width: 1230px) {
#arcadia-footer .arcadia-footer-awards table, #arcadia-footer .arcadia-footer-awards td { height: auto !important; }
#arcadia-footer .arcadia-footer-awards .toolpipNagrody > div[data-geo] { width: clamp(54px, 18vw, 70px) !important; height: clamp(65px, 21.42vw, 84px) !important; margin: 0 !important; background-size: contain !important; background-repeat: no-repeat !important; }
}

/* Three home-page tiles: retain desktop layout, center the mobile stack. */
@media screen and (max-width: 1230px) {
#div_strona .td_text .arcadia-home-tiles { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; }
#div_strona .td_text .arcadia-home-tiles > a { display: block; float: none !important; width: 240px; max-width: 100%; margin: 0 auto !important; }
#div_strona .td_text .arcadia-home-tiles > a > img { display: block; max-width: 100%; height: auto; margin: 0 !important; }
}

/* Mobile reading: separate illustrations from text; keep article links intact. */
@media screen and (max-width: 800px) {
  #div_strona .arcadia-program-description img[align="left"],
  #div_strona .arcadia-program-description img[align="right"],
  #div_strona .arcadia-news-detail img[align="left"],
  #div_strona .arcadia-news-detail img[align="right"] {
    display: block; float: none !important; clear: both;
    max-width: 100% !important; height: auto !important;
    margin: 12px auto 18px !important; box-sizing: border-box;
  }
  #div_strona .arcadia-news-detail div.link4,
  #div_strona .arcadia-program-description div.link4 {
    width: auto !important; max-width: 100%; float: none !important;
    margin: 18px 0 !important; padding: 12px 0 !important;
    text-align: left !important; box-sizing: border-box;
  }
  #div_strona .arcadia-news-detail div.link4 > a,
  #div_strona .arcadia-program-description div.link4 > a {
    display: block; width: auto !important; min-height: 45px;
    text-align: left !important; line-height: 1.65;
  }
  #div_strona .arcadia-news-detail div.link4 > a > img,
  #div_strona .arcadia-program-description div.link4 > a > img {
    width: 36px; height: auto; float: right !important;
    padding: 0 !important; margin: 4px 0 8px 14px !important;
  }
}

/* Comparison table controls and a persistent feature column on phones. */
.responsive-comparison-controls { display: none; }
@media screen and (max-width: 800px) {
  #div_strona .responsive-comparison-controls { display: flex; align-items: center; gap: 8px; padding: 10px 0; }
  #div_strona .responsive-comparison-controls span { flex: 1; font-size: 14px; }
  #div_strona .responsive-comparison-controls button { width: 44px; min-height: 44px; border: 1px solid #aaa; background: #fff; color: #333; font-size: 24px; cursor: pointer; }
  #div_strona .responsive-comparison-controls button:disabled { opacity: .35; cursor: default; }
  #div_strona .responsive-comparison { display: block; width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
  #div_strona .responsive-comparison > table.tg { min-width: 860px; width: 100% !important; table-layout: fixed; }
  #div_strona .responsive-comparison > table.tg col { width: 116px !important; }
  #div_strona .responsive-comparison > table.tg col:first-child { width: 164px !important; }
  #div_strona .responsive-comparison > table.tg td,
  #div_strona .responsive-comparison > table.tg th { white-space: normal; overflow-wrap: normal; }
  #div_strona .responsive-comparison > table.tg tr > :first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 #40505d; }
  #div_strona .responsive-comparison > table.tg tr > td:first-child { background: #eef0f0; }
  #div_strona .responsive-comparison > table.tg tr > th:first-child { background: #858585; color: #fff; z-index: 2; }
}

/* Hide the shop icon below search; keep its destination for the mobile header. */
#menu_mini_top_pasek_bottom #twojeZakupy { display: none !important; }

/* Administrator review: language links, module pages and compact mobile footer. */
#menu_mini_top_pasek_bottom { position: relative; }
.arcadia-language-links { position: absolute; right: 158px; top: 0; height: 44px; display: flex; align-items: center; gap: 8px; }
.arcadia-language-links a { display: flex; align-items: center; justify-content: center; min-width: 32px; min-height: 36px; }
.arcadia-language-links img { width: 25px; height: auto; }
.arcadia-footer-youtube-row { display: none; }
@media screen and (max-width: 1230px) {
  .arcadia-language-links { position: static; height: auto; min-height: 32px; justify-content: flex-end; order: 0; gap: 12px; }
  #menu_mini_top_pasek_bottom .divSearchbox { order: 1; }
  #menu_mini_top_pasek_bottom .menu_top_pasek { order: 2; }
  #arcadia-footer .arcadia-footer-resources > .blok,
  #arcadia-footer #stopka_linki .arcadia-footer-shop { display: none !important; }
  #arcadia-footer .arcadia-footer-partners > div { justify-content: center; }
  #arcadia-footer .arcadia-footer-awards { display: flex; justify-content: center; }
  #arcadia-footer .arcadia-footer-youtube-row { display: table-row; }
  #arcadia-footer .arcadia-footer-youtube-row > td { padding-top: 20px; text-align: center; }
  #arcadia-footer .arcadia-footer-youtube-row .arcadia-footer-social { text-align: center !important; }
  #responsive-category-panel .podmenu_programy { display: none !important; }
  .td_text .arcadia-module-page { width: 100% !important; table-layout: fixed; }
  .arcadia-module-page > tbody > tr > td { box-sizing: border-box; }
  .arcadia-module-page .arcadia-module-tabs { text-align: left; line-height: 1.8; padding-top: 12px; padding-bottom: 12px; }
  .arcadia-module-tabs a { display: inline-block; padding: 6px 2px; }
  .arcadia-module-page .arcadia-program-description { width: 100%; }
  .arcadia-module-page .arcadia-program-description img { max-width: 100%; height: auto; }
}

/* Language flags beside the ArCADiasoft logo on mobile, 2026-10-10. */
@media screen and (max-width: 1230px) {
  .responsive-header { flex-wrap: wrap; padding: 12px; gap: 8px; }
  .responsive-header-brand { display: flex; align-items: center; gap: 8px; }
  .responsive-header .arcadia-language-links { position: static; order: initial; min-height: 36px; height: auto; gap: 0; justify-content: flex-start; }
  .responsive-header-actions { margin-left: auto; }
}
@media screen and (max-width: 600px) {
  .responsive-header .responsive-logo img { width: 98px; }
}

/* Mobile module navigation and legacy Windows compatibility badges. */
.arcadia-module-nav { display: none; }
@media screen and (max-width: 1230px) {
  .arcadia-module-nav { display: block; margin: 12px 18px 4px; }
  #arcadia-module-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #d6d6d6; background: #f2f2f2; color: #333; text-align: left; font: 600 16px Cambay, Arial, sans-serif; cursor: pointer; }
  #arcadia-module-toggle::after { content: '\2304'; flex-shrink: 0; }
  #arcadia-module-toggle[aria-expanded=true] { border-color: #2b327a; color: #242c70; }
  #arcadia-module-toggle[aria-expanded=true]::after { content: '\2303'; }
  .arcadia-module-links { display: none; border: 1px solid #d6d6d6; border-top: 0; background: #fff; }
  .arcadia-module-links.responsive-open { display: block; }
  .arcadia-module-links a { display: block; box-sizing: border-box; min-height: 48px; padding: 12px 14px; border-bottom: 1px solid #e7e7e7; color: #252d70; text-decoration: none; font: 16px/1.5 Cambay, Arial, sans-serif; overflow-wrap: anywhere; }
  .arcadia-module-links a:last-child { border-bottom: 0; }
  .arcadia-module-links a[aria-current=page] { background: #eef0f8; border-left: 4px solid #2b327a; padding-left: 10px; font-weight: 700; }
  .arcadia-module-links a:hover { background: #eef0f8; }
  #arcadia-module-toggle:focus-visible, .arcadia-module-links a:focus-visible { outline: 2px solid #2b327a; outline-offset: 2px; }
  .td_text .arcadia-windows-badge, .td_text img[src*="/ms_logo/"] { display: none !important; }
}
@media screen and (max-width: 600px) {
  .arcadia-module-nav { margin: 10px 14px 4px; }
}

/* Compact program actions and partner logos on mobile. */
@media screen and (max-width: 1230px) {
  #arcadia-footer .arcadia-footer-partners a[href*="arcadiapress.pl"] { display: none !important; }
  .td_text p:has(> a > img[src*="pr_belka_sklep"]):has(> a > img[src*="pr_belka_ulotka"]) { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
  .td_text td:has(> div > a > img[src*="pr_belka_sklep"]):has(> div > a > img[src*="pr_belka_ulotka"]) > div { display: inline-block; vertical-align: middle; margin: 0 0 0 12px; }
  .td_text td:has(> div > a > img[src*="pr_belka_sklep"]):has(> div > a > img[src*="pr_belka_ulotka"]) > div:first-child { margin-left: 0; }
  .td_text a:has(> img[src*="pr_belka_sklep"]), .td_text a:has(> img[src*="pr_belka_ulotka"]) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; vertical-align: middle; }
  .td_text img[src*="pr_belka_sklep"], .td_text img[src*="pr_belka_ulotka"] { display: block; margin: 0 !important; }
}

/* Mobile offer text on the left, arrows on the right; balanced footer columns. */
@media screen and (max-width: 1230px) {
  .td_text .arcadia-offer-link { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; line-height: 1.5; }
  .arcadia-offer-link .arcadia-offer-text { order: 0; flex: 1; min-width: 0; }
  .arcadia-offer-text br { display: none; }
  .arcadia-offer-text b::after { content: ' '; white-space: pre; }
  .td_text .arcadia-offer-link > img { order: 1; flex: 0 0 32px; float: none !important; width: 32px !important; height: 32px !important; margin: 0 !important; object-fit: contain; }
  #arcadia-footer #stopka_linki > table > tbody > tr { display: grid; grid-template-columns: clamp(76px, 25vw, 100px) minmax(0, 292px); justify-content: space-between; align-items: start; column-gap: 8px; }
  #arcadia-footer #stopka_linki .arcadia-footer-partners { width: 100% !important; padding: 0; min-width: 0; }
  #arcadia-footer .arcadia-footer-partners > div { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 10px; align-items: flex-start; margin: 0 !important; }
  #arcadia-footer .arcadia-footer-partners > div > div:not(:has(a)),
  #arcadia-footer .arcadia-footer-partners > div > div:has(a[href*="arcadiapress.pl"]) { display: none; }
  #arcadia-footer .arcadia-footer-partners > div > div { width: 100%; }
  #arcadia-footer .arcadia-footer-partners img { display: block; width: 100%; margin: 0; }
  #arcadia-footer #stopka_linki .arcadia-footer-resources { width: 100% !important; min-width: 0; }
  #arcadia-footer .arcadia-footer-awards { margin: 0 !important; padding: 0 !important; }
  #arcadia-footer .arcadia-footer-awards table, #arcadia-footer .arcadia-footer-awards tbody { display: block !important; width: 100% !important; }
  #arcadia-footer .arcadia-footer-awards tr { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  #arcadia-footer .arcadia-footer-awards td { width: 100% !important; min-width: 0; }
  #arcadia-footer .arcadia-footer-awards .toolpipNagrody > div[data-geo] { width: 100% !important; max-width: 70px; height: auto !important; aspect-ratio: 100 / 119; }
}

/* Bring the mobile partner-and-award row closer to the footer separator. */
@media screen and (max-width: 1230px) {
  #arcadia-footer { padding-top: 12px !important; }
  #arcadia-footer > tbody > tr:first-child > td > div { padding-top: 0 !important; margin-top: 0 !important; }
}

/* Compact mobile footer: retain navigation without the brand logo or award divider. */
@media screen and (max-width: 1230px) {
  #arcadia-footer { padding-bottom: 16px !important; }
  #arcadia-footer .arcadia-footer-brand { display: none !important; }
  #arcadia-footer .tr_ikony_stopka > td { display: block; border-top: 0; padding: 8px 0 4px; }
  #arcadia-footer .arcadia-footer-navigation { margin: 0 !important; }
  #arcadia-footer .arcadia-footer-navigation .linia_1,
  #arcadia-footer .arcadia-footer-navigation .linia_2,
  #arcadia-footer .arcadia-footer-legal .linia_2 { line-height: 1.5; }
  #arcadia-footer .arcadia-footer-navigation a,
  #arcadia-footer .arcadia-footer-legal a { padding: 3px 0; line-height: 1.5; }
  #arcadia-footer .arcadia-footer-facebook { margin: 0 !important; line-height: 0; font-size: 0; }
  #arcadia-footer .arcadia-footer-legal { padding-top: 8px; }
  #arcadia-footer .arcadia-footer-legal > div { margin-top: 0 !important; margin-bottom: 4px !important; line-height: 1.5; }
  #arcadia-footer .arcadia-footer-youtube-row > td { padding: 8px 0 0 !important; }
  #arcadia-footer .arcadia-footer-youtube-row .arcadia-footer-social { margin: 0 !important; line-height: 1; }
}

/* Stack the TERMOCAD description and awards on mobile; omit the opening award badge. */
@media screen and (max-width: 1230px) {
  .arcadia-program-description p:has(> a > img[src$="/terazPolska.png"]) { display: none !important; }
  .arcadia-program-description table:has(img[src$="/news_teraz_pol-dyplom.png"]) { display: block; width: 100% !important; border-spacing: 0; }
  .arcadia-program-description table:has(img[src$="/news_teraz_pol-dyplom.png"]) > tbody,
  .arcadia-program-description table:has(img[src$="/news_teraz_pol-dyplom.png"]) > tbody > tr,
  .arcadia-program-description table:has(img[src$="/news_teraz_pol-dyplom.png"]) > tbody > tr > td { display: block; width: 100% !important; }
  .arcadia-program-description table:has(img[src$="/news_teraz_pol-dyplom.png"]) > tbody > tr > td { padding: 0; }
  .arcadia-program-description table:has(img[src$="/news_teraz_pol-dyplom.png"]) > tbody > tr > td + td { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e4e4e4; }
  .arcadia-program-description table:has(img[src$="/news_teraz_pol-dyplom.png"]) > tbody > tr > td:last-child .txt2 { text-align: left !important; }
  .arcadia-program-description table:has(img[src$="/news_teraz_pol-dyplom.png"]) > tbody > tr > td:last-child img { display: block; max-width: 100%; height: auto; margin: 12px auto !important; }
}

/* Keep wrapped download labels inside one rectangular button on phones. */
@media screen and (max-width: 600px) {
  .td_text a.btn.btn-info[href*="pobierz.intersoft.pl/demo/"] {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* Give the download prompt and product name separate, balanced mobile lines. */
@media screen and (max-width: 600px) {
  .td_text a.btn.btn-info.arcadia-download-label {
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
  }
  .arcadia-download-label .arcadia-download-lead { font-size: 14px; text-wrap: balance; }
  .arcadia-download-label .arcadia-download-product { white-space: nowrap; font-size: 16px; }
}
@media screen and (max-width: 360px) {
  .arcadia-download-label .arcadia-download-lead { font-size: 13px; }
}

/* Readable public search detail views and explicit module links. */
.arcadia-search-detail { max-width: 850px; padding: 16px 20px 24px; }
.arcadia-search-detail .arcadia-search-kind { color: #777; font-size: 13px; margin: 0 0 8px; }
.arcadia-search-detail-text { margin: 18px 0; line-height: 1.7; overflow-wrap: anywhere; }
.arcadia-search-file { display: inline-block; padding: 10px 16px; background: #5e8b02; color: #fff !important; }
.arcadia-konstruktor-module-link { text-decoration: underline; text-underline-offset: 2px; }
@media screen and (max-width: 600px) {
  .arcadia-search-detail { padding: 12px 6px 20px; }
  .arcadia-search-detail h1 { font-size: 24px; line-height: 1.3; }
}

/* Three horizontal home-page shortcuts on phones. */
.arcadia-home-tile-label, .arcadia-home-tile-arrow { display: none; }
@media screen and (max-width: 600px) {
  #div_strona .td_text .arcadia-home-tiles { align-items: stretch; gap: 10px; padding: 10px 0 20px !important; }
  #div_strona .td_text .arcadia-home-tiles > a { display: flex; align-items: center; gap: 14px; box-sizing: border-box; width: 100%; min-height: 102px; padding: 10px; border: 1px solid #d7d7d7; border-left: 3px solid #ff6b00; background: #fff; color: #333; text-decoration: none; text-align: left; font: 600 16px/1.45 Cambay, Arial, sans-serif; }
  #div_strona .td_text .arcadia-home-tiles > a > img { flex: 0 0 86px; width: 86px !important; height: 80px !important; max-width: none; object-fit: cover; object-position: center top; margin: 0 !important; }
  #div_strona .arcadia-home-tiles .arcadia-home-tile-label { display: block; flex: 1; min-width: 0; }
  #div_strona .arcadia-home-tiles .arcadia-home-tile-arrow { display: block; flex: 0 0 22px; color: #ff6b00; font: 24px/1 Arial, sans-serif; text-align: center; }
  #div_strona .td_text .arcadia-home-tiles > a:hover { background: #fafafa; }
  #div_strona .td_text .arcadia-home-tiles > a:focus-visible { outline: 2px solid #2b327a; outline-offset: 2px; }
}
@media screen and (max-width: 360px) {
  #div_strona .td_text .arcadia-home-tiles > a { gap: 10px; }
}

/* Align the two partner logos within the exact height of the award row. */
@media screen and (max-width: 1230px) {
  #arcadia-footer #stopka_linki .arcadia-footer-partners { position: relative; align-self: stretch; min-height: 0; }
  #arcadia-footer .arcadia-footer-partners > div { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 2px; align-items: stretch; }
  #arcadia-footer .arcadia-footer-partners > div > div { min-height: 0; }
  #arcadia-footer .arcadia-footer-partners > div > div > a { display: block; width: 100%; height: 100%; }
  #arcadia-footer .arcadia-footer-partners img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; object-position: left top; }
  #arcadia-footer .arcadia-footer-partners a[href*="intellicad.org"] img { object-position: left bottom; }
}
