.header:not(:has(.mobile-menu-overlay)) {
  padding: 1rem 5%;
  margin-top: 8rem;
}
.ad {
  display: grid;
  grid-template-columns: 0.7fr 0.3fr;
  gap: 3rem;
}
.ad img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.adv {
  margin: 3rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.adv > div {
  border: 1px solid #000;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg, #fff);
}
.adv div .cont {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.3rem;
  border: 0;
}
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 820px) {
  body[data-current-page="home"] {
    overflow-x: hidden;
  }

  .header {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: 2rem 1rem;
    gap: 1rem;
  }

  .ad {
    grid-template-columns: 1fr;
    height: auto;
    gap: 1rem;
  }
  .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    animation: none;
  }
  .adv {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 8px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .adv > div {
    min-width: 140px;
    width: 45vw;
    max-width: 180px;
    padding: 0.75rem;
    min-height: 110px;
    flex: 0 0 auto;
    flex-direction: column;
    text-align: center;
  }

  .adv div .cont {
    align-items: center;
    text-align: center;
  }
  .adv::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
  }
}
