html,
body {
  overflow-x: hidden;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

section {
  scroll-margin-top: 76px;
}

.message-example {
  border: 1px solid rgba(93, 63, 211, .14);
  overflow: hidden;
}

a[style*="background:var(--brand-purple)"]:hover,
a[style*="background: var(--brand-purple)"]:hover,
a[style*="color:var(--brand-purple)"][style*="border"]:hover,
a[style*="color: var(--brand-purple)"][style*="border"]:hover {
  background: #3f22b8 !important;
  border-color: #3f22b8 !important;
  color: #fff !important;
}

a[style*="background:var(--brand-purple)"]:hover svg,
a[style*="background: var(--brand-purple)"]:hover svg,
a[style*="color:var(--brand-purple)"][style*="border"]:hover svg,
a[style*="color: var(--brand-purple)"][style*="border"]:hover svg {
  color: #fff !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

@media (max-width: 899px) {
  body > div {
    width: 100% !important;
    overflow: hidden !important;
  }

  h1,
  h2,
  h3,
  p,
  a,
  button,
  span {
    max-width: 100% !important;
    overflow-wrap: break-word;
  }

  header > div {
    padding: 10px 16px !important;
    gap: 12px !important;
  }

  header a[href="#top"] {
    min-width: 0 !important;
  }

  header a[href="#top"] > span:first-child {
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
    flex: none !important;
  }

  header a[href="#top"] > span:last-child {
    max-width: calc(100vw - 150px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 18px !important;
  }

  header a[href*="t.me"] {
    padding: 10px 12px !important;
    min-width: 42px !important;
    justify-content: center !important;
    font-size: 0 !important;
    gap: 0 !important;
  }

  header a[href*="t.me"] svg {
    width: 19px !important;
    height: 19px !important;
  }

  div[style*="position:fixed"][style*="bottom:18px"],
  div[style*="position: fixed"][style*="z-index: 100"] {
    display: none !important;
    right: 12px !important;
    bottom: 12px !important;
    padding: 6px 8px !important;
    gap: 6px !important;
    border-radius: 10px !important;
    transform: scale(.92);
    transform-origin: right bottom;
  }

  section,
  footer > div,
  div[style*="max-width:1200px"] {
    max-width: 100% !important;
  }

  section[style*="padding:80px"],
  section > div[style*="padding:80px"],
  section[style*="padding:80px 24px"],
  section > div[style*="padding:80px 24px"] {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  #hero {
    padding: 22px 14px 12px !important;
    overflow: hidden !important;
    max-width: 100vw !important;
  }

  #hero div[style*="text-align:center"] {
    padding: 22px 4px 8px !important;
    width: 100% !important;
    max-width: calc(100vw - 28px) !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  #hero div[style*="text-align:center"] > span:first-child {
    max-width: calc(100vw - 44px) !important;
    white-space: normal !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 18px !important;
  }

  #hero div[style*="display:flex"][style*="flex-wrap:wrap"] {
    max-width: calc(100vw - 36px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  h1,
  section h1[style],
  #hero h1[style] {
    font-size: clamp(30px, 9vw, 36px) !important;
    line-height: 1.06 !important;
    letter-spacing: 0 !important;
    width: 100% !important;
    max-width: calc(100vw - 36px) !important;
    overflow-wrap: anywhere !important;
  }

  #hero p {
    max-width: calc(100vw - 44px) !important;
    overflow-wrap: break-word !important;
  }

  h2,
  section h2[style] {
    font-size: clamp(28px, 8vw, 34px) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
  }

  h3,
  section h3[style] {
    font-size: 20px !important;
    line-height: 1.2 !important;
  }

  p,
  section p[style] {
    font-size: 16px !important;
    line-height: 25px !important;
  }

  section span[style*="text-transform:uppercase"] {
    line-height: 1.35 !important;
  }

  div[style*="display:grid"],
  div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  div[style*="grid-template-columns:1fr 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"],
  div[style*="grid-template-columns:repeat(auto-fill,minmax(200px,1fr))"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  div[style*="grid-template-columns:repeat(4,1fr)"],
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="grid-template-columns:repeat(auto-fill,minmax(330px,1fr))"],
  div[style*="grid-template-columns:repeat(auto-fill,minmax(320px,1fr))"],
  div[style*="grid-template-columns:repeat(auto-fill,minmax(270px,1fr))"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(330px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(320px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(270px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  div[style*="grid-template-columns:repeat(auto-fill,minmax(330px,1fr))"] > div,
  div[style*="grid-template-columns:repeat(auto-fill,minmax(320px,1fr))"] > *,
  div[style*="grid-template-columns:repeat(auto-fill,minmax(270px,1fr))"] > div,
  div[style*="grid-template-columns: repeat(auto-fill, minmax(330px, 1fr))"] > div,
  div[style*="grid-template-columns: repeat(auto-fill, minmax(320px, 1fr))"] > *,
  div[style*="grid-template-columns: repeat(auto-fill, minmax(270px, 1fr))"] > div,
  #categories div[style*="grid-template-columns:repeat(auto-fill,minmax(200px,1fr))"] > div,
  #categories div[style*="grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))"] > div {
    padding: 22px !important;
    border-radius: 16px !important;
  }

  #categories div[style*="grid-template-columns:repeat(auto-fill,minmax(200px,1fr))"] > div,
  #categories div[style*="grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))"] > div {
    min-height: 132px !important;
  }

  #categories span[style*="font:600 16px"] {
    line-height: 21px !important;
  }

  section a[href*="t.me"],
  section a[href^="#"] {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 15px 18px !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
  }

  section div[style*="display:flex"][style*="flex-wrap:wrap"][style*="gap:14px"] {
    gap: 10px !important;
  }

  section div[style*="display:flex"][style*="flex-wrap:wrap"] > span {
    width: 100% !important;
    justify-content: flex-start !important;
    white-space: normal !important;
    line-height: 20px !important;
  }

  #hero div[style*="justify-content:center"][style*="margin-top:28px"] > span {
    width: auto !important;
  }

  #situations div[style*="position:sticky"],
  #situations div[style*="position: sticky"] {
    position: static !important;
    top: auto !important;
    padding: 26px 22px !important;
    border-radius: 20px !important;
  }

  #situations button {
    min-height: 54px !important;
    line-height: 1.25 !important;
  }

  section div[style*="background:#fff"][style*="border:1px solid"][style*="border-radius:24px"][style*="padding:36px"],
  section div[style*="background: rgb(255, 255, 255)"][style*="border: 1px solid"][style*="border-radius: 24px"][style*="padding: 36px"] {
    padding: 24px !important;
    border-radius: 18px !important;
  }

  .message-example {
    padding: 18px 20px !important;
    border-radius: 16px !important;
  }

  #faq > div {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  #faq h2 {
    text-align: left !important;
  }

  #faq div[style*="border-radius:16px"][style*="padding:22px 26px"] {
    padding: 18px !important;
  }

  #faq button span:first-child {
    font-size: 16px !important;
    line-height: 22px !important;
  }

  #reviews > div {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -18px !important;
    margin-right: -18px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    padding-bottom: 10px !important;
  }

  #reviews > div::-webkit-scrollbar {
    display: none;
  }

  #reviews > div > * {
    flex: 0 0 min(82vw, 320px) !important;
    scroll-snap-align: start;
  }

  section div.ac-track[style*="border-radius:40px"] {
    padding: 34px 20px !important;
    border-radius: 24px !important;
  }

  section div.ac-track[style*="text-align:center"] p:last-child {
    font-size: 13px !important;
    line-height: 20px !important;
  }

  footer > div {
    padding: 28px 18px !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
}

@media (max-width: 430px) {
  section[style*="padding:80px"],
  section > div[style*="padding:80px"],
  section[style*="padding:80px 24px"],
  section > div[style*="padding:80px 24px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #hero {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  div[style*="grid-template-columns:1fr 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"],
  div[style*="grid-template-columns:repeat(auto-fill,minmax(200px,1fr))"],
  div[style*="grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  #hero div[style*="grid-template-columns:1fr 1fr 1fr"],
  #hero div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  #hero div[style*="aspect-ratio:1"] {
    padding: 14px !important;
    border-radius: 16px !important;
  }

}

@media (min-width: 900px) and (max-width: 1120px) {
  header > div {
    gap: 16px !important;
  }

  .ac-nav {
    gap: 16px !important;
  }

  #hero > sc-if > div {
    gap: 32px !important;
    padding: 46px !important;
  }

  #how div[style*="grid-template-columns:repeat(4,1fr)"],
  #how div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
