.materials{
    padding: 80px 0 120px;
}

.materials-title{
    font-weight: 600;
    font-size: 62px;
    line-height: 110%;
    margin-bottom: 32px;
    color: #246B6A;
}

.materials-wrapper{
    -webkit-column-count: 2;
    -moz-column-count: 2;
    column-count: 2;
    -webkit-column-gap: 45px;
    -moz-column-gap: 45px;
    column-gap: 45px;
}

.materials-block{
    display: inline-block;
    width: 100%;
}

.materials-block:not(:last-child){
    margin-bottom: 54px;
}

.materials-block:last-child{
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
}

.materials-item-link{
    flex: none;
}

.materials-item-link span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    color: #246B6A;
    border: 2px solid #246B6A;
    border-radius: 50%;
    transition: border 200ms, background 200ms;
}

.materials-item-link span svg{
    width: 13px;
}

.materials-item:hover .materials-item-link span{
    border-color: #fff;
    background-color: #fff;
}

.materials-item{
    border: 2px solid #BFE87B;
    border-radius: 40px;
    padding: 24px;
    transition: background 200ms;
}

.materials-item:hover{
    background-color: #BFE87B;
}

.materials-items{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.materials-item a{
    display: flex;
    align-items: center;
    gap: 40px;
}

.materials-item-content{
    flex: 1;
}  

.materials-item-name{
    font-size: 26px;
    line-height: 32px;
}

.materials-item-footer{
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
 
.materials-item-anonce{
    font-size: 18px;
    line-height: 130%;
}

.materials-item.hidden{
    display: none;
}

.materials-show{
    margin-top: 24px;
    text-align: center;
}

.materials-show span{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    height: 64px;
    width: auto;
    min-width: 343px;
    padding: 0px 28px;
    background: linear-gradient(180deg, #BFE87B 0%, #9CD145 100%);
    color: #ffffff;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.materials-show span:hover{
    background: linear-gradient(180deg, #BFE87B 0%, #8EBE3D 100%);
} 

.materials-item-author{
    font-size: 16px;
    line-height: 19px;
}

.materials-item-file{
    margin-top: 8px;
}

.materials-item-file span{
    font-size: 18px;
    line-height: 130%;
    color: #246B6A;
    text-decoration: underline;
    transition: color 200ms;
}

.materials-item:hover .materials-item-file span{
    color: #000;
}

@media screen and (max-width: 1199px){
    .materials {
        padding: 48px 0 80px;
    }

    .materials-title {
        font-size: 38px;
        line-height: 46px;
        margin-bottom: 24px;
    }

    .materials-item{
        padding: 24px 16px 24px 24px;
    }

    .materials-item-link span{
        width: 32px;
        height: 32px;
    }

    .materials-item-link span svg {
        width: 8px;
    }

    .materials-items{
        gap: 24px;
    }

    .materials-item a{
        gap: 24px;
    }

    .materials-show{
        margin-top: 32px;
    }

    .materials-wrapper {
        -webkit-column-count: 1;
        -moz-column-count: 1;
        column-count: 1;
        -webkit-column-gap: 0;
        -moz-column-gap: 0;
        column-gap: 0;
    }  

    .materials-item-name {
        font-size: 18px;
        line-height: 22px;
    }

    .materials-item-author {
        font-size: 14px;
        line-height: 17px;
    }

    .materials-item-anonce {
        font-size: 16px;
        line-height: 19px;
    }

    .materials-item-file span {
        font-size: 16px;
        line-height: 19px;
    }

    .materials-block:nth-child(2){
        order: 1; 
    }

    .materials-wrapper{
        display: flex;
        flex-flow: column;
        gap: 64px;
    }

    .materials-block:not(:last-child){
        margin: 0;
    }
} 

@media screen and (max-width: 428px){
    .materials-show span{ 
        width: 100%;
        min-width: auto;
    }
} 