/* Photo service row — staggered portraits, title on the right */
.iqServices {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 56px 0 28px;
  background: #ffffff;
  font-family: var(--iq-font);
  box-sizing: border-box;
}


.iqServices__board {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.iqServices__head {
  order: -1;
  width: 100%;
  margin: 0 0 28px;
  padding: 0;
  text-align: center;
}

.iqServices__title {
  margin: 0;
  color: #12161d;
  font-family: var(--iq-font);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.3;
}

.iqServices__sub {
  margin: 10px 0 0;
  color: #5d6b7c;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.iqServices__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  width: 100%;
}

.iqServices__item {
  position: relative;
  display: block;
  height: 420px;
  margin-top: 56px;
  overflow: hidden;
  border-radius: 22px;
  background: #d7e2ec;
  box-shadow: 0 16px 36px rgba(12, 26, 54, 0.12);
  text-decoration: none !important;
}

.iqServices__item--up {
  height: 420px;
  margin-top: 0;
}

.iqServices__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.iqServices__item:hover img,
.iqServices__item:focus-visible img {
  transform: scale(1.04);
}

.iqServices__pill {
  position: absolute;
  z-index: 1;
  max-width: calc(100% - 20px);
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #1a2433;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 18px rgba(12, 26, 54, 0.12);
}

.iqServices__pill--top {
  top: 16px;
  left: 14px;
}

.iqServices__pill--mid {
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
}

.iqServices__pill--bottom {
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: max-content;
}

@media (max-width: 980px) {
  .iqServices {
    padding: 36px 0 24px;
  }

  .iqServices__head {
    margin-bottom: 20px;
  }

  .iqServices__item,
  .iqServices__item--up {
    height: 280px;
  }

  .iqServices__item {
    margin-top: 28px;
  }

  .iqServices__item--up {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .iqServices__row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .iqServices__item,
  .iqServices__item--up {
    height: 220px;
  }

  .iqServices__pill {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iqServices__item img {
    transition: none;
  }
}
