.guides {
    padding-top: 80px;
    padding-bottom: 80px;
}

.guides .guides__top {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.guides .register-btn {
    margin-top: auto;
    width: 284px;
}

.guides .page-text {
    max-width: 666px;
}

.guides .guides__blocks {
    display: flex;
    gap: 24px;
    margin-top: 40px;
}

.guides .guides__link {
    flex: 1;
    border-radius: 32px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    position: relative;
}

.guides__name {
    font-weight: 800;
    font-size: 24px;
    line-height: 130%;
    letter-spacing: 0%;
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 32px;
    backdrop-filter: blur(10.35px);
    min-height: 126px;
    width: 100%;
}

.guides .guides__link.yellow .guides__name {
    background: linear-gradient(180deg, rgba(228, 191, 99, 0.2) 0%, #E2B749 105.91%);
}

.guides .guides__link.red .guides__name {
    background: linear-gradient(180deg, rgba(188, 62, 54, 0.2) 0%, #BC3E36 100%);
}

.guides .guides__link.aqua .guides__name {
    background: linear-gradient(180deg, rgba(54, 191, 183, 0.2) -17.73%, #36BFB7 100%);
}

.guides .guides__picture {
    display: flex;
    width: 100%;
}

.guides .guides__img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s;
}

@media screen and (hover:hover) {
    .guides .guides__link:hover .guides__img {
        transform: scale(1.05);
    }
}

@media screen and (max-width: 1250px) {
    .guides .guides__link {
        min-width: 410px;
        flex-shrink: 0;
    }

    .guides .guides__link:first-child {
        margin-left: var(--page-margin);
    }

    .guides .guides__link:last-child {
        margin-right: var(--page-margin);
    }

    .guides {
        padding: 60px 0;
    }

    .guides .guides__blocks {
        overflow-x: auto;
        margin-top: 32px;
    }

    .guides .block-heading,
    .guides .guides__top {
        padding: 0 var(--page-margin);
    }
}

@media screen and (max-width: 1080px) {
    .guides .guides__top {
        flex-direction: column;
        gap: 24px;
        margin-top: 16px;
    }
}

@media screen and (max-width: 550px) {
    .guides .guides__blocks {
        flex-direction: column;
        gap: 16px;
        padding: 0 var(--page-margin);
        margin-top: 24px;
    }

    .guides .guides__link:first-child,
    .guides .guides__link:last-child {
        margin: 0;
    }

    .guides .guides__link {
        min-width: unset;
    }

    .guides .guides__top {
        gap: 16px;
    }

    .guides .register-btn {
        width: 100%;
    }

    .guides .guides__name {
        font-size: 20px;
        min-height: 116px;
    }

    .guides {
        padding: 40px 0;
    }
}
