/* full width section */
.expofy-partners{
  width: 100%;
  padding: 30px 0;
  border-top: 1px solid rgba(0,0,0,.08);
  position: relative;
}

/* inner container */
.expofy-partners__inner{
  width: min(1200px, 92vw);
  margin: 0 40px;
}

/* title */
.expofy-partners__title{
  margin: 0 0 16px;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.2;
}

/* FLEX grid: wraps automatically */
.expofy-partners__grid{
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: stretch;
}

/* item/card size:
   desktop: 6–8 per row by using clamp width */
.expofy-partner{
  flex: 0 0 auto;
  width: clamp(135px, 12vw, 165px);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

/* link fills the card */
.expofy-partner__link{
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* hover */
.expofy-partner:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

/* image area (smaller + centered) */
.expofy-partner__image{
  padding: 10px;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* logo itself */
.expofy-partner__image img{
  max-width: 100%;
  max-height: 75px;  
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* hide text content (как у вас) */
.expofy-partner__content{
  display: none;
}

/* focus for accessibility */
.expofy-partner__link:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 12px;
}

/* =========
   TABLET: 4 per row
   ========= */
@media (max-width: 1024px){
  .expofy-partners{ padding: 28px 0; }
  .expofy-partners__grid{ gap: 12px; }

  .expofy-partner{
    width: calc(25% - 12px); /* 4 в ряд */
  }

  .expofy-partner__image{
    min-height: 68px;
    padding: 10px;
  }

  .expofy-partner__image img{
    max-height: 32px;
  }
}

/* ========
   MOBILE: 2 per row
   ======== */
@media (max-width: 720px){
  .expofy-partners{ padding: 22px 0; }
  .expofy-partners__grid{ gap: 10px; }

  .expofy-partner{
    width: calc(50% - 10px); /* 2 в ряд */
  }

  .expofy-partner__image{
    min-height: 62px;
    padding: 10px;
  }

  .expofy-partner__image img{
    max-height: 28px;
  }
}

/* very small screens: still 2 per row, but tighter */
@media (max-width: 420px) {
  .expofy-partners__grid{ gap: 8px; }
  .expofy-partner{
    width: calc(50% - 8px);
  }
}

.single-partner #block-2,
.single-partner .widget_categories {
    display: none;
}

.single-partner .widget-area .widget {
    padding: 10px !important;
}