/* ==========================================================
   London Hotel Bishkek — улучшения главной страницы
   (подключается только на index.htm и en/index.htm)
   ========================================================== */

@keyframes lhKen   { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes lhUp    { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes lhStar  { 0% { opacity: 0; transform: scale(.3) rotate(-40deg); } 70% { opacity: 1; transform: scale(1.18) rotate(6deg); } 100% { opacity: 1; transform: none; } }

/* ---------- 0. Заставка при загрузке ---------- */
@keyframes lhPreLogo { from { opacity: 0; transform: translateY(14px) scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes lhPreStar { from { opacity: 0; transform: scale(.2) rotate(-60deg); } to { opacity: 1; transform: none; } }
@keyframes lhPreBar  { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lhPreShine { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes lhPreFade { from { opacity: 0; letter-spacing: .9em; } to { opacity: 1; letter-spacing: .55em; } }

.lh-preloader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 42%, #fffdf9 0%, rgba(255, 253, 249, 0) 55%),
        linear-gradient(160deg, #fbf8f3 0%, #f3eadf 100%);
    clip-path: inset(0 0 0 0);
    transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1);
}
.lh-preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.lh-preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity .5s ease, transform 1.1s cubic-bezier(.77, 0, .18, 1);
}
.lh-preloader.is-done .lh-preloader__inner { opacity: 0; transform: translateY(-60px); }
.lh-preloader__logo {
    display: block;
    width: clamp(150px, 16vw, 210px);
    height: auto;
    animation: lhPreLogo 1.1s cubic-bezier(.22, .61, .36, 1) both;
}
.lh-preloader__stars { display: flex; gap: 9px; margin-top: 22px; }
.lh-preloader__stars i {
    width: 13px;
    height: 13px;
    background: #ddad6a;
    clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: lhPreStar .6s cubic-bezier(.22, .61, .36, 1) both;
}
.lh-preloader__stars i:nth-child(1) { animation-delay: .45s; }
.lh-preloader__stars i:nth-child(2) { animation-delay: .6s; }
.lh-preloader__stars i:nth-child(3) { animation-delay: .75s; }
.lh-preloader__stars i:nth-child(4) { animation-delay: .9s; }
.lh-preloader__bar {
    position: relative;
    width: clamp(140px, 14vw, 200px);
    height: 1px;
    margin-top: 26px;
    background: rgba(221, 173, 106, .25);
    overflow: hidden;
}
.lh-preloader__bar span {
    position: absolute;
    inset: 0;
    background: #ddad6a;
    transform-origin: left center;
    animation: lhPreBar 1.5s cubic-bezier(.65, 0, .35, 1) .2s both;
}
.lh-preloader__bar span::after {
    content: '';
    position: absolute;
    top: -1px;
    bottom: -1px;
    width: 40%;
    background: linear-gradient(90deg, transparent, #fff3dc, transparent);
    animation: lhPreShine 1.4s ease-in-out infinite;
}
.lh-preloader__caption {
    margin-top: 18px;
    padding-left: .55em;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .55em;
    text-transform: uppercase;
    color: #b8874a;
    animation: lhPreFade 1.2s cubic-bezier(.22, .61, .36, 1) .5s both;
}
/* анимации баннера стартуют после заставки */
.lh-loading .main-first__video-poster::before,
.lh-loading .main-first .main-first__text,
.lh-loading .main-first__stars svg g { animation-play-state: paused; }
html.lh-loading .main-first .main-first__title .main_svg.path-animate path {
    stroke-dashoffset: var(--text-length);
    fill-opacity: 0;
    transition: none;
}
html.lh-loading .main-first .main-first__image img.main-image-revealed {
    opacity: 0;
    transform: scale(1.035);
    filter: blur(8px);
    transition: none;
}

/* ---------- 1. Главный баннер ---------- */
.main-first__video-poster { overflow: hidden; }
.main-first__video-poster::before {
    background-image: inherit !important;
    background-size: cover;
    background-position: inherit;
    background-color: transparent !important;
    transform-origin: 55% 35%;
    animation: lhKen 16s cubic-bezier(.22, .61, .36, 1) both;
}
.main-first__video-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(20, 13, 6, 0) 50%, rgba(20, 13, 6, .55) 100%);
}

/* Крупная надпись «London Hotel»: тень + золотой перелив */
.main-first .main-first__title svg.main_svg {
    filter: drop-shadow(0 6px 22px rgba(70, 42, 12, .38));
}
.main-first .main-first__title svg.main_svg path {
    fill: url(#lhGold) !important;
}

/* Текст под звёздами */
.main-first .main-first__text {
    font-family: 'rmls-regular', Georgia, serif;
    font-size: clamp(17px, 1.18vw, 23px);
    line-height: 1.34;
    font-weight: 400;
    letter-spacing: 0;
    color: #2a2325;
    border-left: 2px solid #ddad6a;
    padding-left: 22px;
    animation: lhUp 1.2s .35s cubic-bezier(.22, .61, .36, 1) both;
}
/* на планшете и телефоне — исходная типографика: надпись «London Hotel» там привязана к низу баннера,
   и более высокий текст сдвигает «Забронировать номер» на неё */
@media all and (max-width: 1260px) {
    .main-first .main-first__text {
        font-family: Montserrat, sans-serif;
        font-size: 14px;
        line-height: normal;
        font-weight: 300;
        color: #242424;
        border-left: 0;
        padding-left: 0 !important;
    }
    .main-first .main-first__stars { margin-bottom: 5px; }
}

.main-first .main-first__stars { margin-bottom: 20px; }
.main-first__stars svg g { transform-box: fill-box; transform-origin: center; animation: lhStar .8s cubic-bezier(.22, .61, .36, 1) both; }
.main-first__stars svg g:nth-of-type(1) { animation-delay: .15s; }
.main-first__stars svg g:nth-of-type(2) { animation-delay: .3s; }
.main-first__stars svg g:nth-of-type(3) { animation-delay: .45s; }
.main-first__stars svg g:nth-of-type(4) { animation-delay: .6s; }

@media all and (min-width: 768px) {
    .main-first__right-title { text-shadow: 0 4px 24px rgba(0, 0, 0, .35); }
}
@media all and (max-width: 767px) {
    .main-first .main-first__title svg.main_svg { filter: drop-shadow(0 4px 12px rgba(70, 42, 12, .16)); }
}

/* ---------- 2. Блок «Британский шик»: заголовок не заезжает на круги ---------- */
.citys-pearl .citys-pearl__title {
    font-size: clamp(44px, 5.3vw, 96px);
    line-height: 1.02;
}
@media all and (min-width: 1501px) {
    .citys-pearl .citys-pearl__title { max-width: calc(100% - 640px); }
}
@media all and (min-width: 1261px) and (max-width: 1500px) {
    .citys-pearl .citys-pearl__title { max-width: calc(100% - 520px); }
}
@media all and (max-width: 1260px) {
    .citys-pearl .citys-pearl__title { max-width: calc(100% - 290px); font-size: clamp(34px, 5.6vw, 64px); }
}
@media all and (max-width: 550px) {
    .citys-pearl .citys-pearl__title { max-width: calc(100% - 120px); font-size: 30px; }
}

/* ---------- 3. Ресепшн: аккуратная сетка фото с отступами ---------- */
.congress-block .congress-block__gallery {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 26px;
    align-items: start;
    padding-left: 26px;
}
.congress-block .congress-block__gallery-item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    box-shadow: 0 18px 40px -22px rgba(40, 25, 10, .45);
}
.congress-block .congress-block__gallery-item:nth-child(1) { grid-column: 1; grid-row: 1; margin-top: 70px !important; }
.congress-block .congress-block__gallery-item:nth-child(2) { grid-column: 1; grid-row: 2; }
.congress-block .congress-block__gallery-item:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; }
.congress-block .congress-block__gallery-item:nth-child(1) a { padding-top: 92%; }
.congress-block .congress-block__gallery-item:nth-child(2) a { padding-top: 68%; }
.congress-block .congress-block__gallery-item:nth-child(3) a { padding-top: 150%; }
.congress-block .congress-block__gallery-item a img {
    width: 100%;
    height: 100%;
    transition: opacity 1.5s cubic-bezier(.22, .61, .36, 1), transform 1.2s cubic-bezier(.22, .61, .36, 1), filter 1.6s cubic-bezier(.22, .61, .36, 1) !important;
}
.congress-block .congress-block__gallery-item a:hover img.congress-img-visible { transform: scale(1.05); }

@media all and (max-width: 1024px) {
    .congress-block .congress-block__gallery { padding-left: 0; gap: 18px; margin-top: 30px; }
    .congress-block .congress-block__gallery-item:nth-child(1) { margin-top: 40px !important; }
    .congress-block .congress-block__inner { height: auto !important; }
}
@media all and (max-width: 550px) {
    .congress-block .congress-block__gallery { gap: 12px; }
    .congress-block .congress-block__gallery-item:nth-child(1) { margin-top: 28px !important; }
    .congress-block .congress-block__gallery-item:nth-child(3) a { padding-top: 165%; }
    .congress-block .congress-block__gallery-item a { height: auto !important; }
}

/* кнопка «Узнать подробнее» не наезжает на текст (текст сдвигается параллаксом) */
.congress-block .button_link { margin-top: 30px; }

@media (prefers-reduced-motion: reduce) {
    .lh-preloader__logo, .lh-preloader__stars i, .lh-preloader__bar span, .lh-preloader__bar span::after, .lh-preloader__caption { animation: none !important; }
    .lh-preloader, .lh-preloader__inner { transition: opacity .4s ease !important; }
    .lh-preloader.is-done { opacity: 0; clip-path: none; }
    .main-first__video-poster::before,
    .main-first .main-first__text,
    .main-first__stars svg g { animation: none !important; }
}
