@media (max-width: 1180px) {
    .book-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .authors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-pills {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .book-hero {
        grid-template-columns: 1fr;
        --hero-main-height: auto;
        --hero-strip-height: auto;
        --hero-right-card-height: auto;
    }

    .book-hero__left,
    .book-hero__side {
        grid-template-rows: auto;
    }

    .book-hero__main {
        grid-template-columns: 56% 44%;
        min-height: 540px;
        height: auto;
        padding: 36px;
        gap: 28px;
    }

    .book-hero__visual {
        justify-content: center;
        padding-right: 0;
    }

    .book-hero__visual img {
        width: 140%;
        max-width: none;
    }

    .book-hero__side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .book-side-card {
        min-height: 240px;
    }

    .book-side-card__content {
        max-width: 60%;
    }

    .search-strip {
        grid-column: 1 / -1;
        height: auto;
        min-height: 92px;
    }

    .submission-strip--inside {
        height: auto;
        min-height: 92px;
    }

    .site-header__inner {
        grid-template-columns: auto 1fr auto;
        gap: 18px;
    }

    .header-actions--labels {
        gap: 14px;
    }

    .header-action-card__label {
        font-size: 9px;
    }

    .new-releases-layout {
        grid-template-columns: 1fr;
    }

    .new-releases-feature,
    .new-releases-feature__link,
    .new-releases-feature img {
        min-height: 420px;
    }

    .new-releases-products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .soon-section {
        padding: 42px 32px;
    }

    .soon-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: auto;
        max-width: 760px;
    }

    .soon-content,
    .soon-image {
        min-height: auto;
    }

    .soon-content {
        max-width: 100%;
        padding: 18px 0 80px;
    }

    .soon-content::after {
        display: none;
    }

    .soon-content h2 {
        max-width: none;
        font-size: 2rem;
        white-space: normal;
    }

    .soon-content p {
        max-width: 100%;
    }

    .soon-button {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        margin: 22px auto 0;
    }

    .soon-image {
        padding: 8px 10px 0;
    }

    .soon-image img {
        max-width: 62%;
        max-height: 420px;
    }

    .authors-section {
        padding: 38px 30px;
    }

    .authors-carousel {
        grid-template-columns: 50px 1fr 50px;
        gap: 18px;
        padding: 0 10px;
    }

    .authors-carousel__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .author-card {
        grid-template-columns: 96px 1fr;
        gap: 16px;
    }

    .author-card__image {
        width: 96px;
        height: 96px;
    }

    .author-card__content p {
        max-width: 30ch;
    }
}

@media (max-width: 980px) {
    .post-grid,
    .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-main {
        margin-bottom: 20px;
    }

    .soon-section {
        padding: 42px 24px;
    }

    .soon-image img {
        max-width: 72%;
    }
}

@media (max-width: 820px) {
    .site-header__inner {
        grid-template-columns: auto 1fr;
        gap: 16px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .header-right {
        grid-column: 1 / -1;
        justify-content: center;
        gap: 18px;
    }

    .header-actions--labels {
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 17px;
    }

    .site-shell {
        width: min(calc(100% - 32px), var(--h-shell));
    }

    .new-releases-products {
        grid-template-columns: 1fr 1fr;
    }

    .book-hero__main {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 32px;
    }

    .book-hero__visual {
        justify-content: center;
        padding-right: 0;
    }

    .book-hero__visual img {
        width: 100%;
        max-width: 340px;
        transform: none;
    }

    .book-hero__side {
        grid-template-columns: 1fr;
    }

    .submission-strip__inner {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .search-strip__form {
        grid-template-columns: 1fr;
    }

    .soon-section {
        padding: 34px 22px;
    }

    .soon-section .section-head h2 {
        font-size: 2.2rem;
        margin-bottom: 22px;
    }

    .soon-content h2 {
        font-size: 1.8rem;
    }

    .soon-image img {
        max-width: 82%;
        max-height: 460px;
    }

    .authors-section {
        padding: 32px 22px;
    }

    .authors-section .section-head h2 {
        font-size: 2rem;
    }

    .authors-carousel {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .authors-carousel__nav {
        display: none;
    }

    .authors-carousel__track {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .author-card {
        grid-template-columns: 80px 1fr;
        gap: 14px;
        align-items: center;
    }

    .author-card__image {
        width: 80px;
        height: 80px;
    }

    .author-card__content p {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-header__inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .header-left,
    .site-branding {
        justify-content: center;
    }

    .header-search {
        width: 100%;
    }

    .header-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .header-actions--labels {
        gap: 16px;
    }
}