.p3-cameras {
  /*margin: 40px 0 56px;*/
  padding-top: 0;
  margin-top: -4.6rem;
}

.p3-cameras__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
}

.p3-cameras__title {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.12;
  font-weight: 600;
  color: #20242a;
}

.p3-cameras__subtitle {
  margin: 0;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.45;
  color: #666f7a;
}

.p3-cameras__note {
  margin: 0;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.4;
  color: #7a8490;
  text-align: right;
}

.p3-cameras__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.p3-camera {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 18px;
  background: #101216;
  box-shadow: 0 12px 32px rgba(16, 18, 22, .13);
  isolation: isolate;
}

.p3-camera__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: #101216;
  object-fit: cover;
}

.p3-camera__label,
.p3-camera__status {
  position: absolute;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(16, 18, 22, .68);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.p3-camera__label {
  left: 12px;
  top: 12px;
  font-weight: 600;
}

.p3-camera__status {
  left: 12px;
  bottom: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.88);
}

.p3-camera__play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(16, 18, 22, .58);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.p3-camera.is-autoplay-blocked .p3-camera__play,
.p3-camera.is-error .p3-camera__play {
  display: flex;
}

.p3-camera.is-online .p3-camera__status {
  background: rgba(25, 128, 82, .78);
}

.p3-camera.is-error .p3-camera__status {
  background: rgba(178, 46, 46, .82);
}

@media (max-width: 980px) {
  .p3-cameras__head {
    display: block;
  }

  .p3-cameras__note {
    margin-top: 10px;
    text-align: left;
  }

  .p3-cameras__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .p3-cameras {
    /*margin: 28px 0 40px;*/
    margin-top: -2.6rem;
  }

  .p3-camera,
  .p3-camera__video {
    min-height: 190px;
  }
}
