/* ===== ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ ===== */
:root {
    --link-color: #07baf4;
}

/* ===== ОСНОВНЫЕ СТИЛИ ===== */
@media (min-width: 991px) {
    .navbar-nav > li > a {
        margin: 0 8px;
        font-size: 14px;
    }
}

.main-color {
    color: #333333;
}

#main .main-color h3 a {
    color: #07baf4;
}

.kleo-main-header.header-left .navbar-collapse > ul > li > a,
.kleo-main-header.header-centered .navbar-collapse > ul > li > a {
    line-height: 30px !important;
}

.socket-color a {
    color: #fff;
}

.page-title {
    font-size: 26px;
    line-height: 34px !important;
    margin: 30px !important;
}

/* Кнопка "muted" */
.main-color .muted {
    display: inline-block;
    color: #fc604a;
    padding: 6px 18px;
    border: 1px solid #fc604a;
    border-radius: 7px;
    background: transparent;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    outline: 2px solid rgba(252, 96, 74, 0.3);
    outline-offset: 2px;
    transition: 0.2s;
}

.main-color .muted:hover {
    background-color: #fc604a;
    color: white;
    outline-color: transparent;
}

/* Автор */
.author-name::before {
    content: " Связаться с автором " !important;
    color: #444;
}

.main-color .post-meta a {
    content: " Связаться с: " !important;
    color: #444;
}

/* Telegram-кнопка */
.telegram-post-link {
    display: inline-block;
    margin: 10px 0;
}

.telegram-post-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #54a9eb;
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.4;
    box-shadow: 0 4px 6px rgba(0, 136, 204, 0.2);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.telegram-post-link a i {
    font-size: 2.0em;
}

.telegram-post-link a:hover {
    background-color: #006699;
    box-shadow: 0 6px 8px rgba(0, 136, 204, 0.3);
    text-decoration: none;
}

.telegram-post-link a:active {
    background-color: #005580;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}

@media (max-width: 480px) {
    .telegram-post-link a {
        padding: 8px 18px;
        font-size: 14px;
    }
}

/* Мета-автор */
.meta-author a {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    color: #07baf4;
    font-size: 12px;
    transition: all 0.2s;
    text-decoration: underline #444;
}

.meta-author a:hover {
    background-color: #ddd;
    color: #07baf4;
}

/* Скрываем пост-мету — ОСТАВЛЕНО КАК В ОРИГИНАЛЕ (невалидный селектор, правило не работает) */
.2post-meta {
    display: none !important;
}

/* Виджет поиска */
.main-color .widget_search .searchform > div {
    border-color: #444;
}

.widget_search .searchform > div {
    border-radius: 8px;
    height: 33px;
    line-height: 30px;
    padding: 4px 5px 0 10px;
    position: relative;
    border-style: solid;
    border-width: 1px;
}

.widget_search .searchform input[type=submit] {
    background-position: -24px 0;
}

.search-trigger {
    display: none !important;
}

/* Центрирование меню */
.header-flexmenu .header-left .menus-wrap {
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    -webkit-justify-content: center !important;
    justify-content: center !important;
}

/* Область под меню */
.under-menu-widgets {
    padding: 1px 0;
    background: #eee;
    border-bottom: 1px solid #e9ecef;
    min-height: 40px;
}

.under-menu-widgets .widget-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: none;
    display: block;
    visibility: visible;
    opacity: 1;
}

.under-menu-widgets .widget {
    margin-bottom: 0;
}

/* Цитаты */
blockquote {
    margin: 25px 0;
    padding: 20px 25px 20px 45px;
    border: 2px solid #43ae9e;
    border-top: none;
    border-bottom: none;
    background: linear-gradient(to right, rgba(67, 174, 158, 0.05), transparent 30%);
    color: #2c3e50;
    font-size: 1.1em;
    line-height: 1.7;
    position: relative;
}

blockquote::before {
    content: "\1F4AC";
    font-size: 2em;
    position: absolute;
    left: 5px;
    top: 10px;
    opacity: 0.5;
}

blockquote::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at bottom right, #43ae9e 10%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
}

.main-color p + h2 {
    color: #444 !important;
    font-size: 1.7em;
    font-weight: 600;
    margin-top: 0.1em;
    margin-bottom: 0.1em;
}

.share-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hr-title {
    border-top-style: solid;
    border-top-width: 2px;
    font-size: 14px;
    text-align: center !important;
    height: 10px;
    line-height: 20px;
    margin: 25px auto -10px;
    height: auto;
}

.hr-title abbr {
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: .2em;
    text-transform: uppercase;
    display: inline-block;
    vertical-align: middle;
}

/* Лайки, кнопки соцсетей */
.kleo-love,
.kleo-facebook,
.kleo-twitter,
.kleo-googleplus,
.kleo-pinterest,
.kleo-linkedin,
.kleo-whatsapp,
.kleo-vk,
.kleo-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Счётчик просмотров */
.post-views {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #f0f8ff;
    border: 1px solid #07baf4;
    border-radius: 30px;
    padding: 5px 12px;
    font-size: 0.9rem;
    color: #367bb7;
    white-space: nowrap;
}

.post-views .post-views-icon {
    color: #fc604a;
    font-size: 18px;
}

.post-views .post-views-label {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #555;
}

.post-views .post-views-count {
    font-weight: 700;
    background: #07baf4;
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 4px;
}

/* Кнопки-метки (теги) */
.tag-button {
    display: inline-block;
    padding: 3px 10px;
    background-color: transparent;
    border: 1px solid #07baf4;
    border-radius: 8px;
    color: #367bb7;
    font-size: 1.0rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin: 3px;
    white-space: nowrap;
}

.tag-button:hover,
.tag-button:focus {
    background-color: #07baf4;
    color: #ffffff !important;
    border-color: #07baf4;
    box-shadow: 0 4px 8px rgba(7, 186, 244, 0.3);
    transform: translateY(-1px);
    text-decoration: none;
}

.tag-button:active {
    background-color: #367bb7;
    border-color: #367bb7;
    transform: translateY(0);
    box-shadow: none;
}

/* Видео-обёртка */
.video-thumbnail-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    pointer-events: none;
    z-index: 2;
}

.video-thumbnail-wrapper:hover .video-play-icon {
    opacity: 1;
}

/* Комментарии wpDiscuz */
#wpd-bubble-wrapper {
    display: none;
    position: fixed;
    z-index: 99;
    text-align: center;
    opacity: 0.9;
    bottom: 50px;
}

#wpdcom .wpd-thread-filter .wpdf-reacted {
    color: #43ae9e;
    border-bottom-color: #43ae9e;
    width: 34px;
}

#wpdcom .wpd-thread-filter .wpdf-hottest {
    color: #fc604a;
    border-bottom-color: #fc604a;
    width: 34px;
}

/* ========== ВИДЖЕТ СЕТКИ (объединённый) ========== */
.posts-grid-widget {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.posts-grid-widget:last-child {
    margin-bottom: 20px !important;
}

.thumbnail-overlay-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.thumbnail-overlay-wrapper:hover {
    transform: scale(1.02);
}

.thumbnail-overlay-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.thumbnail-overlay-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-overlay-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15%;
    margin: 3%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    font-size: clamp(0.8rem, 1vw, 1.8rem);
    font-weight: 500 !important;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding: 3px 5px;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.1;
    z-index: 2;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 768px) {
    .thumbnail-overlay-title {
        font-size: clamp(0.9rem, 3.5vw, 1.2rem);
        height: 20%;
        padding: 0 5px;
    }
}

@media (max-width: 576px) {
    .posts-grid-widget {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    .thumbnail-overlay-title {
        font-size: clamp(1rem, 5vw, 2.8rem) !important;
        font-weight: 700 !important;
        height: 20%;
        padding: 0 8px;
        white-space: normal;
        text-overflow: clip;
    }
}

h2.thumbnail-overlay-title {
    display: none !important;
}

.post-edit-link a {
    display: none !important; /* оставлено как в оригинале: скрываем только ссылку */
}

/* Спойлеры (рейтинг и комментарии) */
.wpd-spoiler {
    margin: 25px 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.wpd-spoiler-header {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px 20px !important;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.7rem !important;
    color: #1e2a3a;
    border-radius: 12px;
    user-select: none;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wpd-spoiler-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.wpd-spoiler-header::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.25s ease;
    color: #495057;
}

.wpd-spoiler-header.open::after {
    transform: rotate(180deg);
}

.wpd-spoiler-content {
    display: none;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
    animation: fadeIn 0.3s ease;
}

.wpd-spoiler-content.open {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .wpd-spoiler-header {
        padding: 12px 16px;
        font-size: 1rem;
    }
    .wpd-spoiler-content {
        padding: 16px;
    }
}

.wp-admin-bar-redis-cache {
    display: none !important;
}

/* ========== ДИНАМИЧЕСКИЕ ССЫЛКИ (исправленный блок) ========== */
.dynamic-prefix-links {
    list-style: none;
    margin: 10px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, auto));
    gap: 12px;
    justify-content: stretch;
}

.dynamic-prefix-links li {
    margin-left: 0;
    padding: 0;
    display: flex;
}

.dynamic-prefix-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    background-color: transparent;
    border: 1px solid var(--link-color, #07baf4);
    border-radius: 7px;
    color: #367bb7;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
    white-space: normal;
    word-break: break-word;
}

.dynamic-prefix-links a:hover,
.dynamic-prefix-links a:focus {
    background-color: var(--link-color, #07baf4);
    border-color: var(--link-color, #07baf4);
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    text-decoration: none;
}

.dynamic-prefix-links a:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Планшеты */
@media (max-width: 768px) {
    .dynamic-prefix-links {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: flex-start;
    }
    .dynamic-prefix-links li {
        flex-shrink: 0;
        display: inline-block;
    }
    .dynamic-prefix-links a {
        width: auto;
        white-space: nowrap;
        padding: 3px 6px;
        font-size: 0.95rem;
    }
}

/* Мобильные */
@media (max-width: 576px) {
    .dynamic-prefix-links {
        gap: 6px;
    }
    .dynamic-prefix-links li {
        width: 100%;
        display: block;
        flex-shrink: 1;
    }
    .dynamic-prefix-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 5px 10px;
        font-size: 0.8rem;
        white-space: normal;
    }
}

/* ========== КОЛОНКИ С ТЕГАМИ ========== */
.post-grid-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
    align-items: stretch;
}

.post-grid-section .posts-grid-widget {
    flex: 1 1 0;
    min-width: 200px; /* восстановлено из оригинала */
}

.posts-grid-random-tags {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.random-tag-item {
    flex: 1;
    min-height: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.random-tag-item:hover {
    transform: scale(1.02);
}

.random-tag-item a {
    display: block;
    height: 100%;
    text-decoration: none;
}

.random-tag-item .tag-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    filter: saturate(0.7) brightness(0.4);
}

.random-tag-item .thumbnail-overlay-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(1.2rem, 5vw, 2.2rem);
    font-weight: 600 !important;
    color: #fff !important;
    background: transparent;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    white-space: normal;
    word-break: break-word;
    z-index: 2;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .post-grid-section {
        flex-direction: column;
        gap: 20px;
    }
    .posts-grid-random-tags,
    .posts-grid-widget {
        flex: 1 1 100%;
    }
    .random-tag-item {
        flex: none;
        width: 100%;
        aspect-ratio: 2 / 0.8;
    }
    .posts-grid-widget {
        width: 100%;
    }
    .random-tag-item .thumbnail-overlay-title {
        font-size: clamp(1rem, 6vw, 1.6rem);
    }
}

/* ========== ФУТЕР ========== */
.ts-text {
    padding: 0 0 0 10px;
    margin-bottom: 0;
    display: inline;
}

#footer li {
    padding: 0 0 5px 10px;
}

/* ========== БЛОК HIGHLIGHT ========== */
.highlight {
    background: #f9f9f9 !important;
    border-left: 5px solid #07baf4 !important;
    border-radius: 8px;
    padding: 20px 25px !important;
    margin: 30px auto !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.highlight:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left-width: 6px;
}

/* ========== СПИСКИ С ИКОНКАМИ (убраны дубли) ========== */
.icon {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.icon li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.icon li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #07baf4;
    font-weight: bold;
    font-size: 1.5em;
}

/* ========== ЗАГОЛОВКИ ========== */
p + h3 {
    font-size: 1.3em !important;
    margin-top: 0.1em;
}

h3 {
    font-size: 20px;
    line-height: 22px;
    margin-bottom: 2px;
}

.article-media,
.attachment-kleo-full-width {
    display: none !important;
}

.meta-category {
    display: none !important;
}

/* ========== TIP-БЛОК (без дублей) ========== */
.tip-item {
    background: linear-gradient(135deg, #fef9f0 0%, #fff 100%);
    border-radius: 20px;
    padding: 1.2rem 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.tip-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.tip-label {
    display: inline-block;
    background: #f0b27a;
    color: white;
    font-size: 1.2rem; 
    font-weight: bold;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .tip-item {
        padding: 1rem 1.2rem;
        margin: 1.2rem 0;
        border-radius: 16px;
    }
    .tip-label {
        font-size: 0.75rem;
        padding: 0.2rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .tip-item {
        padding: 0.9rem 1rem;
        margin: 1rem 0;
        border-radius: 14px;
        transition: none;
    }
    .tip-item:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }
    .tip-label {
        font-size: 1.1rem; 
        padding: 0.15rem 0.6rem;
        margin-bottom: 0.4rem;
    }
}

/* ========== МЕТА-РЯД ========== */
.meta-row {
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.meta-label {
    background: #e9ecef;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: #495057;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.meta-row a.tag-button {
    background: #f8f9fa;
    padding: 0.3rem 0.8rem;
    border-radius: 7px;
    color: #007bff;
    transition: 0.2s;
    font-size: 1.2rem;
}

.meta-row a.tag-button:hover {
    background: #f0b27a;
    transform: translateY(-1px);
}

/* ========== СТАТЬЯ ========== */
.article-container {
    max-width: 820px;
    margin: 40px auto;
    padding: 40px 50px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.5s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.article-container h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a2e;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
}

.article-container h1::after {
    content: '';
    display: block;
    width: 40%;
    height: 2px;
    background: linear-gradient(135deg, #fc604a, #f0b27a);
    border-radius: 4px;
    margin-top: 14px;
}

.article-container h2 {
    color: #444 !important;
    font-size: 1.7em;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    line-height: 1.3;
}

.article-container h2 a {
    color: inherit;
    text-decoration: none;
}

.article-container h2 a:hover {
    color: #07baf4;
}

.article-container h3 {
    font-size: 1.3em !important;
    margin-top: 28px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    line-height: 1.4;
}

.article-container p {
    color: #2d2d44;
    line-height: 2.0;
    font-size: 1.1em;
}

.article-container p:first-of-type {
    font-size: 1.1em;
    color: #1a1a2e;
}

.article-container strong {
    color: #1a1a2e;
    font-weight: 600;
}

#main .article-container #nav {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 28px;
    margin: 28px 0 36px 0;
    border-left: 5px solid #43ae9e;
}

#main .article-container #nav strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #1a1a2e;
    margin-bottom: 10px;
}

#main .article-container #nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

#main .article-container #nav ul li {
    margin: 0;
}

#main .article-container #nav ul li a {
    font-size: 15px;
    font-weight: 500;
    color: #367bb7;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

#main .article-container #nav ul li a:hover {
    color: #fc604a;
    border-bottom-color: #fc604a;
}

.article-container figure {
    margin: 32px 0 28px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    background: #f8f9fa;
}

.article-container figure img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.article-container figure:hover img {
    transform: scale(1.01);
}

.article-container figure figcaption {
    padding: 12px 20px 16px 20px;
    font-size: 14px;
    color: #5a5a72;
    background: #f8f9fa;
    font-style: italic;
    border-top: 1px solid #eaeaea;
}

.article-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 30px 0;
    font-size: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.article-container table thead {
    background: linear-gradient(135deg, #1a1a2e, #2d2d44);
}

.article-container table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.article-container table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.article-container table tbody tr:last-child {
    border-bottom: none;
}

.article-container table tbody tr:hover {
    background: #faf5f0;
}

.article-container table td {
    padding: 12px 18px;
    color: #2d2d44;
    vertical-align: middle;
}

.article-container table td strong {
    color: #fc604a;
}

.article-container blockquote {
    margin: 28px 0 !important;
    padding: 20px 25px 20px 45px !important;
    border: 2px solid #43ae9e !important;
    border-top: none !important;
    border-bottom: none !important;
    background: linear-gradient(to right, rgba(67, 174, 158, 0.05), transparent 30%) !important;
    color: #2c3e50 !important;
    font-size: 1em !important;
    line-height: 1.7 !important;
    position: relative !important;
    border-radius: 8px;
}

.article-container blockquote::before {
    content: "\1F4AC";
    font-size: 1.8em;
    position: absolute;
    left: 8px;
    top: 12px;
    opacity: 0.5;
}

.article-container blockquote p {
    margin: 0;
    font-size: 16px;
}

.article-container blockquote p strong {
    color: #1a1a2e;
}

.article-container ul,
.article-container ol {
    margin: 16px 0 24px 28px;
    padding: 0;
    color: #2d2d44;
}

.article-container ul li,
.article-container ol li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.article-container ul li::marker {
    color: #fc604a;
}

.article-container ol {
    counter-reset: item;
}

.article-container ol li {
    counter-increment: item;
    list-style: none;
    position: relative;
    padding-left: 36px;
}

.article-container ol li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: #fc604a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-container a {
    color: #07baf4;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.article-container a:hover {
    color: #006699;
    border-bottom-color: #07baf4;
}

/* FAQ внутри статьи */
.article-container [itemscope][itemtype="https://schema.org/Question"] {
    margin: 8px 0 0 0;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.article-container [itemscope][itemtype="https://schema.org/Question"]:hover {
    border-color: #43ae9e;
}

.article-container [itemscope][itemtype="https://schema.org/Question"] h3 {
    margin: 0;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    background: #f8f9fa;
    transition: background 0.2s ease;
    position: relative;
    padding-right: 48px;
    user-select: none;
}

.article-container [itemscope][itemtype="https://schema.org/Question"] h3::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
}

.article-container [itemscope][itemtype="https://schema.org/Question"] h3.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.article-container [itemscope][itemtype="https://schema.org/Question"] div[itemprop="acceptedAnswer"] {
    padding: 0 20px 18px 20px;
    font-size: 15px;
    color: #3d3d56;
    line-height: 1.7;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
}

/* Рекомендации в конце статьи */
.article-container ul:last-of-type {
    list-style: none;
    padding: 0;
    margin-top: 8px;
}

.article-container ul:last-of-type li {
    padding: 3px 0 2px 15px;
    position: relative;
    font-size: 14px;
    color: #3d3d56;
    border-bottom: 1px solid #f5f5f5;
}

.article-container ul:last-of-type li:last-child {
    border-bottom: none;
}

.article-container ul:last-of-type li::before {
    content: '\00BB';
    left: 0;
    padding: 0 5px 0 0;
    font-size: 18px;
    font-weight: 600;
}

.article-container ul:last-of-type li strong {
    color: #1a1a2e;
    font-weight: 600;
}

/* Адаптивность статьи */
@media (max-width: 992px) {
    .article-container {
        padding: 30px 35px;
        margin: 30px 15px;
    }
    .article-container h1 { font-size: 30px; }
    .article-container h2 { font-size: 1.5em; }
    .article-container h3 { font-size: 1.2em !important; }
    .article-container table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .article-container table th,
    .article-container table td { padding: 10px 14px; }
    #main .article-container #nav { padding: 16px 20px; }
    #main .article-container #nav ul { flex-direction: column; gap: 4px; }
    .article-container blockquote { padding: 16px 20px 16px 38px !important; }
    .article-container blockquote::before { font-size: 1.4em; left: 6px; top: 10px; }
}

@media (max-width: 576px) {
    .article-container {
        padding: 20px 18px;
        margin: 16px 8px;
        border-radius: 12px;
    }
    .article-container h1 { font-size: 24px; }
    .article-container h1::after { width: 50px; height: 3px; margin-top: 10px; }
    .article-container h2 { font-size: 1.3em; margin-top: 28px; }
    .article-container h3 { font-size: 1.1em !important; }
    .article-container p:first-of-type { font-size: 1em; }
    .article-container table { font-size: 12px; }
    .article-container table th,
    .article-container table td { padding: 6px 8px; }
    #main .article-container #nav { padding: 14px 16px; margin: 20px 0 28px 0; border-left-width: 4px; }
    #main .article-container #nav ul li a { font-size: 14px; }
    .article-container figure { margin: 20px 0 16px 0; border-radius: 8px; }
    .article-container figure figcaption { padding: 10px 14px 12px 14px; font-size: 13px; }
    .article-container blockquote {
        padding: 14px 16px 14px 32px !important;
        font-size: 0.95em !important;
        margin: 20px 0 !important;
    }
    .article-container blockquote::before { font-size: 1.2em; left: 4px; top: 8px; }
    .article-container [itemscope][itemtype="https://schema.org/Question"] h3 { font-size: 15px; padding: 12px 40px 12px 16px; }
    .article-container [itemscope][itemtype="https://schema.org/Question"] div[itemprop="acceptedAnswer"] { padding: 0 16px 14px 16px; font-size: 14px; }
    .article-container ol li { padding-left: 30px; }
    .article-container ol li::before { width: 20px; height: 20px; font-size: 11px; }
}

/* FAQ-аккордеон (вне статьи) */
[itemscope][itemtype="https://schema.org/Question"] {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

[itemscope][itemtype="https://schema.org/Question"] h3 {
    margin: 0;
    padding: 16px 24px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    background: #f8f9fa;
    position: relative;
    padding-right: 48px;
    user-select: none;
    transition: background 0.2s;
}

[itemscope][itemtype="https://schema.org/Question"] h3:hover {
    background: #f0f0f0;
}

[itemscope][itemtype="https://schema.org/Question"] h3::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
}

[itemscope][itemtype="https://schema.org/Question"] h3.active::after {
    transform: translateY(-50%) rotate(180deg);
}

[itemscope][itemtype="https://schema.org/Question"] [itemprop="acceptedAnswer"] {
    display: none;
    padding: 0 24px 20px 24px;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
}

[itemscope][itemtype="https://schema.org/Question"] [itemprop="acceptedAnswer"].open {
    display: block;
}

/* Пагинация */
.pagination > li > a {
    color: #1a1a2e !important;
}

.breadcrumb_last {
    color: #1a1a2e !important;
}