body {
	background-color: #fff;
	opacity: 0;
	color: #2A2F36;
}
a, a:hover, a:visited {
    color: #0067a3;
    font: bold 12px verdana;
    text-decoration: none;
}
.pages {
    margin: 10px 0 0;
    text-align: center;
}
.navigation .pages span {
    margin: 4px 6px 4px 2px;
}
.pages a, .pages span {
    font-size: 14px;
    padding: 1px 12px;
    line-height: 28px;
    border-radius: 23px;
}
.pages a, .pages span {
    display: inline-block;
    margin: 4px 2px;
    min-width: 16px;
    text-align: center;
}
.pages span {
    background: #373C43;
    color: #FFFFFF;
}
.pages a {
	font-weight: normal;
    background: #E6EBEE;
    color: #000000 !important;
    text-decoration: none !important;
}
.pages .nav_ext {
    background: none;
    color: #373C43;
    padding-left: 0;
    padding-right: 0;
}
.speedbar {
    margin: 0 0 10px;
}
.book-notes {
    margin-top: 10px;
    font-size: 12px;
    line-height: 17px;
    font-style: italic;
    color: #696767;
}
.book-notes span{
    color: #dc4801;
}
.fb2-book sup {
	color: #dc4801;
    vertical-align: super;
    font-size: smaller;
}

.fb2-book .title {
font-size: 20px;
margin: 0 0 0.8em;
}	
.fb2-book {
line-height: 32px;
font-size: 17px;
margin: auto;
width: 80%;
}
.fb2-area {
border-radius: 2px;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.2);
padding: 4%;
position: relative;
}
.left {
float: left;
}
.right {
float: right;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-size: 100%;
outline: none;
}
.fb2-cfg {
position: relative;
height: 40px;
}
.fb2-cfg.js-open .fb2-cfg-ul {
opacity: 1;
top: 30px;
visibility: visible;
}
.fb2-cfg-ul {
transition:opacity .25s linear,top .25s linear;
background: #fff none repeat scroll 0 0;
box-shadow: 0 2px 5px 3px #ddd;
list-style: none;
position: absolute;
right: 0;
top: 0;
padding: 10px 0;
width: 300px;
opacity: 0;
color: #333;
visibility: hidden;
}
.quote {
	border: 1px solid #eee;
	border-left: 2px solid #e85319;
    font-style: italic;
	margin: 0 0 10px;
    padding: 4px 10px;
}		
.fb2-cfg-ul li {
    border-bottom: 1px solid #f2f2f2;
    font-size: 14px;
    margin: 0 0 10px;
    padding: 0 30px 10px;
    text-align: left;
}
.fb2-cfg-ul li:last-child {
    border: 0 none;
    padding: 0 30px 0;
}
#fb2-book-font, .fb2-cfg-ul {
	border-radius: 4px;
}
#fb2-book-font {
    border: 1px solid #f0f0f0;
    color: #555;
    display: block;
    font-size: 15px;
    padding: 4px 6px;
    width: 100%;
}
.wrap {
    font-family: arial,sans-serif;
    font-size: 14px;
    line-height: 24px;
    margin: 4% auto;
    padding: 0 4%;
    max-width: 1200px;
    width: 100%;
}
#fb2-book-reset {
	display: block;
	margin: 8px 0 0;
}

._range{
	margin-top: 6px;
    cursor:pointer;
    background-clip:padding-box;
    vertical-align:top;
    outline:0;
    -webkit-appearance:none;
    -moz-apperance:none;
    background:transparent;
    width:100%;
    height: 8px;
    border-radius: 5px;
}
._range:focus,._range::-moz-focus-inner{
    outline:0
}
._range::-webkit-slider-runnable-track{
    height:3px;
}
._range::-webkit-slider-thumb{
    box-shadow:0 1px 5px rgba(0,0,0,0.5);
    border:0 none;
    height:18px;
    width:18px;
    border-radius:9px;
    background:#fff;
    -webkit-appearance:none;
    margin-top:-7.5px
}
._range::-webkit-slider-thumb:active{
    background:#1aafa8;
}
._r1 {
    background-image:-webkit-gradient(linear,left top,right top,color-stop(1,#1aafa8));
}
._r2 {
    background-image:-webkit-gradient(linear,left top,right top,color-stop(0.2,#1aafa8),color-stop(0.2,#cbcbcb));
}
._r3 {
    background-image: -webkit-gradient(linear, 0% 0%, 100% 0%, color-stop(0.5, rgb(26, 175, 168)), color-stop(0.5, rgb(203, 203, 203)));
}
._r4 {
	background-image: -webkit-gradient(linear, 0% 0%, 100% 0%, color-stop(0.5, rgb(26, 175, 168)), color-stop(0.5, rgb(203, 203, 203)));
}
._range::-moz-range-track{
    width:100%;
    height:3px;
    background:#cbcbcb;
    border-radius:0;
    border-width:7.5px 0;
    border-color:transparent
}
._range::-moz-range-thumb{
    box-shadow:0 1px 5px rgba(0,0,0,0.5);
    border:0 none;
    height:18px;
    width:18px;
    border-radius:9px;
    background:#fff
}
._range::-moz-range-progress{
    height:3px;
    background:#1aafa8
}
._range::-ms-track{
    width:100%;
    height:3px;
    cursor:pointer;
    background:transparent;
    border-color:transparent;
    border-width:10.5px 0;
    color:transparent
}
._range::-ms-fill-lower{
    background:#1aafa8
}
._range::-ms-fill-upper{
    background:#cbcbcb
}
._range::-ms-thumb{
    box-shadow:0 1px 5px rgba(0,0,0,0.5);
    border:0 none;
    height:18px;
    width:18px;
    border-radius:9px;
    background:#fff
}
._range::-ms-tooltip{
    display:none
}


/*Кнопки с ссылками на магазины в конце читалки*/
/* --- Стили блока покупки книг (Variant 10: Exclusive Badge) --- */

.bk-store-wrapper {
    box-sizing: border-box;
    width: 100%;
    margin: 30px 0;
    padding: 20px 0 5px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

/* Текстовая часть */
.bk-store-cta {
    margin-bottom: 20px;
    text-align: center;
    padding: 0 20px;
}
.bk-store-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: #2d3436;
}
.bk-store-text {
    margin: 0;
    font-size: 0.95rem;
    color: #636e72;
    line-height: 1.5;
}
.bk-store-highlight {
    font-weight: 700;
    color: #ff4757; /* Акцентный цвет в тексте */
}

/* Сетка (Grid) */
.bk-store-grid {
    display: grid;
    /* Авто-распределение: от 200px до растягивания на всю ширину */
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); 
    gap: 15px;
    padding: 0 20px 20px;
}

/* Общие стили кнопок */
.bk-store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 12px 15px;
    border-radius: 8px;
    background: #ffffff;
    border: 2px solid #f0f0f0; /* Светлая рамка по умолчанию */
    color: #2d3436;
    transition: all 0.2s ease-in-out;
    position: relative; /* Для позиционирования бейджа */
    overflow: visible;  /* Чтобы бейдж мог выходить за рамки */
}

/* Иконки */
.bk-icon-box svg {
    width: 26px;
    height: 26px;
    margin-right: 12px;
    flex-shrink: 0;
    fill: #b2bec3; /* Серый цвет иконок по умолчанию */
    transition: fill 0.2s ease;
}

/* Текст внутри кнопки */
.bk-content-box {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}
.bk-label {
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.bk-sublabel {
    font-size: 0.7rem;
    color: #636e72;
    font-weight: 500;
}

/* --- Специфика ЛИТНЕТ (Акцент) --- */
.bk-btn-litnet {
    border-color: #ff4757; /* Красная рамка */
    z-index: 1;
}
.bk-btn-litnet .bk-icon-box svg {
    fill: #ff4757; /* Красная иконка */
}
.bk-btn-litnet:hover {
    background: #fff5f6; /* Легкий розовый фон при наведении */
}

/* Бейдж (Обновленный для длинного текста) */
.bk-badge {
    position: absolute;
    top: -11px;         /* Подняли чуть выше */
    right: 10px;        /* Сдвинули внутрь, чтобы длинный текст не обрезался */
    background: #ff4757;
    color: #fff;
    font-size: 9px;     /* Шрифт чуть меньше, чтобы фраза влезла */
    font-weight: 800;
    padding: 4px 8px;   /* Отступы внутри плашки */
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(255, 71, 87, 0.4);
    text-transform: uppercase;
    white-space: nowrap; /* Запрещаем перенос текста на новую строку */
    z-index: 5;
    animation: bounceBadge 2s infinite ease-in-out;
}

/* --- Ховер эффекты для остальных кнопок --- */
.bk-store-btn:not(.bk-btn-litnet):hover {
    border-color: #dcdde1;
    transform: translateY(-2px);
}
.bk-store-btn:not(.bk-btn-litnet):hover .bk-icon-box svg {
    fill: #2d3436; /* Иконка темнеет при наведении */
}

/* Анимация бейджа */
@keyframes bounceBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Мобильная адаптивность */
@media (max-width: 480px) {
    .bk-store-grid {
        grid-template-columns: 1fr; /* Кнопки одна под одной */
    }
    .bk-store-wrapper {
        margin: 20px 0;
        border: none; /* Убираем рамку контейнера на моб, чтобы было чище */
        box-shadow: none;
        background: transparent;
    }
    .bk-store-btn {
        box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Добавляем тень кнопкам на моб */
    }
}