@font-face {
    font-family: "manrope";
    src: url("../../fonts/brochure/Manrope-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "manrope";
    src: url("../../fonts/brochure/Manrope-ExtraBold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "manropesemi";
    src: url("../../fonts/brochure/Manrope-SemiBold.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

.bv {
    display: flex;
    flex-direction: column;
    background: #e8e8e5;
    color: #333333;
    font-family: "manrope", system-ui, sans-serif;
    overflow: hidden;
}

.bv-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 56px;
    padding: 0 24px;
    background: #ffffff;
    border-bottom: 1px solid #dcdcdc;
    flex-shrink: 0;
}

.bv-bar__back,
.bv-bar__download {
    color: #333333;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.bv-bar__back:hover {
    color: #4e7374;
}

.bv-bar__title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    font-size: 13px;
}

.bv-bar__title strong {
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bv-bar__title span {
    color: #8a8a8a;
}

.bv-bar__download {
    padding: 9px 16px;
    background: #333333;
    color: #ffffff;
    font-family: "manropesemi", sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 11px;
}

.bv-bar__download:hover {
    background: #4e7374;
}

.bv-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px;
}

.bv-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    color: #8a8a8a;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bv-book {
    width: 100%;
    height: 100%;
    visibility: hidden;
}

.bv-book.is-ready {
    visibility: visible;
}

.bv-book .stf__wrapper {
    height: 100%;
}

.bv-page {
    overflow: hidden;
    background: #ffffff;
}

.bv-sheet {
    position: relative;
    width: 210mm;
    height: 297mm;
    overflow: hidden;
    background: #ffffff;
    transform: scale(var(--bv-scale, 1));
    transform-origin: 0 0;
}

.bv-sheet img {
    display: block;
}

.bv-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 56px;
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #dcdcdc;
}

.bv-controls button {
    width: 40px;
    height: 36px;
    border: 1px solid #dcdcdc;
    background: #ffffff;
    color: #333333;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.bv-controls button:hover {
    border-color: #333333;
}

.bv-controls__counter {
    min-width: 96px;
    font-family: "manropesemi", sans-serif;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 640px) {
    .bv-bar {
        padding: 0 12px;
    }

    .bv-bar__title span {
        display: none;
    }

    .bv-stage {
        padding: 12px;
    }
}
