/* ===== 1. Hero slider ===== */
.hm-hero {
    --_h: clamp(620px, 100svh, 1000px);
    position: relative;
    height: var(--_h);
    overflow: hidden;
    background: #161513;
    color: #fff;
    isolation: isolate;
}
.hm-hero__slider { position: absolute; inset: 0; }
.hm-hero__slider:not(.swiper-initialized) .hm-hero__slide:not(:first-child) { display: none; }
.hm-hero__slider .swiper-wrapper { height: 100%; }
.hm-hero__slide { position: relative; display: flex; align-items: center; height: 100%; overflow: hidden; }

.hm-hero__media { position: absolute; inset: 0; z-index: -1; }
.hm-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .32) 0%, rgba(0, 0, 0, .1) 60%, rgba(0, 0, 0, 0) 100%),
        var(--hm-c-overlay);
}
.hm-hero__media picture { display: contents; }
.hm-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus, 50% 50%);
    transform: scale(1.06);
    transition: transform 7s linear;
}
.swiper-slide-active .hm-hero__img { transform: scale(1); }
@media (max-width: 767px) {
    .hm-hero__img { object-position: var(--focus-m, var(--focus, 50% 50%)); }
}

.hm-hero__content {
    width: 100%;
    max-width: calc(var(--hm-container) + var(--hm-gutter) * 2);
    margin-inline: auto;
    padding: var(--hm-header-h) var(--hm-gutter) 170px;
}
.hm-hero__content > * { max-width: 620px; }
.hm-hero__eyebrow { display: none; }
.hm-hero__title {
    margin: 0;
    font-family: var(--hm-font-head);
    font-size: clamp(30px, 3vw, 44px);
    font-weight: var(--hm-head-weight);
    line-height: 1.12;
    letter-spacing: var(--hm-head-tracking);
    text-wrap: balance;
}
.hm-hero__title em { display: block; margin-top: 6px; font-size: .64em; font-style: normal; font-weight: 500; opacity: .94; }
.hm-hero__subtitle { margin: 8px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.hm-hero__text { margin: 16px 0 0; font-size: 14px; line-height: 1.6; opacity: .92; }
.hm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hm-hero__actions .hm-btn { min-width: 160px; }

/* Content reveal on the active slide */
.hm-hero__content > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--hm-ease), transform .7s var(--hm-ease); }
.swiper-slide-active .hm-hero__content > *,
.hm-hero__slider:not(.swiper-initialized) .hm-hero__content > * { opacity: 1; transform: none; }
.swiper-slide-active .hm-hero__content > :nth-child(2) { transition-delay: .08s; }
.swiper-slide-active .hm-hero__content > :nth-child(3) { transition-delay: .16s; }
.swiper-slide-active .hm-hero__content > :nth-child(4) { transition-delay: .24s; }
.swiper-slide-active .hm-hero__content > :nth-child(5) { transition-delay: .32s; }

/* Controls */
.hm-hero__ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hm-hero__arrows { position: absolute; inset: 50% clamp(16px, 3.4vw, 48px) auto; display: flex; justify-content: space-between; transform: translateY(-50%); }
.hm-hero__arrows .hm-nav-btn { pointer-events: auto; --_size: 40px; }
.hm-hero .hm-hero__pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 32px;
    display: flex;
    justify-content: center;
    gap: 10px;
    pointer-events: auto;
}
.hm-hero__pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin: 0 !important;
    background: #fff;
    opacity: .45;
    transition: opacity .3s, transform .3s;
}
.hm-hero__pagination .swiper-pagination-bullet-active { opacity: 1; transform: scale(1.15); }

/* «Подобрать даты» sits above the slides and does not move with them */
.hm-hero__dates-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(56px, 10vh, 104px);
    z-index: 3;
    max-width: calc(var(--hm-container) + var(--hm-gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--hm-gutter);
    pointer-events: none;
}
.hm-hero__dates {
    pointer-events: auto;
    min-width: 230px;
    min-height: 52px;
    justify-content: space-between;
    border-radius: 0;
    font-size: 13px;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.hm-hero__dates svg { width: 20px; height: 20px; }

/* Variant with the booking module: the external booking form takes the place of «Подобрать даты» */
.hm-hero__booking { display: none; }
.hm-hero--booking .hm-hero__dates-wrap { display: none; }
.hm-hero--booking .hm-hero__booking {
    position: absolute;
    right: max(var(--hm-gutter), (100% - var(--hm-container)) / 2);
    bottom: clamp(56px, 10vh, 104px);
    z-index: 4;
    display: block;
    width: min(640px, calc(100% - var(--hm-gutter) * 2));
}
.hm-hero__booking-widget { min-height: 52px; font-size: 14px; color: var(--hm-c-text); }

@media (max-width: 767px) {
    .hm-hero { --_h: max(600px, 100svh); }
    .hm-hero__content { padding-bottom: 180px; }
    .hm-hero__title { font-size: 30px; }
    .hm-hero__text { font-size: 15px; }
    .hm-hero__actions .hm-btn { width: 100%; }
    .hm-hero__arrows { display: none; }
    .hm-hero .hm-hero__pagination { top: calc(var(--hm-header-h, 72px) + 14px); bottom: auto; justify-content: flex-end; padding-inline: var(--hm-gutter); }
    .hm-hero__dates-wrap { bottom: calc(92px + env(safe-area-inset-bottom)); }
    .hm-hero__dates { width: 100%; }
    .hm-hero--booking .hm-hero__booking { right: var(--hm-gutter); bottom: calc(24px + env(safe-area-inset-bottom)); }
}
