html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, a, img, q, s, strong, b, u, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, tbody, tfoot, thead, tr, th, td, canvas, details, embed, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline
}

body {
    line-height: 1
}

ol, ul {
    list-style: none
}

blockquote, q {
    quotes: none
}

blockquote:before, blockquote:after, q:before, q:after {
    content: " ";
    content: none
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

a, a:hover, input[type="text"]:focus, button:focus, button:active, textarea:focus, .editable {
    text-decoration: none;
    outline: none
}

b {
    font-weight: normal
}

u, s {
    text-decoration: none
}

i {
    font-style: normal
}

body {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: transparent;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased
}

html {
    box-sizing: border-box
}

*, *:before, *:after {
    box-sizing: inherit
}

.clearfix:after, .weeks-list-item:after, .article-pages:after {
    content: " ";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
    overflow: hidden
}

body {
    min-width: 320px;
    background-color: #fff;
    color: #333;
    font-family: "OpenSans", -apple-system, "Helvetica Neue", Roboto, sans-serif;
    -webkit-text‑size‑adjust: 100%;
    -webkit-font-smoothing: antialiased
}

.grid, .header-weeks, .weeks-list, .weeks-popup-inner, .article {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 12px
}

.bg-arr, .header-weeks .weeks-select, .article-nav-selector {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iNiIgdmlld0JveD0iMCAwIDEwIDYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPlJlY3RhbmdsZSA4NzwvdGl0bGU+PHBhdGggZD0iTTUuMjk0IDQuMzE5TDEuNjc3LjcwMmEuNjI2LjYyNiAwIDAgMC0uODgyLjAwMy42MjIuNjIyIDAgMCAwLS4wMDIuODhMNC43NiA1LjU1M2EuNjI0LjYyNCAwIDAgMCAuNi4yODIuNjIzLjYyMyAwIDAgMCAuNDY5LS4yODNsMy45NjUtMy45NjVhLjYyNi42MjYgMCAwIDAtLjAwMi0uODgxLjYyMi42MjIgMCAwIDAtLjg4Mi0uMDAzTDUuMjk0IDQuMzE5eiIgZmlsbD0iIzAyN0FFNiIgZmlsbC1ydWxlPSJldmVub2RkIi8+PC9zdmc+)
}

.anim, .weeks-popup .weeks-table-row .row-cells-item, .article-pages-item .item-icon, .article-pages-item .item-caption {
    transition: all 0.2s ease
}

strong {
    font-weight: 500
}

.oh {
    overflow: hidden
}

.abs-center {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto
}

.select-none, .weeks-popup .weeks-table-row .row-cells-item {
    user-select: none
}

.sticky-header.is-fixed {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 5;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1)
}

.header {
    min-height: 120px;
    padding: 12px 0;
    background: url("../images/bg-header.jpg") 50% 50% no-repeat;
    background-size: cover
}

.header.is-blurred {
    background-image: url("../images/bg-header-blur.jpg")
}

.header-caption {
    font-family: 'Roboto Slab', serif;
    font-size: 16px;
    line-height: 18px;
    color: #fff
}

.header-descr {
    margin-top: 3px;
    font-size: 12px;
    line-height: 17px;
    color: rgba(255, 255, 255, 0.5)
}

.header-childs-wrap {
    height: 44px;
    margin: 12px -12px 0;
    font-size: 0;
    line-height: 0;
    white-space: nowrap;
    overflow: hidden
}

.header-childs-scroll {
    height: 80px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch
}

.header-childs-item {
    position: relative;
    display: inline-block;
    vertical-align: top;
    height: 44px;
    padding: 0 10px 0 64px
}

.header-childs-item:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 100%
}

.header-childs-item .item-ava {
    position: absolute;
    top: 0;
    left: 12px;
    width: 44px;
    height: 44px;
    border: 2px solid #fff;
    border-radius: 50%;
    overflow: hidden
}

.header-childs-item .item-ava-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%
}

.header-childs-item .item-data {
    display: inline-block;
    vertical-align: middle
}

.header-childs-item .item-name {
    font-family: 'Roboto Slab', serif;
    font-size: 14px;
    line-height: 17px;
    color: #fff
}

.header-childs-item .item-old {
    font-size: 12px;
    line-height: 17px;
    color: rgba(255, 255, 255, 0.5)
}

.header-weeks {
    padding-top: 10px;
    padding-bottom: 14px;
    background-color: #fff
}

.header-weeks .weeks-caption {
    display: inline-block;
    vertical-align: baseline;
    font-size: 12px;
    line-height: 17px;
    color: #878C91
}

.header-weeks .weeks-select {
    display: inline-block;
    vertical-align: baseline;
    margin-left: 12px;
    padding-right: 20px;
    background-repeat: no-repeat;
    background-position: 100% 60%;
    font-family: 'Roboto Slab', serif;
    font-size: 20px;
    line-height: 23px;
    color: #027AE6;
    outline: none;
    appearence: none
}

.weeks-list {
    padding-top: 16px
}

.weeks-list-item {
    position: relative;
    top: -8px;
    display: block;
    margin: 8px -12px 0;
    padding: 13px 12px 8px 60px
}

.weeks-list-item:before {
    content: '';
    position: absolute;
    top: -8px;
    left: 27px;
    bottom: 0;
    width: 2px;
    background-color: #ECECEC
}

.weeks-list-item:first-child {
    margin-top: 0
}

.weeks-list-item:first-child:before {
    top: 8px
}

.weeks-list-item:last-child:before {
    bottom: auto;
    height: 16px
}

.weeks-list-item:active {
    background-color: rgba(0, 0, 0, 0.05)
}

.weeks-list-item .item-img {
    display: block;
    margin-left: 16px;
    border-radius: 4px;
    float: right;
    object-fit: cover;
    object-position: center;
}

.weeks-list-item .item-descr {
    display: block;
    font-size: 14px;
    line-height: 20px;
    color: #333;
    overflow: hidden
}

.weeks-list-item .item-descr .link {
    color: #0087ee;
    text-decoration: underline;
}

.weeks-list-item .item-descr a {
    color: #0087ee;
    text-decoration: underline;
}

.weeks-list-item .item-num {
    position: absolute;
    top: 8px;
    left: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #027AE6;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    white-space: nowrap;
    text-align: center;
    z-index: 2
}

.weeks-list-item .item-num-align {
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 100%
}

.weeks-list-item .item-num-digit {
    display: inline-block;
    vertical-align: middle;
    font-family: 'Roboto Slab', serif;
    font-size: 16px;
    line-height: 100%;
    color: #fff
}

.weeks-list-separate {
    position: relative;
    top: -8px;
    padding: 0 0 2px;
    font-size: 12px;
    line-height: 17px;
    color: #878C91
}

.footer {
    width: 100%;
    height: 80px;
    margin: 30px 0 0;
    padding: 40px 0 0;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzYwIDgxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiPjxwYXRoIGQ9Ik0wIDEwczU3LjYyIDIxLjc3IDE4MCAwIDE4MCAwIDE4MCAwdjcxSDBWMTB6IiBmaWxsPSIjZjdmN2Y3IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=);
    background-repeat: no-repeat;
    background-position: 0 0;
    background-size: 100% 100%;
    font-size: 12px;
    line-height: 17px;
    color: #878C91;
    text-align: center
}

.weeks-popup {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-color: #fff;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 10
}

.weeks-popup-close {
    max-width: 400px;
    margin: 0 auto;
    padding: 16px 0
}

.weeks-popup-close .close-icon {
    display: inline-block;
    vertical-align: middle
}

.weeks-popup-close .close-text {
    display: inline-block;
    vertical-align: middle;
    margin-left: 22px;
    font-size: 14px;
    line-height: 19px;
    color: #878C91
}

.weeks-popup .weeks-table {
    display: table;
    max-width: 400px;
    width: 100%;
    margin: 5px auto 0
}

.weeks-popup .weeks-table-caption {
    padding: 24px 0 10px;
    font-family: 'Roboto Slab', serif;
    font-size: 18px;
    line-height: 21px;
    color: #000
}

.weeks-popup .weeks-table-caption:first-child {
    padding-top: 0
}

.weeks-popup .weeks-table-row {
    display: table-row;
    padding-top: 2px
}

.weeks-popup .weeks-table-row .row-caption {
    display: table-cell;
    vertical-align: top;
    max-width: 120px;
    height: 44px;
    padding: 4px 0 2px;
    text-align: left
}

.weeks-popup .weeks-table-row .row-caption:after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 44px
}

.weeks-popup .weeks-table-row .row-caption-text {
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    line-height: 18px;
    color: #878C91
}

.weeks-popup .weeks-table-row .row-cells {
    display: table-cell;
    min-width: 192px;
    vertical-align: top;
    padding-top: 2px
}

.weeks-popup .weeks-table-row .row-cells-item {
    position: relative;
    width: 44px;
    height: 44px;
    margin: 2px;
    float: left;
    text-align: center;
    font-family: 'Roboto Slab', serif;
    font-size: 16px;
    line-height: 100%;
    color: #027AE6;
    background-color: #F7F7F7;
    border-radius: 4px;
    overflow: hidden
}

.weeks-popup .weeks-table-row .row-cells-item:after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 0;
    height: 100%
}

.weeks-popup .weeks-table-row .row-cells-item.is-selected {
    background-color: #027AE6;
    color: #fff
}

.weeks-popup .weeks-table-row .row-cells-item:active {
    background-color: #ECECEC
}

.weeks-popup .weeks-table-row .row-cells-item .item-child {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 10px;
    z-index: 10
}

.weeks-popup .weeks-table-row .row-cells-item .item-child:nth-child(2) {
    left: 12px;
    z-index: 9
}

.weeks-popup .weeks-table-row .row-cells-item .item-child:nth-child(3) {
    left: 24px;
    z-index: 8
}

.weeks-popup .weeks-table-row .row-cells-item .item-child:nth-child(4) {
    left: 36px;
    z-index: 7
}

.article {
    padding: 0 16px;
    margin-top: 0;
}

.article-nav {
    margin: 0 -16px;
    margin-top: 0;
}

.article-nav-back {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 52px;
    height: 50px
}

.article-nav-back:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    height: 40px;
    margin: auto;
    border-radius: 50%
}

.article-nav-back:active:before {
    background-color: rgba(0, 0, 0, 0.1)
}

.article-nav-back .icon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto
}

.article-nav-selector {
    display: inline-block;
    vertical-align: middle;
    padding-right: 17px;
    font-size: 14px;
    line-height: 100%;
    color: #027AE6;
    background-repeat: no-repeat;
    background-position: 100% 50%
}

.article h1 {
    font-family: 'Roboto Slab', serif;
    font-size: 24px;
    line-height: 28px;
    color: #000;
    font-weight: 600;
}

.article .article-cover {
    margin: 0 -16px;
    font-size: 0;
    line-height: 0;
    text-align: center
}

.article .article-cover-img {
    max-width: 100%
}

.article-descr {
    padding: 0 0 48px;
    font-size: 16px;
    line-height: 26px;
    color: #222
}

.article-descr p {
    margin: 16px 0 0
}

.article-descr ul, .article ol {
    margin: 16px 0 16px 16px;
    list-style-position: inside
}

.article-descr ul {
    list-style-type: disc
}

.article-descr ol {
    list-style-type: decimal
}

.article-descr li {
    margin: 3px 0 0
}

.article-descr li:first-child {
    margin-top: 0
}

.article-descr h2 {
    font-family: 'Roboto Slab', serif;
    font-size: 20px;
    line-height: 26px;
    color: #222;
    margin: 40px 0 16px;
    font-weight: 600
}

.article-descr h2:first-child {
    margin-top: 20px;
}

.article-descr h2 + p {
    margin-top: 16px
}

.article-pages-item {
    width: 50%;
    padding: 12px 4px;
    background-color: #F7F7F7;
    border-left: 1px solid #fff;
    text-align: right;
    white-space: nowrap;
    float: left;
    overflow: hidden
}

.article-pages-item:first-child {
    border-left-width: 0;
    border-right: 1px solid #fff;
    text-align: left
}

.article-pages-item .item-icon {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    width: 32px;
    height: 32px;
    margin: 0 8px;
    background-color: #027AE6;
    border-radius: 50%
}

.article-pages-item .item-icon-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto
}

.article-pages-item .item-caption {
    display: inline-block;
    vertical-align: middle;
    font-family: 'Roboto Slab', serif;
    font-size: 17px;
    line-height: 21px;
    color: #027AE6
}

.article-pages-item:active .item-icon, .article-pages-item:active .item-caption {
    opacity: 0.6
}

.article-pages-item.disabled .item-icon {
    background-color: #CCCCCC;
}
.article-pages-item.disabled .item-caption {
    color: #CCCCCC;
}


.share-button {
    background-color: #FC541D;
    border-radius: 10px;
    color: #ffffff;
    border: none;
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    padding: 8px 10px;
    text-decoration: none;
}

.share-button-text {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    white-space: nowrap;
}

.share-button-icon {
    vertical-align: middle;
}

.share-button .share-image {
    position: absolute;
    top: -10000px;
    left: -10000px;
}


.article .article-cover .share-button {
    margin-top: -15px;
}

.article-descr a {
    color: #0087ee;
    text-decoration: underline;
}

/* Стили для новой структуры библиотеки */
.library-articles-list {
    max-width: 400px;
    margin: 0 auto;
    padding: 0 16px;
}

.library-article-card {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.library-article-card:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.library-article-card:active {
    background-color: rgba(0, 0, 0, 0.05);
}

.library-article-card:last-child {
    border-bottom: none;
}

.library-article-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 16px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f8f8f8;
}

.library-article-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.library-article-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    color: #999;
    font-size: 24px;
}

.library-article-content {
    flex: 1;
    min-width: 0;
}

.library-article-title {
    margin: 0 0 8px 0;
    font-family: 'Roboto Slab', serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    color: #333;
}

.library-article-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}