/* ===== 13. Room amenities · layout + «Классика»: icon strip over a darkened room photo ===== */
.hm-amen {
    --hm-amen-layout: slider;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--hm-c-dark);
    color: #fff;
}
.hm-amen__media { position: absolute; inset: 0; z-index: -1; margin: 0; }
.hm-amen__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hm-amen__img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }

.hm-amen__head { margin-bottom: clamp(36px, 4vw, 56px); }
.hm-amen__eyebrow { font-size: 15px; font-weight: 300; color: rgba(255, 255, 255, .86); }
.hm-amen__title em { font-style: normal; }

.hm-amen__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    padding: 0 16px;
    text-align: center;
}
.hm-amen__icon { display: block; width: 44px; height: 44px; margin-bottom: 18px; color: #fff; }
.hm-amen__icon svg,
.hm-amen__icon img { width: 100%; height: 100%; object-fit: contain; }
.hm-amen__icon svg { stroke-width: 1.3; }
.hm-amen__name { margin: 0; font-size: 13px; font-weight: 600; line-height: 1.4; }
.hm-amen__text { max-width: 220px; margin: 2px 0 0; font-size: 13px; line-height: 1.5; opacity: .88; }

.hm-amen__nav { display: flex; justify-content: center; gap: 16px; margin-top: clamp(32px, 3.4vw, 48px); }
.hm-amen__nav .hm-nav-btn { --_size: 36px; background: rgba(255, 255, 255, .26); }
.hm-amen__nav .hm-nav-btn:hover { background: rgba(255, 255, 255, .42); }
.hm-amen__count:empty { display: none; }

/* No Swiper / everything fits: native scroll-snap row, arrows hidden */
.hm-amen__slider:not(.swiper-initialized) .swiper-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.hm-amen__slider:not(.swiper-initialized) .swiper-wrapper::-webkit-scrollbar { display: none; }
.hm-amen__slider:not(.swiper-initialized) .hm-amen__item { scroll-snap-align: start; }
.hm-amen:not(.hm-amen--ready) .hm-amen__nav { display: none; }
.hm-amen--static .hm-amen__slider .swiper-wrapper { justify-content: center; }

@media (max-width: 1023px) {
    .hm-amen__item { width: 33.333%; }
}
@media (max-width: 767px) {
    .hm-amen__item { width: 50%; padding: 0 10px; }
    .hm-amen__icon { width: 40px; height: 40px; margin-bottom: 14px; }
}
