/* ==========================================================================
   Component: Publisher Page
   "Издательство" — About / Publisher landing page
   ========================================================================== */

.publisher-page {
    display: flex;
    flex-direction: column;
}

/* ============================== HERO ============================== */

.publisher-hero {
    background: var(--color-bg);
    padding: 24px 0 12px;
}

.publisher-hero__card {
    position: relative;
    border: 1px solid var(--color-accent-200);
    border-radius: 16px;
    overflow: hidden;
    padding: 50px 96px;
    min-height: 450px;
}

.publisher-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.publisher-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.publisher-hero__content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.publisher-hero__title-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: var(--color-dark-600);
}

.publisher-hero__label {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-xl);
    font-weight: 500;
    letter-spacing: 3.06px;
    text-transform: uppercase;
    line-height: normal;
}

.publisher-hero__title {
    font-family: var(--font-family-serif);
    font-size: 88px;
    font-weight: 400;
    line-height: 90px;
    margin: 0;
}

.publisher-hero__desc {
    font-family: var(--font-family);
    font-size: var(--font-size-lg);
    font-weight: 400;
    line-height: 24px;
    color: var(--color-dark-500);
}

.publisher-hero__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ============================== BODY ============================== */

.publisher-body {
    padding: var(--section-gap) 0;
}

.publisher-body__inner {
    display: flex;
    justify-content: center;
}

.publisher-body__column {
    max-width: 740px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* --- Section titles --- */

.publisher-section__title {
    font-family: var(--font-family-serif);
    font-size: 32px;
    font-weight: 500;
    line-height: 40px;
    color: var(--color-dark-700);
    margin: 0;
}

/* --- Body text --- */

.publisher-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: var(--font-family);
    font-size: var(--font-size-lg);
    font-weight: 400;
    line-height: 28px;
    color: var(--color-dark-500);
}

.publisher-text p {
    margin: 0;
}

.publisher-text--single {
    display: block;
}

/* ============================== ABOUT CARD ============================== */

.publisher-about {
    position: relative;
    background: var(--color-accent-100);
    border: 1px solid var(--color-accent-200);
    border-radius: 32px;
    padding: 64px 40px 108px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
    overflow: hidden;
}

.publisher-about__decor {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-family-serif);
    font-size: 148px;
    font-weight: 500;
    line-height: 197px;
    letter-spacing: 10px;
    color: var(--color-accent-200);
    opacity: 0.4;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.publisher-about__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
    width: 100%;
}

.publisher-about__heading {
    font-family: var(--font-family-serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: var(--color-dark-700);
    margin: 0;
}

.publisher-about__quote {
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    line-height: 25px;
    color: var(--color-dark-500);
    margin: 0;
}

.publisher-about__author {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.publisher-about__avatar {
    width: 88px;
    height: 88px;
    border-radius: 24px;
    object-fit: cover;
}

.publisher-about__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.publisher-about__name {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-lg);
    font-weight: 500;
    line-height: 20px;
    color: var(--color-dark-700);
    text-align: center;
}

.publisher-about__role {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 400;
    line-height: 17px;
    color: var(--color-dark-500);
    text-align: center;
}

/* ============================== BLOCKQUOTE ============================== */

.publisher-blockquote {
    border-left: 4px solid var(--color-accent-700);
    padding: 16px 0 16px 40px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.publisher-blockquote__text {
    font-family: var(--font-family-serif);
    font-size: var(--font-size-2xl);
    font-weight: 500;
    line-height: 32px;
    color: var(--color-dark-700);
    margin: 0;
}

.publisher-blockquote__cite {
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--color-dark-700);
    text-align: right;
    font-style: normal;
}

/* ============================== CHECKLIST ============================== */

.publisher-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.publisher-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 0;
    border-top: 1px solid var(--color-accent-200);
}

.publisher-checklist__icon {
    flex-shrink: 0;
    width: 31px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-700);
    border-radius: 50%;
    color: var(--color-dark-700);
}

.publisher-checklist__text {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 20px;
    color: var(--color-text);
    padding-top: 5px;
}

/* ============================== POPULAR BOOKS (inline mini-grid) ============================== */

.publisher-books {
    background: var(--color-accent-100);
    border: 1px solid var(--color-accent-100);
    border-radius: var(--radius-xl);
    padding: 28px 40px 24px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.publisher-books__title {
    font-family: var(--font-family-serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: var(--color-text);
    margin: 0;
}

.publisher-books__grid {
    display: flex;
    gap: var(--spacing-md);
}

.publisher-books__card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-decoration: none;
    color: inherit;
}

.publisher-books__cover {
    width: 100%;
    aspect-ratio: 736 / 920;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.publisher-books__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publisher-books__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.publisher-books__name {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 18px;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.publisher-books__author {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 400;
    line-height: 17px;
    color: var(--color-dark-500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.publisher-books__link {
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 18px;
    color: var(--color-text);
    text-decoration: underline;
}

/* ============================== VALUES GRID ============================== */

.publisher-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.publisher-values__card {
    border: 1px solid var(--color-accent-200);
    border-radius: var(--radius-md);
    padding: 16px 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: center;
}

.publisher-values__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 32px;
    color: var(--color-dark-400);
}

.publisher-values__icon svg {
    width: 100%;
    height: 100%;
}

.publisher-values__text {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 20px;
    color: var(--color-text);
    margin: 0;
}

/* ============================== CTA CARD ============================== */

.publisher-cta {
    display: flex;
    min-height: 314px;
    background: var(--color-accent-100);
    border: 1px solid var(--color-accent-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.publisher-cta__image-wrap {
    flex: 1;
    max-width: 320px;
    min-width: 280px;
    padding: 14px;
}

.publisher-cta__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
}

.publisher-cta__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: 32px 24px;
    text-align: center;
}

.publisher-cta__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    background: var(--color-accent);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    line-height: 12px;
    color: var(--color-dark-600);
}

.publisher-cta__title {
    font-family: var(--font-family-serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 24px;
    color: var(--color-dark-600);
    margin: 0;
}

.publisher-cta__desc {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 20px;
    color: var(--color-dark-500);
    margin: 0;
}

.publisher-cta__btn {
    color: var(--color-accent-200);
}

.publisher-cta__btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================== BEST EDITIONS (book-grid overrides) ============================== */

.publisher-page__best-editions-wrap {
    background: var(--color-accent-100);
    padding: var(--spacing-3xl) 0;
}

/* ==========================================================================
   RESPONSIVE — 1024px (Tablet)
   ========================================================================== */

@media (max-width: 1024px) {
    .publisher-hero__card {
        padding: 48px 40px;
        min-height: 400px;
    }

    .publisher-hero__title {
        font-size: 64px;
        line-height: 72px;
    }

    .publisher-hero__content {
        max-width: 300px;
        gap: 28px;
    }

    .publisher-hero__actions {
        flex-direction: column;
    }

    .publisher-hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .publisher-body__column {
        max-width: 660px;
    }

    .publisher-about {
        padding: 48px 32px 80px;
        border-radius: 24px;
    }

    .publisher-about__decor {
        font-size: 120px;
        line-height: 160px;
    }

    .publisher-section__title {
        font-size: 26px;
        line-height: 34px;
    }
}

/* ==========================================================================
   RESPONSIVE — 768px (Mobile)
   ========================================================================== */

@media (max-width: 768px) {
    .publisher-hero__card {
        padding: 48px 40px;
        min-height: unset;
    }

    .publisher-hero__content {
        max-width: 300px;
        gap: var(--spacing-lg);
    }

    .publisher-hero__label {
        font-size: var(--font-size-lg);
        letter-spacing: 2.72px;
    }

    .publisher-hero__title {
        font-size: 64px;
        line-height: 72px;
    }

    .publisher-hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .publisher-hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .publisher-body__column {
        max-width: 100%;
    }

    .publisher-about {
        padding: 40px 24px 70px;
        border-radius: 20px;
    }

    .publisher-about__decor {
        font-size: 80px;
        line-height: 100px;
    }

    .publisher-about__heading {
        font-size: 18px;
    }

    .publisher-about__quote {
        font-size: 14px;
        line-height: 22px;
    }

    .publisher-section__title {
        font-size: 22px;
        line-height: 30px;
    }

    .publisher-text {
        font-size: var(--font-size-base);
        line-height: 24px;
    }

    .publisher-blockquote {
        padding-left: 24px;
    }

    .publisher-blockquote__text {
        font-size: 20px;
        line-height: 28px;
    }

    .publisher-values {
        grid-template-columns: 1fr;
    }

    .publisher-books {
        padding: 24px 20px;
    }

    .publisher-books__grid {
        gap: 12px;
    }
}

/* ==========================================================================
   RESPONSIVE — 480px (Small mobile)
   ========================================================================== */

@media (max-width: 480px) {
    .publisher-hero__card {
        padding: 48px 16px 240px;
        text-align: center;
    }

    .publisher-hero__content {
        max-width: 100%;
        align-items: center;
    }

    .publisher-hero__title-group {
        align-items: center;
    }

    .publisher-hero__title {
        font-size: 40px;
        line-height: 40px;
    }

    .publisher-hero__label {
        font-size: var(--font-size-base);
        letter-spacing: 2.38px;
    }

    .publisher-hero__actions {
        padding: 0 16px;
    }

    .publisher-about {
        padding: 32px 16px 60px;
        border-radius: 16px;
    }

    .publisher-about__decor {
        font-size: 56px;
        line-height: 70px;
    }

    .publisher-about__avatar {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .publisher-books__grid {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .publisher-books__card {
        flex-direction: row;
        gap: var(--spacing-md);
    }

    .publisher-books__cover {
        width: 80px;
        height: 100px;
        aspect-ratio: auto;
        flex-shrink: 0;
    }

    .publisher-cta {
        flex-direction: column;
    }

    .publisher-cta__image-wrap {
        max-width: none;
        min-width: 0;
        min-height: 200px;
    }
}
