/* ===== 16. Attractions · layout + «Классика»: rounded photo cards with title on top, arrows below ===== */
.hm-attr { overflow-x: clip; }
.hm-attr__inner { display: flex; flex-direction: column; }
.hm-attr__top { display: contents; }
.hm-attr__eyebrow { display: none; }
.hm-attr__heading em { font-style: normal; }
.hm-attr__nav { order: 3; display: flex; justify-content: center; gap: 16px; margin-top: clamp(28px, 3vw, 40px); }
.hm-attr__nav .hm-nav-btn { --_size: 36px; }

/* Cards bleed past the container edges; the section clips them */
.hm-attr__slider { --_gap: 16px; width: auto; margin-inline: calc(var(--_gap) / -2); overflow: visible; }
.hm-attr__card {
    position: relative;
    display: block;
    width: clamp(240px, 21vw, 300px);
    padding-inline: calc(var(--_gap) / 2);
    color: #fff;
    text-decoration: none;
}
.hm-attr__frame {
    position: relative;
    display: block;
    aspect-ratio: 272 / 260;
    overflow: hidden;
    border-radius: calc(var(--hm-radius-card) / 2);
    background: var(--hm-c-dark);
    transform: translateZ(0);
}
.hm-attr__frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .12) 42%, rgba(0, 0, 0, 0) 60%);
    transition: background-color var(--hm-dur) var(--hm-ease);
}
.hm-attr__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus, 50% 50%);
    transition: transform .9s var(--hm-ease);
}
.hm-attr__body {
    position: absolute;
    inset: 0 calc(var(--_gap) / 2) auto;
    z-index: 1;
    display: grid;
    gap: 4px;
    padding: 22px 22px 0;
}
.hm-attr__num { display: none; }
.hm-attr__title { font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; }
.hm-attr__meta { font-size: 12px; font-weight: 400; opacity: .85; }
.hm-attr__card:hover .hm-attr__img { transform: scale(1.06); }
.hm-attr__card:hover .hm-attr__frame::after { background-color: rgba(0, 0, 0, .12); }
.hm-attr__card:focus-visible { outline: none; }
.hm-attr__card:focus-visible .hm-attr__frame { outline: 2px solid var(--hm-c-accent); outline-offset: 3px; }

/* No Swiper: native scroll-snap row, arrows hidden */
.hm-attr__slider:not(.swiper-initialized) .swiper-wrapper { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hm-attr__slider:not(.swiper-initialized) .swiper-wrapper::-webkit-scrollbar { display: none; }
.hm-attr__slider:not(.swiper-initialized) .hm-attr__card { scroll-snap-align: start; }
.hm-attr:not(.hm-attr--ready) .hm-attr__nav { display: none; }

@media (max-width: 767px) {
    .hm-attr__slider { --_gap: 12px; }
    .hm-attr__card { width: 72vw; }
}
