/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: BlogPoster
Version: 1.0
*/

/* Сюда можно добавлять свои стили */
/* ===== КАРТОЧКИ ЗАПИСЕЙ ===== */
.ast-blog-layout-4-grid .ast-article-post {
    width: 33.33%;
    padding: 10px !important;
    margin-bottom: 15px !important;
}

.ast-blog-layout-4-grid .ast-article-post .post-thumb-img-content img,
.ast-article-post .post-thumb-img-content img {
    aspect-ratio: 3/4 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

.ast-blog-layout-4-grid .ast-article-inner {
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    background: #fff !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.ast-blog-layout-4-grid .ast-article-inner:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.ast-blog-layout-4-grid .entry-title {
    padding: 5px 8px 5px !important;
    font-size: 16px !important;
    line-height: 1.3;
    margin: 0 !important;
}

.ast-blog-layout-4-grid .entry-content,
.ast-blog-layout-4-grid .ast-blog-featured-section + .post-content {
    padding: 0 20px 20px !important;
}

/* Скрываем мета-данные */
.entry-meta {
    display: none !important;
}

/* ===== МОБИЛЬНЫЕ: 1 КОЛОНКА ===== */
@media (max-width: 921px) {
    .ast-blog-layout-4-grid .ast-article-post {
        width: 100% !important;
        padding: 8px !important;
    }
    
    .ast-blog-layout-4-grid .entry-title {
        font-size: 18px !important;
        padding: 15px 15px 5px !important;
    }
}

/* ===== 404 СТРАНИЦА ===== */
.error-404 a:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
    transition: all 0.2s;
}

/* ===== ФОРМА ПОИСКА ===== */
.search-form {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    gap: 0;
}

.search-form-label {
    flex: 1;
    min-width: 0;
}

.search-field {
    width: 100%;
    height: 50px;
    padding: 10px 20px;
    border: 2px solid #046bd2;
    border-right: none;
    border-radius: 25px 0 0 25px;
    font-size: 16px;
    outline: none;
}

.search-field:focus {
    border-color: #045cb4;
    box-shadow: none;
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 25px;
    border: none;
    border-radius: 0 25px 25px 0;
    background: #046bd2;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.search-submit:hover {
    background: #045cb4;
}

.search-submit svg {
    flex-shrink: 0;
}

/* Мобильные */
@media (max-width: 544px) {
    .search-field {
        height: 45px;
        font-size: 14px;
        padding: 8px 15px;
    }
    
    .search-submit {
        height: 45px;
        padding: 0 18px;
        font-size: 14px;
    }
    
    .search-submit-text {
        display: none;
    }
}

/* ===== ФОРМА ПОИСКА: КНОПКА ===== */
form.search-form {
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px 0 !important;
}

form.search-form label.search-form-label {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
}

form.search-form input.search-field {
    width: 100% !important;
    height: 48px !important;
    padding: 10px 20px !important;
    border: 2px solid #046bd2 !important;
    border-right: none !important;
    border-radius: 24px 0 0 24px !important;
    font-size: 16px !important;
    line-height: normal !important;
    outline: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

form.search-form button.search-submit {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 48px !important;
    padding: 0 25px !important;
    border: 2px solid #046bd2 !important;
    border-left: none !important;
    border-radius: 0 24px 24px 0 !important;
    background: #046bd2 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: normal !important;
    cursor: pointer !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

form.search-form button.search-submit svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}

/* Мобильные */
@media (max-width: 544px) {
    form.search-form input.search-field {
        height: 44px !important;
        font-size: 14px !important;
        padding: 8px 15px !important;
    }
    
    form.search-form button.search-submit {
        height: 44px !important;
        padding: 0 18px !important;
        font-size: 14px !important;
    }
    
    form.search-form button.search-submit .search-submit-text {
        display: none !important;
    }
    
    form.search-form button.search-submit svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* ===== МЕНЮ: ОТСТУПЫ И ЦЕНТРИРОВАНИЕ ===== */

/* Десктоп — горизонтальное меню */
.ast-builder-menu-1,
.main-navigation,
.main-header-menu,
.ast-nav-menu,
.ast-flex {
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
}

.ast-builder-menu-1 .main-header-menu,
.main-header-menu {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    width: 100% !important;
}

.ast-builder-menu-1 .menu-item,
.main-header-menu .menu-item {
    float: none !important;
}

.ast-builder-grid-row,
.ast-builder-layout-element[data-section="section-hb-menu-1"] {
    justify-content: center !important;
    width: 100% !important;
}

/* Компактные отступы */
.main-header-menu > .menu-item > .menu-link {
    padding: 0 8px !important;
    font-size: 14px !important;
}

/* Для экранов 922-1100px — ещё компактнее */
@media (min-width: 922px) and (max-width: 1100px) {
    .main-header-menu > .menu-item > .menu-link {
        padding: 0 5px !important;
        font-size: 18px !important;
    }
}

/* Мобильные — можно переносить */
@media (max-width: 921px) {
    .main-header-menu {
        flex-wrap: wrap !important;
    }
    
    .ast-header-break-point .main-navigation ul .menu-item .menu-link {
        padding: 5px 10px !important;
        text-align: center !important;
    }
}

p, pre, textarea, ul {
    border: 0;
    font-size: 90%;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}

/* ===== 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 !important;
    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;
    color: #fff !important;
}

.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;
    }
}

/* ===== НАВИГАЦИЯ ПО СТАТЬЕ (#nav) ===== */
#nav,
.article-container #nav,
#main #nav {
    background: #f0f5fa;
    border-radius: 12px;
    padding: 5px 5px !important;
    margin: 5px 0 10px 0;
    border-left: 4px solid #046bd2;
}

#nav h2,
#nav strong,
#nav .nav-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#nav ul li {
    list-style-type: none !important;
    margin-bottom: 4px !important;
    padding-left: 0 !important;
}

#nav ul li:last-child {
    margin-bottom: 0 !important;
}

#nav ul li a {
    display: block;
    padding: 5px 8px;
    background: #fff;
    border-radius: 8px;
    color: #046bd2 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e1e8ed;
}

#nav ul li a:hover {
    background: #046bd2;
    color: #fff !important;
    border-color: #046bd2;
    padding-left: 20px;
}

/* ===== АДАПТИВНЫЕ ТАБЛИЦЫ ===== */
.entry-content table,
.article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 20px 0;
}

.entry-content table thead,
.article-content table thead {
    background: #046bd2;
    color: #fff;
}

.entry-content table th,
.article-content table th {
    padding: 10px 15px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.entry-content table td,
.article-content table td {
    padding: 10px 15px;
    border: 1px solid #e1e8ed;
    white-space: nowrap;
}

.entry-content table tbody tr:nth-child(even),
.article-content table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.entry-content table tbody tr:hover,
.article-content table tbody tr:hover {
    background: #f0f5fa;
}

/* Мобильные */
@media (max-width: 544px) {
    .entry-content table,
    .article-content table {
        font-size: 13px;
    }
    
    .entry-content table th,
    .entry-content table td,
    .article-content table th,
    .article-content table td {
        padding: 8px 10px;
    }
}

/* ===== ПОДПИСЬ ПОД КАРТИНКОЙ ===== */
.entry-content figure figcaption,
.article-content figure figcaption,
.wp-caption-text {
    padding: 10px 15px;
    font-size: 13px;
    color: #666;
    background: #f8fafc;
    border-left: 3px solid #046bd2;
    border-radius: 0 0 8px 8px;
    font-style: italic;
    line-height: 1.5;
    margin-top: 0;
}

/* Контейнер картинки */
.entry-content figure,
.article-content figure {
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

/* Мобильные */
@media (max-width: 544px) {
    .entry-content figure figcaption,
    .article-content figure figcaption {
        font-size: 12px;
        padding: 8px 12px;
    }
}
/* ===== БЛОК СОВЕТОВ (tip-item) ===== */
.tip-item {
    background: linear-gradient(135deg, #fef9f0 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 8px 15px;
    margin: 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-left: 4px solid #f0b27a;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.tip-label {
    display: inline-block;
    background: #f0b27a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Мобильные */
@media (max-width: 544px) {
    .tip-item {
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .tip-label {
        font-size: 12px;
        padding: 3px 10px;
    }
}
/* ===== МЕТА-БЛОКИ С ТЕГАМИ ===== */
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.meta-label {
    display: inline-block;
    background: #e9ecef;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    flex-shrink: 0;
}

.tag-button {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #046bd2;
    border-radius: 20px;
    color: #046bd2 !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.tag-button:hover {
    background: #046bd2;
    color: #fff !important;
    border-color: #046bd2;
    transform: translateY(-1px);
}

/* Мобильные */
@media (max-width: 544px) {
    .meta-row {
        gap: 6px;
    }
    
    .meta-label,
    .tag-button {
        padding: 5px 10px;
        font-size: 12px;
    }
}
/* ===== FAQ АККОРДЕОН ===== */
.entry-content .faq-question {
    cursor: pointer;
    padding: 15px 20px;
    margin: 8px 0 0;
    background: #f0f5fa;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    transition: background 0.3s;
    position: relative;
    user-select: none;
}

.entry-content .faq-question:hover {
    background: #e1e8ed;
}

.entry-content .faq-question .faq-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s;
}

.entry-content .faq-question.active .faq-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.entry-content .faq-answer {
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-top: none;
    border-radius: 0 0 10px 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}
blockquote {
    margin: 0.2em;
    border-color: rgba(0, 0, 0, 0.05);
}
/* ===== МЕТКИ В БАННЕРЕ РУБРИКИ ===== */
.category-tags-block a:hover {
    background: #046bd2 !important;
    color: #fff !important;
}

/* ===== МЕТКИ РУБРИКИ ===== */
.category-tags-block a {
    transition: all 0.2s ease;
}

.category-tags-block a:hover {
    background: #046bd2 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Мобильные */
@media (max-width: 544px) {
    .category-tags-block a {
        padding: 4px 10px !important;
        font-size: 12px !important;
    }
    
    .category-tags-block {
        gap: 6px !important;
    }
}

/* ===== СКРЫВАЕМ ОПИСАНИЕ НА СТРАНИЦАХ ПАГИНАЦИИ ===== */
.paged .ast-archive-description,
.paged .seo-text,
.paged .archive-description,
body.paged .ast-archive-entry-banner .seo-text,
body.paged .ast-archive-description {
    display: none !important;
}
/* ===== КНОПКА PINTEREST ===== */
.pinterest-save-btn:hover {
    background: #b3001b !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 0, 35, 0.3);
}

.pinterest-save-btn:active {
    transform: translateY(0);
}

@media (max-width: 544px) {
    .pinterest-save-btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

/* ===== МЕНЮ: ОТСТУПЫ И ЦЕНТРИРОВАНИЕ ===== */

/* Десктоп — горизонтальное меню */
.ast-builder-menu-1,
.main-navigation,
.main-header-menu,
.ast-nav-menu,
.ast-flex {
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
}

.ast-builder-menu-1 .main-header-menu,
.main-header-menu {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    width: 100% !important;
}

.ast-builder-menu-1 .menu-item,
.main-header-menu .menu-item {
    float: none !important;
}

.ast-builder-grid-row,
.ast-builder-layout-element[data-section="section-hb-menu-1"] {
    justify-content: center !important;
    width: 100% !important;
}

/* Компактные отступы */
.main-header-menu > .menu-item > .menu-link {
    padding: 0 8px !important;
    font-size: 14px !important;
}

/* Для экранов 922-1100px — ещё компактнее */
@media (min-width: 922px) and (max-width: 1100px) {
    .main-header-menu > .menu-item > .menu-link {
        padding: 0 5px !important;
        font-size: 18px !important;
    }
}

/* Мобильные — можно переносить */
@media (max-width: 921px) {
    .main-header-menu {
        flex-wrap: wrap !important;
    }
    
    .ast-header-break-point .main-navigation ul .menu-item .menu-link {
        padding: 5px 10px !important;
        text-align: center !important;
    }
}

p, pre, textarea, ul {
    border: 0;
    font-size: 90%;
    font-style: inherit;
    font-weight: inherit;
    margin: 0;
    outline: 0;
    padding: 0;
    vertical-align: baseline;
}

/* ===== 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 !important;
    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;
    color: #fff !important;
}

.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;
    }
}

/* ===== НАВИГАЦИЯ ПО СТАТЬЕ (#nav) ===== */
#nav,
.article-container #nav,
#main #nav {
    background: #f0f5fa;
    border-radius: 12px;
    padding: 5px 5px !important;
    margin: 5px 0 10px 0;
    border-left: 4px solid #046bd2;
}

#nav h2,
#nav strong,
#nav .nav-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#nav ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#nav ul li {
    list-style-type: none !important;
    margin-bottom: 4px !important;
    padding-left: 0 !important;
}

#nav ul li:last-child {
    margin-bottom: 0 !important;
}

#nav ul li a {
    display: block;
    padding: 5px 8px;
    background: #fff;
    border-radius: 8px;
    color: #046bd2 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #e1e8ed;
}

#nav ul li a:hover {
    background: #046bd2;
    color: #fff !important;
    border-color: #046bd2;
    padding-left: 20px;
}

/* ===== АДАПТИВНЫЕ ТАБЛИЦЫ ===== */
.entry-content table,
.article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 20px 0;
}

.entry-content table thead,
.article-content table thead {
    background: #046bd2;
    color: #fff;
}

.entry-content table th,
.article-content table th {
    padding: 10px 15px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.entry-content table td,
.article-content table td {
    padding: 10px 15px;
    border: 1px solid #e1e8ed;
    white-space: nowrap;
}

.entry-content table tbody tr:nth-child(even),
.article-content table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.entry-content table tbody tr:hover,
.article-content table tbody tr:hover {
    background: #f0f5fa;
}

/* Мобильные */
@media (max-width: 544px) {
    .entry-content table,
    .article-content table {
        font-size: 13px;
    }
    
    .entry-content table th,
    .entry-content table td,
    .article-content table th,
    .article-content table td {
        padding: 8px 10px;
    }
}

/* ===== ПОДПИСЬ ПОД КАРТИНКОЙ ===== */
.entry-content figure figcaption,
.article-content figure figcaption,
.wp-caption-text {
    padding: 10px 15px;
    font-size: 13px;
    color: #666;
    background: #f8fafc;
    border-left: 3px solid #046bd2;
    border-radius: 0 0 8px 8px;
    font-style: italic;
    line-height: 1.5;
    margin-top: 0;
}

/* Контейнер картинки */
.entry-content figure,
.article-content figure {
    border-radius: 8px;
    overflow: hidden;
    margin: 20px 0;
}

/* Мобильные */
@media (max-width: 544px) {
    .entry-content figure figcaption,
    .article-content figure figcaption {
        font-size: 12px;
        padding: 8px 12px;
    }
}
/* ===== БЛОК СОВЕТОВ (tip-item) ===== */
.tip-item {
    background: linear-gradient(135deg, #fef9f0 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 8px 15px;
    margin: 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-left: 4px solid #f0b27a;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tip-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.tip-label {
    display: inline-block;
    background: #f0b27a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

/* Мобильные */
@media (max-width: 544px) {
    .tip-item {
        padding: 12px 15px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .tip-label {
        font-size: 12px;
        padding: 3px 10px;
    }
}
/* ===== МЕТА-БЛОКИ С ТЕГАМИ ===== */
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.meta-label {
    display: inline-block;
    background: #e9ecef;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    color: #1e293b;
    flex-shrink: 0;
}

.tag-button {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #046bd2;
    border-radius: 20px;
    color: #046bd2 !important;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.tag-button:hover {
    background: #046bd2;
    color: #fff !important;
    border-color: #046bd2;
    transform: translateY(-1px);
}

/* Мобильные */
@media (max-width: 544px) {
    .meta-row {
        gap: 6px;
    }
    
    .meta-label,
    .tag-button {
        padding: 5px 10px;
        font-size: 12px;
    }
}
/* ===== FAQ АККОРДЕОН ===== */
.entry-content .faq-question {
    cursor: pointer;
    padding: 15px 20px;
    margin: 8px 0 0;
    background: #f0f5fa;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    transition: background 0.3s;
    position: relative;
    user-select: none;
}

.entry-content .faq-question:hover {
    background: #e1e8ed;
}

.entry-content .faq-question .faq-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s;
}

.entry-content .faq-question.active .faq-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.entry-content .faq-answer {
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-top: none;
    border-radius: 0 0 10px 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}
blockquote {
    margin: 0.2em;
    border-color: rgba(0, 0, 0, 0.05);
}
/* ===== МЕТКИ В БАННЕРЕ РУБРИКИ ===== */
.category-tags-block a:hover {
    background: #046bd2 !important;
    color: #fff !important;
}

/* ===== МЕТКИ РУБРИКИ ===== */
.category-tags-block a {
    transition: all 0.2s ease;
}

.category-tags-block a:hover {
    background: #046bd2 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Мобильные */
@media (max-width: 544px) {
    .category-tags-block a {
        padding: 4px 10px !important;
        font-size: 12px !important;
    }
    
    .category-tags-block {
        gap: 6px !important;
    }
}

/* Для всех видео в контенте – по умолчанию без обтекания */
.wp-block-video {
    margin: 1.5em 0;
    max-width: 100%;
}

/* Для десктопов – обтекание справа, если есть класс .alignright */
@media (min-width: 768px) {
    .wp-block-video.alignright {
        float: right;
        margin: 0 0 1em 1.5em;
        max-width: 45%;
    }
    .wp-block-video.alignleft {
        float: left;
        margin: 0 1.5em 1em 0;
        max-width: 45%;
    }
}

/* На мобильных – отключаем обтекание */
@media (max-width: 767px) {
    .wp-block-video.alignright,
    .wp-block-video.alignleft {
        float: none;
        margin: 1.5em 0;
        max-width: 100%;
    }
}

.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

.entry-content {
    overflow: hidden;
}

/* ===== НУМЕРОВАННЫЕ СПИСКИ (ОФОРМЛЕНИЕ) ===== */

/* Общие стили для нумерованных списков в контенте */
.entry-content ol,
.article-content ol {
    padding-left: 28px;
    margin: 20px 0;
    list-style: none; /* Убираем стандартные маркеры, будем свои */
    counter-reset: list-counter;
}

.entry-content ol li,
.article-content ol li {
    position: relative;
    padding: 8px 0 8px 40px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
    background: #ffffff;
    border-radius: 8px;
    transition: background 0.2s;
}

/* Создаём кастомный нумерованный маркер */
.entry-content ol li::before,
.article-content ol li::before {
    counter-increment: list-counter;
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #046bd2;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 50%;
    line-height: 1;
}

/* Эффект при наведении на пункт списка */
.entry-content ol li:hover,
.article-content ol li:hover {
    background: #f0f5fa;
}

/* Отступы для вложенных списков (ol внутри ol) */
.entry-content ol ol,
.article-content ol ol {
    padding-left: 30px;
    margin-top: 6px;
    counter-reset: sub-counter;
}

.entry-content ol ol li,
.article-content ol ol li {
    padding-left: 36px;
}

.entry-content ol ol li::before,
.article-content ol ol li::before {
    counter-increment: sub-counter;
    content: counter(sub-counter) ".";
    width: 24px;
    height: 24px;
    font-size: 13px;
    background: #5a9fd4;
    top: 6px;
}

/* Адаптация для мобильных устройств */
@media (max-width: 544px) {
    .entry-content ol,
    .article-content ol {
        padding-left: 10px;
        margin: 15px 0;
    }
    
    .entry-content ol li,
    .article-content ol li {
        padding: 6px 0 6px 34px;
        font-size: 14px;
    }
    
    .entry-content ol li::before,
    .article-content ol li::before {
        width: 26px;
        height: 26px;
        font-size: 13px;
        top: 6px;
    }
    
    .entry-content ol ol li,
    .article-content ol ol li {
        padding-left: 30px;
    }
    
    .entry-content ol ol li::before,
    .article-content ol ol li::before {
        width: 20px;
        height: 20px;
        font-size: 11px;
        top: 5px;
    }
}