/* =============================================
   LOGO STYLES — хостелнедорого.рф
   Logo SVG + divider + text in a row
   ============================================= */

/* --- Logo container (unified across ALL pages) --- */
.logo,
.header__logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    /* Reset properties that some pages incorrectly set on the container */
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}

/* header__logo also needs hover behavior */
.header__logo:hover .logo-icon {
    transform: scale(1.12) rotate(0deg);
    filter: drop-shadow(0 4px 12px rgba(18, 144, 248, 0.5));
}

.header__logo .logo-text {
    opacity: 0;
    transform: translateX(-8px);
    animation: logoTextSlide 0.6s ease 0.35s forwards;
}

/* mobile-menu__logo */
.mobile-menu__logo {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.mobile-menu__logo .logo-icon {
    width: 32px;
    height: 32px;
    opacity: 1;
    transform: none;
    animation: none;
}

.mobile-menu__logo .logo-divider {
    height: 22px;
    opacity: 1;
    animation: none;
}

.mobile-menu__logo .logo-menu-text {
    opacity: 1;
    transform: none;
    animation: none;
}

/* --- SVG icon --- */
.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.3) rotate(-15deg);
    animation: logoReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
    filter: drop-shadow(0 2px 6px rgba(18, 144, 248, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.12) rotate(0deg);
    filter: drop-shadow(0 4px 12px rgba(18, 144, 248, 0.5));
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-15deg);
    }
    60% {
        opacity: 1;
        transform: scale(1.1) rotate(3deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* --- Vertical divider --- */
.logo-divider {
    width: 1.5px;
    height: 28px;
    flex-shrink: 0;
    background: linear-gradient(180deg, transparent, rgba(18, 144, 248, 0.4), transparent);
    opacity: 0;
    animation: dividerFadeIn 0.5s ease 0.5s forwards;
}

@keyframes dividerFadeIn {
    to { opacity: 1; }
}

/* --- Logo text with gradient --- */
.logo .logo-text,
.header__logo .logo-text {
    opacity: 0;
    transform: translateX(-8px);
    animation: logoTextSlide 0.6s ease 0.35s forwards !important;
    background: linear-gradient(135deg, #1290F8, #2196F3, #1290F8) !important;
    background-size: 200% 200% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: #1290F8 !important;
    font-weight: 600 !important;
}

/* Menu text (no gradient) */
.logo .logo-menu-text,
.mobile-menu__logo .logo-menu-text {
    color: inherit;
}

@keyframes logoTextSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gradientFlow {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Mobile menu logo --- */
.mobile-menu__header .logo {
    gap: 8px;
}

.mobile-menu__header .logo-icon {
    width: 32px;
    height: 32px;
    opacity: 1;
    transform: none;
    animation: none;
}

.mobile-menu__header .logo-divider {
    height: 22px;
    opacity: 1;
    animation: none;
}

.mobile-menu__header .logo .logo-text,
.mobile-menu__header .logo-menu-text {
    opacity: 1;
    transform: none;
    animation: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablets */
@media (max-width: 1024px) {
    .logo,
    .header__logo {
        font-size: 1.4rem !important;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .logo,
    .header__logo {
        gap: 7px !important;
        font-size: 1.2rem !important;
        margin-left: 15px !important;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .logo,
    .header__logo {
        gap: 5px !important;
        font-size: 1rem !important;
    }

    .logo-icon {
        width: 26px;
        height: 26px;
    }
}
