* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f7f7f7;
}

a {
    color: #4e76a8;
    text-decoration: none;
}

a:hover {
    color: #2c496e;
}

/* Шапка */
.header {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: #70c52c;
}

.nav__list {
    display: flex;
    list-style: none;
}

.nav__item {
    margin-right: 20px;
}

.nav__link {
    font-weight: 500;
    color: #444;
    transition: color 0.3s;
}

.nav__link:hover {
    color: #70c52c;
}

.header__right {
    display: flex;
    align-items: center;
}

.search {
    display: flex;
    margin-right: 20px;
}

.search input {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.search button {
    background-color: #70c52c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.btn-login {
    color: #70c52c;
    border: 1px solid #70c52c;
}

.btn-register {
    background-color: #70c52c;
    color: white;
}

/* Основной контент */
.main {
    padding: 20px 0;
}

/* Добавляем плейсхолдер для сайдбара, чтобы сохранить правильную сетку при фиксированном положении */
.sidebar-placeholder {
    display: block;
    width: 100%;
    grid-column: 2;
}

@media (max-width: 768px) {
    .sidebar-placeholder {
        display: none;
    }
}

/* Посты */
.posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post {
    background-color: #fff;
    border-radius: 8px;
    /* overflow: hidden; */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.post__header {
    padding: 15px 20px 10px;
}

.post__title {
    font-size: 22px;
    margin-bottom: 10px;
}

.post__info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #777;
}

.post__tags {
    margin-left: auto;
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    color: #555;
    font-size: 12px;
    margin-left: 5px;
}

.post__content {
    padding: 10px 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.post__image {
    margin: 15px 0;
}

.post__image img {
    width: 100%;
    border-radius: 4px;
}

.post__footer {
    padding: 10px 20px 15px;
    border-top: 1px solid #eee;
}

.post__actions {
    display: flex;
    align-items: center;
}

.post__rating {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.rating-up, .rating-down {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #777;
}

.rating-up:hover {
    color: #4CAF50;
}

.rating-down:hover {
    color: #70c52c;
}

.rating-value {
    margin: 0 5px;
    font-weight: 600;
    font-size: 16px;
    color: #b0b0b0;
}

body.white-theme .rating-value {
    color: #666;
}

.post__comments, .post__share, .post__save {
    margin-right: 15px;
}

.post__comments a, .post__share button, .post__save button {
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.post__comments a:hover, .post__share button:hover, .post__save button:hover {
    color: #70c52c;
}

/* Исправление стилей для кнопок с иконками */
.post__share button, .post__save button {
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 5px;
}

.post__share button i, .post__save button i {
    display: inline-block;
    width: 16px;
    text-align: center;
    margin-right: 5px;
}

.sidebar__block:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* Стилизация заголовков боковой панели */
.sidebar__title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #70c52c;
    border-radius: 2px;
}

/* Стилизация списка популярных статей */
.popular__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popular__list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    display: flex;
}

.popular__list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular__list li:before {
    content: '\f138';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #70c52c;
    margin-right: 10px;
    opacity: 0.7;
}

.popular__list a {
    color: #444;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s, transform 0.2s;
    display: inline-block;
}

.popular__list a:hover {
    color: #70c52c;
    transform: translateX(5px);
}

/* Стилизация блока категорий */
.categories__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories__list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.categories__list li:last-child {
    border-bottom: none;
}

.categories__list a {
    color: #333;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

.categories__list a i {
    margin-right: 10px;
    color: #70c52c;
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s;
}

.categories__list a:hover {
    background-color: rgba(255, 102, 0, 0.08);
    padding-left: 16px;
    color: #70c52c;
}

.categories__list a:hover i {
    transform: scale(1.2);
    opacity: 1;
}

/* Темная тема для категорий */
body.black-theme .categories__list li {
    border-bottom-color: #333;
}

body.black-theme .categories__list a {
    color: #e0e0e0;
}

body.black-theme .categories__list a:hover {
    background-color: rgba(255, 102, 0, 0.15);
    color: #70c52c;
}

body.black-theme .categories__list a.active {
    background-color: rgba(255, 102, 0, 0.15);
    color: #70c52c;
}

body.black-theme .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55);
}

body.black-theme .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.55);
}

body.black-theme .animate-slide-up {
    opacity: 1 !important;
}

body.black-theme .btn-warning {
    bottom: 20px;
}

body.white-theme .animate-slide-up {
    opacity: 1 !important;
}

body.white-theme .btn-warning {
    bottom: 20px;
}

/* Стилизация облака тегов */
.tags__cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags__cloud .tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f0f0;
    border-radius: 30px;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    margin: 0;
}

.tags__cloud .tag:hover {
    background-color: #70c52c;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.2);
}

/* Стилизация скроллбара для боковой панели */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Темная тема для категорий */
body.black-theme .categories__list li {
    border-bottom-color: #333;
}

body.black-theme .categories__list a {
    color: #e0e0e0;
}

body.black-theme .categories__list a:hover {
    background-color: rgba(255, 102, 0, 0.15);
    color: #70c52c;
}

/* Блок с авторами */
.authors__list {
    list-style: none;
}

.author__item {
    margin-bottom: 12px;
}

.author__link {
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.author__link:hover {
    transform: translateX(5px);
}

.author__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.author__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author__name {
    font-weight: 600;
    color: #333;
}

.author__rating {
    font-size: 12px;
    color: #777;
}

/* Блок с событиями */
.events__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event__item {
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.event__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.event__date {
    font-size: 12px;
    color: #70c52c;
    font-weight: 600;
    margin-bottom: 3px;
}

.event__title {
    font-size: 14px;
    font-weight: 500;
}

/* Промо-блок */
.promo__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.promo__image {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.promo__image img {
    width: 100%;
    height: auto;
    display: block;
}

.promo__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.promo__description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.promo__button {
    display: inline-block;
    background-color: #70c52c;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s;
}

.promo__button:hover {
    background-color: #70c52c;
    color: white;
}

/* Блок статистики */
.stats__list {
    list-style: none;
}

.stats__item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.stats__item:last-child {
    border-bottom: none;
}

.stats__label {
    color: #666;
}

.stats__value {
    font-weight: 600;
    color: #333;
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__links ul {
    display: flex;
    list-style: none;
}

.footer__links li {
    margin-left: 20px;
}

.footer__links a {
    color: #ddd;
}

.footer__links a:hover {
    color: #fff;
}
.sidebar__block {
    padding: 10px;
}

/* Адаптивность */
@media (max-width: 768px) {

    .header__inner {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    .nav__list {
        margin: 10px 0;
    }

    .header__right {
        flex-direction: column;
        width: 100%;
    }

    .search {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .search input {
        width: 100%;
    }

    .user-panel {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }

    .post__actions {
        flex-wrap: wrap;
    }

    .post__rating, .post__comments, .post__share, .post__save {
        margin-bottom: 10px;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__links ul {
        justify-content: center;
        margin-top: 15px;
    }

    .footer__links li:first-child {
        margin-left: 0;
    }

    .author__link:hover {
        transform: none;
    }

    .post__content {
        font-size: 15px;
    }

    .post__content h1 {
        font-size: 24px;
    }

    .post__content h2 {
        font-size: 22px;
    }

    .post__content h3 {
        font-size: 18px;
    }

    .post__content blockquote {
        padding: 10px 15px 10px 20px;
    }

    /* Улучшим вид постов для планшетов */
    .post__header {
        display: flex;
        flex-direction: column;
    }

    /* Улучшим навигацию для планшетов */
    .nav__list {
        justify-content: center;
    }

    /* Адаптация положения элементов в футере */
    .footer__links ul {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Исправляем работу мобильного меню */
    .mobile-menu-toggle {
        display: block !important;
        position: absolute !important;
    }

    .header__inner {
        position: relative;
    }

    .nav {
        width: 100%;
        background-color: #fff;
    }

    body.dark-theme .nav {
        background-color: #1e1e1e;
    }

    .nav__list {
        display: flex;
        flex-direction: column;
        padding: 10px 0;
    }

    .nav__item {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        text-align: left;
    }

    .nav__link {
        display: block;
        padding: 8px 15px;
        font-size: 16px;
    }

    /* Улучшение стилей для сайдбара на мобильных */
    .sidebar-toggle {
        display: block !important;
        text-align: center;
    }

    .sidebar {
        border-radius: 8px;
        overflow: hidden;
        margin-top: 0;
        position: static; /* Убираем sticky для мобильной версии */
        max-height: none; /* Убираем ограничение высоты */
        overflow-y: visible; /* Убираем скролл */
        width: 100%;
    }

    /* Более компактное отображение сайдбара на мобильных */
    .sidebar__block {
        margin-bottom: 15px;
        padding: 10px;
    }

    .authors__list,
    .events__list,
    .stats__list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tags__cloud {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    /* Исправление для переключателя сайдбара */
    .sidebar-toggle {
        position: relative;
        z-index: 100;
        order: 1;
        margin-top: 15px;
        font-weight: 600;
    }

    .sidebar {
        order: 2;
        width: 100%;
    }


    /* Улучшаем отображение списков в сайдбаре */
    .authors__list,
    .events__list,
    .stats__list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    /* Исправление мобильного меню */
    .mobile-menu-toggle {
        background: transparent !important;
        border: none !important;
        outline: none !important;
    }

    .header__inner {
        position: relative !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        height: auto !important;
    }

    .nav {
        box-shadow: none !important;
        position: static !important;
        width: 100% !important;
    }

    .nav__list {
        padding: 0 !important;
        margin: 0 !important;
    }

    .nav__item {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav__link {
        display: block !important;
        padding: 10px 15px !important;
        border-bottom: 1px solid #eee;
    }

    body.dark-theme .nav__link {
        border-bottom: 1px solid #333;
    }
}

/* Стилизация текстового контента в постах */
.post__content {
    /* ...existing code... */
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

/* Стилизация заголовков в постах */
.post__content h1,
.post__content h2,
.post__content h3,
.post__content h4,
.post__content h5,
.post__content h6 {
    margin: calc(10px + 15 * (100vw / 1920)) 0 calc(10px + 5 * (100vw / 1920));
    color: #222;
    line-height: 1.3;
    @media (min-width: 1920px) {
        margin: 25px 0 15px;
    }
}

.post__content h1 {
    font-size: 28px;
}

.post__content h2 {
    font-size: 24px;
}

.post__content h3 {
    font-size: 20px;
}

.post__content h4 {
    font-size: 18px;
}

.post__content h5 {
    font-size: 16px;
    font-weight: 600;
}

.post__content h6 {
    font-size: 15px;
    font-weight: 600;
    color: #666;
}

/* Стилизация абзацев */
.post__content p {
    margin-bottom: 18px;
}

/* Стилизация нумерованных списков */
.post__content ol {
    counter-reset: item;
    margin: 20px 0;
    padding-left: 15px;
}

.post__content ol li {
    position: relative;
    counter-increment: item;
    padding-left: 35px;
    margin-bottom: 12px;
    list-style: none;
}

.post__content ol li:before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background-color: #70c52c;
    color: white;
    font-weight: 600;
    border-radius: 50%;
    font-size: 14px;
}

/* Вложенные нумерованные списки */
.post__content ol ol {
    margin: 12px 0;
}

.post__content ol ol li:before {
    background-color: #a7c78c;
}

/* Стилизация маркированных списков */
.post__content ul {
    margin: 20px 0;
    padding-left: 15px;
}

.post__content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    list-style: none;
}

.post__content ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: #70c52c;
    border-radius: 50%;
}

/* Вложенные маркированные списки */
.post__content ul ul {
    margin: 12px 0;
}

.post__content ul ul li:before {
    background-color: #70c52c;
    width: 6px;
    height: 6px;
}

/* Смешанные списки */
.post__content ul ol li:before,
.post__content ol ul li:before {
    background-color: #70c52c;
}

/* Стилизация цитат */
.post__content blockquote {
    margin: 25px 0;
    padding: 15px 20px 15px 25px;
    background-color: #f9f9f9;
    border-left: 4px solid #70c52c;
    font-style: italic;
    color: #555;
    border-radius: 0 4px 4px 0;
}

.post__content blockquote p:last-child {
    margin-bottom: 0;
}

.post__content blockquote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    color: #666;
}

/* Стилизация таблиц */
.post__content table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
    font-size: 15px;
}

.post__content table th {
    background-color: #f5f5f5;
    font-weight: 600;
    text-align: left;
    color: #333;
}

.post__content table th,
.post__content table td {
    padding: 10px 15px;
    border: 1px solid #ddd;
}

.post__content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.post__content table tr:hover {
    background-color: #f3f3f3;
}

/* Стилизация кода */
.post__content pre {
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow-x: auto;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}

.post__content code {
    padding: 2px 5px;
    background-color: #f5f5f5;
    border-radius: 3px;
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 14px;
    color: #e83e8c;
}

.post__content pre code {
    padding: 0;
    background-color: transparent;
    color: inherit;
}

/* Стилизация изображений и подписей */
.post__content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
    max-height: calc(150px + 150 * (100vw / 1920));
}
@media (min-width: 1920px) {
    .post__content img {
        max-height: 300px;
    }
}

.post__content figure {
    margin: 25px 0;
}

.post__content figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Стилизация медиа объектов */
.post__content iframe,
.post__content video,
.post__content audio {
    max-width: 100%;
    margin: 20px 0;
    border-radius: 4px;
}

/* Стилизация выделений текста */
.post__content strong,
.post__content b {
    font-weight: 700;
}

.post__content em,
.post__content i {
    font-style: italic;
}

.post__content mark {
    background-color: #fffacd;
    padding: 0 3px;
}

.post__content del {
    color: #999;
    text-decoration: line-through;
}

.post__content ins {
    color: #4CAF50;
    text-decoration: underline;
}

/* Стилизация горизонтальной линии */
.post__content hr {
    margin: 25px 0;
    border: 0;
    height: 1px;
    background-color: #eee;
}

/* Стилизация подсветки синтаксиса для кода */
.post__content .hljs {
    padding: 0;
    background-color: transparent;
}

.post__content .btn {
    color: #fff;
}

/* Стилизация ссылок в посте */
.post__content a {
    color: #70c52c;
    text-decoration: none;
    transition: all 0.2s;
    display: block;
}

.post__content a:hover {
    color: #70c52c;
}

/* Стили для вставки видео с YouTube/Vimeo */
.post__content .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    margin: 25px 0;
}

.post__content .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

/* Стилизация кнопок в постах */
.post__content .button {
    display: inline-block;
    padding: 8px 20px;
    background-color: #70c52c;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    margin: 10px 0;
    border: none;
    transition: background-color 0.3s;
}

.post__content .button:hover {
    background-color: #70c52c;
    color: white;
    border-bottom: none;
}

/* Стилизация заметок и предупреждений */
.post__content .note,
.post__content .warning,
.post__content .info {
    margin: 25px 0;
    padding: 15px 20px;
    border-radius: 4px;
}

.post__content .note {
    background-color: #e6f7ff;
    border-left: 4px solid #1890ff;
}

.post__content .warning {
    background-color: #fff7e6;
    border-left: 4px solid #70c52c;
}

.post__content .info {
    background-color: #f6ffed;
    border-left: 4px solid #52c41a;
}

/* Стилизация определений */
.post__content dl {
    margin: 20px 0;
}

.post__content dt {
    font-weight: 700;
    margin-top: 10px;
}

.post__content dd {
    margin-left: 20px;
    margin-bottom: 10px;
}

/* Полная адаптивность для всех размеров экранов */

/* Экстра маленькие устройства (телефоны в портретной ориентации, менее 480px) */
@media (max-width: 480px) {
    .header__inner {
        padding: 8px 0;
    }

    .logo a {
        font-size: 20px;
    }

    .nav__list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
        margin: 5px 0;
    }

    .nav__item {
        margin-right: 10px;
    }

    .nav__link {
        font-size: 14px;
    }

    .post {
        border-radius: 6px;
    }

    .post__header {
        padding: 12px 15px 8px;
    }

    .post__title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .post__info {
        flex-direction: column;
        gap: 5px;
        font-size: 12px;
    }

    .post__tags {
        margin-left: 0;
        margin-top: 5px;
    }

    .post__content {
        padding: 8px 15px;
        font-size: 14px;
        line-height: 1.5;
    }

    .post__image {
        margin: 10px 0;
    }

    .post__footer {
        padding: 8px 15px 10px;
    }

    .post__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .post__rating, .post__comments, .post__share, .post__save {
        margin-right: 0;
        width: 100%;
    }

    .post__comments a, .post__share button, .post__save button {
        width: 100%;
        justify-content: flex-start;
    }

    /* Адаптация для текстового контента */
    .post__content h1 {
        font-size: 20px;
    }

    .post__content h2 {
        font-size: 18px;
    }

    .post__content h3 {
        font-size: 16px;
    }

    .post__content h4, .post__content h5, .post__content h6 {
        font-size: 15px;
    }

    .post__content ol li, .post__content ul li {
        padding-left: 25px;
    }

    .post__content ol li:before {
        width: 22px;
        height: 22px;
        line-height: 22px;
        font-size: 12px;
    }

    .post__content table th,
    .post__content table td {
        padding: 8px;
        font-size: 13px;
    }

    .post__content blockquote {
        padding: 10px 15px 10px 15px;
        margin: 15px 0;
    }

    .post__content pre {
        padding: 10px;
        font-size: 12px;
    }

    .post__content figure {
        margin: 15px 0;
    }

    .post__content figcaption {
        font-size: 12px;
    }

    .post__content .button {
        padding: 6px 15px;
        font-size: 13px;
    }

    .post__content .note,
    .post__content .warning,
    .post__content .info {
        padding: 10px 15px;
        margin: 15px 0;
    }

    .sidebar__block {
        padding: 10px;
    }

    .sidebar__title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .author__item {
        margin-bottom: 8px;
    }

    .author__avatar {
        width: 30px;
        height: 30px;
    }

    .author__name {
        font-size: 13px;
    }

    .author__rating {
        font-size: 11px;
    }

    .event__date {
        font-size: 11px;
    }

    .event__title {
        font-size: 13px;
    }

    .promo__title {
        font-size: 14px;
    }

    .promo__description {
        font-size: 12px;
    }

    .promo__button {
        padding: 6px 12px;
        font-size: 13px;
    }

    .stats__item {
        padding: 6px 0;
    }

    .stats__label, .stats__value {
        font-size: 12px;
    }

    .footer {
        padding: 20px 0;
    }

    /* Делаем элементы более компактными */
    .authors__list,
    .events__list,
    .stats__list {
        grid-template-columns: 1fr;
    }

    .author__link {
        padding: 8px 0;
    }

    /* Исправление отображения мобильного меню */
    .mobile-menu-toggle {
        top: 10px !important;
        right: 10px !important;
    }

    /* Делаем кнопки в действиях поста более заметными */
    .post__actions {
        gap: 15px;
    }

    .post__comments a,
    .post__share button,
    .post__save button {
        justify-content: center;
        padding: 8px 0;
    }

    .post__actions i {
        font-size: 18px;
    }

    /* Делаем список в одну колонку для экономии места */
    .authors__list,
    .events__list,
    .stats__list {
        grid-template-columns: 1fr;
    }

    /* Уменьшаем отступы */
    .post {
        margin-bottom: 15px;
    }

    .post__content {
        padding: 10px;
    }

    /* Исправляем переполнение для таблиц */
    .post__content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Малые устройства (большие телефоны, до 576px) */
@media (min-width: 481px) and (max-width: 576px) {
    .header__inner {
        padding: 10px 0;
    }

    .nav__list {
        flex-wrap: wrap;
        margin: 8px 0;
    }

    .nav__item {
        margin-right: 15px;
    }

    .post__title {
        font-size: 20px;
    }

    .post__content {
        font-size: 15px;
    }

    .post__actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .post__rating, .post__comments, .post__share, .post__save {
        margin-bottom: 5px;
    }

    .sidebar__title {
        font-size: 17px;
    }

    .author__avatar {
        width: 35px;
        height: 35px;
    }
}

/* Большие устройства (малые десктопы, до 992px) */
@media (min-width: 769px) and (max-width: 992px) {

    .post__content {
        padding: 12px 18px;
    }

    .sidebar__block {
        padding: 12px;
    }
}

/* Экстра большие устройства (большие десктопы, более 1200px) */
@media (min-width: 1201px) {

    .post__content {
        padding: 15px 25px;
    }

    /* Увеличение размера элементов для больших экранов */
    .post__title {
        font-size: 24px;
    }

    .post__content h1 {
        font-size: 30px;
    }

    .post__content h2 {
        font-size: 26px;
    }

    .post__content h3 {
        font-size: 22px;
    }

    .sidebar__title {
        font-size: 20px;
    }

    .author__avatar {
        width: 45px;
        height: 45px;
    }
}

/* Экстра-экстра большие устройства (ультра широкие экраны) */
@media (min-width: 1440px) {

    .post {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    }

    .post__content {
        font-size: 17px;
        line-height: 1.8;
    }

    .post__content img {
        border-radius: 6px;
    }
}

/* Ландшафтная ориентация на мобильных устройствах */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        position: relative; /* Не используем sticky в ландшафтной ориентации мобильных */
    }

    .header__inner {
        height: auto;
        padding: 5px 0;
    }

    .nav__list {
        margin: 5px 0;
    }

    .post {
        margin-bottom: 15px;
    }

    .footer {
        padding: 15px 0;
    }

    .theme-toggle-container {
        bottom: 5px !important;
        left: 5px !important;
    }

    .theme-toggle {
        width: 30px !important;
        height: 30px !important;
        font-size: 14px !important;
    }
}

/* Стили для темного режима (если поддерживается браузером) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }

    .header,
    .post,
    .sidebar__block {
        background-color: #1e1e1e;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .post__title a,
    .sidebar__title,
    .author__name,
    .promo__title {
        color: #f0f0f0;
    }

    .nav__link,
    .post__info,
    .post__content,
    .promo__description,
    .stats__label {
        color: #b0b0b0;
    }

    .post__comments a,
    .post__share button,
    .post__save button {
        color: #a0a0a0;
    }

    .tag,
    .post__content code,
    .post__content pre {
        background-color: #2a2a2a;
        color: #e0e0e0;
        border-color: #3a3a3a;
    }

    .post__content blockquote {
        background-color: #222;
        border-left-color: #70c52c;
    }

    .post__content table th {
        background-color: #2a2a2a;
    }

    .post__content table th,
    .post__content table td {
        border-color: #3a3a3a;
    }

    .post__content table tr:nth-child(even) {
        background-color: #222;
    }

    .post__content table tr:hover {
        background-color: #333;
    }

    .post__content a {
        color: #ff8533;
    }

    .post__content .note {
        background-color: #102630;
        border-left-color: #1890ff;
    }

    .post__content .warning {
        background-color: #2b2111;
        border-left-color: #fa8c16;
    }

    .post__content .info {
        background-color: #112718;
        border-left-color: #52c41a;
    }

    .search input {
        background-color: #2a2a2a;
        border-color: #3a3a3a;
        color: #e0e0e0;
    }

    .copy-code-btn {
        background-color: rgba(40, 40, 40, 0.7) !important;
        border-color: #444 !important;
        color: #e0e0e0 !important;
    }

    /* Режим темной темы для модальных окон */
    .image-modal {
        background-color: rgba(0, 0, 0, 0.95) !important;
    }
}

/* Стили для темной темы через класс (black-theme) */
body.black-theme {
    background-color: #121212;
    color: #e0e0e0;
}

body.black-theme .header,
body.black-theme .post,
body.black-theme .sidebar__block {
    background-color: #1e1e1e;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.black-theme .post__title a,
body.black-theme .sidebar__title,
body.black-theme .author__name,
body.black-theme .promo__title {
    color: #f0f0f0;
}

body.black-theme .nav__link,
body.black-theme .post__info,
body.black-theme .post__content,
body.black-theme .promo__description,
body.black-theme .stats__label {
    color: #b0b0b0;
}

body.black-theme .post__comments a,
body.black-theme .post__share button,
body.black-theme .post__save button {
    color: #a0a0a0;
}

body.black-theme .tag,
body.black-theme .post__content code,
body.black-theme .post__content pre {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-color: #3a3a3a;
}

body.black-theme .post__content blockquote {
    background-color: #222;
    border-left-color: #70c52c;
}

body.black-theme .post__content table th {
    background-color: #2a2a2a;
    color: #fff;
}

body.black-theme .post__content table th,
body.black-theme .post__content table td {
    border-color: #3a3a3a;
}

body.black-theme .post__content h4 {
    color: #fff;
}

body.black-theme .post__content p {
    color: #b0b0b0;
}

body.black-theme .post__content {
    background-color: #2f2f2f;
}

body.white-theme .post__content {
    background-color: #efecec;
}

body.black-theme .post__content h5 {
    color: #fff;
}

body.black-theme .post__content h3 {
    color: #fff;
}

body.black-theme .post__content h2 {
    color: #fff;
}

body.black-theme .post__content h6 {
    color: #fff;
}

body.black-theme .post__content table tr:nth-child(even) {
    background-color: #222;
}

body.black-theme .post__content table tr:hover {
    background-color: #333;
}

body.black-theme .post__content a {
    color: #ff8533;
}

body.black-theme .post__content .note {
    background-color: #102630;
    border-left-color: #1890ff;
}

body.black-theme .post__content .warning {
    background-color: #2b2111;
    border-left-color: #fa8c16;
}

body.black-theme .post__content .info {
    background-color: #112718;
    border-left-color: #52c41a;
}

body.black-theme .search input {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

body.black-theme .copy-code-btn {
    background-color: rgba(40, 40, 40, 0.7) !important;
    border-color: #444 !important;
    color: #e0e0e0 !important;
}

body.black-theme .image-modal {
    background-color: rgba(0, 0, 0, 0.95) !important;
}

body.black-theme .sidebar-toggle {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-color: #333;
}

body.black-theme .theme-toggle-container {
    background-color: rgba(40, 40, 40, 0.8);
}

body.black-theme .footer {
    background-color: #1a1a1a;
}

body.black-theme .btn-login {
    color: #70c52c;
    border-color: #70c52c;
}

body.black-theme .sidebar__block {
    background-color: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.black-theme .sidebar__title {
    color: #e0e0e0;
}

body.black-theme .popular__list li {
    border-bottom-color: #333;
}

body.black-theme .popular__list li:before {
    color: #70c52c;
}

body.black-theme .popular__list a {
    color: #ccc;
}

body.black-theme .popular__list a:hover {
    color: #70c52c;
}

body.black-theme .categories__list li {
    border-bottom-color: #333;
}

body.black-theme .categories__list a {
    color: #ccc;
}

body.black-theme .categories__list a:hover {
    background-color: rgba(255, 102, 0, 0.15);
    color: #70c52c;
}

body.black-theme .tags__cloud .tag {
    background-color: #2a2a2a;
    color: #ccc;
    border-color: #333;
}

body.black-theme .tags__cloud .tag:hover {
    background-color: #70c52c;
    color: #fff;
    border-color: #70c52c;
}

body.black-theme .sidebar::-webkit-scrollbar-track {
    background: #2a2a2a;
}

body.black-theme .sidebar::-webkit-scrollbar-thumb {
    background: #444;
}

body.black-theme .sidebar::-webkit-scrollbar-thumb:hover {
    background: #666;
}

body.black-theme .post-cta {
    background-color: #181818;
}

body.black-theme .post-rating {
    background-color: #181818;
}

body.black-theme .post-chart {
    background-color: #181818;
}

body.black-theme .post-highlight {
    background-color: #181818;
}

/* Базовые стили для светлой темы (white-theme) - по умолчанию */
body.white-theme {
    background-color: #f7f7f7;
    color: #333;
}

body.white-theme .header,
body.white-theme .post,
body.white-theme .sidebar__block {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

body.white-theme .post__title a,
body.white-theme .sidebar__title,
body.white-theme .author__name,
body.white-theme .promo__title {
    color: #333;
}

body.white-theme .nav__link,
body.white-theme .post__info,
body.white-theme .post__content,
body.white-theme .promo__description,
body.white-theme .stats__label {
    color: inherit;
}

body.white-theme .post__comments a,
body.white-theme .post__share button,
body.white-theme .post__save button {
    color: #666;
}

body.white-theme .tag {
    background-color: #f0f0f0;
    color: #555;
}

body.white-theme .post__content code,
body.white-theme .post__content pre {
    background-color: #f5f5f5;
    color: inherit;
    border-color: #ddd;
}

body.white-theme .post__content blockquote {
    background-color: #f9f9f9;
    border-left-color: #70c52c;
}

body.white-theme .post__content table th {
    background-color: #f5f5f5;
}

body.white-theme .post__content table th,
body.white-theme .post__content table td {
    border-color: #ddd;
}

body.white-theme .post__content table tr:nth-child(even) {
    background-color: #f9f9f9;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

body.white-theme .post__content table tr:hover {
    background-color: #f3f3f3;
}

body.white-theme .post__content a {
    color: #70c52c;
}

body.white-theme .post__content .btn {
    color: #fff;
}

body.black-theme .post__content .btn {
    color: #fff;
}

body.white-theme .post__content .note {
    background-color: #e6f7ff;
    border-left-color: #1890ff;
}

body.white-theme .post__content .warning {
    background-color: #fff7e6;
    border-left-color: #fa8c16;
}

body.white-theme .post__content .info {
    background-color: #f6ffed;
    border-left-color: #52c41a;
}

body.white-theme .search input {
    background-color: #fff;
    border-color: #ddd;
    color: #333;
}

body.white-theme .sidebar-toggle {
    background-color: #fff;
    color: #333;
    border-color: #eee;
}

body.white-theme .theme-toggle-container {
    background-color: rgba(255, 255, 255, 0.8);
}


/* Стили для режима печати */
@media print {
    body {
        background-color: white;
        color: black;
        font-size: 12pt;
    }

    .header, .sidebar, .footer, .post__actions, .search, .user-panel, .nav {
        display: none !important;
    }

    .content {
        display: block;
    }

    .post {
        box-shadow: none;
        border: none;
        margin-bottom: 30px;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .post__content {
        font-size: 12pt;
        line-height: 1.5;
    }

    .post__content a {
        color: black;
        text-decoration: underline;
        border-bottom: none;
    }

    .post__content h1, .post__content h2, .post__content h3,
    .post__content h4, .post__content h5, .post__content h6 {
        break-after: avoid;
        page-break-after: avoid;
    }

    .post__content img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }

    .post__content a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #555;
    }

    .post__title {
        font-size: 18pt;
        margin-bottom: 10pt;
    }

    .post__info {
        color: #555;
        margin-bottom: 15pt;
    }

    .post__content pre, .post__content code {
        background-color: #f5f5f5 !important;
        border: 1px solid #ddd !important;
        font-size: 10pt;
    }

    .post__content .note,
    .post__content .warning,
    .post__content .info {
        border: 1px solid #ddd;
        padding: 10pt;
        margin: 15pt 0;
    }

    /* Улучшения для печати таблиц */
    .post__content table {
        border-collapse: collapse;
        width: 100%;
    }

    .post__content table th,
    .post__content table td {
        border: 1px solid #ddd;
    }

    /* Скрытие для печати */
    .copy-code-btn,
    .post__content .button {
        display: none !important;
    }
}

/* Доступность - режим высокой контрастности */
@media (forced-colors: active) {
    .post__content a,
    .nav__link,
    .logo a,
    .post__title a,
    .sidebar__title,
    .tag,
    .btn {
        forced-color-adjust: none;
    }

    .post__content ol li:before {
        forced-color-adjust: none;
    }

    .post__content ul li:before {
        forced-color-adjust: none;
    }

    .btn-register,
    .btn-login,
    .promo__button,
    .post__content .button {
        forced-color-adjust: none;
    }
}

/* Оптимизация для устройств с высоким DPI */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        text-rendering: optimizeLegibility;
    }

    .post__content {
        font-kerning: normal;
    }
}

/* Исправление горизонтального скролла */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Медиа-запросы для адаптивности сайдбара */
@media (max-width: 768px) {

    .popular__list li:before {
        width: 24px;
    }

    .tags__cloud .tag {
        padding: 5px 10px;
    }

    /* Делаем блоки менее высокими на мобильных */
    .sidebar__block {
        padding: 15px;
        margin-bottom: 15px;
        transform: none !important;
    }

    .sidebar__block:hover {
        transform: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }

    .sidebar__title {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
}

    body {
        text-rendering: optimizeLegibility;
    }

    .post__content {
        font-kerning: normal;
    }
}

.sidebar-sticky {
    position: sticky;
    top: 10px;
    overflow-y: scroll;
    height: 100vh;
    scrollbar-width: none;
}

/* Базовые стили для предотвращения проблем с отображением */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Базовые стили для светлой темы (по умолчанию) */
body.white-theme {
    background-color: #f7f7f7;
    color: #333;
}

/* Базовые стили для темной темы */
body.black-theme {
    background-color: #121212;
    color: #e0e0e0;
}

body.black-theme .header,
body.black-theme .post,
body.black-theme .sidebar__block {
    background-color: #1e1e1e;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .header__inner {
        position: relative;
        padding: 10px 0;
    }

    .nav {
        display: none;
    }

    .content {
        display: flex;
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

/* Стили для переключателя темы */
.theme-toggle-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1100;
    display: flex;
    gap: 10px;
    border-radius: 25px;
    padding: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.black-theme .theme-toggle-container {
    background-color: rgba(40, 40, 40, 0.8);
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.light-theme-btn {
    background: #fff;
    color: #70c52c;
}

.dark-theme-btn {
    background: #333;
    color: #fff;
}

.theme-toggle.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #70c52c;
}

@media (max-width: 768px) {
    .theme-toggle-container {
        bottom: 10px;
        left: 10px;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Стили для сайдбара в мобильной версии */
.sidebar-toggle {
    display: none;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
}

body.black-theme .sidebar-toggle {
    background: #1e1e1e;
    color: #e0e0e0;
    border-color: #333;
}

.post__content {
    overflow: hidden;
    transition: height 0.5s ease;
}

.post__content.expanded {
    height: auto;
    overflow: visible;
}
body.black-theme .toggle-button {
    box-shadow: -2px -17px 22px -7px #000000;
}

body.white-theme .toggle-button {
    box-shadow: -2px -17px 22px -7px #868686;
}

body.white-theme .app-btn-minus button {
    color: #000000;
}

body.black-theme .app-btn-minus button {
    color: #d8d5d5;
}

.toggle-button {
    background: inherit;
    border: none;
    color: #70c52c;
    padding: 5px 20px;
    width: 100%;
    text-align: start;
    position: relative;
}

.app-btn-minus {
    text-align: center;
}

.app-btn-minus button {
    width: calc(20px + 20 * (100vw / 1920));
    height: calc(20px + 20 * (100vw / 1920));
    border-radius: 10px;
    background: inherit;
    border: 1px solid #70c52c;
    font-size: 26px;
    line-height: 100%;
}
.app-btn-minus {
    position: sticky;
    top: 10px;
}

@media (min-width: 1920px) {
    .app-btn-minus button {
        width: 40px;
        height: 40px;
    }
}

/* Стили для выпадающего меню "Поделиться" */
.post__share .dropdown-toggle {
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    padding: 5px;
}

.post__share .dropdown-toggle::after {
    display: none; /* Скрываем стандартную стрелку Bootstrap */
}

.post__share .dropdown-toggle:hover {
    color: #70c52c;
}

.share-dropdown {
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    min-width: 180px;
    padding: 8px 0;
}

.share-dropdown .dropdown-item {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.share-dropdown .dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.share-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
}

.share-dropdown .dropdown-divider {
    margin: 4px 0;
}

/* Цвета иконок социальных сетей */
.share-telegram i {
    color: #0088cc;
}

.share-vk i {
    color: #4C75A3;
}

.share-whatsapp i {
    color: #25D366;
}

.share-copy i {
    color: #6c757d;
}

/* Стили для темной темы */
body.black-theme .share-dropdown {
    background-color: #1e1e1e;
    border-color: #333;
}

body.black-theme .share-dropdown .dropdown-item {
    color: #e0e0e0;
}

body.black-theme .share-dropdown .dropdown-item:hover {
    background-color: #2a2a2a;
}

body.black-theme .share-dropdown .dropdown-divider {
    border-color: #333;
}

/* Стили для пагинации */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 0.25rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    margin-left: -1px;
    line-height: 1.25;
    color: #70c52c;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.page-link:hover {
    z-index: 2;
    color: #5da426;
    text-decoration: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(112, 197, 44, 0.25);
}

.page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 0.25rem;
    border-bottom-left-radius: 0.25rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #70c52c;
    border-color: #70c52c;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    cursor: auto;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Темная тема для пагинации */
body.black-theme .page-link {
    color: #70c52c;
    background-color: #2a2a2a;
    border-color: #444;
}

body.black-theme .page-link:hover {
    color: #fff;
    background-color: #333;
    border-color: #555;
}

body.black-theme .page-item.active .page-link {
    color: #fff;
    background-color: #70c52c;
    border-color: #70c52c;
}

body.black-theme .page-item.disabled .page-link {
    color: #777;
    background-color: #222;
    border-color: #444;
}

/* Стили для формы поиска в блоге */
.blog-search-form .input-group {
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.blog-search-form .form-control {
    border-right: none;
    border: 1px solid #eee;
    padding: 12px 15px;
    font-size: 15px;
    border-radius: 8px 0 0 8px;
    transition: all 0.3s;
}

.blog-search-form .form-control:focus {
    box-shadow: none;
    border-color: #70c52c;
}

.blog-search-form .btn-primary {
    background-color: #70c52c;
    border-color: #70c52c;
    color: white;
    padding: 0 15px;
    border-radius: 0 8px 8px 0;
}

.blog-search-form .btn-primary:hover {
    background-color: #5da426;
    border-color: #5da426;
}

/* Стили для темной темы */
body.black-theme .blog-search-form .form-control {
    background-color: #2a2a2a;
    border-color: #444;
    color: #e0e0e0;
}

body.black-theme .blog-search-form .btn-primary {
    background-color: #70c52c;
    border-color: #70c52c;
}

body.black-theme .table>:not(caption)>*>* {
    color: #FFFFFF;
    background-color: #4b4b4b;
}

body.black-theme .blog-search-form .form-control:focus {
    border-color: #70c52c;
    box-shadow: 0 0 0 0.2rem rgba(112, 197, 44, 0.25);
}

.input-group-append .btn {
    height: 100%;
}

@media (max-width: 992px) {
    .post__rating {
        justify-content: center;
    }
    .post__comments a {
        padding: 0;
    }
    .post__share .dropdown-toggle {
        padding: 0;
    }
    .post__actions {
        gap: 0;
    }
}

.post-section br {
    display: none;
}

.post-section p br {
    display: none;
}

.post__content h2 {
    margin-top: 0;
}

.post__content .swiper-slide {
    text-align: center;
}

.post__content .swiper-slide img {
    max-width: 300px;
}

.post-section {
    transform: translateY(10px);
    margin-bottom: 10px;
    font-size: 12px;
}

.post-section .lead {
    font-size: 14px;
    margin-bottom: 14px;
}

.post-section p {
    font-size: 12px;
    margin-bottom: 9px;
}

.post-section img {
    margin: 10px 0;
}

.post__content h2 {
    font-size: 18px;
}

.post-section h2 {
    font-size: 18px;
}

.post-highlight {
    padding: 0.5rem;
}

.post-highlight p {
    font-size: 12px;
    margin-bottom: 9px;
}

.post-highlight ul {
    margin: 10px 0;
}

.post-section ul {
    margin: 10px 0;
    padding-bottom: 15px;
}


.post-highlight ul li {
    padding-left: 25px;
    margin-bottom: 5px;
    font-size: 11px;
}

.post-section ul li {
    padding-left: 25px;
    margin-bottom: 5px;
    font-size: 11px;
}

.post__content ul li {
    padding-left: 25px;
    margin-bottom: 5px;
    font-size: 11px;
}

.post-highlight ol {
    margin: 10px 0;
}

.post-highlight ol li {
    padding-left: 25px;
    margin-bottom: 5px;
    font-size: 11px;
}

.post-section ol li {
    padding-left: 25px;
    margin-bottom: 5px;
    font-size: 11px;
}

.post__content ol li:before {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    width: 20px;
    height: 20px;
    line-height: 100%;
}

.post-pros-cons .cons {
    padding: 0.5rem;
}

.post-pros-cons .cons h3 {
    font-size: 16px;
}

.post-pros-cons .pros {
    padding: 0.5rem;
}

.post-pros-cons .pros h3 {
    font-size: 16px;
}
