/* fixes.css */
/* Показывать заголовки на мобильных */
@media screen and (max-width: 736px) {
    #main .item h2 {
        display: block !important;
        font-size: 1.1em;
        margin: 0.5em 0 0.2em;
        color: var(--text);
        text-align: center;
        opacity: 1 !important;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
    }
}

.phone-number {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.1em;
}

.balloon-floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.highlight-accent {
    color: var(--secondary);
    font-weight: 600;
}

/* ФИКС ГРАДИЕНТА ДЛЯ МОБИЛЬНЫХ - ОСНОВНОЙ */
@media screen and (max-width: 736px) {
    body {
        background: linear-gradient(130deg, #4b290a, #b87c84, #ceaf91) !important;
        background-attachment: fixed !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        min-height: 100vh;
        margin: 0;
        padding: 0;
        position: relative;
    }
    
    /* Убираем мешающий псевдоэлемент */
    body::before {
        display: none !important;
    }
    
    /* Улучшение читаемости на мобильных */
    #main .item {
        background: rgba(255, 255, 255, 0.15) !important;
        backdrop-filter: blur(15px) !important;
    }
    
    #main .item.intro {
        background: linear-gradient(135deg, rgba(184, 124, 132, 0.95), rgba(206, 175, 145, 0.95)) !important;
    }
}

/* Стили для логотипа в блоке intro */
.intro-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1em;
    width: 100%;
}

.intro-logo img {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(75, 41, 10, 0.4));
    transition: transform 0.3s ease;
}

.intro-logo img:hover {
    transform: scale(1.05);
}

/* Адаптивность для логотипа в intro */
@media screen and (max-width: 736px) {
    .intro-logo img {
        max-height: 100px;
    }
}

@media screen and (max-width: 480px) {
    .intro-logo img {
        max-height: 100px;
    }
}

/* ФИКС ДЛЯ iOS Safari */
@supports (-webkit-touch-callout: none) {
    body {
        background: linear-gradient(130deg, #4b290a, #b87c84, #ceaf91) !important;
        background-attachment: scroll !important;
        background-size: cover !important;
        -webkit-background-size: cover !important;
        background-position: center center !important;
        min-height: -webkit-fill-available;
    }
}

/* ФИКС ДЛЯ МОБИЛЬНЫХ С МАЛЕНЬКОЙ ВЫСОТОЙ ЭКРАНА */
@media screen and (max-width: 736px) and (max-height: 700px) {
    body {
        background: linear-gradient(130deg, #4b290a, #b87c84, #ceaf91) !important;
        background-size: auto 100% !important;
        background-position: top center !important;
    }
}

/* УБЕДИТЕСЬ, ЧТО ФОН ВИДЕН ПОД ВСЕМИ ЭЛЕМЕНТАМИ */
#wrapper, #main, .items, .item {
    background: transparent !important;
}

/* АЛЬТЕРНАТИВНЫЙ ФИКС - создаем новый псевдоэлемент для фона */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(130deg, #4b290a, #b87c84, #ceaf91);
    z-index: -9999;
    pointer-events: none;
    display: none;
}

@media screen and (max-width: 736px) {
    body::after {
        display: block !important;
    }
    
    body {
        background: none !important;
    }
}