/* Header brand lockup: HotelOfficial beside a linked Yandex Travel wordmark. */
.home .hero-brand {
    display: flex !important;
    flex: 0 1 auto !important;
    align-items: center !important;
    gap: clamp(6px, .7vw, 10px) !important;
    width: auto !important;
    max-width: min(100%, 480px);
    min-width: 0;
    line-height: 1 !important;
    white-space: nowrap;
}

.home .brand-home-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    border-radius: 4px;
    line-height: 0;
}

.home .brand-home-link:focus-visible {
    outline: 3px solid #d1a92c;
    outline-offset: 4px;
}

.home .brand-home-link:focus-visible,
.home a.brand-yandex:focus-visible {
    outline: 3px solid #d1a92c;
    outline-offset: 4px;
}

.home .brand-home-link > .brand-hotel-logo {
    display: block !important;
    flex: 0 0 auto;
    width: clamp(56px, 6.5vw, 92px) !important;
    height: auto !important;
    max-height: 60px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.home .brand-divider {
    display: block;
    flex: 0 0 1px;
    height: 26px;
    background: #59616d;
    opacity: .62;
}

.home .brand-yandex {
    display: inline-flex;
    flex: 0 1 auto;
    min-width: 0;
    align-items: center;
    border-radius: 5px;
    color: inherit;
    text-decoration: none;
    transition: opacity .18s ease, transform .18s ease;
}

.home a.brand-yandex:hover {
    opacity: .82;
    transform: translateY(-1px);
}

.home .brand-yandex-icon {
    display: block !important;
    flex: 0 0 auto;
    width: clamp(20px, 1.8vw, 30px) !important;
    height: clamp(20px, 1.8vw, 30px) !important;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.home .brand-yandex-text {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #1a1d22;
    font-size: clamp(13px, 1.05vw, 16px) !important;
    font-weight: 600 !important;
    letter-spacing: -.025em !important;
    line-height: 1.1 !important;
    white-space: nowrap;
}

.home .places-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px 20px !important;
    align-items: start;
}

.home .places-grid .place-photo img,
.home .places-grid .place-moscow .place-photo img,
.home .places-grid .place-petersburg .place-photo img {
    height: 238px !important;
    aspect-ratio: 1.2;
    object-fit: cover;
}

.home .stay-photo-collage {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(110px, .8fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 9px;
}

.home .stay-photo-collage .stay-photo-main {
    grid-column: 1;
    grid-row: 1;
    height: 490px !important;
    min-height: 0;
    object-fit: cover;
}

.home .stay-photo-side {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 9px;
    height: 490px;
    min-height: 0;
}

.home .stay-photo-collage .stay-photo-side img {
    display: block;
    width: 100%;
    height: 100% !important;
    min-height: 0;
    object-fit: cover;
    border-radius: 4px;
}

.home .stay-photo-collage figcaption {
    grid-column: 1 / -1;
}

.home .site-footer {
    background: #fff;
    padding-top: 30px;
}

@media (max-width: 1100px) {
    .home .hero-brand {
        gap: 7px !important;
    }

    .home .brand-home-link > .brand-hotel-logo {
        width: 76px !important;
    }

    .home .brand-yandex-icon {
        width: 25px !important;
        height: 25px !important;
    }

    .home .brand-yandex-text {
        font-size: 14px !important;
    }

    .home .places-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .home .stay-photo-collage .stay-photo-main,
    .home .stay-photo-side {
        height: 420px !important;
    }
}

@media (max-width: 600px) {
    .home .hero-brand {
        max-width: 290px;
        gap: 6px !important;
    }

    .home .brand-home-link > .brand-hotel-logo {
        width: 62px !important;
        max-height: 44px;
    }

    .home .brand-divider {
        height: 22px;
    }

    .home .brand-yandex {
        gap: 5px;
    }

    .home .brand-yandex-icon {
        width: 21px !important;
        height: 21px !important;
    }

    .home .brand-yandex-text {
        font-size: 13px !important;
        letter-spacing: -.035em !important;
    }


    .home .places-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px 12px !important;
    }

    .home .places-grid .place-photo img,
    .home .places-grid .place-moscow .place-photo img,
    .home .places-grid .place-petersburg .place-photo img {
        height: 190px !important;
    }

    .home .stay-photo-collage {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 8px;
    }

    .home .stay-photo-collage .stay-photo-main {
        grid-column: 1;
        grid-row: 1;
        height: 265px !important;
    }

    .home .stay-photo-side {
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: 1fr;
        height: 92px !important;
        gap: 8px;
    }

    .home .stay-photo-collage figcaption {
        grid-column: 1;
        grid-row: 3;
    }

    .home .site-footer {
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media (max-width: 380px) {
    .home .brand-home-link > .brand-hotel-logo {
        width: 54px !important;
    }

    .home .brand-yandex-icon {
        width: 18px !important;
        height: 18px !important;
    }

    .home .brand-yandex-text {
        font-size: 12px !important;
    }

    .home .brand-home-link > .brand-hotel-logo {
        width: 54px !important;
    }

}
