﻿
*,
*::before,
*::after {
    box-sizing: border-box;
}

.book-container {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 16px;
}

.book-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.book-text h2 {
    font-size: 28px;
    color: orange;
    margin-bottom: 20px;
}

.book-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 14px;
}

.book-btn {
    padding: 10px 22px;
    border: 2px solid #222;
    color: #222;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all .25s ease;
    display: block;
    width: fit-content;
    margin: 12px auto 0;
}

    .book-btn:hover {
        background: #222;
        color: #fff;
    }

.book-image img {
    text-align: center;
    max-width: 100%;
    height: auto;
    max-height: 380px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.book-purchase {
    margin-top: 70px;
    text-align: center;
}

    .book-purchase h3 {
        font-size: 28px;
        margin-bottom: 30px;
        color:orange;
    }

.purchase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

.purchase-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 14px;
    padding: 16px 14px;
    text-decoration: none;
    color: #111;
    box-shadow: 0 6px 18px rgba(0,0,0,0.07);
    transition: all .25s ease;
    height: 100%;
    text-align: center;
}

.purchase-logo {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .purchase-logo img {
        max-height: 120px;
        max-width: 100%;
        object-fit: contain;
    }

.purchase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,0,0,0.1);
}

@media (max-width: 992px) {
    .book-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        justify-items: center;
    }

    .book-text {
        order: 1;
    }

    .book-image {
        order: 2;
    }

        .book-image img {
            max-width: 80%;
            height: auto;
            max-height: 350px;
        }

    .purchase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .book-image img {
        max-width: 100%;
    }

    .purchase-grid {
        grid-template-columns: 1fr;
    }
}
