/* ==========================================================================
   Single Post — v4 (2026-02-21)
   Proper 2-column flexbox, brand colors, sidebar sticky
   Width matched to .nt-container / .hn__container (1520px + 60px padding)
   ========================================================================== */

/* ── Layout container ─────────────────────────────────────────────────── */

.nt-single-post {
    display: flex;
    gap: 32px;
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #213777;
}

.nt-single-post * {
    box-sizing: border-box;
}

/* ── Main content column ──────────────────────────────────────────────── */

.nt-single-post__main {
    flex: 1;
    min-width: 0;
    padding-bottom: 40px;
}

/* ── Sidebar ──────────────────────────────────────────────────────────── */

.nt-single-post__sidebar {
    flex-shrink: 0;
    width: 280px;
    padding-top: 80px;
}

.nt-single-post__sidebar-inner {
    position: sticky;
    top: 90px;
}

/* ── Breadcrumbs ──────────────────────────────────────────────────────── */

.nt-single-post .nt-breadcrumbs {
    margin: 16px 0 12px;
}

/* ── Title ────────────────────────────────────────────────────────────── */

.nt-single-post__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    color: #213777;
    margin: 0 0 20px;
}

/* ── Post meta ────────────────────────────────────────────────────────── */

.nt-single-post__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E6E6FF;
    margin-bottom: 24px;
}

.nt-single-post__meta--bottom {
    margin-top: 24px;
    margin-bottom: 0;
    padding-top: 16px;
    padding-bottom: 0;
    border-bottom: none;
    border-top: 1px solid #E6E6FF;
}

.nt-single-post__info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #8892b5;
    font-weight: 500;
}

.nt-single-post__sep {
    color: #c8cee6;
}

.nt-single-post__share {
    display: flex;
    gap: 6px;
}

.nt-single-post__share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #8892b5;
    background: #f0f2ff;
    text-decoration: none;
    transition: all 0.2s;
}

.nt-single-post__share-btn:hover {
    background: #e0e4ff;
    color: #2C3DF5;
}

.nt-single-post__share-btn.copied {
    background: #d4edda;
    color: #28a745;
}

/* ── Hero image ───────────────────────────────────────────────────────── */

.nt-single-post__hero {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 28px;
}

.nt-single-post__video {
    margin-bottom: 28px;
    border-radius: 12px;
    overflow: hidden;
}

/* ── TOC ──────────────────────────────────────────────────────────────── */

.nt-single-post__toc {
    background: #f5f6ff;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 28px;
    border-left: 3px solid #2C3DF5;
}

.nt-single-post__toc-title {
    font-size: 15px;
    font-weight: 700;
    color: #213777;
    margin-bottom: 12px;
}

.nt-single-post__toc-list {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nt-single-post__toc-list li {
    font-size: 14px;
    line-height: 1.4;
    color: #5a6a99;
}

.nt-single-post__toc-list li::marker {
    color: #2C3DF5;
    font-weight: 600;
}

.nt-single-post__toc-list a {
    color: #5a6a99;
    text-decoration: none;
    transition: color 0.15s;
}

.nt-single-post__toc-list a:hover {
    color: #2C3DF5;
}

/* ── Excerpt ──────────────────────────────────────────────────────────── */

.nt-single-post__excerpt {
    font-size: 17px;
    line-height: 1.6;
    color: #5a6a99;
    font-weight: 500;
    margin-bottom: 24px;
}

.nt-single-post__excerpt p {
    margin: 0;
}

/* ── Content typography ───────────────────────────────────────────────── */

.nt-single-post__content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #213777;
    margin: 36px 0 14px;
    line-height: 1.3;
}

.nt-single-post__content h3 {
    font-size: 19px;
    font-weight: 700;
    color: #213777;
    margin: 28px 0 10px;
}

.nt-single-post__content h4 {
    font-size: 16px;
    font-weight: 700;
    color: #213777;
    margin: 20px 0 8px;
}

.nt-single-post__content p {
    font-size: 15.5px;
    line-height: 1.75;
    color: #3d4f7f;
    margin-bottom: 14px;
}

.nt-single-post__content a {
    color: #2C3DF5;
    text-decoration: underline;
    text-decoration-color: rgba(44, 61, 245, 0.3);
    text-underline-offset: 2px;
}

.nt-single-post__content a:hover {
    text-decoration-color: #2C3DF5;
}

.nt-single-post__content img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

.nt-single-post__content ul,
.nt-single-post__content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.nt-single-post__content li {
    font-size: 15.5px;
    line-height: 1.7;
    color: #3d4f7f;
    margin-bottom: 6px;
}

.nt-single-post__content li::marker {
    color: #2C3DF5;
}

.nt-single-post__content blockquote {
    border-left: 3px solid #2C3DF5;
    margin: 24px 0;
    padding: 14px 20px;
    background: #f5f6ff;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #5a6a99;
}

.nt-single-post__content table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin: 20px 0;
    font-size: 15px;
    border: none;
    overflow: hidden;
    border-radius: 12px;
}

.nt-single-post__content thead {
    background: linear-gradient(135deg, #2C3DF5 0%, #5B6CF5 100%) !important;
}

.nt-single-post__content thead tr {
    background: transparent !important;
}

.nt-single-post__content th {
    padding: 18px 20px;
    text-align: left !important;
    font-weight: 700;
    font-size: 15px;
    color: white !important;
    vertical-align: middle;
    border: none !important;
}

.nt-single-post__content th:first-child {
    border-radius: 12px 0 0 0;
}

.nt-single-post__content th:last-child {
    border-radius: 0 12px 0 0;
}

.nt-single-post__content td {
    padding: 16px 20px;
    border-bottom: 1px solid #F0F0FF !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    font-size: 15px;
    color: #3d4f7f;
    vertical-align: middle;
    text-align: left !important;
}

.nt-single-post__content tbody tr {
    background: white !important;
}

.nt-single-post__content tbody tr:nth-child(even) {
    background: #F5F7FF !important;
}

.nt-single-post__content tbody tr:hover {
    background: #EEF0FF !important;
}

.nt-single-post__content pre {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: #1e293b;
    color: #e2e8f0;
    padding: 18px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 13px;
    line-height: 1.5;
}

.nt-single-post__content strong {
    color: #213777;
    font-weight: 700;
}

/* ── Tags ─────────────────────────────────────────────────────────────── */

.nt-single-post__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 24px;
    border-top: 1px solid #E6E6FF;
}

.nt-single-post__tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f0f2ff;
    color: #2C3DF5;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.nt-single-post__tag:hover {
    background: #e0e4ff;
}

/* ==========================================================================
   SIDEBAR — Recommended Products (same as product page "Похожие модели")
   Styles cloned from product-page.css since it only loads on product pages
   ========================================================================== */

.nt-single-post__sidebar .nt-similar-products {
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

.nt-single-post__sidebar .nt-similar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.nt-single-post__sidebar .nt-similar-products-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nt-single-post__sidebar .nt-similar-product-card {
    background: white;
    border-radius: 14px;
    padding: 16px;
    margin: 0;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #E6E6FF;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(33, 55, 119, 0.06);
}

.nt-single-post__sidebar .nt-similar-product-card:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nt-single-post__sidebar .nt-similar-product-image {
    width: 100%;
    aspect-ratio: 16/10;
    background: white;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}

.nt-single-post__sidebar .nt-similar-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.nt-single-post__sidebar .nt-similar-product-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--primary);
    color: white;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.nt-single-post__sidebar .nt-similar-product-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.nt-single-post__sidebar .nt-similar-product-desc {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 10px;
    line-height: 1.3;
}

.nt-single-post__sidebar .nt-similar-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-light);
}

.nt-single-post__sidebar .nt-similar-product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.nt-single-post__sidebar .nt-similar-product-price del {
    font-size: 13px;
    font-weight: 500;
    color: #b0b8d0;
    text-decoration: line-through;
    display: block;
    margin-bottom: 2px;
}

.nt-single-post__sidebar .nt-similar-product-price ins {
    text-decoration: none;
    color: var(--primary);
}

/* ==========================================================================
   Related Articles (bottom) — matches 1400px site container
   ========================================================================== */

.nt-related-section {
    background: #f5f6ff;
    padding: 48px 0 64px;
}

.nt-related-section__inner {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 60px;
}

.nt-related-section__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: #213777;
    margin: 0 0 28px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    .nt-single-post {
        padding: 0 30px;
    }

    .nt-related-section__inner {
        padding: 0 30px;
    }
}

@media (max-width: 1024px) {
    .nt-single-post__sidebar {
        display: none;
    }

    .nt-single-post {
        max-width: 800px;
        padding: 0 20px;
    }

    .nt-related-section__inner {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .nt-single-post__title {
        font-size: 24px;
    }

    .nt-single-post__content h2 {
        font-size: 20px;
    }

    .nt-single-post__content h3 {
        font-size: 17px;
    }

    .nt-single-post__content p,
    .nt-single-post__content li {
        font-size: 15px;
    }

    .nt-single-post__content table {
        font-size: 14px;
    }

    .nt-single-post__content th,
    .nt-single-post__content td {
        padding: 12px 14px;
    }

    .nt-single-post__content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nt-single-post__hero {
        border-radius: 8px;
        max-height: 280px;
    }

    .nt-single-post__toc {
        padding: 16px 18px;
    }

    .nt-related-section__title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .nt-single-post {
        padding: 0 16px;
    }

    .nt-related-section__inner {
        padding: 0 16px;
    }

    .nt-single-post__title {
        font-size: 22px;
    }

    .nt-single-post__meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Kill old Customizer CSS conflicts
   All old classes are no longer in the DOM, but just in case
   ========================================================================== */

.articles-container,
.column1,
.column2,
.column2-wrapper,
.recommend-wrapper,
.recommend-block,
.post-meta,
.post-info,
.social-links,
.post-excerpt,
.post-thumbnail,
.tags-container,
.post-card-rubrics,
.divider-post {
    /* These classes are no longer used in the template */
}
