/* =======================================================================
   FOOTER — НЕОНОВЫЙ, ЧИСТЫЙ, АККУРАТНЫЙ
======================================================================= */

.lolli-footer {
    background: #0d0d15;
    color: #f6d9ff;
    padding: 48px 0 34px;
    text-align: center;

    border-top: 2px solid #ff77cc;
    box-shadow: 0 -6px 22px rgba(255, 105, 180, 0.32);

    margin-top: auto; /* всегда прижимается вниз */
}

/* Контейнер */
.lolli-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* Навигация */
.lolli-footer-nav {
    margin-bottom: 22px;
}

.lolli-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0 auto;

    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px 20px;
}

.lolli-footer-menu li a {
    color: #ffd8f8;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.25s ease;
}

.lolli-footer-menu li a:hover {
    color: #ff9cea;
    text-shadow: 0 0 10px rgba(255, 100, 200, .7);
}

/* Копирайт */
.lolli-footer-copy {
    margin-top: 26px;
    color: #bbaac5;
    font-size: 14px;
}



/* =======================================================================
   MOBILE NAV — НИЖНЯЯ ПАНЕЛЬ ДЛЯ МОБИЛОК
======================================================================= */

.lolli-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

    background: #111018;
    border-top: 2px solid #ff77cc;

    display: flex;
    justify-content: space-around;
    align-items: center;

    padding: 8px 0;
    z-index: 9999;

    box-shadow: 0 -5px 18px rgba(255, 105, 180, 0.32);
}

/* Элемент меню */
.lolli-nav-item {
    width: 20%;
    text-align: center;
    color: #ffe8f6;

    font-size: 22px;
    text-decoration: none;

    display: flex;
    flex-direction: column;
    align-items: center;

    opacity: 0.92;
    transition: .25s ease;
}

.lolli-nav-item:hover {
    opacity: 1;
    color: #ff77cc;
    transform: translateY(-2px);
}

/* Текст под иконкой */
.lolli-nav-item span {
    font-size: 12px;
    margin-top: 2px;
}



/* =======================================================================
   АДАПТИВНОСТЬ
======================================================================= */

/* Прячем мобильную нижнюю навигацию на ПК */
@media (min-width: 768px) {
    .lolli-mobile-nav {
        display: none;
    }
}

/* Уменьшаем сетку футера на мобилках */
@media (max-width: 600px) {
    .lolli-footer-menu {
        grid-template-columns: repeat(2,1fr);
        text-align: center;
    }
}

.lolli-search-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lolli-search-modal.is-open {
    display: flex;
}

.lolli-search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.7);
}

.lolli-search-modal__content {
    position: relative;
    z-index: 1;
    width: min(520px, 94%);
    background: #151521;
    border-radius: 22px;
    padding: 18px 18px 22px;
    box-shadow: 0 0 32px rgba(0,0,0,.8);
}

.lolli-search-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: #242436;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.lolli-search-modal__inner {
    margin-top: 10px;
}

/* чтобы при открытии не прыгал фон */
body.lolli-search-open {
    overflow: hidden;
}

/* ================================
   SEARCH MODAL – TOP STYLE
================================ */

.lolli-search-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.lolli-search-modal.is-open {
    display: block;
}

.lolli-search-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
}

.lolli-search-modal__content.lolli-search-top {
    position: absolute;
    top: 0; /* ← ВЕРХНИЙ КРАЙ */
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, 94%);
    background: #151521;
    border-radius: 0 0 22px 22px; /* красиво снизу */
    padding: 18px 18px 26px;
    z-index: 10;

    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

/* закрыть */
.lolli-search-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #242436;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.lolli-search-modal__inner {
    margin-top: 28px; /* отступ под кнопку */
}

/* чтобы фон не двигался */
body.lolli-search-open {
    overflow: hidden;
}

/* Мобильный вид */
@media (max-width: 600px) {
    .lolli-search-modal__content.lolli-search-top {
        width: 100%;
        border-radius: 0 0 18px 18px;
        padding: 16px 14px 22px;
    }
}
