.badge-page .mobile-top-divider {
  display: none;
}

.badge-page .badge-details .badge-size-mobile-title,
.key-stickers-page .badge-details .key-sticker-size-mobile-title,
.locker-digits-page .badge-details .locker-digit-size-mobile-title,
.lock-overlays-page .badge-details .lock-overlay-size-mobile-title,
.key-tags-page .badge-details .key-tag-size-mobile-title,
.door-tags-page .badge-details .door-tag-size-mobile-title {
  display: none;
}

.taped-pocket-pages .pocket-film-colors-mobile-heading,
.taped-pocket-pages .pocket-size-mobile-title,
.holder-pocket-pages .holder-pocket-size-mobile-title {
  display: none;
}

@media (max-width: 1100px) {
  body.badge-page {
    margin: 0;
  }

  .badge-page .site-layout {
    width: 100%;
    height: auto;
  }

  .badge-page .site-layout > tbody,
  .badge-page .site-layout > tbody > tr {
    display: block;
    width: 100%;
  }

  .badge-page .site-layout > tbody > tr:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .badge-page .site-brand,
  .badge-page .site-header {
    display: block;
    width: auto;
    height: auto;
  }

  .badge-page .site-brand {
    padding: 8px 0;
  }

  .badge-page .site-brand img {
    display: block;
    content: url("mlogo.svg");
    width: min(190px, 52vw);
    height: auto;
    margin: 0 auto;
  }

  .badge-page .site-header > table {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .badge-page .site-header > table > tbody {
    display: block;
  }

  .badge-page .site-header > table > tbody > tr:first-child {
    display: none;
  }

  .badge-page .site-header > table > tbody > tr:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 99px;
    align-items: stretch;
    padding: 8px;
  }

  .badge-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(odd) {
    display: none;
  }

  .badge-page .site-header > table > tbody > tr:nth-child(2) > td {
    display: block;
    box-sizing: border-box;
    width: auto;
    height: 99px;
    padding: 5px;
  }

  .badge-page .site-header > table > tbody > tr:nth-child(2) > td > table {
    box-sizing: border-box;
    height: 89px;
  }

  .badge-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(even) img {
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
  }

  .badge-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(even) img[src*="menu_tf.svg"] {
    width: 47px;
  }

  .badge-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(even) img[src*="menu_mail.svg"],
  .badge-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(even) img[src*="menu_teleg.svg"] {
    width: 36px;
  }

  .badge-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(even) > table tr {
    height: 44px;
  }

  .badge-page .site-header > table > tbody > tr:last-child {
    display: block;
  }

  .badge-page .site-header > table > tbody > tr:last-child > td:not(:nth-child(2)) {
    display: none;
  }

  .badge-page .site-header > table > tbody > tr:last-child > td:nth-child(2) {
    box-sizing: border-box;
    display: block;
    width: 100%;
    background-color: #fff !important;
    text-align: center;
  }

  .badge-page .site-header > table > tbody > tr:last-child > td:nth-child(2)::after {
    width: calc(100% - 24px);
    box-sizing: border-box;
    display: block;
    height: 2px;
    margin: 6px auto 0;
    background-color: #583748;
    content: "";
  }

  .key-stickers-page .site-header > table > tbody > tr:last-child > td:nth-child(2)::after {
    background-color: #294454;
  }

  .locker-digits-page .site-header > table > tbody > tr:last-child > td:nth-child(2)::after {
    background-color: #3B1761;
  }

  .lock-overlays-page .site-header > table > tbody > tr:last-child > td:nth-child(2)::after {
    background-color: #3B1761;
  }

  .key-tags-page .site-header > table > tbody > tr:last-child > td:nth-child(2)::after {
    background-color: #8A6323;
  }

  .door-tags-page .site-header > table > tbody > tr:last-child > td:nth-child(2)::after {
    background-color: #265257;
  }

  .taped-pocket-pages .site-header > table > tbody > tr:last-child > td:nth-child(2)::after {
    background-color: #893B44;
  }

  .badge-page .site-header .info3BIG {
    font-size: 16px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .badge-page .site-layout > tbody > tr:nth-child(2) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .badge-page .site-sidebar {
    display: none;
  }

  .badge-page .site-content {
    display: block;
    width: auto;
    padding: 12px !important;
  }

  .home-page .site-content > p:first-child {
    margin: 8px 0 16px;
    text-align: center;
  }

  .home-page .home-catalog {
    display: block;
    width: 100%;
    margin: 2px 0;
  }

  .home-page .home-catalog > tbody {
    display: block;
    gap: 8px;
    width: 100%;
  }

  .home-page .home-catalog > tbody > tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 0 8px;
    width: 100%;
    margin-bottom: 0;
  }

  .home-page .home-catalog-intro > tbody > tr:first-child {
    display: block;
    padding-bottom: 24px;
  }

  .home-page .home-catalog-intro > tbody > tr:first-child > td {
    display: none;
  }

  .home-page .home-catalog-intro > tbody > tr:first-child > td:has(> table.rounded-table) {
    display: block;
    box-sizing: border-box;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .home-page .home-catalog > tbody > tr > td {
    display: none;
  }

  .home-page .home-catalog > tbody > tr > td:has(> a > img[src*="ind_"]),
  .home-page .home-catalog > tbody > tr > td:has(> table.rounded-table) {
    display: block;
    box-sizing: border-box;
    min-width: 0;
    width: auto !important;
    flex: 0 0 calc((100% - 16px) / 3);
    padding: 0 4px;
    vertical-align: top;
  }

  .home-page .home-catalog > tbody > tr > td:has(> a > img[src*="ind_"]) {
    text-align: center;
  }

  .home-page .home-catalog > tbody > tr > td > a {
    display: block;
    max-width: 100%;
    width: 100%;
  }

  .home-page .home-catalog > tbody > tr > td > a > img[src*="ind_"] {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
  }

  .home-page .home-catalog > tbody > tr > td > table.rounded-table {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 100%;
    table-layout: fixed;
    overflow-wrap: anywhere;
  }

  .home-page .home-catalog-five:not(.home-catalog-intro) > tbody > tr:has(> td > table.rounded-table),
  .home-page .home-catalog-intro > tbody > tr:last-child:has(> td > table.rounded-table),
  .home-page .home-catalog-three > tbody > tr:has(> td > table.rounded-table) {
    display: none;
  }

  .home-page .site-footer .info3BIG {
    font-size: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .badge-page .category-nav {
    display: block;
    width: 100%;
  }

  .badge-page .category-nav > tbody {
    display: block;
  }

  .badge-page .category-nav > tbody > tr:first-child,
  .badge-page .category-nav > tbody > tr:last-child {
    display: none;
  }

  .badge-page .site-content > .category-nav:not(:has(+ table > tbody > .mobile-top-divider)) > tbody > tr:last-child {
    display: block;
    width: 100%;
  }

  .badge-page .site-content > .category-nav:not(:has(+ table > tbody > .mobile-top-divider)) > tbody > tr:last-child > td {
    display: none;
  }

  .badge-page .site-content > .category-nav:not(:has(+ table > tbody > .mobile-top-divider)) > tbody > tr:last-child > td:first-child {
    display: block;
    width: 100%;
    height: auto;
    padding: 12px 0 0;
  }

  .badge-page .site-content > .category-nav:not(:has(+ table > tbody > .mobile-top-divider)) > tbody > tr:last-child > td:first-child img {
    display: block;
    width: 100%;
    height: 2px;
  }

  .badge-page .category-nav > tbody > tr:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .badge-page .category-nav > tbody > tr:nth-child(2) > td:first-child,
  .badge-page .category-nav > tbody > tr:nth-child(2) > td:last-child {
    display: none;
  }

  .badge-page .category-nav > tbody > tr:nth-child(2) > td {
    display: block;
    width: auto;
    height: auto;
    padding: 4px;
  }

  .badge-page .category-nav > tbody > tr:nth-child(2) img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .badge-page .site-content > .category-nav + table > tbody > .mobile-top-divider {
    display: table-row;
  }

  .badge-page .site-content > .category-nav + table > tbody > .mobile-top-divider img {
    display: block;
    width: 100%;
    height: 2px;
  }

  .badge-page .site-content .mobile-top-divider > td {
    padding-top: 12px;
  }

  .badge-page .site-content > .category-nav + table > tbody > tr:has(> td > a > img[src*="index_"]) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .badge-page .site-content > .category-nav + table > tbody > tr:has(> td > a > img[src*="index_"]) > td {
    display: none;
  }

  .badge-page .site-content > .category-nav + table > tbody > tr:has(> td > a > img[src*="index_"]) > td:has(> a > img[src*="index_"]) {
    display: block;
    box-sizing: border-box;
    width: auto;
    padding: 4px;
  }

  .badge-page .site-content > .category-nav + table > tbody > tr:has(> td > a > img[src*="index_"]) img[src*="index_"] {
    display: block;
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
  }

  .badge-page .site-content > .category-nav + table > tbody > tr:has(> td > a > img[src*="index_6"]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .badge-page .site-content > .category-nav + table > tbody:has(> .mobile-top-divider) > .mobile-top-divider + tr + tr {
    display: block;
    width: 100%;
  }

  .badge-page .site-content > .category-nav + table > tbody:has(> .mobile-top-divider) > .mobile-top-divider + tr + tr > td {
    display: none;
  }

  .badge-page .site-content > .category-nav + table > tbody:has(> .mobile-top-divider) > .mobile-top-divider + tr + tr > td:first-child {
    display: block;
    width: 100%;
    padding: 0;
  }

  .badge-page .site-content > .category-nav + table > tbody:has(> .mobile-top-divider) > .mobile-top-divider + tr + tr > td:first-child img {
    display: block;
    width: 100%;
    height: 2px;
  }

  .badge-page .site-content > h1 {
    margin: 16px 0;
  }

  .badge-page .site-content table {
    max-width: 100%;
  }

  .badge-page .badge-details,
  .badge-page .badge-details > tbody {
    display: block;
    width: 100%;
  }

  .badge-page .badge-details > tbody > tr {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .badge-page .badge-details tr:has(> td > img[src*="pik_"]):not(:has(> td > span, > td > table, > td > a, > td > p, > td > ul)),
  .badge-page .badge-details > tbody > tr:has(> td[height="17"]):not(:has(> td > span, > td > table, > td > a, > td > img, > td > p, > td > ul)) {
    display: none;
  }

  .badge-page .badge-details > tbody > tr > td {
    box-sizing: border-box;
    display: block;
    flex: 1 1 100%;
    width: auto;
    height: auto;
    padding: 6px 0;
  }

  .taped-pocket-pages .badge-details > tbody > tr:has(> .pocket-film-colors):has(> .pocket-film-example) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 600px;
    min-width: 0;
    margin: 0 auto;
  }

  .taped-pocket-pages .pocket-film-description > table.rounded-table {
    width: min(100%, 700px) !important;
  }

  .taped-pocket-pages .pocket-film-second-variant-heading {
    text-align: center;
  }

  .taped-pocket-pages .pocket-size-heading-cell {
    display: none !important;
  }

  .taped-pocket-pages .pocket-size-mobile-title {
    display: block;
    padding: 0 0 4px;
    text-align: center;
  }

  .holder-pocket-pages .holder-pocket-size-heading-cell {
    display: none !important;
  }

  .holder-pocket-pages .holder-pocket-size-mobile-title {
    display: block;
    padding: 0 0 4px;
    text-align: center;
  }

  .taped-pocket-pages .badge-details table.pocket-pricing-table {
    margin-top: 12px;
  }

  .holder-pocket-pages .badge-details table.holder-pocket-pricing-table {
    margin-top: 12px;
  }

  .holder-pocket-pages .badge-details > tbody > tr:has(> td > table.rounded-table):has(> td img[src*="tablichki_derjatel_text1a.jpg"]) > td:has(> table.rounded-table) {
    padding-bottom: 20px;
  }

  .taped-pocket-pages .badge-details > tbody > tr > .pocket-film-colors,
  .taped-pocket-pages .badge-details > tbody > tr > .pocket-film-example {
    display: flex;
    align-items: flex-start;
    min-width: 0;
    max-width: none;
    padding: 6px 0;
  }

  .taped-pocket-pages .badge-details > tbody > tr > .pocket-film-colors {
    flex-direction: column;
    align-items: center;
  }

  .taped-pocket-pages .badge-details > tbody > tr > td.pocket-film-colors-heading {
    display: none !important;
  }

  .taped-pocket-pages .pocket-film-colors-mobile-heading {
    display: block;
    margin-bottom: 6px;
    white-space: nowrap;
    text-align: center;
  }

  .taped-pocket-pages .badge-details > tbody > tr > .pocket-film-example {
    justify-content: flex-start;
  }

  .taped-pocket-pages .badge-details > tbody > tr > .pocket-film-description {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
  }

  .taped-pocket-pages .pocket-film-colors img {
    display: block;
    width: auto !important;
    min-width: 0 !important;
    max-width: 110px !important;
    height: auto !important;
    margin: 0 auto;
  }

  .taped-pocket-pages .pocket-film-example img {
    display: block;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto 0 0;
    box-sizing: border-box;
  }

  .badge-page .badge-details > tbody > tr > .mobile-empty {
    display: none;
  }

  .badge-page .badge-details .badge-size-heading-cell,
  .badge-page .badge-details .badge-size-mobile-title,
  .key-stickers-page .badge-details .key-sticker-size-heading-cell,
  .key-stickers-page .badge-details .key-sticker-size-mobile-title,
  .locker-digits-page .badge-details .locker-digit-size-heading-cell,
  .locker-digits-page .badge-details .locker-digit-size-mobile-title,
  .lock-overlays-page .badge-details .lock-overlay-size-heading-cell,
  .lock-overlays-page .badge-details .lock-overlay-size-mobile-title,
  .key-tags-page .badge-details .key-tag-size-heading-cell,
  .key-tags-page .badge-details .key-tag-size-mobile-title,
  .door-tags-page .badge-details .door-tag-size-heading-cell,
  .door-tags-page .badge-details .door-tag-size-mobile-title {
    display: none;
  }

  .badge-page .badge-details .badge-size-mobile-title,
  .key-stickers-page .badge-details .key-sticker-size-mobile-title,
  .locker-digits-page .badge-details .locker-digit-size-mobile-title,
  .lock-overlays-page .badge-details .lock-overlay-size-mobile-title,
  .key-tags-page .badge-details .key-tag-size-mobile-title,
  .door-tags-page .badge-details .door-tag-size-mobile-title {
    display: block;
    padding: 0 0 4px;
    text-align: center;
  }

  .badge-page .badge-details > tbody > tr > .delivery-divider {
    display: none;
  }

  .badge-page .badge-details table.rounded-table {
    box-sizing: border-box;
    width: min(100%, 600px) !important;
    margin-left: auto;
    margin-right: auto;
  }

  .badge-page .badge-details table.pricing-table.rounded-table {
    margin-top: 16px;
  }

  .locker-digits-page .badge-details table.locker-digit-pricing-table {
    margin-top: 16px;
  }

  .lock-overlays-page .badge-details table.lock-overlay-pricing-table {
    margin-top: 12px;
  }

  .badge-page .badge-details table.one-layer-pricing-table {
    margin-top: 16px;
  }

  .badge-page .badge-details table.two-layer-pricing-table {
    margin-top: 16px;
  }

  .key-tags-page .badge-details table.key-tag-pricing-table {
    margin-top: 12px;
  }

  .door-tags-page .badge-details table.door-tag-pricing-table {
    margin-top: 16px;
  }

  .badge-page .badge-details .two-layer-sizes-cell > table {
    margin-top: 16px;
  }

  .badge-page .badge-details > tbody > tr:has(> td > table.rounded-table) > td:not(.mobile-empty) {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .badge-page .delivery-panel {
    width: min(100%, 600px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;
  }

  .badge-page .badge-details tr:has(+ tr > td > img[src*="pik_"][height="2"]) > td {
    padding-bottom: 2px;
  }

  .badge-page .badge-details tr:has(> td > img[src*="pik_"][height="2"]):not(:has(> td > span, > td > table, > td > a, > td > p, > td > ul)) + tr > td {
    padding-top: 2px;
  }

  .badge-page .badge-details > tbody > tr > td.one-layer-howto-cell {
    padding-top: 18px !important;
  }

  .badge-page .badge-details > tbody > tr > td.two-layer-section-heading {
    padding: 18px 0 2px !important;
  }

  .badge-page .badge-details span[style*="min-width"] {
    display: block;
    min-width: 0 !important;
    max-width: 100%;
  }

  .badge-page .badge-details .pik {
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
  }

  .badge-page .badge-details img[src*="badge_text1a.jpg"],
  .badge-page .badge-details img[src*="badge_text2a.jpg"] {
    max-width: min(100%, 350px);
  }

  .badge-page .badge-details img[src*="baje.svg"] {
    max-width: min(100%, 600px);
  }

  .badge-page .badge-details > tbody > tr:has(> td img[src*="badge_text2a.jpg"]) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .badge-page .badge-details > tbody > tr:has(> td img[src*="badge_text2a.jpg"]) > td:first-child,
  .badge-page .badge-details > tbody > tr:has(> td img[src*="badge_text2a.jpg"]) > td:last-child {
    display: none;
  }

  .badge-page .badge-details > tbody > tr:has(> td img[src*="badge_text2a.jpg"]) > td:nth-child(2) {
    display: contents;
  }

  .badge-page .badge-details > tbody > tr:has(> td img[src*="badge_text2a.jpg"]) > td:nth-child(2) > table,
  .badge-page .badge-details > tbody > tr:has(> td img[src*="badge_text2a.jpg"]) > td:nth-child(2) > table > tbody,
  .badge-page .badge-details > tbody > tr:has(> td img[src*="badge_text2a.jpg"]) > td:nth-child(2) > table > tbody > tr {
    display: contents;
  }

  .badge-page .badge-details > tbody > tr:has(> td img[src*="badge_text2a.jpg"]) > td:nth-child(2) > table > tbody > tr > td:first-child {
    flex: 1 1 100%;
    order: 1;
    width: 100%;
    padding: 0;
  }

  .badge-page .badge-details > tbody > tr:has(> td img[src*="badge_text2a.jpg"]) img[src*="badge_reza.jpg"] {
    max-width: min(100%, 169px);
  }

  .badge-page .badge-details > tbody > tr:has(> td img[src*="badge_text2a.jpg"]) > td:nth-child(2) > table > tbody > tr > td:last-child,
  .badge-page .badge-details > tbody > tr:has(> td img[src*="badge_text2a.jpg"]) > td:nth-child(3) {
    box-sizing: border-box;
    flex: 0 1 auto;
    width: auto;
    max-width: calc(50% - 4px);
    padding: 0;
  }

  .badge-page .badge-details > tbody > tr:has(> td img[src*="badge_text2a.jpg"]) > td:nth-child(2) > table > tbody > tr > td:last-child {
    order: 2;
  }

  .badge-page .badge-details > tbody > tr:has(> td img[src*="badge_text2a.jpg"]) > td:nth-child(3) {
    order: 3;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 92px;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(2),
  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(8) {
    display: none;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(4),
  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(6) {
    height: 92px;
    padding: 3px;
    text-align: center;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(4) > table,
  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(6) > table {
    height: 88px;
    width: min(333px, calc(100vw - 24px)) !important;
    margin: 0 auto;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(4) > table {
    display: table;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(4) > table td,
  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(6) > table td {
    box-sizing: border-box;
    width: auto !important;
    text-align: center;
    padding: 0;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(4) > table td:last-child {
    text-align: left;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(4) > table > tbody > tr:first-child > td:first-child {
    height: 73px;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(4) > table > tbody > tr > td:last-child {
    height: 36px;
    line-height: 36px;
    padding-left: 2px;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(4) > table > tbody > tr:first-child > td:last-child {
    top: 2.5px;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(4) > table > tbody > tr:nth-child(2) > td:last-child {
    top: -2.5px;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(4) > table td {
    position: relative;
    left: clamp(0px, calc((100% - 215px) / 2), 21px);
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(6) > table {
    display: grid;
    grid-template-columns: 36px 10px max-content;
    align-content: center;
    justify-content: center;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(6) > table > tbody,
  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(6) > table > tbody > tr {
    display: contents;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(6) > table td {
    box-sizing: border-box;
    height: 36px;
    padding: 0;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(6) > table td:first-child {
    grid-column: 1;
  }

  .badge-page.test-page .site-header > table > tbody > tr:nth-child(2) > td:nth-child(6) > table td:last-child {
    grid-column: 3;
    display: flex;
    align-items: center;
    position: relative;
    top: 5px;
    text-align: left;
  }

  .badge-page .pricing-table {
    display: table;
    width: 100%;
    table-layout: fixed;
  }

  .badge-page .pricing-table th,
  .badge-page .pricing-table td {
    overflow-wrap: anywhere;
    padding: 4px 2px;
  }

  .badge-page #photo-gallery-block {
    width: 100%;
  }

  .badge-page #badgeTable {
    display: block;
    width: 100%;
    overflow: visible;
  }

  .badge-page #badgeTable caption {
    display: block;
    width: 100%;
  }

  .badge-page #badgeTable > tbody {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 8px;
    width: 100%;
  }

  .badge-page #badgeTable > tbody > tr {
    display: contents;
  }

  .badge-page #badgeTable td {
    display: none;
  }

  .badge-page #badgeTable td:has(> a) {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    padding: 4px;
  }

  .badge-page #badgeTable td > a {
    display: block;
    max-width: 100%;
  }

  .badge-page #badgeTable .pik {
    width: auto;
    min-width: 0;
    max-width: 100%;
    max-height: 60vh;
    height: auto;
    margin: 0 auto;
  }

  .badge-page #badgeTable .pik[width="200"] {
    max-width: min(100%, 200px);
  }

  .badge-page #badgeTable .pik[width="155"] {
    max-width: min(100%, 155px);
  }

  .badge-page .site-footer {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }

  .badge-page .site-footer > tbody {
    display: block;
  }

  .badge-page .site-footer > tbody > tr:first-child,
  .badge-page .site-footer > tbody > tr:last-child {
    display: none;
  }

  .badge-page .site-footer > tbody > tr:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .badge-page .site-footer > tbody > tr:nth-child(2) > td:nth-child(odd) {
    display: none;
  }

  .badge-page .site-footer > tbody > tr:nth-child(2) > td {
    display: block;
    width: auto;
    padding: 4px;
  }

  .badge-page .site-footer > tbody > tr:nth-child(2) > td:nth-child(6) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 300px);
  }

  .badge-page .site-footer > tbody > tr:nth-child(2) > td:nth-child(6) > table {
    display: block;
    width: 100%;
  }

  .badge-page .site-footer > tbody > tr:nth-child(2) > td:nth-child(6) > table > tbody {
    display: grid;
    grid-template-columns: 42px max-content;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .badge-page .site-footer > tbody > tr:nth-child(2) > td:nth-child(6) > table > tbody > tr {
    display: contents;
  }

  .badge-page .site-footer > tbody > tr:nth-child(2) > td:nth-child(6) > table td:first-child {
    display: block;
    width: 42px;
  }

  .badge-page .site-footer > tbody > tr:nth-child(2) > td:nth-child(6) > table td:last-child {
    display: block;
    width: auto;
    text-align: left;
    padding-left: 4px;
  }

  .badge-page #photoModal {
    box-sizing: border-box;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: 92dvh;
    padding: 16px;
  }

  .badge-page #modalImg {
    max-height: 68dvh !important;
  }

  .badge-page #modalCaption {
    font-size: 14px !important;
  }

  .badge-page .modal-controls {
    flex-wrap: wrap;
    justify-content: center !important;
    gap: 12px !important;
  }
}

@media (min-width: 1101px) {
  .badge-page .site-header img.pikMENU[src*="menu101.svg"] {
    width: 137px;
    min-width: 137px;
  }

  .badge-page .site-header img.pikMENU[src*="menu_tf.svg"] {
    width: 36px;
    min-width: 36px;
  }

  .badge-page .site-header img.pikMENU[src*="menu_mail.svg"],
  .badge-page .site-header img.pikMENU[src*="menu_teleg.svg"] {
    width: 28px;
    min-width: 28px;
  }

  .badge-page .site-header img.pikMENU[src*="menu_dost.svg"] {
    width: 64px;
    min-width: 64px;
  }
}

@media (max-width: 600px) {
  .badge-page #badgeTable > tbody {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .badge-page #badgeTable > tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .home-catalog > tbody > tr > td:has(> a > img[src*="ind_"]),
  .home-page .home-catalog > tbody > tr > td:has(> table.rounded-table) {
    flex-basis: calc((100% - 8px) / 2);
  }

  .badge-page .modal-controls #modalCaption {
    order: -1;
    flex: 0 0 100%;
  }

  .badge-page .modal-btn {
    padding: 10px 14px !important;
  }
}
