.inner-header {
    position: fixed;
    top: 0;
    z-index: 100;
    background: #fff;
}

body .s-article {
    margin-top: 65px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; !important;
    font-size: 16px; !important;
    line-height: 1.7;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

.left-menu {
    margin-top: 65px;
    height: calc(100% - 65px);
}

.s-article__body ol, .s-article__body ul {
    list-style: unset;
}

.s-article__body ul {
    list-style-type: disc;
}

.s-article__body ol {
    list-style-type: decimal;
}

a {
    color: #2563eb;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Article Layout: статья + TOC справа --- */
.s-article-layout {
    display: grid;
    grid-template-columns: minmax(0, 800px) 240px;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
}

/* --- Article Container --- */
.s-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px 60px;
}

/* --- Table of Contents (карточка справа, sticky) --- */
/* margin-top и top выровнены по верхней границе hero-картинки:
   .s-article margin-top 65 + padding-top 24 + высота крошек ~22 + их margin-bottom 20 ≈ 131px */
.s-toc {
    position: sticky;
    top: 131px;
    align-self: start;
    margin-top: 131px;
}
.s-toc__sticky {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.s-toc__title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #374151;
    margin: 0 0 14px;
}
.s-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.s-toc__list li {
    margin: 0;
    padding: 0;
}
.s-toc__link {
    display: block;
    padding: 8px 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: #374151;
    text-decoration: none;
    transition: color 0.15s;
}
.s-toc__link:hover,
.s-toc__link:focus,
.s-toc__link:visited {
    color: #111827;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 3px;
}
.s-toc__link--active {
    color: #111827;
    font-weight: 600;
}

/* плавный скролл по якорным ссылкам */
html {
    scroll-behavior: smooth;
}

/* На узких экранах сайдбар скрывается, статья — как раньше */
@media (max-width: 1100px) {
    .s-article-layout {
        display: block;
        max-width: 800px;
    }
    .s-toc {
        display: none;
    }
}

/* --- Breadcrumbs --- */
.s-breadcrumbs {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
}
.s-breadcrumbs a {
    color: #6b7280;
}
.s-breadcrumbs a:hover {
    color: #2563eb;
}
.s-breadcrumbs__sep {
    margin: 0 6px;
    color: #d1d5db;
}
.s-breadcrumbs__current {
    color: #9ca3af;
}

/* --- Hero Image --- */
.s-article__hero {
    margin-bottom: 32px;
    border-radius: 12px;
    overflow: hidden;
}
.s-article__hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* --- Article Header --- */
.s-article__header {
    margin-bottom: 32px;
}
.s-article__meta {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
}
.s-article__meta-sep {
    margin: 0 8px;
}
.s-article__category {
    color: #2563eb;
    font-weight: 500;
}
.s-article__header h1 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
    letter-spacing: -0.01em;
}

/* --- Article Body --- */
.s-article__body {
    margin-bottom: 40px;
}
.s-article__body p {
    margin-bottom: 16px;
}
.s-article__body h2 {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.3;
}
.s-article__body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-top: 28px;
    margin-bottom: 12px;
    line-height: 1.4;
}
.s-article__body h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-top: 20px;
    margin-bottom: 8px;
    line-height: 1.4;
}
.s-article__body ul,
.s-article__body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}
.s-article__body li {
    margin-bottom: 8px;
}
.s-article__body li ul,
.s-article__body li ol {
    margin-top: 8px;
    margin-bottom: 0;
}
.s-article__body strong {
    font-weight: 600;
    color: #111827;
}

/* --- Info Block (light blue) --- */
.s-infoblock {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    border-radius: 0 8px 8px 0;
    padding: 24px 28px;
    margin: 28px 0;
}
.s-infoblock__title {
    font-size: 17px;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 12px;
}
.s-infoblock ol {
    padding-left: 20px;
    margin-bottom: 0;
}
.s-infoblock ul {
    padding-left: 20px;
    margin-bottom: 0;
}
.s-infoblock li {
    margin-bottom: 10px;
}
.s-infoblock p {
    margin-bottom: 12px;
}
.s-infoblock p:last-child {
    margin-bottom: 0;
}

/* --- Alert Block (warning / danger) --- */
.s-alert {
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0;
}
.s-alert--warning {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
}
.s-alert--danger {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
}
.s-alert__title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}
.s-alert p {
    margin-bottom: 0;
    font-size: 15px;
}

/* --- Risk Block (low / medium / high) --- */
.s-risk {
    border-radius: 8px;
    padding: 20px 24px;
    margin: 16px 0;
}
.s-risk--low {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
}
.s-risk--medium {
    background: #fffbeb;
    border-left: 4px solid #eab308;
}
.s-risk--high {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
}
.s-risk__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}
.s-risk ul {
    padding-left: 20px;
    margin-bottom: 12px;
}
.s-risk li {
    margin-bottom: 6px;
}
.s-risk p:last-child {
    margin-bottom: 0;
}

/* --- Code Block --- */
.s-codeblock {
    background: #1e293b;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 16px 0;
    overflow-x: auto;
}
.s-codeblock__label {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
    font-family: monospace;
}
.s-codeblock code {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
    white-space: pre;
    display: block;
}
.s-codeblock .kw { color: #7dd3fc; }
.s-codeblock .str { color: #86efac; }
.s-codeblock .num { color: #fde68a; }
.s-codeblock .key { color: #c4b5fd; }

/* --- Table --- */
.s-table-wrap {
    overflow-x: auto;
    margin: 16px 0 24px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}
.s-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.s-table th {
    background: #f9fafb;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}
.s-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
}
.s-table tr:last-child td {
    border-bottom: none;
}

/* --- Screenshot with lightbox --- */
.s-screenshot {
    margin: 24px 0;
    position: relative;
    cursor: zoom-in;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s;
}
.s-screenshot:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.s-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}
.s-screenshot__zoom {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.s-screenshot:hover .s-screenshot__zoom {
    opacity: 1;
}
.s-screenshot__zoom svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

/* --- Lightbox overlay --- */
.s-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.s-lightbox--open {
    display: flex;
}
.s-lightbox img {
    max-width: 95vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}
.s-lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.s-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.s-screenshot__caption {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    padding: 10px 16px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    cursor: default;
}

/* --- Badge (inline status) --- */
.s-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}
.s-badge--green {
    background: #dcfce7;
    color: #166534;
}
.s-badge--yellow {
    background: #fef9c3;
    color: #854d0e;
}
.s-badge--orange {
    background: #ffedd5;
    color: #9a3412;
}
.s-badge--red {
    background: #fee2e2;
    color: #991b1b;
}

/* --- FAQ --- */
.s-faq {
    margin: 24px 0;
}
.s-faq__item {
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
}
.s-faq__item:last-child {
    border-bottom: none;
}
.s-faq__q {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    color: #111827;
}
.s-faq__a {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.7;
}

/* --- Checklist --- */
.s-checklist {
    list-style: none;
    padding-left: 0;
}
.s-checklist li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 10px;
}
.s-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    background: #fff;
}

/* --- CTA Banner (Deep Teal) --- */
.s-cta {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    border-radius: 16px;
    padding: 40px 44px;
    margin: 48px 0;
    display: flex;
    align-items: center;
    gap: 32px;
    overflow: hidden;
}
.s-cta__left {
    flex: 1;
    min-width: 0;
}
.s-cta__title {
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.25;
}
.s-cta__desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 24px;
}
.s-cta__button {
    display: inline-block;
    background: #fff;
    color: #0f766e;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.s-cta__button:hover {
    background: #f0fdfa;
    transform: translateY(-1px);
    text-decoration: none;
}
.s-cta__right {
    flex-shrink: 0;
    width: 180px;
}
.s-cta__illustration {
    width: 100%;
    height: auto;
}

/* --- Related Articles --- */
.s-related {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}
.s-related__title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
}
.s-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* --- Card --- */
.s-card {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}
.s-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}
.s-card__image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.s-card__body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.s-card__meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}
.s-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 8px;
}
.s-card__desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* ============================================= */
/* RESPONSIVE                                    */
/* ============================================= */

/* --- Tablet Landscape (960px) --- */
@media (max-width: 960px) {
    .s-article {
        max-width: 680px;
        padding: 20px 24px 48px;
    }
    .s-article__header h1 {
        font-size: 28px;
    }
    .s-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Tablet Portrait (768px) --- */
@media (max-width: 768px) {
    .s-article {
        max-width: 100%;
        padding: 16px 20px 40px;
    }
    .s-article__header h1 {
        font-size: 26px;
    }
    .s-article__body h2 {
        font-size: 21px;
    }
    .s-article__body h3 {
        font-size: 17px;
    }
    .s-cta {
        padding: 36px 32px;
        gap: 24px;
    }
    .s-cta__title {
        font-size: 28px;
    }
    .s-cta__right {
        display: none;
    }
    .s-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* --- Mobile (480px) --- */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .s-article {
        padding: 12px 16px 32px;
    }
    .s-article__hero {
        border-radius: 8px;
        margin-bottom: 24px;
    }
    .s-article__header h1 {
        font-size: 23px;
    }
    .s-article__body h2 {
        font-size: 19px;
        margin-top: 32px;
    }
    .s-article__body h3 {
        font-size: 16px;
        margin-top: 24px;
    }
    .s-infoblock {
        padding: 18px 16px;
        margin: 20px -16px;
        border-radius: 0;
    }
    .s-alert {
        padding: 16px 14px;
        margin: 20px -16px;
        border-radius: 0;
    }
    .s-risk {
        padding: 16px 14px;
        margin: 12px -16px;
        border-radius: 0;
    }
    .s-cta {
        flex-direction: column;
        padding: 32px 24px;
        margin: 36px 0;
        border-radius: 16px;
        text-align: left;
        gap: 16px;
    }
    .s-cta__title {
        font-size: 26px;
    }
    .s-cta__desc {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .s-cta__right {
        display: none;
    }
    .s-cta__button {
        padding: 12px 24px;
        font-size: 15px;
    }
    .s-related__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .s-card__image img {
        height: 200px;
    }
}

/* --- Mobile Small (360px) --- */
@media (max-width: 360px) {
    body {
        font-size: 14px;
        line-height: 1.65;
    }
    .s-article {
        padding: 10px 12px 28px;
    }
    .s-breadcrumbs {
        font-size: 12px;
    }
    .s-article__header h1 {
        font-size: 21px;
    }
    .s-article__body h2 {
        font-size: 18px;
    }
    .s-infoblock {
        margin: 16px -12px;
        padding: 16px 14px;
        font-size: 14px;
    }
    .s-alert {
        margin: 16px -12px;
        padding: 14px 12px;
        font-size: 14px;
    }
    .s-risk {
        margin: 12px -12px;
        padding: 14px 12px;
        font-size: 14px;
    }
    .s-codeblock {
        margin: 12px -12px;
        border-radius: 0;
        padding: 16px 14px;
    }
    .s-codeblock code {
        font-size: 12px;
    }
    .s-cta {
        margin: 28px 0;
        padding: 24px 18px;
        border-radius: 14px;
    }
    .s-cta__title {
        font-size: 23px;
    }
    .s-cta__desc {
        font-size: 13px;
    }
    .s-cta__button {
        font-size: 14px;
        padding: 11px 22px;
    }
}
