@media (max-width: 768px) {
  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  header nav {
    display: none !important;
  }

  #lab-root {
    overflow-x: hidden;
  }

  #lab-root * {
    box-sizing: border-box;
    max-width: 100%;
  }

  /* Все большие сетки — в одну колонку */
  #lab-root div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Все flex-блоки — разрешаем перенос */
  #lab-root div[style*="display: flex"] {
    flex-wrap: wrap !important;
  }

  /* Главный экран */
  #lab-root section,
  #lab-root header,
  #lab-root footer,
  #lab-root div[style*="padding: 104px"],
  #lab-root div[style*="padding: 92px"],
  #lab-root div[style*="padding: 80px"],
  #lab-root div[style*="padding: 72px"] {
    padding: 20px !important;
  }

  /* Заголовки */
  #lab-root h1 {
    font-size: 42px !important;
    line-height: 1.08 !important;
  }

  #lab-root h2 {
    font-size: 30px !important;
    line-height: 1.18 !important;
  }

  #lab-root h3 {
    font-size: 24px !important;
  }

  #lab-root p {
    font-size: 16px !important;
  }

  /* Крупные цифры */
  #lab-root div[data-count] {
    font-size: 54px !important;
    text-align: left !important;
  }

  /* Блоки с выравниванием вправо */
  #lab-root div[style*="text-align: right"] {
    text-align: left !important;
  }

  /* Карточки и формы */
  #lab-root form,
  #lab-root div[style*="border-radius: 24px"],
  #lab-root div[style*="border-radius: 28px"],
  #lab-root div[style*="border-radius: 32px"] {
    padding: 24px 20px !important;
  }

  /* Кнопки */
  #lab-root a {
    max-width: 100%;
  }

  #lab-root a[style*="border-radius: 999px"] {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Поля формы */
  #lab-root input,
  #lab-root textarea,
  #lab-root select,
  #lab-root button {
    width: 100% !important;
    max-width: 100% !important;
  }

  img[data-dc-tpl="21"] {
    display: none !important;
  }
  div[data-dc-tpl="58"] {
    margin-left: 0 !important;
  }
  div[data-dc-tpl="88"] > div,
  div[data-dc-tpl="109"] > div,
  div[data-dc-tpl="222"] > div,
  div[data-dc-tpl="247"] > div,
  div[data-dc-tpl="361"] > div {
    padding-left: 0 !important;
    border-right: none !important;
    border-left: none !important;
  }
  div[data-dc-tpl="170"] {
    white-space: normal !important;
  }
  div[data-dc-tpl="399"] {
    margin: 0 -35px !important;
    max-width: none !important;
  }
}