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

  body {
    -webkit-text-size-adjust: 100%;
  }

  [data-screen-label] {
    max-width: 100vw;
    overflow-x: hidden;
  }

  header {
    position: static !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 14px 20px !important;
  }

  header > a,
  header > a img {
    max-width: 100% !important;
  }

  header > a img {
    width: 184px !important;
    height: auto !important;
  }

  header nav {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 14px !important;
  }

  header nav a {
    font-size: 13px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  header nav a:last-child {
    width: 100% !important;
    margin-top: 2px !important;
    padding: 10px 12px !important;
    text-align: center !important;
    border-radius: 8px !important;
  }

  section,
  footer {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  section {
    padding-top: 46px !important;
    padding-bottom: 46px !important;
  }

  footer {
    padding-top: 44px !important;
    padding-bottom: 28px !important;
  }

  h1 {
    font-size: 32px !important;
    line-height: 1.16 !important;
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: 24px !important;
    line-height: 1.22 !important;
  }

  h3 {
    line-height: 1.28 !important;
  }

  p,
  li {
    overflow-wrap: anywhere;
  }

  img,
  video,
  canvas,
  svg {
    max-width: 100% !important;
  }

  figure {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  [style*="display:grid"] {
    gap: 18px !important;
  }

  [style*="display:flex"][style*="justify-content:space-between"],
  [style*="display:flex"][style*="align-items:flex-start"] {
    flex-direction: column !important;
  }

  [style*="display:flex"][style*="justify-content:center"] {
    flex-wrap: wrap !important;
  }

  [style*="max-width:1280px"],
  [style*="max-width:1180px"],
  [style*="max-width:1080px"],
  [style*="max-width:1000px"],
  [style*="max-width:820px"],
  [style*="max-width:780px"],
  [style*="max-width:760px"],
  [style*="max-width:720px"],
  [style*="max-width:680px"],
  [style*="max-width:640px"] {
    max-width: 100% !important;
  }

  form {
    padding: 24px 18px !important;
    border-radius: 12px !important;
    gap: 26px !important;
  }

  input,
  select,
  textarea,
  button {
    width: 100% !important;
    max-width: 100% !important;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  a[style*="display:inline-block"],
  button {
    white-space: normal !important;
  }
}

@media (max-width: 560px) {
  header {
    padding: 12px 16px !important;
  }

  header nav {
    gap: 8px 12px !important;
  }

  header nav a {
    font-size: 12px !important;
  }

  section,
  footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  section {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }

  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 22px !important;
  }

  p,
  li {
    font-size: 15px !important;
  }

  [style*="padding:40px"],
  [style*="padding:34px"],
  [style*="padding:32px"],
  [style*="padding:28px"],
  [style*="padding:24px"] {
    padding: 20px !important;
  }

  [style*="gap:56px"],
  [style*="gap:48px"],
  [style*="gap:36px"],
  [style*="gap:32px"],
  [style*="gap:28px"],
  [style*="gap:24px"] {
    gap: 18px !important;
  }
}
