/*
 * Responsive shell for the single live document used by every page.
 * Only components whose desktop/mobile markup is genuinely different use
 * layout-specific classes; the page content itself remains shared.
 */
html[data-theme="dark"] .g-mp-steam-topup .g-pm > img,
html[data-theme="dark"] .g-mp-steam-topup .g-pm > span.lg {
  background: #2c3442;
}

html[data-theme="dark"] .g-mp-steam-topup .g-how .g-badge.soft-orange {
  background: #2b2219;
  color: var(--hit);
}

@media (min-width: 768px) {
  .layout-mobile-only {
    display: none !important;
  }

  .grid.grid5.grid2 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .layout-desktop-only {
    display: none !important;
  }

  .grid.grid5.grid2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main[data-barba-namespace="home"] .amt-f > .cur {
    border-radius: 8px;
  }

  /* Keep the five ПО ФАКТУ links inside their mobile footer card. */
  html[data-theme][data-device="mobile"] body footer.foot .ft-mid .soc.blue {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    column-gap: 8px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  html[data-theme][data-device="mobile"] body footer.foot .ft-mid .soc.blue > .tx {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  html[data-theme][data-device="mobile"] body footer.foot .ft-mid .soc.blue > .tx > b,
  html[data-theme][data-device="mobile"] body footer.foot .ft-mid .soc.blue > .tx > small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html[data-theme][data-device="mobile"] body footer.foot .ft-mid .soc.blue > .ics {
    display: grid !important;
    grid-template-columns: repeat(5, 28px) !important;
    gap: 6px !important;
    width: max-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
  }

  html[data-theme][data-device="mobile"] body footer.foot .ft-mid .soc.blue > .ics > a {
    display: grid !important;
    place-items: center !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    box-sizing: border-box !important;
  }

  /* Use equal columns so the three payment badges stay on one level. */
  html[data-theme][data-device="mobile"] body footer.foot .ft-mid .pays {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
  }

  html[data-theme][data-device="mobile"] body footer.foot .ft-mid .pays > .p-sbp,
  html[data-theme][data-device="mobile"] body footer.foot .ft-mid .pays > .p-mir,
  html[data-theme][data-device="mobile"] body footer.foot .ft-mid .pays > .p-btc {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
}
