/* Первые фотографии резидентов: целый снимок поверх лёгкой размытой подложки. */
.resident-profile .hp-hero__photo {
 width: 100%;
 max-width: none;
 align-self: stretch;
 display: grid;
 grid-template-rows: minmax(0, 1fr) auto;
}
.resident-profile .hp-hero__photo > a {
 width: 100%;
 height: 100%;
 min-height: 340px;
 aspect-ratio: auto;
 isolation: isolate;
}
.resident-profile .resident-hero-background {
 position: absolute;
 inset: -28px;
 z-index: 0;
 background: var(--hero-background-fallback) center / cover no-repeat;
 background-image: var(--hero-background-desktop);
 filter: blur(25px);
 pointer-events: none;
}
.resident-profile .hp-hero__photo img {
 position: absolute;
 inset: 8px 0;
 z-index: 1;
 width: 100%;
 height: calc(100% - 16px);
 max-height: none;
 object-fit: contain;
}
.resident-profile .hp-hero__photo > a:hover img { transform: none; }
.resident-profile .hp-hero__photo .hp-photo__open { z-index: 2; }
@media (max-width: 1100px) {
 .resident-profile .hp-hero__photo > a { height: clamp(260px, 55vw, 430px); min-height: 0; }
}
@media (max-width: 600px) {
 .resident-profile .resident-hero-background { background-image: var(--hero-background-mobile); }
}

.resident-hero-background--cpm {
 --hero-background-fallback: url("renditions/backgrounds/cpm-320.webp");
 --hero-background-mobile: image-set(url("renditions/backgrounds/cpm-160.webp") 1x, url("renditions/backgrounds/cpm-320.webp") 2x);
 --hero-background-desktop: image-set(url("renditions/backgrounds/cpm-320.webp") 1x, url("renditions/backgrounds/cpm-480.webp") 2x);
}

.resident-hero-background--eksis {
 --hero-background-fallback: url("renditions/backgrounds/eksis-320.webp");
 --hero-background-mobile: image-set(url("renditions/backgrounds/eksis-160.webp") 1x, url("renditions/backgrounds/eksis-320.webp") 2x);
 --hero-background-desktop: image-set(url("renditions/backgrounds/eksis-320.webp") 1x, url("renditions/backgrounds/eksis-480.webp") 2x);
}

.resident-hero-background--hrizopro {
 --hero-background-fallback: url("renditions/backgrounds/hrizopro-320.webp");
 --hero-background-mobile: image-set(url("renditions/backgrounds/hrizopro-160.webp") 1x, url("renditions/backgrounds/hrizopro-320.webp") 2x);
 --hero-background-desktop: image-set(url("renditions/backgrounds/hrizopro-320.webp") 1x, url("renditions/backgrounds/hrizopro-480.webp") 2x);
}

.resident-hero-background--kompozit {
 --hero-background-fallback: url("renditions/backgrounds/kompozit-320.webp");
 --hero-background-mobile: image-set(url("renditions/backgrounds/kompozit-160.webp") 1x, url("renditions/backgrounds/kompozit-320.webp") 2x);
 --hero-background-desktop: image-set(url("renditions/backgrounds/kompozit-320.webp") 1x, url("renditions/backgrounds/kompozit-480.webp") 2x);
}

.resident-hero-background--mastmaster {
 --hero-background-fallback: url("renditions/backgrounds/mastmaster-320.webp");
 --hero-background-mobile: image-set(url("renditions/backgrounds/mastmaster-160.webp") 1x, url("renditions/backgrounds/mastmaster-320.webp") 2x);
 --hero-background-desktop: image-set(url("renditions/backgrounds/mastmaster-320.webp") 1x, url("renditions/backgrounds/mastmaster-480.webp") 2x);
}

.resident-hero-background--mastodek {
 --hero-background-fallback: url("renditions/backgrounds/mastodek-320.webp");
 --hero-background-mobile: image-set(url("renditions/backgrounds/mastodek-160.webp") 1x, url("renditions/backgrounds/mastodek-320.webp") 2x);
 --hero-background-desktop: image-set(url("renditions/backgrounds/mastodek-320.webp") 1x, url("renditions/backgrounds/mastodek-396.webp") 2x);
}

.resident-hero-background--promotor {
 --hero-background-fallback: url("renditions/backgrounds/promotor-320.webp");
 --hero-background-mobile: image-set(url("renditions/backgrounds/promotor-160.webp") 1x, url("renditions/backgrounds/promotor-320.webp") 2x);
 --hero-background-desktop: image-set(url("renditions/backgrounds/promotor-320.webp") 1x, url("renditions/backgrounds/promotor-480.webp") 2x);
}

.resident-hero-background--upm {
 --hero-background-fallback: url("renditions/backgrounds/upm-320.webp");
 --hero-background-mobile: image-set(url("renditions/backgrounds/upm-160.webp") 1x, url("renditions/backgrounds/upm-320.webp") 2x);
 --hero-background-desktop: image-set(url("renditions/backgrounds/upm-320.webp") 1x, url("renditions/backgrounds/upm-480.webp") 2x);
}

.resident-hero-background--vostok_sts {
 --hero-background-fallback: url("renditions/backgrounds/vostok_sts-320.webp");
 --hero-background-mobile: image-set(url("renditions/backgrounds/vostok_sts-160.webp") 1x, url("renditions/backgrounds/vostok_sts-320.webp") 2x);
 --hero-background-desktop: image-set(url("renditions/backgrounds/vostok_sts-320.webp") 1x, url("renditions/backgrounds/vostok_sts-457.webp") 2x);
}

.resident-hero-background--yasnotex {
 --hero-background-fallback: url("renditions/backgrounds/yasnotex-320.webp");
 --hero-background-mobile: image-set(url("renditions/backgrounds/yasnotex-160.webp") 1x, url("renditions/backgrounds/yasnotex-320.webp") 2x);
 --hero-background-desktop: image-set(url("renditions/backgrounds/yasnotex-320.webp") 1x, url("renditions/backgrounds/yasnotex-480.webp") 2x);
}
