.top-bar {
    background: linear-gradient(
        135deg,
        rgba(243, 194, 17, 0.377) 0%,     
        rgba(240, 193, 25, 0.295) 50%,   
        rgba(243, 196, 24, 0.377) 100%    
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center; /* Изменено с space-between на center */
    padding: clamp(12px, 3vw, 16px) clamp(16px, 4vw, 24px);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Стили для кнопки назад */
.back-btn {
    position: absolute;
    left: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    font-size: 30px;
}


/* Скрываем плейсхолдер на всех страницах */
.back-btn-placeholder {
    display: none;
}

/* Стили для логотипа */
.brand {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo {
    height: 60px;
    width: 270px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
}

/* Эффект при наведении на логотип */
.logo-link:hover .logo {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Остальные стили хедера остаются без изменений */
.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 30%,
        transparent 70%
    );
    border-radius: 50px;
    opacity: 0.6;
    pointer-events: none;
}


/* Стили для логотипа */
.brand {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Эффект при наведении на логотип */
.logo-link:hover .logo {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Адаптивность для планшетов */
@media (min-width: 768px) {
    .top-bar {
        width: calc(100%);
        max-width: min(1000px, 85vw);
        padding: clamp(12px, 3vw, 16px) clamp(20px, 4vw, 28px);
        height: 90px;
    }
}

/* Адаптивность для десктопов */
@media (min-width: 924px) {
    .top-bar {
        width: calc(100%);
        max-width: min(1000px, 80vw);
        padding: 14px clamp(24px, 4vw, 32px);
        height: 90px;

    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 480px) {
    .top-bar {
        max-width: min(1000px, 95vw);
        padding: clamp(10px, 3vw, 14px) clamp(14px, 4vw, 18px);
        margin-bottom: 15px;
    }

}

@media (max-width: 410px) {
    .top-bar {
        padding: 12px 22px;
        margin-bottom: 12px;
    }
    
    .logo {
        height: 50px;
        width: 220px;
    }
}

@media (max-width: 410px) {
    
    .back-btn i {
        font-size: 25px;
        margin-right: 10px;
    }
}

/* MAIN.HTML */

/* Обновляем контейнер для скролла действий */
.actions-scroll-container {
    margin-bottom: 0;
    position: relative;
    width: 100%;
}

.actions-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 равные колонки */
    gap: 12px; /* Отступ между карточками */
    width: 100%;
    padding: 5px 0 10px 0; /* Убрали боковые отступы */
    margin: 0;
    overflow: visible; /* Убираем скролл */
}
/* Скрываем скроллбар для Webkit браузеров */
.actions-scroll::-webkit-scrollbar {
    display: none;
}

.upload-btn.liquid-glass {
    position: relative; /* меняем с fixed на relative */
    bottom: auto; /* убираем фиксированное позиционирование */
    left: auto; /* убираем фиксированное позиционирование */
    transform: none; /* убираем трансформацию */
    margin-top: 15px; /* добавляем отступ сверху 15px */
    width: 100%; /* растягиваем на всю ширину контейнера */
    max-width: none; /* убираем ограничение максимальной ширины */
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .actions-scroll-container {
        margin-bottom: 0;
    }
    
    .upload-btn.liquid-glass {
        margin-top: 12px; /* немного уменьшаем отступ на мобильных */
    }
}

@media (max-width: 480px) {
    .upload-btn.liquid-glass {
        margin-top: 10px; /* еще немного уменьшаем на очень маленьких экранах */
    }
}

.action-card {
    width: 100%; /* Занимает всю доступную ширину колонки */
    height: 80px;
    background: var(--light-gray);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000;
    transition: all 0.3s ease;
    padding: 15px 10px;
    text-align: center;
    flex: 1; /* Растягивается по ширине */
}

/* Адаптивность для планшетов */
@media (min-width: 768px) {
    .actions-scroll {
        gap: 16px; /* Увеличиваем отступ на планшетах */
    }
    
    .action-card {
        height: 100px; /* Увеличиваем высоту на планшетах */
        padding: 20px 15px;
    }
}

/* Адаптивность для десктопов */
@media (min-width: 1024px) {
    .actions-scroll {
        gap: 20px; /* Еще больше отступ на десктопах */
        max-width: 800px; /* Ограничиваем максимальную ширину */
        margin: 0 auto; /* Центрируем */
    }
    
    .action-card {
        height: 120px; /* Увеличиваем высоту на десктопах */
        padding: 25px 20px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .actions-scroll {
        gap: 8px; /* Уменьшаем отступ на очень маленьких экранах */
    }
    
    .action-card {
        height: 70px; /* Немного уменьшаем высоту */
        padding: 12px 8px;
    }
}

/* Обновленные стили для liquid glass карточек */
.action-card.liquid-glass {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 15px 10px;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    min-height: 80px; /* Фиксированная минимальная высота */
    width: 100%; /* Занимает всю ширину колонки */
    margin-bottom: 0; /* Убираем отступ снизу */
}

/* Адаптивность для liquid glass карточек */
@media (min-width: 768px) {
    .action-card.liquid-glass {
        min-height: 130px;
        padding: 20px 15px;
        gap: 10px;
    }
}

@media (min-width: 1024px) {
    .action-card.liquid-glass {
        min-height: 140px;
        padding: 25px 20px;
        gap: 12px;
    }
}

@media (max-width: 360px) {
    .action-card.liquid-glass {
        min-height: 70px;
        padding: 12px 8px;
        gap: 6px;
    }
}

/* Иконка и текст */
.action-card.liquid-glass .button-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Делает черные иконки белыми */
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    margin-top: 5px;
}

/* Специальные стили для иконки ссылки */
.action-card.liquid-glass .button-link {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1); /* Делает черную иконку белой */
    transition: all 0.4s ease;
    margin-bottom: 0;
}

/* Анимация при наведении для всех иконок */
/* Анимация при наведении для всех иконок */
.action-card.liquid-glass:hover .button-icon,
.action-card.liquid-glass:hover .button-link {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

/* Адаптивность */
@media (max-width: 768px) {
    .action-card.liquid-glass .button-icon {
        width: 35px;
        height: 35px;
        margin-top: 3px;
    }
    
    .action-card.liquid-glass .button-link {
        width: 30px;
        height: 30px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .action-card.liquid-glass .button-icon {
        width: 30px;
        height: 30px;
    }
    
    .action-card.liquid-glass .button-link {
        width: 25px;
        height: 25px;
    }
}

.action-card.liquid-glass .button-link {
    width: 35px;
    height: 35px;
    margin-bottom: 0; /* Убрал лишний margin */
}

.action-card.liquid-glass span {
    font-family: 'Manrope', sans-serif;
    font-size: 14px; /* Немного уменьшил размер текста */
    font-weight: 600;
    text-align: center;
    line-height: 1.3; /* Уменьшил межстрочный интервал */
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    margin-bottom: 5px; /* Добавил отступ снизу */
}

/* Специальные классы для отдельных кнопок */
.action-card.liquid-glass .margin-span {
    margin-top: 0; /* Убираем лишние отступы */
    margin-bottom: 5px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .action-card.liquid-glass {
        padding: 12px 15px; /* Еще меньше padding на мобильных */
        gap: 6px; /* Еще меньше расстояние */
        min-height: 115px; /* Меньшая высота на мобильных */
    }
    
    .action-card.liquid-glass .button-icon {
        width: 35px;
        height: 35px;
        margin-top: 3px;
    }
    
    .action-card.liquid-glass .button-link {
        width: 30px;
        height: 30px;
    }
    
    .action-card.liquid-glass span {
        font-size: 13px;
        line-height: 1.2;
        margin-bottom: 3px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .action-card.liquid-glass {
        padding: 10px 12px;
        gap: 5px;
        min-height: 100px;
    }
    
    .action-card.liquid-glass .button-icon {
        width: 30px;
        height: 30px;
    }
    
    .action-card.liquid-glass span {
        font-size: 12px;
    }
}

/* Остальные стили остаются без изменений */
.liquid-reflections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Основной движущийся блик */
.liquid-reflections::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 100%
    );
    transform: rotate(45deg);
    transition: transform 0.8s ease;
}

/* Второй слой бликов */
.liquid-reflections::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 30% 20%,
        rgba(255, 255, 255, 0.15) 0%,
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
}

.action-card.liquid-glass:hover .liquid-reflections {
    opacity: 1;
}

.action-card.liquid-glass:hover .liquid-reflections::after {
    opacity: 1;
    animation: liquidPulse 3s ease-in-out infinite;
}

@keyframes liquidShine {
    0% {
        transform: rotate(45deg) translateX(-100%) translateY(-100%);
    }
    50% {
        transform: rotate(45deg) translateX(0%) translateY(0%);
    }
    100% {
        transform: rotate(45deg) translateX(100%) translateY(100%);
    }
}

@keyframes liquidPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Дополнительные статические блики */
.action-card.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 30%,
        transparent 70%
    );
    border-radius: 20px;
    opacity: 0.5;
}

/* Эффект градиентной рамки */
.action-card.liquid-glass::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.action-card.liquid-glass:hover::after {
    opacity: 1;
}

.action-card.liquid-glass:hover .button-icon {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.action-card.liquid-glass:hover span {
    transform: translateY(-2px);
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.2);
}

/* Общие эффекты при наведении */
.action-card.liquid-glass:hover {
    transform: scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.15) 100%
    );
}

/* Контейнер для бликов в preview */
.preview {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.22) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.22) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px;
    min-height: 250px;
    height: 700px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);
}

/* Контейнер для бликов в preview */
.preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.12) 30%,
        transparent 70%
    );
    border-radius: 20px;
    opacity: 0.7;
    pointer-events: none;
}

/* Эффект градиентной рамки для preview */
.preview::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.12),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.12)
    );
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.preview:hover::after {
    opacity: 1;
}

/* Эффект при наведении - делаем еще светлее */
.preview:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.25) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Адаптивность для preview */
@media (max-width: 768px) {
    .preview {
        margin-bottom: 10px;
    }
}

/* Стили для кнопки загрузки аудио с liquid glass эффектом */
.upload-btn.liquid-glass {
    position: fixed;
    bottom: 10px; /* Увеличил отступ от низа */
    left: 50%;
    background: linear-gradient(
        135deg,
        rgba(243, 194, 17, 0.377) 0%,
        rgba(240, 193, 25, 0.295) 50%,
        rgba(243, 196, 24, 0.377) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid rgba(245, 216, 110, 0.3);
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    width: calc(100% - 40px);
    max-width: 770px;
    padding: clamp(16px, 4vw, 20px);
    box-sizing: border-box;
    z-index: 1000; /* Увеличил z-index чтобы была поверх всего */
}

/* Контейнер для бликов в кнопке загрузки */
.upload-btn.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 30%, /* Более яркие белые блики */
        transparent 70%
    );
    border-radius: 50px;
    opacity: 0.6;
    pointer-events: none;
}

/* Эффект градиентной рамки для кнопки загрузки */
.upload-btn.liquid-glass::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.3),
        rgba(245, 216, 110, 0.2),
        rgba(255, 255, 255, 0.3),
        rgba(245, 216, 110, 0.2)
    );
    border-radius: 52px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.upload-btn.liquid-glass:hover::after {
    opacity: 1;
}

/* Эффекты при наведении на кнопку загрузки */
.upload-btn.liquid-glass:hover {
    transform: translateX(-50%) scale(1.02);
    background: linear-gradient(
        135deg,
        rgba(245, 213, 99, 0.35) 0%,
        rgba(248, 213, 87, 0.22) 50%,
        rgba(245, 212, 92, 0.35) 100%
    );
    border: 1px solid rgba(245, 216, 110, 0.4);

}

/* Иконка в кнопке загрузки */
.upload-btn.liquid-glass i {
    font-size: 24px; /* Немного уменьшил размер иконки */
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.upload-btn.liquid-glass:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Текст в кнопке загрузки */
.upload-btn.liquid-glass {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.upload-btn.liquid-glass:hover {
    color: #fff;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.2);
}

/* Адаптивность для кнопки загрузки */
@media (max-width: 480px) {

    
    .upload-btn.liquid-glass {
        width: calc(100% - 30px);
        padding: clamp(14px, 4vw, 18px);
        font-size: clamp(16px, 4vw, 17px);
    }
    
    .upload-btn.liquid-glass i {
        font-size: 20px;
    }
}

@media (max-width: 360px) {

    .upload-btn.liquid-glass {
        width: calc(100% - 20px);
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .upload-btn.liquid-glass i {
        font-size: 18px;
    }
}

/* Дополнительные стили для контента внутри preview */
.conspect-list {
    position: relative;
    z-index: 2;
}

/* Если нужно добавить анимированные блики как у action-card, можно добавить: */
.preview .liquid-reflections,
.upload-btn.liquid-glass .liquid-reflections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.preview:hover .liquid-reflections,
.upload-btn.liquid-glass:hover .liquid-reflections {
    opacity: 1;
}

/* TEST_CREATE.HTML */

/* Контейнер для бликов (оставляем для эффекта следования за мышкой) */
.creation-btn.liquid-glass .liquid-reflections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* УБИРАЕМ диагональный блик полностью */
.creation-btn.liquid-glass .liquid-reflections::before {
    display: none; /* Полностью убираем диагональный блик */
}

/* УБИРАЕМ радиальный пульсирующий блик */
.creation-btn.liquid-glass .liquid-reflections::after {
    display: none; /* Полностью убираем радиальный блик */
}

/* Эффекты при наведении - оставляем только opacity для JavaScript эффектов */
.creation-btn.liquid-glass:hover .liquid-reflections {
    opacity: 1; /* Оставляем для JavaScript эффекта следования за мышкой */
}

/* УБИРАЕМ анимацию pulse */
/* @keyframes liquidPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
} */

/* УБИРАЕМ статические диагональные блики */
.creation-btn.liquid-glass::before {
    display: none; /* Полностью убираем статический диагональный блик */
}

/* Оставляем градиентную рамку (если она нужна) */
.creation-btn.liquid-glass::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.creation-btn.liquid-glass:hover::after {
    opacity: 1;
}

/* Остальные стили без изменений */
.creation-btn.liquid-glass {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: none;
    font-family: inherit;
    width: 100%;
    min-height: 140px;
    box-sizing: border-box;
}

/* Иконки и текст без изменений */
.creation-btn.liquid-glass .button-icon-test {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.creation-btn.liquid-glass .button-icon-tools {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.creation-btn.liquid-glass:hover .button-icon-test,
.creation-btn.liquid-glass:hover .button-icon-tools {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.creation-btn.liquid-glass span {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.creation-btn.liquid-glass:hover span {
    transform: none;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(255, 255, 255, 0.2);
}

.creation-btn.liquid-glass:hover {
    transform: scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.15) 100%
    );
}

/* Стили для фиксированной навигации */
.navigation-container {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 770px;
    z-index: 1000;
    pointer-events: none;
}

.navigation-container .switcher-nav {
    pointer-events: auto;
    margin: 0;
}

/* Убираем отступ для контента, так как навигация поверх контента */
body {
    padding-bottom: 0; /* Убираем отступ */
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .navigation-container {
        width: calc(100% - 20px);
        bottom: 10px;
    }
}

@media (max-width: 480px) {
    .navigation-container {
        width: calc(100% - 16px);
        bottom: 8px;
    }
}

/* Убедимся, что контент не перекрывает навигацию */
main {
    position: relative;
    z-index: 1;
}

/* Для страниц с контейнером */
.container {
    position: relative;
    z-index: 1;
}

/* Навигация в стиле liquid glass - исправленная версия */
.switcher-nav {
  gap: 0;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 770px;
  height: 70px;
  box-sizing: border-box;
  padding: 8px 12px 10px;
  margin: 15px auto 0;
  border: none;
  border-radius: 99em;
  background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);
  backdrop-filter: blur(8px) url(#switcher-nav-filter) saturate(var(--saturation));
  -webkit-backdrop-filter: blur(8px) saturate(var(--saturation));
  box-shadow: 
    inset 0 0 0 1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 10%), transparent),
    inset 1.8px 3px 0px -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 90%), transparent), 
    inset -2px -2px 0px -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 80%), transparent), 
    inset -3px -8px 1px -6px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 60%), transparent), 
    inset -0.3px -1px 4px 0px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 12%), transparent), 
    inset -1.5px 2.5px 0px -2px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent), 
    inset 0px 3px 4px -2px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent), 
    inset 2px -6.5px 1px -4px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 10%), transparent), 
    0px 1px 5px 0px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 10%), transparent), 
    0px 6px 16px 0px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 8%), transparent);
  transition: 
    background-color 400ms 
      cubic-bezier(1, 0.0, 0.4, 1),
    box-shadow 400ms
      cubic-bezier(1, 0.0, 0.4, 1);
}

.switcher__legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.switcher__input {
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}

.switcher__icon {
  display: block;
  width: 24px;
  height: 24px;
  transition: scale 200ms cubic-bezier(0.5, 0, 0, 1);
  margin-bottom: 18px; /* Отступ для текста */
}

.switcher__filter {
  position: absolute;
  width: 0;
  height: 0;
  z-index: -1;
}

.switcher__option {
  --c: var(--c-content);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  box-sizing: border-box;
  border-radius: 99em;
  opacity: 1;
  transition: all 160ms;
  position: relative;
  padding-top: 7px; /* Отступ сверху для иконки */
  min-width: 0; /* Разрешаем сжатие */
}

.switcher__option:hover {
  cursor: pointer;
}

.switcher__option:hover .switcher__icon {
  scale: 1.2;
}

.switcher__option:has(input:checked) {
  --c: var(--c-content);
  cursor: auto;
}

.switcher__option:has(input:checked) .switcher__icon {
  scale: 1;
}

/* Текст под иконками */
.switcher__option::after {
  content: attr(data-label);
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Manrope', sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: var(--c);
  text-align: center;
  white-space: nowrap;
  transition: all 160ms;
  width: 100%;
  padding: 0 4px;
  box-sizing: border-box;
}

/* Увеличенная ширина овала */
.switcher-nav::after {
  content: '';
  position: absolute;
  display: block;
  width: 22%; /* Увеличил ширину */
  height: calc(100% - 7px);
  border-radius: 99em;
  background-color: color-mix(in srgb, var(--c-glass) 36%, transparent);
  z-index: -1;
  box-shadow: 
    inset 0 0 0 1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 10%), transparent),
    inset 2px 1px 0px -1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 90%), transparent), 
    inset -1.5px -1px 0px -1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 80%), transparent), 
    inset -2px -6px 1px -5px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 60%), transparent), 
    inset -1px 2px 3px -1px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent), 
    inset 0px -4px 1px -2px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 10%), transparent), 
    0px 3px 6px 0px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 8%), transparent);
  transition: none;
}

/* Подкорректированные позиции для увеличенной ширины */
.switcher-nav:has(input[c-option="1"]:checked)::after {
  left: 2px;
}

.switcher-nav:has(input[c-option="2"]:checked)::after {
  left: 20%;
}

.switcher-nav:has(input[c-option="3"]:checked)::after {
  left: 39%;
}

.switcher-nav:has(input[c-option="4"]:checked)::after {
  left: 58%;
}

.switcher-nav:has(input[c-option="5"]:checked)::after {
  left: 77%;
}

/* Убираем старые анимации */
.switcher-nav:has(input[c-option="1"]:checked)::after,
.switcher-nav:has(input[c-option="2"]:checked)::after,
.switcher-nav:has(input[c-option="3"]:checked)::after,
.switcher-nav:has(input[c-option="4"]:checked)::after,
.switcher-nav:has(input[c-option="5"]:checked)::after {
  animation: none;
}

/* Базовый размер для всех иконок */
.nav-icon img {
    width: 23px;
    height: 23px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Переопределение для конкретных иконок */
.switcher__option:has(input[value="tests"]) .nav-icon img {
    width: 27px !important;
    height: 27px !important;
}

.switcher__option:has(input[value="tournaments"]) .nav-icon img {
    width: 27px !important;
    height: 27px !important;
}

/* Центрирование иконок */
.switcher__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}


/* Анимации переключателя */
@keyframes scaleToggle {
  0% { scale: 1 1; }
  50% { scale: 1.1 1; }
  100% { scale: 1 1; }
}

@keyframes scaleToggle2{
  0% { scale: 1 1; }
  50% { scale: 1.2 1; }
  100% { scale: 1 1; }
} 

@keyframes scaleToggle3 {
  0% { scale: 1 1; }
  50% { scale: 1.1 1; }
  100% { scale: 1 1; }
}

/* CSS переменные */
body {
  --c-glass: #bbbbbc;
  --c-light: #fff;
  --c-dark: #000;
  --c-content: #fff; /* Белый текст для контраста */
  --c-bg: #E8E8E9;
  --glass-reflex-dark: 1;
  --glass-reflex-light: 1;
  --saturation: 150%;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .switcher-nav {
    height: 65px;
    padding: 6px 8px 8px;
  }
  
  .switcher__icon {
    width: 22px;
    height: 22px;
    margin-bottom: 16px;
  }
  
  .switcher__option::after {
    font-size: 10px;
    bottom: 6px;
  }
}

@media (max-width: 480px) {
  
  .switcher__icon {
    width: 22px;
    height: 22px;
    margin-bottom: 14px;
  }
  
  .switcher__option::after {
    font-size: 9px;
    bottom: 5px;
  }
}

/* Убедимся, что навигация правильно центрируется */
.switcher-nav {
  margin: 15px auto 0;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
  .switcher-nav {
    max-width: 95%;
  }
}

@media (max-width: 480px) {
  .switcher-nav {
    max-width: 100%;
    margin: 10px auto 0;
  }
}