.books {
    margin-bottom: 64px;
}


.books .wrapper {
    background-color: var(--color--white);
    border-radius: 16px;
    padding: 32px 24px;
}

.books .title {
    border-bottom: 1px solid var(--color--gray-normal);
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.books .inner {
    display: grid;
    grid-column-gap: 32px;
    grid-template-columns: 512px 1fr;
}

.books .gallery {
    border-radius: 8px;
    margin-bottom: auto;
    overflow: hidden;
    position: relative;
}

.books .gallery li {
    transform: scale(0);
}

.books .gallery li[_active] {
    transform: scale(1);
}

.books .gallery li:not(:first-child) {
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.books .controls {
    bottom: 16px;
    column-gap: 12px;
    display: flex;
    justify-content: center;
    left: 0;
    position: absolute;
    right: 0;
}

.books .control {
    background-color: transparent;
    border: 1px solid var(--color--white);
    border-radius: 8px;
    height: 64px;
    overflow: hidden;
    padding: 0;
    width: 64px;
}

.books .control[_active] {
    outline: 2px solid var(--color--blue-normal);
    outline-offset: -1px;
}

.books .panel {
    padding-top: 48px;
}

.books .item {
    display: none;
}

.books .item[_active] {
    display: block;
}

.books .book-title {
    margin-bottom: 10px;
}

.books .wp-content {
    color: var(--color--gray-darker);
    margin-bottom: 24px;
}

.books .buy {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}


.events {
    margin-bottom: 64px;
}


.events .header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
}

.events .title {
    margin-bottom: 8px;
}

.events .description {
    color: var(--color--gray-dark-hover);
    margin: 0;
}

.events ul {
    display: grid;
    grid-gap: 16px;
    grid-template-columns: repeat(4, 1fr);
}



.numbers {
    margin-bottom: 64px;
    text-align: center;
}


.numbers .title {
    margin-bottom: 24px;
}

.numbers ul {
    display: grid;
    grid-gap: 40px 64px;
    grid-template-columns: repeat(3, 1fr);
}

.numbers .number {
    display: block;
    margin-bottom: 12px;
}

.numbers span:nth-of-type(2) {
    display: block;
    font-weight: 700;
}

.numbers span:not(:last-of-type) {
    margin-bottom: 10px;
}



@media (max-width: 1299px) {
    .books .inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .books .controls {
        bottom: 12px;
    }

    .books .control {
        height: 56px;
        width: 56px;
    }
}


@media (max-width: 1024px) {
    .books .wrapper {
        padding: 24px 20px;
    }

    .books .inner {
        display: block;
    }

    .books .gallery {
        border-radius: 0;
        margin-bottom: 24px;
    }

    .books .items {
        border-radius: 16px;
        margin-bottom: 16px;
        overflow: hidden;
        position: relative;
    }

    .books .controls {
        position: static;
    }

    .books .control {
        border: 0;
    }

    .books .control[_active] {
        outline-offset: 0;
    }

    .books .panel {
        padding-top: 0;
    }

    .books .wp-content {
        border-bottom: 1px solid var(--color--gray-light-active);
        padding-bottom: 24px;
    }



    .events .header {
        align-items: flex-start;
        flex-direction: column;
        row-gap: 16px;
    }

    .events ul {
        grid-template-columns: 1fr;
    }



    .numbers {
        text-align: inherit;
    }


    .numbers ul {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }
}