/* Wide 3:1 canvas; contain preserves every slide without cropping. */
.hero .hero__mainBlock { display: grid; grid-template-columns: minmax(0, var(--hero-main-weight, 3fr)) minmax(0, var(--hero-side-weight, 1fr)); gap: clamp(12px, 2vw, 30px); align-items: start; }
.hero .hero__mainBlockSlider { display: block; width: 100%; min-width: 0; }
.hero .hero-slider { width: 100%; padding-bottom: 20px; }
.hero .hero-slider .swiper-slide { height: auto; }
.hero .hero-slider .swiper-slide a { display: block; width: 100%; aspect-ratio: var(--hero-main-ratio, 3); }
.hero .hero-slider .swiper-slide picture { display: block; width: 100%; height: 100%; }
.hero .hero-slider .swiper-slide img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
.hero .hero__mainBlockBanner { display: block; width: 100%; min-width: 0; aspect-ratio: var(--hero-side-ratio, 1); }
.hero .hero__mainBlockBanner a { display: block; width: 100%; height: 100%; }
.hero .hero__mainBlockBanner picture { display: block; width: 100%; height: 100%; }
.hero .hero__mainBlockBanner img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Side width follows its actual image ratio so both images share their height. */
.hero .hero__mainBlockSlider:only-child { grid-column: 1 / -1; }
@media (max-width: 767px) {
    .hero .hero__mainBlock { grid-template-columns: minmax(0, 1fr); }
    .hero .hero__mainBlockBanner { width: min(50%, 240px); aspect-ratio: auto; justify-self: center; }
    .hero .hero__mainBlockBanner a, .hero .hero__mainBlockBanner picture, .hero .hero__mainBlockBanner img { height: auto; }
}

/* Compact image banners: uploaded artwork is never cropped. */
.home-promos { margin: 10px 0 30px; }
.home-promos__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 2vw, 30px); }
.home-promos__card { display: block; min-width: 0; overflow: hidden; border-radius: 8px; background: #f5f5f5; color: #363636; text-decoration: none; transition: box-shadow .18s ease; }
.home-promos__card picture { display: block; aspect-ratio: 3 / 2; background: #151719; }
.home-promos__card img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-promos__caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 15px; font-weight: 700; }

.home-promos__card:hover, .home-promos__card:focus-visible { color: #363636; text-decoration: none; box-shadow: 0 4px 18px #0002; }
.home-promos__card:focus-visible { outline: 2px solid #59636e; outline-offset: 4px; }
@media (min-width: 768px) and (max-width: 1100px) {
 .home-promos__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 767px) {
 .home-promos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
 .home-promos { margin-top: 8px; margin-bottom: 24px; }
 .home-promos__caption { font-size: 14px; padding: 10px; }
}

/* Compact mini-banner cards. */
.hero { padding-bottom: 10px; }
.home-promos { margin-top: 0; }
.home-promos__grid { align-items: stretch; gap: clamp(12px, 1.5vw, 24px); }
.home-promos__card { display:flex; flex-direction:column; border:1px solid #e8e9ec; border-radius:10px; background:#fff; box-shadow:0 2px 5px rgba(20,25,35,.03); transition:box-shadow .18s ease,border-color .18s ease; }
.home-promos__card picture { flex:none; overflow:hidden; background:#f3f4f6; }
.home-promos__caption { flex:1; min-height:44px; box-sizing:border-box; padding:10px 14px; font-size:15px; font-weight:600; line-height:1.4; letter-spacing:0; }
.home-promos__caption > .home-promos__label { color:#252a32; min-width:0; overflow-wrap:break-word; }
.home-promos__card:hover,.home-promos__card:focus-visible { color:#252a32; border-color:#cfd3d9; box-shadow:0 5px 16px rgba(20,25,35,.08); }
@media(max-width:767px) { .hero { padding-bottom:12px; } .home-promos { margin-top:0; } .home-promos__caption { padding:9px 11px; min-height:40px; font-size:14px; } }
@media(prefers-reduced-motion:reduce) { .home-promos__card { transition:none; } }
/* Mobile homepage: hide side banner and show up to four selected promos. */
@media (max-width:767px) {
 .hero .hero__mainBlockBanner { display:none; }
 .home-promos .home-promos__grid .home-promos__card--mobile-hidden { display:none !important; }
}
