/* Hotel Impire — самостоятельная тема, без CSS WebsiteX5 */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body.hi-site {
    margin: 0;
    color: #19232d;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
    background-color: #101820;
    background-image: url("../images/Pyatigorsk-dark2.webp");
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: #19232d; }
button { font-family: inherit; }

.hi-skip {
    position: absolute; left: -9999px;
}
.hi-skip:focus { left: 12px; top: 12px; z-index: 10000; background: #fff; padding: 8px 12px; }

.hi-wrap {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.hi-header { position: relative; z-index: 40; }
.hi-topbar {
    background: #11181f;
    color: #f3f3f3;
    font-size: 13px;
}
.hi-topbar__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 22px;
    min-height: 36px;
    flex-wrap: wrap;
}
.hi-topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.hi-topbar a { color: #fff; text-decoration: none; }
.hi-topbar a:hover { color: #e0c27a; }
.hi-topbar img { width: 14px; height: 14px; filter: brightness(10); }

.hi-navbar {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
    position: sticky;
    top: 0;
    z-index: 30;
}
.hi-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 96px;
}
.hi-logo img { display: block; width: 110px; height: auto; }
.hi-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px 18px;
}
.hi-menu a {
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #19232d;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}
.hi-menu a:hover,
.hi-menu .is-current a {
    color: #b08d57;
    border-bottom-color: #b08d57;
}
.hi-burger { display: none; background: none; border: 0; padding: 0; cursor: pointer; }
.hi-burger img { width: 44px; height: 44px; }

.hi-mobile-menu {
    position: fixed; inset: 0; background: #11181f; color: #fff; z-index: 100000;
    padding: 64px 28px; overflow: auto;
}
.hi-mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.hi-mobile-menu a { color: #fff; font-size: 22px; text-decoration: none; display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.hi-mobile-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; }

.hi-main {
    width: min(1280px, 100%);
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,.28);
    min-height: 50vh;
}

.hi-hero {
    position: relative;
    min-height: 460px;
    background: #19232d center / cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 56px 20px;
}
.hi-hero__shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,16,24,.35) 0%, rgba(10,16,24,.55) 100%);
}
.hi-hero__inner { position: relative; z-index: 1; max-width: 820px; }
.hi-hero__ornament { margin-bottom: 12px; }
.hi-hero__title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    margin: 0 0 14px;
    text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.hi-hero__sub {
    font-size: 18px;
    line-height: 1.45;
    margin: 0 auto 22px;
    max-width: 640px;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.hi-hero__phones {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
}
.hi-hero__phones a {
    color: #fff;
    text-decoration: none;
    font-size: 26px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.hi-hero__phones img { width: 28px; height: 28px; filter: brightness(10); }

.hi-btn {
    display: inline-block;
    text-decoration: none !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 12px 26px;
    border: 0;
    cursor: pointer;
    font-size: 13px;
}
.hi-btn--gold { background: #c4a35a; color: #fff !important; }
.hi-btn--gold:hover { background: #b08d57; }
.hi-btn--dark { background: #19232d; color: #fff !important; }
.hi-btn--dark:hover { background: #0f161c; }

.hi-advantages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 20px;
    padding: 28px 24px;
    background: #f6f4f0;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .02em;
}
.hi-adv img { width: 56px; height: 56px; margin-bottom: 8px; }

.hi-section { padding: 36px 20px 48px; }
.hi-section__more { text-align: center; margin: 8px 0 0; }
.hi-section-head { text-align: center; margin: 0 0 28px; }
.hi-section-sub { font-size: 15px; letter-spacing: .12em; color: #6b7380; margin: 8px 0 4px; }
.hi-section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 3vw, 34px);
    margin: 6px 0 10px;
    text-transform: uppercase;
    font-weight: 400;
}

.hi-rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 20px;
    max-width: 1140px;
    margin: 0 auto 24px;
}
.hi-room-card {
    background: #fff;
    border: 1px solid #ece7de;
    box-shadow: 0 8px 20px rgba(25,35,45,.06);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hi-room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(25,35,45,.12);
}
.hi-room-card__img { position: relative; display: block; background: #d9d3c8; }
.hi-room-card__img img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}
.hi-room-card__badge {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(17,24,31,.82);
    color: #fff;
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 8px;
}
.hi-room-card__body { padding: 16px 16px 20px; text-align: center; }
.hi-room-card__title { margin: 0 0 8px; font-size: 15px; text-transform: uppercase; line-height: 1.35; }
.hi-room-card__title a { color: #19232d; text-decoration: none; }
.hi-room-card__title a:hover { color: #b08d57; }
.hi-room-card__price { margin: 0 0 14px; color: #5c6570; }
.hi-room-card__price strong { color: #1e4f8a; font-size: 20px; }
.hi-room-card__btn { width: 100%; }

.hi-room-single { max-width: 920px; margin: 0 auto; }
.hi-room-single__featured { width: 100%; height: auto; display: block; margin: 0 auto 16px; }
.hi-room-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin: 16px 0 24px;
}
.hi-room-gallery img { width: 100%; height: 120px; object-fit: cover; display: block; }
.hi-room-single__label { font-size: 18px; }
.hi-room-single__price { font-size: 18px; }
.hi-room-single__price-value { color: #b08d57; font-size: 22px; }

.hi-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto 40px;
}
.hi-gallery-item img { width: 100%; height: 180px; object-fit: cover; display: block; }

.hi-price-heading { text-align: center; margin-bottom: 20px; }
.hi-price-wrap { overflow-x: auto; max-width: 1100px; margin: 0 auto 24px; }
.hi-price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hi-price-table th { background: #19232d; color: #fff; padding: 10px; border: 1px solid #ddd; }
.hi-price-table td { padding: 10px; border: 1px solid #ddd; text-align: center; }
.hi-price-table td:first-child { text-align: left; }

.hi-page-content, .hi-entry, .hi-services {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8px 20px 40px;
    line-height: 1.65;
}
.hi-entry [id^="imCell"],
.hi-entry [id^="imObject"],
.hi-entry [class*="template-object"] {
    position: static !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
    float: none !important;
}
.hi-services-list { max-width: 700px; margin: 0 auto 30px; }
.hi-map iframe { width: 100%; max-width: 1000px; height: 400px; border: 0; }
.hi-review { max-width: 800px; margin: 0 auto 24px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.hi-stars { color: #ccc; }
.hi-star--filled { color: #c9a227; }
.hi-yandex-reviews { max-width: 900px; margin: 0 auto 40px; padding: 0 20px; }

.hi-footer {
    width: min(1280px, 100%);
    margin: 0 auto;
    background: #19232d;
    color: #d7dbe0;
}
.hi-footer a { color: #f0f2f4; text-decoration: none; }
.hi-footer a:hover { color: #e0c27a; }
.hi-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
    padding: 36px 0 28px;
}
.hi-footer h2 {
    margin: 0 0 12px;
    color: #e0c27a;
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hi-footer__tag { color: #b8c0c8; font-size: 14px; }
.hi-footer__menu { list-style: none; margin: 0; padding: 0; }
.hi-footer__menu li { margin: 0 0 6px; }
.hi-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 14px 0 18px;
    font-size: 13px;
}
.hi-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.hi-footer__copy { margin: 0; color: #b8c0c8; }
.hi-footer__dot { margin: 0 8px; color: #7d8790; }

.hi-whatsapp-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    background: #25d366; color: #fff !important; padding: 12px 18px;
    border-radius: 30px; text-decoration: none; font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hi-lightbox {
    position: fixed; inset: 0; background: rgba(0,0,0,0.92);
    z-index: 999999; display: flex; align-items: center; justify-content: center;
}
.hi-lightbox img { max-width: 88vw; max-height: 90vh; object-fit: contain; }
.hi-lightbox__btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15); color: #fff; border: 0;
    width: 48px; height: 48px; font-size: 28px; cursor: pointer; border-radius: 50%;
}
.hi-lightbox__prev { left: 16px; }
.hi-lightbox__next { right: 16px; }
.hi-lightbox__close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; }

.hi-404 {
    text-align: center;
    max-width: 640px;
    margin: 40px auto 60px;
    padding: 20px 16px;
}
.hi-404__eyebrow { margin: 12px 0 4px; font-size: 16px; letter-spacing: 0.04em; }
.hi-404__title { font-size: 28px; text-transform: uppercase; margin: 8px 0 12px; }
.hi-404__text { font-size: 16px; line-height: 1.6; color: #444; margin: 18px 0 28px; }
.hi-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hi-404__btn {
    display: inline-block;
    padding: 12px 22px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid #19232d;
    color: #19232d !important;
}
.hi-404__btn--primary { background: #19232d; color: #fff !important; }

@media (max-width: 959px) {
    .hi-nav--desktop { display: none; }
    .hi-burger { display: block; }
    .hi-advantages, .hi-rooms-grid, .hi-footer__grid { grid-template-columns: 1fr 1fr; }
    .hi-topbar__inner { justify-content: center; padding: 6px 0; }
    .hi-hero { min-height: 380px; }
    .hi-hero__phones a { font-size: 22px; }
}
@media (max-width: 600px) {
    body.hi-site { background-attachment: scroll; }
    .hi-advantages, .hi-rooms-grid, .hi-footer__grid { grid-template-columns: 1fr; }
    .hi-hero__title { font-size: 24px; }
    .hi-navbar__inner { min-height: 76px; }
    .hi-logo img { width: 86px; }
    .hi-room-card__img img { height: 190px; }
}
