
.booklet-category {}

.booklet-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.booklet-category .all-tabs {
    display: block;
    margin-bottom: 30px;
}
.booklet-category .tabs {
    cursor: pointer;
    font-family: "Roboto";
    display: inline-block;
    min-width: 147px;
    width: auto;
    height: 28px;
    line-height: 28px;
    background-color: #E8E8E8;
    color: #2C2C2C;
    border-radius: 2px;
    text-align: center;
    padding: 0 10px;
    transition: all 0.2s ease;
}

.booklet-category .tabs.active,
.booklet-category .tabs:hover  {
    background-color: #283E83;
    color: #FFFFFF;
}

.all-booklets {
    margin-bottom: 80px;
}
.all-booklets .booklet {
    display: inline-block;
    vertical-align: top;
    width: 274px;
    margin-right: 37px;
    margin-bottom: 20px;
    transition: opacity 0.3s ease, transform 0.5s ease;
}
/*
.all-booklets .booklet:nth-child(1) {
    transition-delay: 0s;
}
.all-booklets .booklet:nth-child(2) {
    transition-delay: 0.1s;
}
.all-booklets .booklet:nth-child(3) {
    transition-delay: 0.2s;
}
.all-booklets .booklet:nth-child(4) {
    transition-delay: 0.3s;
}
.all-booklets .booklet:nth-child(5) {
    transition-delay: 0.4s;
}
.all-booklets .booklet:nth-child(6) {
    transition-delay: 0.5s;
}
.all-booklets .booklet:nth-child(7) {
    transition-delay: 0.6s;
}
.all-booklets .booklet:nth-child(8) {
    transition-delay: 0.7s;
}
.all-booklets .booklet:nth-child(9) {
    transition-delay: 0.8s;
}
.all-booklets .booklet:nth-child(10) {
    transition-delay: 0.9s;
}
.all-booklets .booklet:nth-child(11) {
    transition-delay: 1s;
}
.all-booklets .booklet:nth-child(12) {
    transition-delay: 1.1s;
}
.all-booklets .booklet:nth-child(13) {
    transition-delay: 1.2s;
}
.all-booklets .booklet:nth-child(14) {
    transition-delay: 1.3s;
}
.all-booklets .booklet:nth-child(15) {
    transition-delay: 1.4s;
}
.all-booklets .booklet:nth-child(16) {
    transition-delay: 1.5s;
}*/
.all-booklets .booklet.booklet--loading {
    opacity: 0;
    transform: translateY(40px);
}
.all-booklets .booklet:nth-child(4n) {
    margin-right: 0;
}
.all-booklets .booklet__img {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 380px;
    width: 100%;
    margin-bottom: 24px;
    box-shadow: 0 7px 25px -9px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}
.all-booklets .booklet img {
    display: block;
    max-width: 100%;
}
.all-booklets .booklet .text-booklet {
    font-weight: 500;
    color: #203D88;
    font-size: 20px;
    line-height: 1.4em;
}
.all-booklets .booklet .text-booklet a {
    font: inherit;
}
.all-booklets .booklet:hover .booklet__img {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.booklets-more-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 60px auto 60px;
}
.booklets-more-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    height: 28px;
    line-height: 28px;
    color: #9F9F9F;
}
.booklets-more-btn svg {
    display: inline-block;
    margin-right: 8px;
}

@media screen and (max-width: 1023px) {
    .all-booklets .booklet {
        width: 327px;
        margin-right: 47px;
    }
    .all-booklets .booklet__img {
        height: 452px;
    }
    .all-booklets .booklet:nth-child(2n) {
        margin-right: 0;
    }
}

@media screen and (max-width: 767px) {
    .all-booklets .booklet { 
        width: 273px;
        margin-right: 47px;
        margin-bottom: 40px;
    }
    .booklet-category .all-tabs {
        position: relative;
        z-index: 5;
        display: flex;
        flex-direction: column;
        max-height: 35px;
    }
    .booklet-category .all-tabs:not(.opened) {
        overflow: hidden;
    }
    .booklet-category .tabs {
        width: 100%;
        box-sizing: border-box;
        height: 35px;
        line-height: 35px;
    }
    .booklet-category .tabs.active {
	    position: relative;
        background-color: #E8E8E8;
        color: #2C2C2C;
        order: -1;
    }
    .booklet-category .tabs.active::after {
        content: '';
        position: absolute;
        width: 12px;
        background-image: url("data:image/svg+xml,%3Csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%232C2C2C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
        height: 8px;
        background-size: auto;
        background-position: center;
        background-repeat: no-repeat;
        right: 20px;
        top: 13px;
    }
}

@media screen and (max-width: 630px) {
    .all-booklets {
        margin: 0 auto;
        max-width: 274px;
    }
    .all-booklets .booklet {
	margin: 0 auto 40px;
    }
    .all-booklets .booklet:nth-child(2n) {
        margin-right: 0;
    }
    .booklets-more-btn {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0 auto 40px;
    }
}
