.important {
    position: relative;
    z-index: 1;
    margin: 48px 0 78px;
}

.important__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.important-item {
    --paddibg: 28px;
    border-radius: 6px;
    overflow: hidden;
    padding: var( --paddibg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 240px;
    text-decoration: none;
}

.important-item:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000CC;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.important-item:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000000 100%);
    transition: all 0.3s ease;
    z-index: 2;
}

.important-item:hover:before {
    opacity: 0;
}

.important-item:hover:after {
    opacity: 1;
}

.important-item:hover .important-item__icon img{
    filter: brightness(0) saturate(100%) invert(60%) sepia(35%) saturate(1099%) hue-rotate(5deg) brightness(91%) contrast(85%);
}

.important-item:hover .important-item__arrow {
    opacity: 1;
    transform: translateX(0);
}

.important-item__inner{
    position: relative;
    z-index: 2;
}

.important-item__icon {
    width: 64px;
    height: 64px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F1EEE233;
    margin-bottom: 16px;
}

.important-item__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin: 0;
}

.important-item__title {
    font-weight: 500;
    font-size: 20px;
    line-height: 130%;
    color: #FDFAF4;
    padding-right: 34px;
    margin: 0;
}

.important-item__arrow {
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 1024px) {
    .important__grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .important__grid{
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }

    .important-item{
        min-height: 200px;
        padding: 20px;
    }

    .important-item__icon{
        width: 48px;
        height: 48px;
    }
    .important-item__icon img{
        width: 24px;
        height: 24px;
    }

    .important-item__title{
        font-size: 16px;
    }
}
