/* Reading layout and editorial vocabulary, shared by public and signed previews. */
section.blog-article-full.article-reading { background: #fff !important; padding-bottom: 64px; }
.article-reading .bf-breadcrumb { padding-bottom: 32px; }
.article-reading .article-grid { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: 64px; align-items: start; }
.article-reading .article-sidebar { height: 100%; min-width: 0; }
.article-reading .article-sidebar__sticky { position: sticky; top: 110px; }
section.blog-article-full.article-reading .link_back { display: flex; position: static; padding: 0; margin-bottom: 28px; font-size: 14px; }
.article-reading .article-toc__toggle { padding: 0 0 14px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: #262630; text-align: left; width: 100%; }
.article-reading .article-toc__toggle span:last-child { display: none; }
.article-reading #article-toc { max-height: calc(100vh - 220px); overflow-y: auto; scrollbar-width: thin; padding-right: 8px; }
.article-reading #article-toc a { display: block; border-left: 2px solid #ececf2; padding: 7px 0 7px 12px; font-size: 14px; line-height: 1.4; color: #737381; text-decoration: none; }
.article-reading #article-toc a:hover, .article-reading #article-toc a[aria-current] { border-color: #4b4afb; color: #4b4afb; }
section.article-reading .content-wrap { width: 100%; min-width: 0; max-width: 700px !important; margin: 0; }
section.article-reading .content-wrap .article-header h1 { font-size: 36px; line-height: 1.16; letter-spacing: -.025em; text-align: left; }
.article-reading .article-lead { font-size: 17px; line-height: 1.5; margin-top: 18px; }
section.article-reading .content-wrap > .post-block > .article-info { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; line-height: 1.5; }
section.article-reading .content-wrap .article-info .author { margin: 0; width: auto; }
section.article-reading .article-info span::after { display: none; }
.article-reading .article-cover { margin: 24px 0 32px; border-radius: 12px; box-shadow: none; }
section.article-reading .content-wrap .post-check { display: block; }
section.blog-article-full.article-reading .content-wrap .post-check .post-cont { width: 100%; min-width: 0; font-size: 18px; line-height: 1.6; color: #383842; overflow-wrap: break-word; }
section.article-reading .post-cont::after { content: ''; display: block; clear: both; }
section.article-reading .content-wrap .post-cont p { font-size: inherit; line-height: inherit; margin: 0 0 22px; }
section.article-reading .content-wrap .post-cont .intro { font-size: 22px; line-height: 1.45; font-weight: 500; margin-bottom: 24px; }
section.blog-article-full.article-reading .content-wrap .post-check .post-cont h2 { font-size: 28px; line-height: 1.25; margin: 44px 0 20px; font-weight: 600; scroll-margin-top: 112px; }
section.article-reading .content-wrap .post-cont h3 { font-size: 23px; line-height: 1.3; margin: 32px 0 16px; scroll-margin-top: 112px; }
section.article-reading .content-wrap .post-cont h4 { font-size: 20px; line-height: 1.4; margin: 24px 0 14px; }
section.article-reading .content-wrap .post-cont a:not([class]) { color: #4b4afb; text-decoration: underline; text-underline-offset: 3px; }
section.article-reading .content-wrap .post-cont ul, section.article-reading .content-wrap .post-cont ol { padding-left: 26px; margin: 20px 0 28px; }
section.article-reading .content-wrap .post-cont li { margin-bottom: 10px; }
section.article-reading .content-wrap .post-cont img { max-width: 100%; height: auto; border: 0; border-radius: 10px; box-shadow: none; margin: 0; }
.article-reading img[data-article-zoom] { cursor: zoom-in; }
.article-reading img[data-article-zoom]:focus-visible { outline: 3px solid #4b4afb; outline-offset: 4px; }
section.article-reading .content-wrap .post-cont figure { margin: 28px 0; }
section.article-reading .content-wrap .post-cont figure img { display: block; width: 100%; }
section.article-reading .content-wrap .post-cont figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: #777783; text-align: center; }
section.article-reading .post-rating, section.article-reading .post-author-block { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }
.post-share .container-share .post-share__link .post-share__max-icon { width: 30px; height: 30px; flex: 0 0 30px; border: 0; border-radius: 0; box-shadow: none; object-fit: contain; }
.post-share .container-share { height: auto; }
.post-share .container-share .post-share__link { flex: 0 0 45px; white-space: nowrap; }
section.article-reading .content-wrap .post-cont .note, section.article-reading .content-wrap .post-cont .article-note { position: relative; margin: 28px 0; padding: 18px 22px 20px 56px; border: 1px solid #e9e9ef; border-left: 3px solid #4b4afb; border-radius: 0 12px 12px 0; background: #fafaff; font-size: 17px; }
.article-reading .post-cont .note::before { content: 'Совет'; display: block; color: #262630; font-weight: 600; margin-bottom: 6px; }
.article-reading .post-cont .note::after { content: 'i'; position: absolute; top: 18px; left: 17px; width: 24px; height: 24px; border-radius: 50%; background: #e7e6ff; color: #4b4afb; text-align: center; font-weight: 600; line-height: 24px; }
section.article-reading .content-wrap .post-cont .note--warn { border-left-color: #d69418; background: #fffcf5; }
.article-reading .post-cont .note--warn::before { content: 'Важно'; }
.article-reading .post-cont .note--warn::after { content: '!'; background: #fff0c6; color: #996400; }
section.article-reading .content-wrap .post-cont .note--ok { border-left-color: #24966a; background: #f7fcf9; }
.article-reading .post-cont .note--ok::before { content: 'Итог'; }
.article-reading .post-cont .note--ok::after { content: '✓'; background: #dcf4e8; color: #18845a; }
.article-reading[data-language=en] .post-cont .note::before { content: 'Tip'; }
.article-reading[data-language=en] .post-cont .note--warn::before { content: 'Important'; }
.article-reading[data-language=en] .post-cont .note--ok::before { content: 'Takeaway'; }
section.article-reading .content-wrap .post-cont .note > :last-child { margin-bottom: 0; }
section.article-reading .content-wrap .post-cont blockquote { background: #f7f7fc; border-left: 3px solid #4b4afb; border-radius: 0 12px 12px 0; margin: 28px 0; padding: 24px 28px; font-size: 21px; line-height: 1.5; font-weight: 500; }
section.article-reading .content-wrap .post-cont blockquote p { margin-bottom: 12px; }
.article-reading .post-cont blockquote cite { display: block; font-size: 14px; font-style: normal; color: #777783; }
section.article-reading .content-wrap .post-cont ol.steps { list-style: none; padding: 0; counter-reset: steps; }
section.article-reading .content-wrap .post-cont .steps > li { position: relative; padding: 2px 0 20px 50px; margin: 0; min-height: 42px; }
section.article-reading .content-wrap .post-cont .steps > li::before { counter-increment: steps; content: counter(steps); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; background: #eeedff; color: #4b4afb; font-size: 15px; line-height: 32px; text-align: center; }
section.article-reading .content-wrap .post-cont ul.checks, section.article-reading .content-wrap .post-cont ul.checklist { list-style: none; padding: 0; }
.article-reading .post-cont .checks li, .article-reading .post-cont .checklist li { position: relative; padding-left: 30px; }
.article-reading .post-cont .checks li::before, .article-reading .post-cont .checklist li::before { content: '✓'; position: absolute; left: 0; color: #208c65; }
.article-reading .post-cont .checks li.no::before { content: '×'; color: #ce4769; }
section.article-reading .content-wrap .post-cont .stat-line { display: flex; flex-wrap: wrap; gap: 24px 0; margin: 28px 0; padding: 24px 0; border-block: 1px solid #e9e9ef; }
section.article-reading .content-wrap .post-cont .stat-line > div { flex: 1 1 150px; background: none; border-radius: 0; padding: 0 22px; border-left: 1px solid #e9e9ef; }
.article-reading .post-cont .stat-line > div:first-child { border-left: 0; padding-left: 0; }
.article-reading .post-cont .stat-line b, .article-reading .post-cont .stat-line strong { display: block; color: #4b4afb; font-size: 30px; line-height: 1.3; }
.article-reading .post-cont .stat-line span { display: block; color: #777783; font-size: 14px; margin-top: 6px; }
.article-reading .post-cont details { margin: 14px 0; border: 1px solid #e6e6ed; border-radius: 12px; overflow: hidden; }
.article-reading .post-cont summary { position: relative; padding: 16px 48px 16px 20px; cursor: pointer; font-weight: 500; list-style: none; }
.article-reading .post-cont summary::-webkit-details-marker { display: none; }
.article-reading .post-cont summary::after { content: '+'; position: absolute; right: 20px; color: #4b4afb; }
.article-reading .post-cont details[open] > summary::after { content: '−'; }
section.article-reading .content-wrap .post-cont details > :not(summary) { margin: 0 20px 18px; }
.article-reading .post-cont mark { color: inherit; background: #eeedff; padding: 1px 3px; border-radius: 3px; }
.article-reading .post-cont hr { border: 0; border-top: 1px solid #e6e6ed; margin: 36px 0; }
.article-reading .post-cont pre { padding: 20px; overflow: auto; background: #f6f6fa; border-radius: 10px; font-size: 14px; }
.article-reading .post-cont .yes-no { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 28px 0; }
.article-reading .post-cont .yes-no > div { background: #f4fbf7; border-radius: 12px; padding: 20px; }
.article-reading .post-cont .yes-no > div:last-child { background: #fff5f7; }
.article-reading .post-cont .table-scroll { overflow: auto; max-width: 100%; margin: 28px 0; }
section.article-reading .content-wrap .post-cont table { display: table; border-collapse: collapse; width: 100%; margin: 0; font-size: 15px; }
.article-reading .post-cont th, .article-reading .post-cont td { padding: 14px; border: 1px solid #e6e6ed; text-align: left; min-width: 100px; }
.article-reading .post-cont th { background: #f7f7fc; }
.article-reading .post-cont .post-side { display: block; margin: 24px 0; padding: 16px 20px; border-left: 2px solid #4b4afb; background: #f7f7fc; font-size: 15px; line-height: 1.5; }
.article-reading .post-cont .post-side::before { content: 'Читайте также'; display: block; color: #777783; font-size: 12px; margin-bottom: 6px; }
.article-reading[data-language=en] .post-cont .post-side::before { content: 'Related reading'; }
@media (min-width: 1400px) { .article-reading .post-cont .post-side { float: right; clear: right; width: 170px; margin: 6px -210px 24px 24px; padding: 0 0 0 14px; background: none; } }
.article-reading .post-cont .bgal { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin: 28px 0 0; scrollbar-width: thin; }
section.article-reading .content-wrap .post-cont .bgal > figure { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; }
section.article-reading .content-wrap .post-cont .bgal > figure img { aspect-ratio: 16 / 10; object-fit: contain; background: #f7f7fc; }
.article-gallery-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 14px 0 28px; font-size: 13px; color: #777783; }
.article-gallery-controls button { border: 1px solid #e6e6ed; background: #fff; color: #4b4afb; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; }
.article-gallery-controls button:disabled { opacity: .35; cursor: default; }
.article-gallery-controls .gallery-dot { width: 10px; height: 10px; padding: 0; background: #dedee9; border: 0; }
.article-gallery-controls .gallery-dot[aria-current] { background: #4b4afb; }
.article-lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 64px 80px; border: 0; background: rgba(17,18,27,.58); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.article-lightbox::backdrop { background: transparent; }
.article-lightbox[open] { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px; }
.article-lightbox.article-lightbox--visible { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.article-lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 180px); object-fit: contain; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.42); opacity: 0; transform: scale(.92); transition: transform .36s cubic-bezier(.2,.85,.25,1), opacity .28s ease; }
.article-lightbox.article-lightbox--visible img.article-lightbox__image--ready { opacity: 1; transform: scale(1); }
.article-lightbox figcaption { font-size: 14px; line-height: 1.5; max-width: 900px; text-align: center; overflow-y: auto; max-height: 70px; opacity: 0; transform: translateY(6px); transition: opacity .3s ease .06s, transform .3s ease .06s; }
.article-lightbox.article-lightbox--visible figcaption { opacity: 1; transform: none; }
.article-lightbox button { position: absolute; width: 44px; height: 44px; border: 1px solid #ffffff50; border-radius: 50%; background: #ffffff15; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #fff; font-size: 26px; cursor: pointer; opacity: 0; transform: scale(.92); transition: opacity .24s ease .06s, transform .24s cubic-bezier(.2,.8,.2,1), background .2s ease; }
.article-lightbox.article-lightbox--visible button { opacity: 1; transform: scale(1); }
.article-lightbox button:hover { background: #fff; color: #181824; transform: scale(1.08); }
.article-lightbox button:focus-visible { outline: 3px solid #b9b8ff; outline-offset: 4px; }
.article-lightbox__close { top: 18px; right: 20px; }
.article-lightbox__prev { left: 16px; top: 48%; }
.article-lightbox__next { right: 16px; top: 48%; }
.article-lightbox__count { position: absolute; top: 28px; left: 24px; font-size: 14px; }
.article-lightbox [hidden] { display: none !important; }
@media (max-width: 1199px) { .article-reading .article-grid { grid-template-columns: 190px minmax(0,700px); gap: 32px; } }
@media (max-width: 991px) {
    .article-reading .article-grid { display: block; max-width: 700px; margin: auto; }
    .article-reading .article-sidebar__sticky { position: static; }
    .article-reading .link_back { margin-bottom: 20px; }
    .article-reading .article-toc { border-block: 1px solid #e6e6ed; margin-bottom: 28px; }
    .article-reading .article-toc__toggle { padding: 16px 0; display: flex; justify-content: space-between; cursor: pointer; }
    .article-reading .article-toc__toggle span:last-child { display: inline; }
    .article-reading #article-toc { max-height: 320px; margin-bottom: 16px; }
    .article-reading .article-toc__toggle[aria-expanded=false] + nav { display: none; }
}
@media (max-width: 575px) {
    section.article-reading .content-wrap .article-header h1 { font-size: 30px; }
    section.blog-article-full.article-reading .content-wrap .post-check .post-cont { font-size: 17px; }
    section.article-reading .content-wrap .post-cont .intro { font-size: 20px; font-weight: 500; }
    section.blog-article-full.article-reading .content-wrap .post-check .post-cont h2 { font-size: 25px; }
    .article-reading .post-cont .yes-no { grid-template-columns: 1fr; }
    .article-reading .post-cont .stat-line > div { flex-basis: 50%; }
    .article-lightbox { padding: 76px 12px; }
    .article-lightbox__prev, .article-lightbox__next { top: auto; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .article-lightbox, .article-lightbox img, .article-lightbox figcaption, .article-lightbox button { transition-duration: .01ms !important; transition-delay: 0s !important; }
    .article-lightbox img, .article-lightbox button { transform: none !important; }
}

section.blog-articles.article-related {
    padding: 72px 0 112px !important;
    background: #f5f6fc;
}

section.article-related .blog-cards {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

section.article-related .blog-cards > .other-title {
    max-width: none;
    margin: 0 0 30px;
    color: #181824;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
}

section.article-related .blog-other-cards {
    display: flex !important;
    max-width: none !important;
    margin: 0 !important;
    flex-direction: column;
    grid-template-columns: none !important;
    gap: 20px !important;
}

section.article-related .blog-card {
    position: relative;
    display: grid !important;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 8px !important;
    grid-template-columns: 340px minmax(0, 1fr);
    grid-template-rows: none !important;
    gap: 28px !important;
    border: 0 !important;
    border-radius: 24px !important;
    background: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

section.article-related .blog-card:hover {
    background: #fff !important;
    transform: translateY(-2px) !important;
}

section.article-related .blog-card > .blog-card__category {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 20px;
    display: inline-flex;
    width: auto;
    font-weight: 400;
}

section.article-related .blog-card .card-img {
    width: 100% !important;
    height: 100% !important;
    min-height: 220px !important;
    overflow: hidden;
    border-radius: 17px !important;
    background-position: left top;
    background-size: cover;
}

section.article-related .blog-card .card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

section.article-related .blog-card .card-body {
    display: flex;
    min-width: 0;
    height: 100%;
    padding: 16px 18px 16px 0 !important;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px !important;
}

section.article-related .blog-card .card-content {
    display: flex;
    min-width: 0;
    padding: 0 !important;
    flex-direction: column;
    gap: 14px !important;
}

section.article-related .blog-card .blog-card__meta {
    color: #6b6b78;
    font-size: 14px;
    line-height: 1.4;
}

section.article-related .blog-card .title-blog {
    display: block;
    overflow: visible;
    margin: 0;
    color: #181824;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.28 !important;
    letter-spacing: -.01em;
    -webkit-line-clamp: unset;
}

section.article-related .blog-card .blog-card__footer {
    margin: 0;
}

section.article-related .blog-card .author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b6b78;
    font-size: 14px;
}

section.article-related .blog-card .author img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 780px) {
    section.article-related .blog-card { grid-template-columns: 280px minmax(0, 1fr); gap: 20px !important; }
    section.article-related .blog-card .card-body { padding-right: 12px !important; }
}

@media (max-width: 660px) {
    section.blog-articles.article-related { padding: 52px 0 72px !important; }
    section.article-related .blog-cards > .other-title { margin-bottom: 22px; font-size: 30px; }
    section.article-related .blog-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto !important; gap: 0 !important; }
    section.article-related .blog-card .card-img { min-height: 0 !important; aspect-ratio: 16 / 9; }
    section.article-related .blog-card .card-body { padding: 18px 16px 22px !important; }
}
