/* Общие стили */


/* Меню тегов */
.tagsMenu {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tagsMenu div {
    background-color: #333;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.tagsMenu div:hover {
    background-color: #444;
    border-color: #666;
}

.tagsMenu div:active {
    transform: scale(0.98);
}

/* Секция с видео */
section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

section a {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

section a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: #8b0000;
}

section a > div {
    padding: 20px;
    font-weight: 500;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Адаптивность */
@media (max-width: 768px) {


    .tagsMenu {
        justify-content: center;
    }

    section {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    body {
        padding: 0 15px;
    }

    section {
        grid-template-columns: 1fr;
    }

    .tagsMenu {
        justify-content: space-around;
    }

    .tagsMenu div {
        padding: 6px 15px;
        font-size: 0.85rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section a {
    animation: fadeIn 0.5s ease forwards;
}

section a:nth-child(1) { animation-delay: 0.1s; }
section a:nth-child(2) { animation-delay: 0.2s; }
