.ads-section {
  padding: 12px 0 4px;
}

.ads-section .container {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  padding: 12px 10px 10px;
}

.ads-label {
  margin: 0 0 8px;
  text-align: center;
  font-size: 12px;
  color: #b7c4e6;
  letter-spacing: 0.2px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 14px;
  background: transparent;
  margin: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  box-sizing: border-box;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 18px;
  padding: 2px;
}

#ads img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #fff, #f4f7ff);
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 26px rgba(47, 107, 255, 0.35);
  border-color: rgba(42, 209, 255, 0.55);
}

#ads figcaption,
#ads .caption {
  height: 16px;
  margin-top: 6px;
  font-size: 11px;
  color: #b7c4e6;
  text-align: center;
  max-width: 78px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 780px) {
  #ads {
    gap: 12px 10px;
  }

  #ads > div {
    width: 74px;
  }

  #ads img {
    width: 68px;
    height: 68px;
  }
}
