.magazine-hero {
    background: linear-gradient(120deg, rgba(10, 28, 50, .94), rgba(174, 34, 45, .84)), url("../images/07.png") center/cover no-repeat;
}

.magazine-page {
    background: #eef3f8;
    padding: 48px 0 64px;
}

.magazine-heading {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 26px;
}

.magazine-kicker {
    color: #b5252f;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.magazine-heading h3 {
    color: #10233f;
    font-size: 32px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.magazine-heading p {
    color: #56657a;
    margin: 0;
    max-width: 680px;
}

.magazine-counter {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(16, 35, 63, .08);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(16, 35, 63, .08);
    display: flex;
    gap: 10px;
    padding: 12px 16px;
}

.magazine-counter span {
    color: #b5252f;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.magazine-counter small {
    color: #56657a;
    font-weight: 800;
    text-transform: uppercase;
}

.magazine-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
}

.magazine-shelf {
    background: #fff;
    border: 1px solid rgba(16, 35, 63, .08);
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(16, 35, 63, .09);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    position: sticky;
    top: 96px;
}

.magazine-shelf__title {
    align-items: baseline;
    border-bottom: 1px solid rgba(16, 35, 63, .08);
    display: flex;
    justify-content: space-between;
    padding: 2px 2px 12px;
}

.magazine-shelf__title span {
    color: #10233f;
    font-size: 15px;
    font-weight: 800;
}

.magazine-shelf__title small {
    color: #7a8797;
    font-size: 12px;
}

.magazine-issue {
    align-items: center;
    background: #f8fafc;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #10233f;
    cursor: pointer;
    display: flex;
    gap: 14px;
    padding: 10px;
    text-align: left;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    width: 100%;
}

.magazine-issue:hover,
.magazine-issue.is-active {
    background: #fff;
    border-color: rgba(181, 37, 47, .42);
    box-shadow: 0 12px 28px rgba(16, 35, 63, .11);
    transform: translateY(-1px);
}

.magazine-issue.is-active {
    border-left: 4px solid #b5252f;
}

.magazine-issue__cover {
    background: #d8e0eb;
    border-radius: 5px;
    box-shadow: 0 8px 18px rgba(16, 35, 63, .18);
    display: block;
    flex: 0 0 58px;
    height: 78px;
    overflow: hidden;
    position: relative;
}

.magazine-issue__cover::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, .22), transparent 28%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.magazine-issue__cover img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.magazine-issue__mock {
    background: linear-gradient(145deg, #10233f 0%, #23537e 58%, #b5252f 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding: 8px 7px;
    text-transform: uppercase;
}

.magazine-issue__mock span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}

.magazine-issue__mock strong {
    font-size: 12px;
    line-height: 1.1;
}

.magazine-issue__meta {
    min-width: 0;
}

.magazine-issue__meta strong,
.magazine-issue__meta small {
    display: block;
}

.magazine-issue__meta strong {
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 5px;
}

.magazine-issue__meta small {
    color: #6c7888;
    font-size: 12px;
}

.magazine-reader {
    background: #fff;
    border: 1px solid rgba(16, 35, 63, .08);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(16, 35, 63, .12);
    min-width: 0;
    overflow: hidden;
}

.magazine-reader-head {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid rgba(16, 35, 63, .08);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 16px 18px;
}

.magazine-reader-head span {
    color: #b5252f;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.magazine-reader-head h4 {
    color: #10233f;
    font-size: 20px;
    line-height: 1.25;
    margin: 0;
}

.magazine-reader-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.magazine-dearflip-stage {
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, .18), transparent 30%),
        linear-gradient(135deg, #223149, #101827 58%, #0c1320);
    min-height: 720px;
    overflow: hidden;
    position: relative;
}

.magazine-dearflip-holder {
    min-height: 720px;
    padding: 20px;
}

.magazine-dearflip-book,
.magazine-dearflip-book.df-container {
    background: transparent !important;
    height: 680px !important;
}

.magazine-dearflip-stage .df-container {
    border-radius: 0;
    box-shadow: none;
}

.magazine-dearflip-stage .df-ui-wrapper,
.magazine-dearflip-stage .df-ui-controls {
    font-family: inherit;
}

.magazine-empty {
    background: #fff;
    border: 1px solid rgba(16, 35, 63, .08);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(16, 35, 63, .08);
    padding: 42px 20px;
    text-align: center;
}

.magazine-empty i {
    color: #b5252f;
    font-size: 42px;
    margin-bottom: 14px;
}

.magazine-empty h4 {
    color: #10233f;
    font-size: 22px;
    margin-bottom: 8px;
}

.magazine-empty p {
    color: #56657a;
    margin: 0;
}

@media (max-width: 991px) {
    .magazine-layout {
        grid-template-columns: 1fr;
    }

    .magazine-shelf {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 14px;
        position: static;
    }

    .magazine-shelf__title {
        align-items: flex-start;
        border-bottom: 0;
        border-right: 1px solid rgba(16, 35, 63, .08);
        flex: 0 0 150px;
        flex-direction: column;
        justify-content: center;
        padding: 0 14px 0 2px;
    }

    .magazine-issue {
        flex: 0 0 260px;
    }

}

@media (max-width: 767px) {
    .magazine-page {
        padding: 34px 0 46px;
    }

    .magazine-heading,
    .magazine-reader-head {
        align-items: stretch;
        flex-direction: column;
    }

    .magazine-heading h3 {
        font-size: 26px;
    }

    .magazine-counter {
        align-self: flex-start;
    }

    .magazine-reader-actions .btn {
        width: 100%;
    }

    .magazine-dearflip-stage,
    .magazine-dearflip-holder {
        min-height: 560px;
    }

    .magazine-dearflip-holder {
        padding: 10px;
    }

    .magazine-dearflip-book,
    .magazine-dearflip-book.df-container {
        height: 540px !important;
    }
}
