.qm-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1f;
  cursor: pointer;
}

.qm-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.qm-menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.qm-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.qm-menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.qm-reels {
  display: flex;
  width: 100% !important;
  box-sizing: border-box;
  gap: 20px;
  padding: 0 22px 28px;
  overflow-x: auto;
}

.qm-reels a {
  min-width: 0;
  width: clamp(220px, 18vw, 270px);
  flex: 0 0 auto !important;
  color: #fff !important;
}

.qm-reels.is-carousel {
  display: block;
  padding: 0 0 28px;
  overflow: hidden;
}

.qm-reels-track {
  display: flex;
  width: max-content;
  animation: qm-reels-scroll 45s linear infinite;
}

.qm-reels-group {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  min-width: 100vw;
  box-sizing: border-box;
  padding-right: 20px;
}

@keyframes qm-reels-scroll {
  to { transform: translateX(-50%); }
}

.qm-reels:hover .qm-reels-track,
.qm-reels:focus-within .qm-reels-track,
.qm-reels.is-paused .qm-reels-track {
  animation-play-state: paused;
}

.qm-reels-toggle {
  position: relative;
  display: block;
  margin: 0 auto;
  padding: 9px 18px;
  border: 1px solid #ffffff80;
  border-radius: 999px;
  background: #14161e80;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.qm-reels a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
  border-radius: 46px;
}

.qm-phone {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 270px;
  box-sizing: border-box;
  aspect-ratio: 9 / 19.5;
  margin-inline: auto;
  padding: 6px;
  border: 3px solid #737577;
  border-radius: 46px !important;
  background: #111 !important;
  box-shadow: 0 18px 28px #0005, inset 0 0 0 2px #292929;
  overflow: hidden;
}

.qm-phone > img {
  height: 100%;
  aspect-ratio: auto !important;
  object-fit: cover;
  border-radius: 36px !important;
}

.qm-phone::before,
.qm-phone::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.qm-phone::before {
  top: 16px;
  width: 30%;
  height: 21px;
  border-radius: 20px;
  background: radial-gradient(circle at 85% 50%, #182c49 0 3px, #080808 4px);
}

.qm-phone::after {
  bottom: 16px;
  width: 36%;
  height: 4px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 3px #0008;
}

.qm-phone-featured {
  flex: 0 0 auto;
  max-width: 100%;
  margin-bottom: -140px;
}

.qm-ig {
  position: absolute;
  inset: 6px;
  border-radius: 36px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(#0003, transparent 22%, transparent 45%, #000b);
  pointer-events: none;
  font-size: 10px;
  line-height: 1.3;
  text-align: left;
  text-shadow: 0 1px 3px #0009;
}

.qm-ig svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.qm-ig-status {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px 0;
  font-size: 9px;
  font-weight: 700;
}

.qm-ig-actions {
  position: absolute;
  right: 10px;
  bottom: 112px;
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.qm-ig-info {
  position: absolute;
  right: 12px;
  bottom: 53px;
  left: 12px;
}

.qm-ig-account {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qm-ig-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: #1d1d1f;
  text-shadow: none;
  font-size: 8px;
  font-weight: 700;
}

.qm-ig-account strong {
  display: block;
  font-size: 10px;
}

.qm-ig-account small {
  font-size: 8px;
}

.qm-ig-follow {
  margin-left: auto;
  padding: 3px 5px;
  border: 1px solid #fffb;
  border-radius: 5px;
  font-size: 9px;
}

.qm-ig-caption {
  margin: 13px 0 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.qm-ig-nav {
  position: absolute;
  right: 12px;
  bottom: 13px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 35px;
  border: 1px solid #ffffff26;
  border-radius: 24px;
  background: #1d1d1fea;
}

.qm-ig-nav svg {
  width: 17px;
  height: 17px;
}

.qm-ig-nav .qm-ig-selected {
  padding: 5px 10px;
  border-radius: 20px;
  background: #ffffff26;
}

.qm-ads-devices {
  position: relative;
  container-type: inline-size;
  flex: 0 0 auto;
  width: 100%;
  max-width: 453px;
  aspect-ratio: 453 / 282;
  margin: auto 0 22px;
  border-top: 66px solid transparent;
  text-align: left;
  letter-spacing: 0;
  line-height: 1.2;
}

.qm-ads-laptop {
  position: absolute;
  top: 2%;
  left: 5%;
  width: 82%;
  height: 88%;
  box-sizing: border-box;
  padding: 1.8%;
  border: 0.45cqw solid #38383a;
  border-radius: 3.8cqw 3.8cqw 0 0;
  background: #1d1d1f;
}

.qm-ads-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 0.8cqw;
  background: #eff0f2;
}

.qm-ads-post {
  width: 82%;
  margin: 4% 0 0 18%;
  overflow: hidden;
  border-radius: 2.5cqw 2.5cqw 0 0;
  background: #fff;
  font-size: 1.95cqw;
}

.qm-ads-brand {
  display: flex;
  align-items: center;
  gap: 1.5cqw;
  padding: 1.8cqw 2.2cqw;
  font-size: 2.1cqw;
  font-weight: 500;
}

.qm-ads-brand > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 4.8cqw;
  height: 4.8cqw;
  border-radius: 50%;
  background: #1d1d1f;
  color: #fff;
  font-size: 1.5cqw;
  font-weight: 700;
}

.qm-ads-brand small {
  display: block;
  color: #6e6e73;
  font-size: 0.85em;
  font-weight: 400;
}

.qm-ads-post p {
  margin: 0;
  padding: 0 2.2cqw 2cqw;
  white-space: nowrap;
}

.qm-ads-post > img {
  display: block;
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
}

.qm-ads-action {
  padding: 1.8cqw 2.2cqw;
  background: #f1f1f5;
  font-size: 1.9cqw;
}

.qm-ads-base {
  position: absolute;
  left: 0;
  bottom: 6.4%;
  width: 90%;
  height: 4.3%;
  border-radius: 0 0 3cqw 3cqw;
  background: #d2d2d7;
}

.qm-ads-base::after {
  content: "";
  display: block;
  width: 19%;
  height: 45%;
  margin-inline: auto;
  border-radius: 0 0 1cqw 1cqw;
  background: #b8b8bd;
}

.qm-ads-mobile {
  position: absolute;
  top: 0;
  right: 0;
  width: 30.5%;
  height: 100%;
  box-sizing: border-box;
  padding: 6.3% 0 0;
  overflow: hidden;
  border: 1.5cqw solid #222;
  border-radius: 6.8cqw;
  background: #fff;
  box-shadow: 0 0 0 0.4cqw #555, 0 4cqw 7cqw #0003;
}

.qm-ads-mobile::before {
  content: "";
  position: absolute;
  top: 1.7cqw;
  left: 50%;
  width: 10.5cqw;
  height: 2.5cqw;
  transform: translateX(-50%);
  border-radius: 2cqw;
  background: #000;
}

.qm-ads-mobile .qm-ads-brand {
  gap: 1.2cqw;
  padding: 1cqw 1.5cqw;
  font-size: 1.65cqw;
}

.qm-ads-mobile .qm-ads-brand > span {
  width: 4cqw;
  height: 4cqw;
  font-size: 1.3cqw;
}

.qm-ads-mobile > img {
  display: block;
  width: 100%;
  aspect-ratio: 0.81;
  object-fit: cover;
}

.qm-ads-mobile .qm-ads-action {
  display: flex;
  justify-content: space-between;
  padding: 1.5cqw;
  font-size: 1.45cqw;
}

.qm-ads-mobile .qm-ads-action > span {
  color: #0071e3;
}

@media (prefers-reduced-motion: reduce) {
  .qm-reels.is-carousel { overflow-x: auto; }
  .qm-reels-track { animation: none; }
  .qm-reels-group[aria-hidden="true"],
  .qm-reels-toggle { display: none; }
}

section[id]:not(.qm-page) {
  scroll-margin-top: 64px;
}

@media (max-width: 760px) {
  .qm-head {
    position: relative;
    flex-wrap: wrap !important;
  }

  .qm-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .qm-head .qm-nav {
    display: flex !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: calc(100svh - 72px);
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 0 12px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    white-space: normal !important;
  }

  .qm-head.has-mobile-menu:not(.is-open) .qm-nav {
    display: none !important;
  }

  .qm-head .qm-nav > a {
    display: block;
    padding: 13px 4px;
    border-top: 1px solid #e5e5ea;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qm-menu-toggle span {
    transition: none;
  }
}
.qm-credit {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: #6e6e73;
  font-size: 12px;
  line-height: 1.6;
}

.qm-credit a {
  color: #1d1d1f;
  font-weight: 600;
  text-underline-offset: 3px;
}

#contact-form a {
  overflow-wrap: anywhere;
}

#contact-form button:disabled {
  opacity: 0.65;
  cursor: wait !important;
}

#contact-recovery {
  padding: 16px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  font-size: 14px;
}

#contact-retry {
  padding: 0;
  border: 0;
  background: none;
  color: #0071e3;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
