.books__info--title {
    font-weight: bold;
    font-size: 48px;
    line-height: 124%;
    letter-spacing: .01em;
    color: #231f20;
    margin-bottom: 80px;
}
.books__items {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}
@media (max-width: 1745px) {
    .books__items {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 547px) {
    .books__items {
        grid-template-columns: 1fr;
    }
}
.books__item {
    border: 1px solid rgba(182, 182, 182, .2);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 8px;
    padding: 24px 32px 32px 32px;
    max-width: 415px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.books__item {
    display: flex;
    flex-direction: column;
}
.books__item .books__item--description {
    display: none;
}
p{
    margin: 0;
}

.btn--green {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-weight: 500;
    font-size: 18px;
    line-height: 140%;
    text-align: center;
    -webkit-font-feature-settings: "pnum" on, "lnum" on;
    font-feature-settings: "pnum" on, "lnum" on;
    color: #fff;
    padding: 20px 28px;
    background: #8dc63f;
    border-radius: 4px;
    transition: all .6s;
}
.btn--green:hover {
    -webkit-box-shadow: 0px 0px 16px rgba(27, 27, 27, .34);
    box-shadow: 0px 0px 16px rgba(27, 27, 27, .34);
    color: #fff;
}
.popup-books {
    margin: 15px 0;
    color: #8dc63f;
    background: #fff;
    border: 1px solid #8dc63f;
}
.popup-books:hover {
    color: #8dc63f;
}

.header__phone-btn:active {
    color: #fff;
}
.books__button .btn--green {
    width: 100%;
}

/*POPUP 1*/
.fancybox__container {
    --fancybox-bg: rgba(24, 24, 27, 0.8);
}

#popup-books{
    padding: 0;
    box-shadow: 0 0 13px rgba(121, 121, 121, .2);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
}

#popup-books .popup__content {
    position: relative;
    color: #231f20;
    padding: 80px;
    background: url(/local/templates/generator/assets/images/reviews/popup-bg.jpg) center/auto no-repeat;
    border-radius: 12px;
    min-height: 700px;
}
@media (max-width: 1024px) {
    #popup-books .popup__content {
        padding: 50px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    #popup-books .popup__content {
        padding: 40px 25px 25px;
    }
}
.popup-books__description p {
    margin-bottom: 7px;
}
#popup-books .popup__close {
    position: absolute;
    top: 35px;
    right: 35px;
    width: 23px;
    height: 23px;
    cursor: pointer;
}
@media (max-width: 480px) {
    #popup-books .popup__close {
        top: 25px;
        right: 25px;
    }
}

/*POPUP 2*/

#popup-contact{
    padding: 0;
    box-shadow: 0 0 13px rgba(121, 121, 121, .2);
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
}

#popup-contact .popup__content {
    position: relative;
    color: #231f20;
    padding: 80px;
    background: url(/local/templates/generator/assets/images/reviews/popup-bg.jpg) center/auto no-repeat;
    border-radius: 12px;
}
@media (max-width: 1024px) {
    #popup-contact .popup__content {
        padding: 50px;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    #popup-contact .popup__content {
        padding: 40px 25px 25px;
    }
}

#popup-contact .popup__close {
    position: absolute;
    top: 35px;
    right: 35px;
    width: 23px;
    height: 23px;
    cursor: pointer;
}
@media (max-width: 480px) {
    #popup-contact .popup__close {
        top: 25px;
        right: 25px;
    }
}
#popup-contact .popup__title {
    font-weight: bold;
    font-size: 32px;
    margin-bottom: 12px;
    color: #231f20;
}

@media (max-width: 1024px) {
    #popup-contact .popup__title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    #popup-contact .popup__title {
        font-size: 18px;
        margin-bottom: 10px;
    }
}
#popup-contact .popup__text {
    color: #676767;
    margin-bottom: 24px;
    max-width: 550px;
}
@media (max-width: 480px) {
    #popup-contact.popup__text {
        margin-bottom: 15px;
        font-size: 12px;
    }
}