/* Страница с откъс от романа */
.excerpt-article {
    min-height: 70vh;
    padding: 42px 7% 70px;
}

.excerpt-shell {
    max-width: 850px;
}

.excerpt-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0 0 30px;
    flex-wrap: wrap;
}

.excerpt-text + .excerpt-pagination {
    margin: 30px 0 0;
}

.page-number,
.page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 11px;
    border: 1px solid rgba(15, 59, 46, 0.28);
    border-radius: 8px;
    background: #ffffff;
    color: #12382d;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
}

.page-number:hover,
.page-number:focus-visible,
.page-arrow:hover,
.page-arrow:focus-visible {
    border-color: #d29a32;
    background: #fff8e7;
    outline: none;
}

.page-number.is-current {
    border-color: #0f3b2e;
    background: #0f3b2e;
    color: #ffffff;
}

.page-arrow.is-disabled {
    opacity: 0.35;
    cursor: default;
}

.excerpt-text {
    padding: 40px 48px;
    border: 1px solid rgba(15, 59, 46, 0.14);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
}

.excerpt-text p,
.excerpt-text p:first-child {
    margin: 0 0 12px;
    color: #1f1f1f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.5;
    text-align: justify;
    text-indent: 2em;
}

.excerpt-text p:last-child {
    margin-bottom: 0;
}

.excerpt-figure {
    width: 76%;
    margin: 24px auto 26px;
    overflow: hidden;
    border: 1px solid rgba(15, 59, 46, 0.16);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.excerpt-figure img {
    display: block;
    width: 100%;
    height: auto;
    padding: 7px;
    border-radius: 12px;
    background: #ffffff;
    cursor: zoom-in;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.excerpt-figure img:hover,
.excerpt-figure img:focus-visible {
    filter: brightness(0.96);
    transform: scale(1.01);
    outline: none;
}

.excerpt-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.excerpt-actions {
    text-align: center;
}

.excerpt-actions .excerpt-order {
    margin-top: 0;
}

.excerpt-pagination + .excerpt-actions {
    margin: 20px 0 30px;
}

.excerpt-pdf-link {
    display: inline-block;
    margin-top: 13px;
    color: #0f3b2e;
    font-size: 16px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.excerpt-pdf-link:hover,
.excerpt-pdf-link:focus-visible {
    color: #c45f0a;
    outline: none;
}

.excerpt-order .main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 30px;
    border-radius: 40px;
    background: #e67e22;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    transition: background 0.2s ease, transform 0.2s ease;
}

.excerpt-order .main-button:hover,
.excerpt-order .main-button:focus-visible {
    background: #f6a623;
    transform: translateY(-2px);
    outline: none;
}

@media screen and (max-width: 768px) {
    .excerpt-article {
        padding: 30px 20px 50px;
    }

    .excerpt-text {
        padding: 28px 22px;
    }

    .excerpt-text p,
    .excerpt-text p:first-child {
        font-size: 17px;
        line-height: 1.48;
        text-indent: 1.6em;
    }

    .excerpt-figure {
        width: 100%;
        margin: 20px auto 22px;
    }

    .page-number,
    .page-arrow {
        min-width: 38px;
        height: 38px;
        padding: 0 9px;
        font-size: 16px;
    }
}
