section {
    margin: 120px 5% !important;
    margin-bottom: 30px !important;
}

.section-title {
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 40px;
    color: #003543;
}

.directions__cards {
    display: flex;
    gap: 20px;
}

.directions__item {
    position: relative;
    display: block;
    max-height: 270px;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 10px;
    text-decoration: none !important;
    cursor: pointer;
    flex: 1;
}

.directions__item:hover {
    text-decoration: none !important;
}

.directions__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.directions__link {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.directions__text {
    color: #0196BB;
    font-size: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.directions__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 5px;
    transition: background 0.3s ease, padding 0.3s ease;
    box-sizing: border-box;
}

.directions__icon svg {
    display: block;
    transition: fill 0.3s ease;
}

.directions__icon svg path {
    transition: fill 0.3s ease;
}

/* Hover эффекты на всю карточку */
.directions__item:hover .directions__link {
    background: #0196BB;
}

.directions__item:hover .directions__text {
    color: #ffffff;
}

.directions__item:hover .directions__icon {
    background: #ffffff;
    padding: 6px;
}

.directions__item:hover .directions__icon svg path {
    fill: #0196BB;
}

@media screen and (max-width: 968px) {
    .directions__cards {
        flex-direction: column;
        gap: 20px;
    }
    .directions__item {
        width: 100%;
        max-height: 230px;
        aspect-ratio: 4 / 3;
    }

    .directions__text {
        font-size: 18px;
    }
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 23px;
    }
}

@media screen and (max-width: 768px) {
    section {
        margin: 80px 5% !important;
    }
}