.breadcrumb-container {
    border-bottom: 1px solid #e8edf2;
}

.telegram-breadcrumb-wrap {
    max-width: min(980px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.breadcrumb-nav {
    margin: 0 !important;
    color: #66717c !important;
}

.telegram-breadcrumb-nav {
    font-size: 14px;
    line-height: 1.7;
}

.breadcrumb-nav a {
    color: #e63946;
    text-decoration: none;
}

.breadcrumb-nav a:hover {
    text-decoration: underline;
}

.post-header-section {
    text-align: center;
    border-bottom: 1px solid #eef2f5;
}

.telegram-post-header {
    max-width: min(980px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.telegram-post-header .wp-block-post-title {
    color: #e63946 !important;
    letter-spacing: 0.2px;
}

.telegram-post-meta {
    color: #8fa2b1;
}

.telegram-page-content-wrap,
.telegram-page-main .wp-block-post-content {
    max-width: min(980px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.telegram-page-main .wp-block-post-content > * {
    max-width: 100%;
}

.telegram-post-bottom-wrap {
    max-width: min(980px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.post-first-image img {
    display: block;
}

.news-card {
    box-shadow: 0 10px 24px rgba(26, 48, 66, 0.06);
}

.telegram-news-section > .alignwide,
.telegram-news-section > .wp-block-group.alignwide {
    width: 1160px;
    max-width: calc(100% - 30px);
    margin-left: auto !important;
    margin-right: auto !important;
}

.telegram-news-section .wp-block-query,
.telegram-news-section .wp-block-post-template {
    max-width: 100%;
}

.telegram-news-section .post-first-image img,
.telegram-news-section .news-card img {
    height: 148px !important;
    object-fit: cover;
}

.telegram-news-section .wp-block-post-title {
    margin-bottom: 4px;
}

.telegram-news-section .wp-block-post-excerpt {
    margin-top: 0;
}

.telegram-news-section .wp-block-post-excerpt__excerpt {
    margin-top: 0;
}

.news-card:hover,
.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(26, 48, 66, 0.12);
}

.related-post-card a {
    transition: color 0.3s ease;
}

.wp-block-post-navigation-link a {
    text-decoration: none;
}

.wp-block-post-content {
    max-width: min(760px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.telegram-post-featured-image {
    max-width: min(760px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.telegram-post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
    scroll-margin-top: 110px;
}

.telegram-floating-toc {
    position: fixed;
    top: 132px;
    right: max(18px, calc((100vw - 1423px) / 2) - 24px);
    width: 220px;
    max-height: calc(100vh - 170px);
    overflow: auto;
    padding: 14px 14px 12px;
    border: 1px solid #e3ecf3;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(24, 48, 74, 0.10);
    backdrop-filter: blur(10px);
    z-index: 60;
}

.telegram-floating-toc__title {
    margin-bottom: 10px;
    color: #1f3447;
    font-size: 14px;
    font-weight: 700;
}

.telegram-floating-toc__nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.telegram-floating-toc__link {
    display: block;
    padding: 7px 10px;
    border-radius: 10px;
    color: #5d6c79;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.45;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.telegram-floating-toc__link:hover,
.telegram-floating-toc__link.is-active {
    background: #eef7fd;
    color: #229ed9;
    transform: translateX(-2px);
}

.telegram-floating-toc__link--h3 {
    padding-left: 20px;
}

.telegram-floating-toc__link--h4 {
    padding-left: 30px;
    font-size: 12px;
}

@media (max-width: 1380px) {
    .telegram-floating-toc {
        right: 16px;
        width: 190px;
    }
}

@media (max-width: 1100px) {
    .telegram-floating-toc {
        display: none;
    }

    .wp-block-post-content,
    .telegram-post-header,
    .telegram-breadcrumb-wrap {
        max-width: min(760px, calc(100% - 24px));
    }
}


@media (max-width: 640px) {
    .telegram-news-section > .alignwide,
    .telegram-news-section > .wp-block-group.alignwide {
        max-width: calc(100% - 24px);
    }
}

.breadcrumb-nav a,
.wp-block-post-content a,
.wp-block-query-pagination a,
.wp-block-post-navigation-link a {
    color: #e63946;
}

.telegram-post-header .wp-block-post-title,
.telegram-page-main h1,
.telegram-page-main h2,
.telegram-page-main h3 {
    color: #e63946;
}

.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
    color: #cf2f3d;
}

.telegram-floating-toc {
    border-color: rgba(230, 57, 70, 0.10);
    box-shadow: 0 12px 28px rgba(24, 24, 24, 0.08);
}

.telegram-floating-toc__title {
    color: #cf2f3d;
}

.telegram-floating-toc__link:hover,
.telegram-floating-toc__link.is-active {
    background: #fdf0f2;
    color: #e63946;
}

.related-post-card,
.news-card,
.wp-block-post-navigation-link {
    border-radius: 14px;
}
