.world-block__description {
    margin-bottom: 30px;
}

.world-block__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.world-block__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background-color: #eee;
    padding: 5px 5px 15px 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 200px;
    text-align: center;
}

.world-block__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #999;
}

.world-block__item img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.world-block__item span {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.learning-buttons {
    cursor: pointer;
}

.learning-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: auto;
    margin-bottom: 20px;
}

.learning-buttons button {
    padding: 10px 28px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: var(--color01);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: inherit;
    white-space: nowrap;
}

.learning-buttons button:hover {
    background: #739BF2;
    transform: translateY(-1px);
}

.learning-buttons button:active {
    transform: translateY(0px);
}

.learning-buttons button.active {
    background: #739BF2;
    color: #fff;
}

/* Общие настройки для красивой типографики */
.learning-block {
    border: none; /* Убираем старый серый бордер */
    border-radius: 20px; /* Скругленные углы */
    padding: 24px;
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); /* Мягкая, красивая тень */
    max-width: 800px; /* Чтобы карточка выглядела компактно, можно убрать */
    margin: 30px auto; /* Центрируем саму карточку на странице */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

/* Эффект всплытия при наведении на карточку */
.learning-block:hover {
    transform: translateY(0px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.learning-block__name {
    color: #2c3e50; /* Темно-синий/серый вместо бледного */
    font-size: 28px;
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 4px;
}

.learning-block__type {
    color: #95a5a6;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Кнопка звука - делаем её красивой круглой кнопкой */
.learning-block__sound {
    background: #f0f4f8; /* Светло-серый фон */
    width: 64px; /* Увеличили размер для удобства */
    height: 64px;
    border-radius: 50%; /* Делает кнопку идеально круглой */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    position: absolute;
    top: 10px;
    left: 25px;
}

.learning-block__sound:hover {
    background: var(--color01); /* Становится синей при наведении */
    transform: scale(1.1); /* Немного увеличивается */
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.3);
}

.learning-block__sound:hover svg {
    filter: brightness(0) invert(1);
}

/* Исправляем SVG, чтобы он нормально отображался */
.learning-block__sound svg {
    width: 32px;
    height: 32px;
    fill: #2c3e50; /* Цвет иконки */
    transition: fill 0.3s ease;
    display: block; /* Убираем лишние отступы */
}

/* Меняем цвет иконки при наведении на кнопку */
.learning-block__sound:hover svg {
    fill: #ffffff;
}

/* Блок с картинкой */
.learning-block__description {
    background: transparent; /* Убираем серый фон, он тут не нужен */
    padding: 0;
    margin-top: 10px;
    border-radius: 16px;
    overflow: hidden; /* Чтобы картинка не вылезала за скругления */
}

.learning-block__img {
    display: block;
    width: 100%; /* Картинка растягивается на всю ширину */
    height: auto;
    aspect-ratio: 4 / 3; /* Красивое соотношение сторон, необязательно */
    border: none; /* Убираем белую рамку */
    cursor: pointer;
    transition: transform 0.5s ease;
    object-fit: cover;
}

/* Эффект зума при наведении на картинку */
.learning-block__description:hover .learning-block__img {
    transform: scale(1.05);
}

.learning-block__img {
    transition: opacity 0.4s ease-in-out; /* Плавная смена прозрачности за 0.4 сек */
    opacity: 1; /* Изначально полностью видна */
}

.learning-block__img.fading {
    opacity: 0; /* Когда добавляем этот класс, картинка исчезает */
}

@media (max-width: 768px) {
    .world-block__grid {
        justify-content: center;
    }

    .world-block__item {
        width: 160px;
    }
}

@media (max-width: 480px) {
    .world-block__item {
        width: 140px;
        padding: 3px 3px 10px 3px;
    }

    .world-block__item span {
        font-size: 13px;
    }
}