/* Hotel Impire Modern 1.0.0 — warm minimal hotel shell */
:root {
    --him-bg: #f5f4f0;
    --him-surface: #ffffff;
    --him-text: #1a1d22;
    --him-muted: #676c74;
    --him-accent: #596a86;
    --him-accent-dark: #46546d;
    --him-border: #e5e2dc;
    --him-radius: 16px;
    --him-shadow: 0 8px 24px rgba(26, 29, 34, 0.06);
    --him-wrap: 1200px;
    --him-space: 88px;
    --him-space-m: 56px;
    --him-font: "Manrope", "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body.him-site {
    margin: 0;
    color: var(--him-text);
    font-family: var(--him-font);
    font-size: 16px;
    line-height: 1.6;
    background: var(--him-bg);
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--him-accent-dark); }
button { font-family: inherit; }
:focus-visible {
    outline: 2px solid var(--him-accent);
    outline-offset: 3px;
}

.him-skip { position: absolute; left: -9999px; }
.him-skip:focus { left: 12px; top: 12px; z-index: 10000; background: #fff; padding: 8px 12px; }

.him-wrap {
    width: min(var(--him-wrap), calc(100% - 40px));
    margin: 0 auto;
}

.him-icon { display: block; width: 22px; height: 22px; flex: 0 0 auto; }

.him-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--him-border);
}
.him-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 28px;
    min-height: 70px;
}
.him-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.him-logo img { display: block; width: 100px; height: auto; }
.him-nav--desktop {
    display: flex;
    justify-content: center;
    min-width: 0;
}
.him-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0 22px;
}
.him-menu a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--him-text);
    padding: 10px 0;
    line-height: 1.2;
    transition: color .15s ease;
}
.him-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(.4);
    transition: opacity .15s ease, transform .15s ease;
}
.him-menu a:hover { color: var(--him-accent); }
.him-menu a:hover::after { opacity: .35; transform: scaleX(1); }
.him-menu .current-menu-item > a,
.him-menu .current_page_item > a {
    color: var(--him-accent-dark);
}
.him-menu .current-menu-item > a::after,
.him-menu .current_page_item > a::after {
    opacity: .7;
    transform: scaleX(1);
}
.him-header__end {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.him-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    color: var(--him-muted);
    font-weight: 500;
    font-size: 13px;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    white-space: nowrap;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.him-header__cta .him-icon { width: 16px; height: 16px; color: var(--him-accent); }
.him-header__cta:hover {
    color: var(--him-accent-dark);
    border-color: var(--him-border);
    background: var(--him-surface);
}
.him-burger {
    display: none;
    background: none;
    border: 0;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    color: var(--him-text);
    align-items: center;
    justify-content: center;
}
.him-burger .him-icon { width: 24px; height: 24px; }

.him-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(26, 29, 34, .28);
}
.him-mobile-menu__panel {
    margin-left: auto;
    width: min(360px, 100%);
    height: 100%;
    background: var(--him-surface);
    padding: 18px 20px 32px;
    overflow: auto;
}
.him-mobile-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.him-mobile-menu__title { font-weight: 600; font-size: 15px; }
.him-mobile-close {
    background: none;
    border: 0;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    cursor: pointer;
    color: var(--him-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.him-menu--mobile { flex-direction: column; align-items: stretch; gap: 0; justify-content: flex-start; }
.him-menu--mobile a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--him-border);
    font-size: 17px;
}
.him-menu--mobile a::after { display: none; }

.him-main { min-height: 40vh; }

.him-hero {
    padding: 56px 0 24px;
}
.him-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
    align-items: center;
}
.him-hero__title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}
.him-hero__sub {
    color: var(--him-muted);
    font-size: 17px;
    margin: 0 0 28px;
    max-width: 38ch;
}
.him-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.him-hero__photo {
    margin: 0;
    border-radius: var(--him-radius);
    overflow: hidden;
    box-shadow: var(--him-shadow);
}
.him-hero__photo img {
    width: 100%;
    height: min(540px, 62vw);
    object-fit: cover;
    display: block;
}

.him-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1.2;
}
.him-btn--accent { background: var(--him-accent); color: #fff !important; }
.him-btn--accent:hover { background: var(--him-accent-dark); }
.him-btn--ghost {
    background: transparent;
    color: var(--him-text) !important;
    border-color: var(--him-border);
}
.him-btn--ghost:hover { border-color: var(--him-accent); color: var(--him-accent-dark) !important; }
.him-btn--gold { background: var(--him-accent); color: #fff !important; }
.him-btn--gold:hover { background: var(--him-accent-dark); }
.him-btn--dark { background: var(--him-accent-dark); color: #fff !important; }

.him-section { padding: var(--him-space) 0; }
.him-section-head { text-align: left; margin: 0 0 32px; }
.him-home-rooms .him-section-head,
.him-home-services .him-section-head { text-align: center; }
.him-section-sub {
    margin: 0 0 8px;
    color: var(--him-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.him-section-title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    text-transform: none;
}
.him-section__more { text-align: center; margin: 32px 0 0; }

/* —— Standard internal page header (Contacts visual system) —— */
.him-page-header {
    text-align: center;
    margin: 0 0 36px;
    padding-top: 8px;
}
.him-page-header__eyebrow {
    margin: 0 0 12px;
    color: var(--him-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.him-page-header__ornament {
    display: block;
    width: 56px;
    height: 1px;
    margin: 0 auto 16px;
    background: var(--him-accent);
    position: relative;
}
.him-page-header__ornament::before,
.him-page-header__ornament::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 5px;
    height: 5px;
    background: var(--him-accent);
    transform: translateY(-50%) rotate(45deg);
}
.him-page-header__ornament::before { left: -10px; }
.him-page-header__ornament::after { right: -10px; }
.him-page-header__title {
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    text-transform: none;
    color: var(--him-text);
}
.him-contacts-page__inner,
.him-about-page__inner {
    max-width: 1100px;
}
.him-contacts .him-map,
.him-contacts .hi-map {
    margin-top: 24px;
}
.him-contacts .him-map iframe,
.him-contacts .hi-map iframe {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin-inline: auto;
    border: 0;
    border-radius: var(--him-radius);
}

.him-about-preview { padding-top: 40px; }
.him-about-preview__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.him-about-preview__photo { margin: 0; border-radius: var(--him-radius); overflow: hidden; }
.him-about-preview__photo img { width: 100%; height: 420px; object-fit: cover; display: block; }
.him-about-preview__text { color: var(--him-muted); font-size: 16px; margin: 0 0 24px; }

.him-rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.him-room-card {
    background: var(--him-surface);
    border: 1px solid var(--him-border);
    border-radius: var(--him-radius);
    box-shadow: var(--him-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
    .him-room-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 28px rgba(26, 29, 34, .1);
    }
    .him-room-card:hover .him-room-card__img img { transform: scale(1.03); }
}
.him-room-card__img { position: relative; display: block; background: #ece8e1; }
.him-room-card__img img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.him-room-card__badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: var(--him-surface);
    color: var(--him-text);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}
.him-room-card__body { padding: 18px 18px 20px; }
.him-room-card__title { margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.35; text-transform: none; }
.him-room-card__title a { color: var(--him-text); text-decoration: none; }
.him-room-card__title a:hover { color: var(--him-accent); }
.him-room-card__meta { margin: 0 0 8px; color: var(--him-muted); font-size: 13px; }
.him-room-card__price { margin: 0 0 14px; color: var(--him-muted); font-size: 14px; }
.him-room-card__price strong { color: var(--him-accent-dark); font-size: 18px; font-weight: 700; }
.him-room-card__btn { width: 100%; }

.him-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.him-service-item {
    background: var(--him-surface);
    border: 1px solid var(--him-border);
    border-radius: var(--him-radius);
    padding: 22px 20px;
}
.him-service-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--him-bg);
    color: var(--him-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.him-service-item h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

/* —— Rooms archive (/nomera/) — vertical cards in shared .him-rooms-grid —— */
.him-rooms-archive { padding-top: 28px; }
.him-rooms-grid--catalog { margin-top: 0; }

.him-rg__badge {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 2;
    background: rgba(255, 255, 255, .94);
    color: var(--him-text);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(26, 29, 34, .08);
}
.him-room-single__params li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--him-muted);
    font-size: 14px;
}
.him-room-single__params .him-icon {
    width: 18px;
    height: 18px;
    color: var(--him-accent);
    flex-shrink: 0;
}

/* —— Single room gallery (mobile swipe / desktop main+thumbs) ——
   Design rule: thumbnails may cover; primary + fullscreen always contain; never distort. */
.him-room-single { padding-bottom: 64px; }
.him-rg {
    --him-rg-gap: 10px;
    --him-rg-peek: 7vw;
    --him-rg-frame: #ece9e3;
    --him-rg-mobile-h: clamp(230px, 62vw, 340px);
    --him-rg-desktop-h: clamp(300px, 68vh, 700px);
    margin: 0 0 28px;
}
.him-rg__desktop { display: none; }
.him-rg__mobile { display: block; }
.him-rg__viewport,
.him-rg__stage {
    position: relative;
}
.him-rg__track {
    display: flex;
    gap: var(--him-rg-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    outline: none;
    padding: 0 var(--him-rg-peek);
    touch-action: pan-x pan-y;
}
.him-rg__track::-webkit-scrollbar { display: none; }
.him-rg--single .him-rg__track {
    padding: 0;
    overflow: hidden;
}
.him-rg__slide {
    flex: 0 0 calc(100% - var(--him-rg-peek) - var(--him-rg-gap));
    scroll-snap-align: center;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    background: var(--him-rg-frame);
    height: var(--him-rg-mobile-h);
    min-height: 220px;
    max-height: 360px;
}
.him-rg--single .him-rg__slide {
    flex-basis: 100%;
    scroll-snap-align: start;
}
.him-rg__open,
.him-rg__main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
/* Mobile primary: contain — never stretch / never force landscape crop */
.him-rg__img,
.him-rg__open img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}
.him-rg__counter {
    position: absolute;
    right: 16px;
    bottom: 14px;
    z-index: 3;
    background: rgba(20, 22, 26, .62);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    padding: 6px 10px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    pointer-events: none;
}
.him-rg__counter-sep { opacity: .7; margin: 0 2px; }
.him-rg__nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--him-text);
    box-shadow: 0 6px 18px rgba(26, 29, 34, .14);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.him-rg__nav .him-icon { width: 22px; height: 22px; }
.him-rg__nav--prev { left: 16px; }
.him-rg__nav--next { right: 16px; }
.him-rg__nav:focus-visible,
.him-rg__open:focus-visible,
.him-rg__main:focus-visible,
.him-rg__thumb:focus-visible {
    outline: 2px solid var(--him-accent);
    outline-offset: 2px;
}

.him-rg__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
/* Thumbnails: uniform 4/3 cover crop is OK (navigation only) */
.him-rg__thumb {
    flex: 0 0 auto;
    width: 112px;
    aspect-ratio: 4 / 3;
    height: auto;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: var(--him-rg-frame);
    cursor: pointer;
    opacity: .72;
    transition: opacity .15s ease, border-color .15s ease;
}
.him-rg__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}
.him-rg__thumb.is-active,
.him-rg__thumb[aria-current="true"] {
    opacity: 1;
    border-color: var(--him-accent);
}
.him-rg__thumb:hover { opacity: 1; }

.him-room-single__panel {
    max-width: 760px;
    padding-top: 8px;
}
.him-room-single__header { margin-bottom: 28px; }
.him-room-single__title {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-transform: none;
}
.him-room-single__params {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}
.him-room-single__price {
    margin: 0;
    color: var(--him-muted);
    font-size: 16px;
}
.him-room-single__price strong {
    color: var(--him-accent-dark);
    font-size: 28px;
    font-weight: 700;
}
.him-room-single__description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--him-text);
    margin: 0 0 32px;
}
.him-room-single__description > *:first-child { margin-top: 0; }
.him-room-single__description > *:last-child { margin-bottom: 0; }
.him-room-single__h2 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 650;
    letter-spacing: -0.01em;
    text-transform: none;
}
.him-room-features {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: grid;
    gap: 10px;
}
.him-room-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--him-text);
}
.him-room-features .him-icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--him-accent);
    flex-shrink: 0;
}
.him-room-contact {
    padding: 24px;
    border-radius: var(--him-radius);
    background: #ece9e3;
    border: 1px solid var(--him-border);
}
.him-room-contact__text {
    margin: 0 0 16px;
    color: var(--him-muted);
    font-size: 15px;
}
.him-room-contact__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.him-room-contact__messengers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.him-room-contact__actions .him-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 0;
}
.him-room-contact__actions .him-icon { width: 18px; height: 18px; }
.him-room-contact__msg {
    background: var(--him-surface) !important;
}
@media (max-width: 600px) {
    .him-room-contact__actions {
        flex-direction: column;
        align-items: stretch;
    }
    .him-room-contact__phone {
        width: 100%;
    }
    .him-room-contact__messengers {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }
    .him-room-contact__messengers--solo {
        grid-template-columns: 1fr;
    }
    .him-room-contact__msg {
        width: 100%;
        min-height: 44px;
    }
    .him-room-contact__phone {
        min-height: 48px;
    }
}

/* Kill leftover parent tiny gallery if ever mixed */
body.him-site .hi-room-gallery { display: none !important; }

.him-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto 40px;
}
.him-gallery-item img { width: 100%; height: 180px; object-fit: cover; display: block; border-radius: 12px; }

.him-price-heading { text-align: center; margin-bottom: 20px; }
.him-price-wrap { overflow-x: auto; max-width: 1100px; margin: 0 auto 24px; }
.him-price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.him-price-table th { background: var(--him-accent-dark); color: #fff; padding: 10px; border: 1px solid var(--him-border); }
.him-price-table td { padding: 10px; border: 1px solid var(--him-border); text-align: center; background: var(--him-surface); }
.him-price-table td:first-child { text-align: left; }

.him-page-content, .him-entry, .him-services {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8px 20px 40px;
    line-height: 1.65;
}
.him-entry img { border-radius: var(--him-radius); }
.him-entry [id^="imCell"],
.him-entry [id^="imObject"],
.him-entry [class*="template-object"] {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    float: none !important;
}
.him-services-list { max-width: 700px; margin: 0 auto 30px; }
.him-map iframe { width: 100%; max-width: 1000px; height: 400px; border: 0; border-radius: var(--him-radius); }
.him-review { max-width: 800px; margin: 0 auto 24px; padding-bottom: 16px; border-bottom: 1px solid var(--him-border); }
.him-stars { color: #ccc; }
.him-star--filled { color: var(--him-accent); }
.him-yandex-reviews { max-width: 900px; margin: 0 auto 40px; padding: 0 20px; }

.him-footer {
    background: #ece9e3;
    color: var(--him-text);
    margin-top: 24px;
}
.him-footer a { color: var(--him-text); text-decoration: none; }
.him-footer a:hover { color: var(--him-accent); }
.him-footer__grid {
    display: grid;
    grid-template-columns: minmax(160px, 1.15fr) minmax(120px, 0.85fr) minmax(120px, 0.85fr) minmax(180px, 1.25fr);
    gap: 36px 32px;
    align-items: start;
    padding: 44px 0 28px;
}
.him-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-self: stretch;
}
.him-footer__logo {
    display: inline-flex;
    justify-content: center;
    line-height: 0;
}
.him-footer__logo img {
    display: block;
    width: 96px;
    height: auto;
    margin: 0 auto;
}
.him-footer__tag {
    color: var(--him-muted);
    font-size: 13px;
    line-height: 1.5;
    margin: 12px 0 0;
    max-width: 22ch;
    text-align: center;
}
.him-footer__nav { min-width: 0; }
.him-menu--footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
}
.him-menu--footer a {
    padding: 5px 0;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
}
.him-menu--footer a::after { display: none; }
.him-footer__contacts { min-width: 0; }
.him-footer__line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--him-muted);
}
.him-footer__line:last-child { margin-bottom: 0; }
.him-footer__line .him-icon {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--him-accent);
}
.him-footer__line a { color: var(--him-text); }
.him-footer__bottom {
    border-top: 1px solid var(--him-border);
    padding: 14px 0 18px;
    font-size: 13px;
}
.him-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 10px 16px;
    flex-wrap: wrap;
    align-items: center;
}
.him-footer__copy { margin: 0; color: var(--him-muted); line-height: 1.4; }
.him-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.him-footer__dot { margin: 0 8px; color: var(--him-muted); }

.him-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 70; }
.him-launcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--him-accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 16px;
    cursor: pointer;
    box-shadow: var(--him-shadow);
    animation: him-pulse 2.8s ease-in-out infinite;
}
.him-launcher__btn[aria-expanded="true"] { animation: none; background: var(--him-accent-dark); }
.him-launcher__label { font-size: 14px; font-weight: 600; }
.him-launcher__panel {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(300px, calc(100vw - 32px));
    background: var(--him-surface);
    border: 1px solid var(--him-border);
    border-radius: var(--him-radius);
    box-shadow: var(--him-shadow);
    padding: 14px;
}
.him-launcher__title { margin: 0 0 10px; font-size: 13px; color: var(--him-muted); font-weight: 600; }
.him-launcher__list { list-style: none; margin: 0; padding: 0; }
.him-launcher__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--him-text);
}
.him-launcher__list a:hover { background: var(--him-bg); }
.him-launcher__list strong { display: block; font-size: 14px; font-weight: 600; }
.him-launcher__list em { display: block; font-style: normal; font-size: 12px; color: var(--him-muted); }

@keyframes him-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(89, 106, 134, .35); }
    70% { box-shadow: 0 0 0 12px rgba(89, 106, 134, 0); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .him-launcher__btn { animation: none; }
    .him-room-card,
    .him-room-card__img img,
    .him-rg__track,
    .him-viewer__img { transition: none !important; scroll-behavior: auto !important; }
}

.him-lightbox,
.him-viewer {
    position: fixed;
    inset: 0;
    background: rgba(12, 14, 18, .94);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
}
.him-lightbox img,
.him-lightbox__img {
    max-width: min(90vw, 1400px);
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.him-lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    background: rgba(0, 0, 0, .35);
    padding: 6px 12px;
    border-radius: 999px;
    z-index: 2;
}
.him-viewer__stage {
    max-width: 100vw;
    max-height: 100vh;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.him-viewer__img {
    width: auto;
    height: auto;
    max-width: min(92vw, 1440px);
    max-height: 92vh;
    object-fit: contain;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity .15s ease;
}
.him-lightbox__btn,
.him-viewer__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .18);
    color: #fff;
    border: 0;
    width: 56px;
    height: 56px;
    font-size: 0;
    cursor: pointer;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.him-viewer__btn .him-icon,
.him-lightbox__btn .him-icon { width: 26px; height: 26px; stroke: #fff; }
.him-lightbox__prev,
.him-viewer__prev { left: max(12px, 2vw); }
.him-lightbox__next,
.him-viewer__next { right: max(12px, 2vw); }
.him-lightbox__close,
.him-viewer__close {
    position: absolute;
    top: 16px;
    right: max(14px, 2vw);
    background: rgba(255, 255, 255, .16);
    border: 0;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.him-viewer__close .him-icon { width: 22px; height: 22px; stroke: #fff; }
.him-viewer__counter {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    background: rgba(0, 0, 0, .35);
    padding: 6px 12px;
    border-radius: 999px;
}
.him-viewer__btn:focus-visible,
.him-viewer__close:focus-visible,
.him-lightbox__btn:focus-visible,
.him-lightbox__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.him-404 {
    text-align: center;
    max-width: 640px;
    margin: 40px auto 60px;
    padding: 20px 16px;
}
.him-404__title { font-size: 28px; margin: 8px 0 12px; }
.him-404__text { font-size: 16px; line-height: 1.6; color: var(--him-muted); margin: 18px 0 28px; }
.him-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (min-width: 900px) {
    .him-room-single {
        padding-top: 32px;
    }
    .him-rg__mobile { display: none; }
    .him-rg__desktop { display: block; }
    .him-rg {
        --him-rg-peek: 0;
        --him-rg-gap: 0;
        max-width: 1100px;
        margin: 0 auto 40px;
        padding: 0 20px;
    }
    /* Stable desktop viewport: contain primary photo, no page jump on orientation change */
    .him-rg__stage {
        position: relative;
        border-radius: calc(var(--him-radius) + 4px);
        overflow: hidden;
        background: var(--him-rg-frame);
        border: 1px solid var(--him-border);
        width: 100%;
        height: var(--him-rg-desktop-h);
        min-height: 280px;
        max-height: min(700px, 75vh);
        box-shadow: none;
    }
    .him-rg__main {
        position: absolute;
        inset: 0;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
    }
    .him-rg__main-img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        object-position: center;
        display: block;
        pointer-events: none;
        user-select: none;
        -webkit-user-drag: none;
    }
    .him-rg--multi .him-rg__nav { display: inline-flex; }
    .him-rg__badge { left: 20px; top: 20px; }
    .him-rg__thumbs {
        margin-top: 14px;
        padding-left: 2px;
        padding-right: 2px;
    }
    .him-rg__thumb {
        width: 128px;
        aspect-ratio: 4 / 3;
        height: auto;
    }
    .him-viewer__img {
        max-width: min(92vw, 1440px);
        max-height: 92vh;
    }
}
@media (max-width: 1200px) {
    .him-hero__grid, .him-about-preview__grid { gap: 32px; }
}
@media (max-width: 1100px) {
    .him-footer__grid {
        grid-template-columns: minmax(140px, 1fr) minmax(110px, .85fr) minmax(110px, .85fr) minmax(160px, 1.15fr);
        gap: 28px 24px;
    }
    .him-menu { gap: 0 16px; }
    .him-header__inner { column-gap: 18px; }
}
@media (max-width: 1024px) {
    .him-rooms-grid, .him-service-grid { grid-template-columns: 1fr 1fr; }
    .him-header__cta span { display: none; }
    .him-header__cta { padding: 8px; }
}
@media (max-width: 959px) {
    .him-nav--desktop { display: none; }
    .him-burger { display: inline-flex; }
    .him-header__inner {
        grid-template-columns: auto 1fr auto;
        min-height: 64px;
        column-gap: 12px;
    }
    .him-hero__grid, .him-about-preview__grid { grid-template-columns: 1fr; }
    .him-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
        padding: 36px 0 24px;
    }
    .him-footer__brand { grid-column: 1 / -1; }
    .him-footer__contacts { grid-column: 1 / -1; }
    .him-hero { padding-top: 32px; }
    .him-hero__photo img, .him-about-preview__photo img { height: 320px; }
    .him-section { padding: var(--him-space-m) 0; }
}
@media (max-width: 768px) {
    .him-wrap { width: min(var(--him-wrap), calc(100% - 32px)); }
    .him-header__inner { min-height: 60px; }
    .him-logo img { width: 88px; }
    .him-rg { margin-bottom: 20px; }
    .him-rg { --him-rg-mobile-h: clamp(240px, 64vw, 360px); }
    .him-viewer__prev,
    .him-viewer__next { display: none; }
}
@media (max-width: 600px) {
    .him-rooms-grid, .him-service-grid { grid-template-columns: 1fr; }
    .him-launcher__label { display: none; }
    .him-hero__title { font-size: 30px; }
    .him-room-card__img img { height: 190px; }
}
@media (max-width: 430px) {
    .him-rg {
        --him-rg-peek: 8vw;
        --him-rg-mobile-h: clamp(220px, 60vw, 300px);
    }
}
@media (max-width: 390px) {
    .him-hero__actions { flex-direction: column; align-items: stretch; }
    .him-btn { width: 100%; }
    .him-footer__grid { gap: 24px 14px; }
    .him-menu--footer a { font-size: 13px; }
    .him-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
    .him-footer__dot { margin: 0 6px; }
    .him-balance-grid[data-cols] { --him-bal-cols: 1; }
    .him-svc-included__name { font-size: 14px; }
    .him-rg { --him-rg-mobile-h: clamp(210px, 58vw, 280px); }
}
@media (max-width: 360px) {
    .him-rg { --him-rg-mobile-h: clamp(200px, 56vw, 260px); }
}

/* —— Shared balanced flex grid (max 4, last incomplete row centered) —— */
.him-balance-grid {
    --him-bal-cols: 4;
    --him-bal-gap: 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--him-bal-gap);
}
.him-balance-grid[data-cols="1"] { --him-bal-cols: 1; }
.him-balance-grid[data-cols="2"] { --him-bal-cols: 2; }
.him-balance-grid[data-cols="3"] { --him-bal-cols: 3; }
.him-balance-grid[data-cols="4"] { --him-bal-cols: 4; }
.him-balance-grid > * {
    flex: 0 1 calc((100% - (var(--him-bal-cols) - 1) * var(--him-bal-gap)) / var(--him-bal-cols));
    max-width: calc((100% - (var(--him-bal-cols) - 1) * var(--him-bal-gap)) / var(--him-bal-cols));
    min-width: 0;
    box-sizing: border-box;
}

/* —— Services page (/uslugi/) —— */
.him-services-page { padding-top: 28px; }
.him-services-page__inner { max-width: 1100px; }
.him-services-page__head { margin-bottom: 40px; }
.him-services-block { margin: 0 0 56px; }
.him-services-block:last-child { margin-bottom: 8px; }
.him-services-block__title {
    margin: 0 0 20px;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none;
}
.him-services-block__lead {
    margin: -8px 0 18px;
    color: var(--him-muted);
    font-size: 15px;
}

.him-svc-included {
    --him-bal-gap: 16px;
}
.him-svc-included__card {
    background: var(--him-surface);
    border: 1px solid var(--him-border);
    border-radius: var(--him-radius);
    box-shadow: var(--him-shadow);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    min-height: 132px;
}
.him-svc-included__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--him-bg);
    color: var(--him-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.him-svc-included__icon .him-icon { width: 22px; height: 22px; }
.him-svc-included__name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
}

.him-svc-extra {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 760px;
}
.him-svc-extra__card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--him-surface);
    border: 1px solid var(--him-border);
    border-radius: var(--him-radius);
    padding: 18px 20px;
    box-shadow: var(--him-shadow);
}
.him-svc-extra__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--him-bg);
    color: var(--him-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.him-svc-extra__icon .him-icon { width: 20px; height: 20px; }
.him-svc-extra__body { min-width: 0; flex: 1; }
.him-svc-extra__name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    text-transform: none;
}
.him-svc-extra__price {
    margin: 8px 0 0;
    color: var(--him-accent-dark);
    font-size: 15px;
    font-weight: 600;
}

.him-svc-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.him-svc-photos__item {
    display: block;
    border-radius: var(--him-radius);
    overflow: hidden;
    background: #dedad3;
    aspect-ratio: 4 / 3;
    box-shadow: var(--him-shadow);
}
.him-svc-photos__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.him-svc-screens {
    --him-bal-gap: 20px;
}
.him-svc-screens__item {
    display: block;
    border-radius: var(--him-radius);
    overflow: hidden;
    background: var(--him-surface);
    border: 1px solid var(--him-border);
    box-shadow: var(--him-shadow);
    padding: 10px;
}
.him-svc-screens__item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: contain;
}

/* —— Price page —— */
.him-price-page { padding-top: 28px; }
.him-price-page__inner { max-width: 1100px; }
.him-price-page__head { margin-bottom: 28px; }
.him-price-prose {
    max-width: 760px;
    margin: 0 auto 28px;
    line-height: 1.65;
    font-size: 16px;
}
.him-price-prose--below { margin-top: 28px; margin-bottom: 8px; }
.him-price-prose p:first-child { margin-top: 0; }
.him-price-prose p:last-child { margin-bottom: 0; }
.him-price-wrap,
body.him-site .hi-price-wrap {
    overflow-x: auto;
    max-width: 1100px;
    margin: 0 auto 8px;
}
.him-price-table,
body.him-site .hi-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
body.him-site .hi-price-table th,
.him-price-table th {
    background: var(--him-accent-dark, #3d4f5f);
    color: #fff;
    padding: 10px;
    border: 1px solid var(--him-border);
}
body.him-site .hi-price-table td,
.him-price-table td {
    padding: 10px;
    border: 1px solid var(--him-border);
    text-align: center;
    background: var(--him-surface);
}
body.him-site .hi-price-table td:first-child,
.him-price-table td:first-child { text-align: left; }

/* —— Photo gallery page —— */
.him-gallery-page { padding-top: 28px; }
.him-gallery-page__inner { max-width: 1100px; }
.him-gallery-page__head { margin-bottom: 36px; }
.him-photo-grid {
    --him-bal-gap: 14px;
}
.him-photo-grid__item {
    display: block;
    border-radius: var(--him-radius);
    overflow: hidden;
    background: #dedad3;
    aspect-ratio: 4 / 3;
    box-shadow: var(--him-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.him-photo-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (hover: hover) and (pointer: fine) {
    .him-photo-grid__item:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(40, 48, 56, .14);
    }
}

@media (max-width: 1100px) {
    .him-svc-screens.him-balance-grid[data-cols="4"] { --him-bal-cols: 3; }
}
@media (max-width: 1024px) {
    .him-balance-grid[data-cols="4"] { --him-bal-cols: 3; }
    .him-svc-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .him-svc-screens.him-balance-grid[data-cols="4"],
    .him-svc-screens.him-balance-grid[data-cols="3"] { --him-bal-cols: 2; }
}
@media (max-width: 768px) {
    .him-balance-grid[data-cols="4"],
    .him-balance-grid[data-cols="3"] { --him-bal-cols: 2; }
    .him-svc-screens.him-balance-grid[data-cols] { --him-bal-cols: 1; }
}
@media (max-width: 600px) {
    .him-svc-photos { grid-template-columns: 1fr; }
    .him-photo-grid.him-balance-grid[data-cols="4"],
    .him-photo-grid.him-balance-grid[data-cols="3"],
    .him-photo-grid.him-balance-grid[data-cols="2"] { --him-bal-cols: 1; }
}

/* —— Reviews page (Yandex widget) —— */
.him-reviews-page { padding-top: 28px; }
.him-reviews-page__inner {
    max-width: 1100px;
    width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
}
.him-reviews-widget {
    display: flex;
    justify-content: center;
    width: min(980px, 100%);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-inline: auto;
    box-sizing: border-box;
}
.him-reviews-widget .him-reviews-embed {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-inline: auto;
    box-sizing: border-box;
}
.him-reviews-widget .him-reviews-embed iframe,
.him-reviews-widget iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
    margin-inline: auto;
    box-sizing: border-box;
    border: 0;
}

@media (max-width: 768px) {
    .him-reviews-widget {
        width: 100%;
        max-width: 100%;
        padding-inline: 0;
    }
}

/* Soft overrides when parent templates render under child shell */
body.him-site .hi-main,
body.him-site .hi-section,
body.him-site .hi-entry,
body.him-site .hi-page-content,
body.him-site .hi-services {
    font-family: var(--him-font);
    color: var(--him-text);
}
body.him-site .hi-section-title {
    text-transform: none;
    letter-spacing: -0.02em;
    font-weight: 600;
}
body.him-site .hi-btn--gold {
    background: var(--him-accent);
    color: #fff !important;
    border-radius: 999px;
    text-transform: none;
    letter-spacing: 0;
}
