/* Основные стили шаблона helpap24 */

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

body { font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 14px; line-height: 1.5; color: #333; background: #f5f5f5; }

h1, h2, h3, h4 { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-weight: 600; }

/* Основной контейнер */
.app-container { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; position: relative; }

/* Сайдбар */
.sidebar {  display: flex; flex-direction: column; position: sticky; width: 280px; height: 100vh; top: 0; z-index: 100;padding:1rem; }

.sidebar-inner { display: flex; flex-direction: column; height: 100%; gap: 20px;padding: 20px; background: #ffffff; border-radius: 1.4rem; }

.sidebar-header {  }

.logo { max-width: 100%; height: auto; }

/* Навигация */
.sidebar-nav { flex: 1; overflow-y: auto; }

.nav-item { position: relative; margin-bottom: 4px; }

.nav-link, .nav-trigger { display: block; padding: 12px 16px; color: #333; text-decoration: none; transition: all 0.2s ease; border-radius: 0.8rem; border-left: 3px solid transparent; cursor: pointer; }

.nav-link:hover, .nav-trigger:hover { background: #e3f2fd; color: #333; text-decoration: none; }

.nav-item.has-children .nav-trigger { position: relative; }

.nav-item.has-children .nav-trigger:after { content: '›'; position: absolute; right: 16px; font-size: 16px; color: #999; transition: transform 0.2s ease; }

.nav-item.active .nav-link, .nav-item.active .nav-trigger { background: #e3f2fd; border-left-color: #2196f3; color: #1976d2; }

.nav-item.nav-item__all { margin-top:1rem; border-top:1px solid #ddd;padding-top:1rem; }

/* Подменю */
.nav-submenu { background: rgba(255, 255, 255, 0.7); border-radius: 0.8rem; margin-top: 4px; padding: 8px 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }

.nav-submenu.open { max-height: 200px; }

.nav-sublink { display: block; padding: 8px 16px 8px 32px; color: #666; text-decoration: none; font-size: 13px; transition: all 0.2s ease; border-radius: 0.6rem; margin: 2px 8px; }

.nav-sublink:hover { background: rgba(33, 150, 243, 0.1); color: #1976d2; text-decoration: none; }

/* Футер сайдбара */
.sidebar-footer {  }

.btn-logout { width: 100%; padding: 12px; background: #f44336; color: white; border: none; border-radius: 0.8rem; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2); }

.btn-logout:hover { background: #d32f2f; transform: translateY(-1px); box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3); }

/* Контентная область */
main.content { padding: 1rem;  }

.content-inner { margin-left:0;background: #fff; border-radius: 1.4rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); border: 1px solid #f0f0f0;padding:1rem; }


/* Текущий раздел */
.nav-item.current-section .nav-link.current,
.nav-item.current-section .nav-trigger.current {
	background: #e3f2fd;
	border-left-color: #2196f3;
	color: #1976d2;
	font-weight: 600;
}







/* Статьи */
article{ margin-bottom: 40px;  }
article.help-article-single {  max-width: 900px; }

article h1 { font-size: 2rem; margin-bottom: 20px; color: #1a1a1a; font-weight: 600; line-height: 1.3; }

article h2 { font-size: 1.4rem; margin-bottom: 15px; color: #1a1a1a; line-height: 1.3; }

article h2 a { color: #1a1a1a; text-decoration: none; transition: color 0.2s ease; }

article h2 a:hover { color: #1976d2; }


article h3 { font-size: 1.2rem; }


.meta { color: #666; font-size: 13px; margin-bottom: 0; padding-bottom: 5px;  display: flex; gap: 15px;align-items: center; }

.content p { margin-bottom: 16px; line-height: 1.6; }

.tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f0f0; font-size: 13px; color: #666; }

.tags a { color: #1976d2; text-decoration: none; background: #e3f2fd; padding: 4px 8px; border-radius: 0.4rem; margin-right: 8px; transition: all 0.2s ease; }

.tags a:hover { background: #bbdefb; }

/* Пагинация */
.pagination { margin-top: 40px; text-align: center; }

.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }

.pagination a, .pagination span { padding: 8px 12px; border-radius: 0.6rem; text-decoration: none; color: #666; background: #f8f9fa; transition: all 0.2s ease; }

.pagination a:hover { background: #e3f2fd; color: #1976d2; }

.pagination .current { background: #2196f3; color: white; }

/* Панель со статьями */
.content-overlay { position: fixed; top: 0; left: 0px; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 20; opacity: 0; visibility: hidden; transition: all 0.3s ease;padding:1rem; }

.content-overlay.active { opacity: 1; visibility: visible; }

.articles-list { position: absolute; left: calc(280px - 2.4rem); width: 350px; height: calc(100% - 2rem); background: #fff; box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15); transform: translateX(-100%); transition: transform 0.3s ease; border-radius: 0 1.4rem 1.4rem 0;padding-left:2.4rem;z-index:20; }



.content-overlay.active .articles-list { transform: translateX(0); }


.articlle-full-box .help-article-single__headbox { top:0rem;background:#fff;margin-left:-1rem;padding-left:1rem;border-radius:1rem;margin-bottom:1.4rem;z-index:1 }
body.scroll-it .articlle-full-box .help-article-single__headbox { padding-top:0.3rem;padding-bottom:0.5rem; }


.articles-header { padding: 25px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; background: #f8f9fa; border-radius: 1.4rem; }

.articles-title { font-size: 18px; margin: 0; color: #1a1a1a; font-weight: 600; }

.articles-title-link { color: inherit; text-decoration: none; }
.articles-title-link:hover { color: #1976d2; text-decoration: none; }

.articles-close { background: #f44336; border: none; font-size: 18px; cursor: pointer; color: white; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s ease; }

.articles-close:hover { background: #d32f2f; transform: scale(1.1); }

.articles-content { padding: 1rem 0.5rem 1rem 0.5rem; height: calc(100% - 80px); overflow-y: auto; }

.subsections-list { margin-bottom: 20px; }

.subsections-list h4, .articles-divider h4 { font-size: 14px; color: #666; margin-bottom: 10px; font-weight: 600; }

.subsection-item { margin-bottom: 8px; }

.subsection-item a { display: flex; align-items: center; gap: 8px; padding: 10px; background: #f8f9fa; border-radius: 0.6rem; color: #333; text-decoration: none; font-weight: 500; transition: all 0.2s ease; }

.subsection-item a:hover { background: #e3f2fd; color: #1976d2; }

.subsection-item i { color: #ffa726; }

.articles-divider { margin: 20px 0; padding-top: 15px; border-top: 1px solid #f0f0f0; }

.article-item { padding: 5px 10px;  transition: all 0.2s ease;margin-bottom:5px; }

.article-item:last-child { border-bottom: none; }

.article-item:hover { background: #f8f9fa; }

.article-item a { color: #333; text-decoration: none; font-size: 14px; line-height: 1.4; font-weight: 500; transition: color 0.2s ease; display: flex; align-items: flex-start; gap: 8px; }

.article-item a:hover { color: #1976d2; }

.article-item i { color: #2196f3; margin-top: 2px; }

.article-excerpt { font-size: 12px; color: #666; margin-top: 5px; line-height: 1.3; margin-left: 20px; }


/* Текущая статья в панели */
.article-item.current-article { background: #e3f2fd; border-radius: 0.8rem; }
.article-item.current-article a { color: #1976d2; font-weight: 600; }


/* Футер сайта */
.site-footer { margin-top:1rem; }

.footer-content { margin: 0 auto 0 0; display: flex; justify-content: space-between; align-items: center; padding: 20px; background: #fff; border-radius: 1.4rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); }

.footer-contact a { color: #1976d2; text-decoration: none; font-weight: 500; font-size: 16px; transition: color 0.2s ease; }

.footer-contact a:hover { color: #1565c0; }

.footer-copyright { color: #666; font-size: 13px; }

/* Список статей на главной */
.posts-list { display: grid; gap: 20px; }

.post-card { background: #fff; padding: 25px; border-radius: 1.4rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); border: 1px solid #f0f0f0; transition: all 0.2s ease; }

.post-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }

.post-card h2 { margin-bottom: 10px; }

.post-card .meta { margin-bottom: 15px; padding-bottom: 10px; }

/* Адаптивные исправления для контента */
@media (max-width: 1200px) {
	.content { padding: 30px; }
	article { padding: 25px; }
}



/* Кнопка скачивания файла */
.meta .download-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: 15px; padding: 3px 10px; background: #2196f3; color: white; text-decoration: none; border-radius: 0.6rem; font-size: 0.8rem; font-weight: 500; transition: all 0.2s ease;border:none }
.meta .download-btn:hover { background: #1976d2; color: white; text-decoration: none; transform: translateY(-1px); }
.meta .download-btn i { font-size: 11px; }





































/* Оглавление статьи */
.table-of-contents { background: #f8f9fa; border-radius: 1.4rem; padding: 20px; margin: 20px 0; border-left: 4px solid #2196f3; }
.table-of-contents h3 { font-size:1rem; }
.table-of-contents p { font-size: 1.1rem;font-weight:600; margin-bottom: 15px; color: #1a1a1a; font-weight: 600; }
.toc-list { list-style: none; margin: 0; padding: 0; }
.toc-item { margin-bottom: 0px; }
.toc-link { display: block; color: #333; text-decoration: none; padding: 6px 12px; border-radius: 0.6rem; transition: all 0.2s ease; font-size: 14px; line-height: 1.4; }
.toc-link:hover { background: #e3f2fd; color: #1976d2; text-decoration: none; }
.toc-link:before { content: '>'; margin-right: 8px; color: #2196f3; font-weight: bold; }


/* Картинки в статьях */
.help-article-single .content img.article-image { max-width: 100%; height: auto; border-radius: 0.8rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: all 0.2s ease; cursor: pointer;border: 1px solid #00000055 }
.help-article-single .content img.article-image:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); }
.help-article-single .content .image-link { display: inline-block; margin: 10px 0; }


/* Кнопка генерации DOCX */
.docx-generator { margin: 15px 0; }
.generate-docx-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #28a745; color: white; border: none; border-radius: 0.8rem; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; text-decoration: none; }
.generate-docx-btn:hover { background: #218838; color: white; transform: translateY(-1px); }
.generate-docx-btn:disabled { background: #6c757d; cursor: not-allowed; transform: none; }














/* ===== HOMEPAGE STYLES (БЭМ) ===== */
.homepage { padding: 0; }
.homepage__container { max-width: 900px; margin: 0; background: #fff;  padding: 1rem; }
.homepage__header { margin-bottom: 3rem; text-align: center; }
.homepage__title { font-size: 2.5rem; font-family: 'Montserrat', sans-serif; font-weight: 600; color: #1a1a1a; margin-bottom: 1rem; line-height: 1.2; }
.homepage__description { color: #666; font-size: 1.1rem; line-height: 1.6; }
.homepage__description p { margin: 0; }
.sections { margin-top: 0; }
.sections__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; margin: 0; }
.sections__empty { grid-column: 1 / -1; text-align: center; padding: 3rem; color: #666; font-style: italic; }
.section-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 1.4rem; transition: all 0.2s ease; overflow: hidden; position: relative; }
.section-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); border-color: #d0d0d0; }
.section-card__link { display: block; padding: 1.5rem; color: inherit; text-decoration: none; height: 100%; }
.section-card__link:hover { color: inherit; text-decoration: none; }
.section-card__header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.section-card__icon { flex-shrink: 0; width: 3rem; height: 3rem; background: #e3f2fd; border-radius: 0.8rem; display: flex; align-items: center; justify-content: center; color: #2196f3; font-size: 1.2rem; }
.section-card__title { font-family: 'Montserrat', sans-serif; font-size: 1.3rem; font-weight: 600; color: #1a1a1a; margin: 0; line-height: 1.3; flex: 1; }
.section-card__description { color: #666; font-size: 0.95rem; line-height: 1.5; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.section-card__description p { margin: 0; }
.section-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid #f0f0f0; }
.section-card__counter { font-size: 0.9rem; color: #2196f3; font-weight: 500; }
.section-card__arrow { color: #999; font-size: 0.8rem; transition: all 0.2s ease; }
.section-card:hover .section-card__arrow { color: #2196f3; transform: translateX(3px); }

@media (max-width: 768px) {
	.homepage__container { padding: 1.5rem; margin: 0.5rem; border-radius: 1rem; }
	.homepage__header { margin-bottom: 2rem; }
	.homepage__title { font-size: 2rem; }
	.homepage__description { font-size: 1rem; }
	.sections__grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
	.section-card__link { padding: 1.2rem; }
	.section-card__header { gap: 0.8rem; }
	.section-card__icon { width: 2.5rem; height: 2.5rem; font-size: 1rem; }
	.section-card__title { font-size: 1.1rem; }
	.section-card__description { font-size: 0.9rem; margin-bottom: 1rem; }
}
@media (max-width: 480px) {
	.homepage__container { padding: 1rem; margin: 0.2rem; }
	.homepage__title { font-size: 1.8rem; }
	.sections__grid { grid-template-columns: 1fr; gap: 1rem; }
	.section-card__header { flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
	.section-card__title { font-size: 1rem; }
}













/* ===== SECTION PAGE & ARCHIVE STYLES ===== */
.section-page, .archive-page { padding: 0; }
.section-page .section-articles-list article.article-card { margin-bottom:0}
.section-page__container, .archive-page__container { max-width: 900px; margin: 0; /*background: #fff;*/ padding: 2rem; }
.section-page__header, .archive-page__header { margin-bottom: 2rem; text-align: center; }
.section-page__title, .archive-page__title { font-size: 2.2rem; font-family: 'Montserrat', sans-serif; font-weight: 600; color: #1a1a1a; margin-bottom: 1rem; line-height: 1.2; }
.section-page__description, .archive-page__description { color: #666; font-size: 1.1rem; line-height: 1.6; max-width: 600px; margin: 0 auto; }
.section-page__description p, .archive-page__description p { margin: 0; }

/* Фильтры архива */
.archive-filters { margin-bottom: 2rem; }
.archive-filters__grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; }
.filter-item__select, .filter-item__search { width: 100%; padding: 0.75rem 1rem; border: 1px solid #e0e0e0; border-radius: 0.8rem; font-size: 0.95rem; background: #fff; }
.filter-item__select:focus, .filter-item__search:focus { outline: none; border-color: #2196f3; box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1); }
.filter-item__button { padding: 0.75rem 1.5rem; background: #2196f3; color: white; border: none; border-radius: 0.8rem; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 0.5rem; }
.filter-item__button:hover { background: #1976d2; transform: translateY(-1px); }

/* Список статей */
.section-articles-list { margin: 0; }
.section-articles-list__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin: 0; }

/* Карточка статьи */
.article-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 1.4rem; transition: all 0.2s ease; overflow: hidden; }
.article-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); border-color: #d0d0d0; }
.article-card__link { display: block; padding: 1.5rem; color: inherit; text-decoration: none; height: 100%; display: flex; flex-direction: column; }
.article-card__link:hover { color: inherit; text-decoration: none; }
.article-card__header { display: flex;  gap: 1rem; margin-bottom: 1rem;align-items: center; }
.article-card__icon { flex-shrink: 0; width: 2.5rem; height: 2.5rem; background: #e3f2fd; border-radius: 0.8rem; display: flex; align-items: center; justify-content: center; color: #2196f3; font-size: 1rem; }
.article-card__title { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 600; color: #1a1a1a; margin: 0; line-height: 1.3; flex: 1; }
.article-card__excerpt { color: #666; font-size: 0.9rem; line-height: 1.5; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.article-card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid #f0f0f0; gap: 1rem; }
.article-card__section { font-size: 0.8rem; color: #666; display: flex; align-items: center; gap: 0.3rem; }
.article-card__section i { color: #ffa726; }
.article-card__date { font-size: 0.8rem; color: #999; }
.article-card__arrow { color: #999; font-size: 0.8rem; transition: all 0.2s ease; }
.article-card:hover .article-card__arrow { color: #2196f3; transform: translateX(3px); }

/* Пустое состояние */
.section-articles-list__empty { grid-column: 1 / -1; }
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state__icon { font-size: 3rem; color: #ddd; margin-bottom: 1rem; }
.empty-state__title { font-size: 1.3rem; font-weight: 600; color: #666; margin-bottom: 0.5rem; }
.empty-state__text { color: #999; font-size: 0.95rem; margin-bottom: 2rem; }
.empty-state__button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: #2196f3; color: white; text-decoration: none; border-radius: 0.8rem; font-weight: 500; transition: all 0.2s ease; }
.empty-state__button:hover { background: #1976d2; color: white; text-decoration: none; transform: translateY(-1px); }

/* Пагинация */
.section-page__pagination, .archive-page__pagination { margin-top: 3rem; text-align: center; }
.section-page__pagination .page-numbers, .archive-page__pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; margin: 0 0.2rem; padding: 0 0.75rem; background: #f8f9fa; color: #666; text-decoration: none; border-radius: 0.6rem; font-size: 0.9rem; transition: all 0.2s ease; }
.section-page__pagination .page-numbers:hover, .archive-page__pagination .page-numbers:hover { background: #e3f2fd; color: #1976d2; text-decoration: none; }
.section-page__pagination .page-numbers.current, .archive-page__pagination .page-numbers.current { background: #2196f3; color: white; }

/* Кнопка "Все статьи" на главной */
.homepage__all-articles { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #f0f0f0; }
.homepage__all-articles-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; background: #2196f3; color: white; text-decoration: none; border-radius: 1rem; font-size: 1rem; font-weight: 500; transition: all 0.2s ease; }
.homepage__all-articles-btn:hover { background: #1976d2; color: white; text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3); }

/* Адаптивность */
@media (max-width: 768px) {
	.section-page__container, .archive-page__container { padding: 1rem 0rem; margin: 0.5rem; }
	.section-page__title, .archive-page__title { font-size: 1.8rem; }
	.archive-filters__grid { grid-template-columns: 1fr; gap: 0.75rem; }
	.section-articles-list__grid { grid-template-columns: 1fr; gap: 1rem; }
	.article-card__link { padding: 1.2rem; }
	.article-card__header { gap: 0.8rem; }
	.article-card__icon { width: 2rem; height: 2rem; font-size: 0.9rem; }
	.article-card__title { font-size: 1rem; }
	.article-card__meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
	.homepage__all-articles-btn { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
}
@media (max-width: 480px) {
	.section-page__container, .archive-page__container { padding: 1rem; margin: 0.2rem; }
	.section-page__title, .archive-page__title { font-size: 1.6rem; }
	.empty-state { padding: 2rem 0.5rem; }
	.empty-state__icon { font-size: 2.5rem; }
}








 /* ===== SEARCH PAGE STYLES ===== */
.search-page { padding: 0; }
.search-page__container { max-width: 900px; margin: 0; background: #fff; padding: 2rem; }
.search-page__header { margin-bottom: 2rem; text-align: center; }
.search-page__title { font-size: 2.2rem; font-family: 'Montserrat', sans-serif; font-weight: 600; color: #1a1a1a; margin-bottom: 1rem; line-height: 1.2; }
.search-page__description { color: #666; font-size: 1.1rem; line-height: 1.6; }
.search-page__description p { margin: 0; }

/* Фильтры поиска */
.search-filters { margin-bottom: 3rem; }
.search-filters__grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; }

/* Результаты поиска */
.search-results { margin: 0; }
.search-results__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin: 0; }

/* Карточка результата */
.search-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 1.4rem; transition: all 0.2s ease; overflow: hidden; }
.search-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); border-color: #d0d0d0; }
.search-card__link { display: block; padding: 1.5rem; color: inherit; text-decoration: none; height: 100%; display: flex; flex-direction: column; }
.search-card__link:hover { color: inherit; text-decoration: none; }
.search-card__header { margin-bottom: 1rem; }
.search-card__type { font-size: 0.8rem; color: #2196f3; font-weight: 500; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.3rem; }
.search-card__type i { color: #2196f3; }
.search-card__title { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; font-weight: 600; color: #1a1a1a; margin: 0; line-height: 1.3; }
.search-card__excerpt { color: #666; font-size: 0.9rem; line-height: 1.5; margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.search-card__excerpt p { margin: 0; }
.search-card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 1rem; border-top: 1px solid #f0f0f0; gap: 1rem; }
.search-card__section { font-size: 0.8rem; color: #666; display: flex; align-items: center; gap: 0.3rem; }
.search-card__section i { color: #ffa726; }
.search-card__date { font-size: 0.8rem; color: #999; }
.search-card__arrow { color: #999; font-size: 0.8rem; transition: all 0.2s ease; }
.search-card:hover .search-card__arrow { color: #2196f3; transform: translateX(3px); }

/* Пустое состояние */
.search-results__empty { grid-column: 1 / -1; }

/* Пагинация */
.search-page__pagination { margin-top: 3rem; text-align: center; }
.search-page__pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; margin: 0 0.2rem; padding: 0 0.75rem; background: #f8f9fa; color: #666; text-decoration: none; border-radius: 0.6rem; font-size: 0.9rem; transition: all 0.2s ease; }
.search-page__pagination .page-numbers:hover { background: #e3f2fd; color: #1976d2; text-decoration: none; }
.search-page__pagination .page-numbers.current { background: #2196f3; color: white; }

/* Адаптивность */
@media (max-width: 768px) {
	.search-page__container { padding: 1.5rem; margin: 0.5rem; }
	.search-page__title { font-size: 1.8rem; }
	.search-filters__grid { grid-template-columns: 1fr; gap: 0.75rem; }
	.search-results__grid { grid-template-columns: 1fr; gap: 1rem; }
	.search-card__link { padding: 1.2rem; }
	.search-card__meta { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
@media (max-width: 480px) {
	.search-page__container { padding: 1rem; margin: 0.2rem; }
	.search-page__title { font-size: 1.6rem; }
}


















/* ===== RESPONSIVE DESIGN ===== */

.sidebar-overlay,.mobile-menu-toggle { display:none; }

/* Планшеты: сужаем сайдбар и панель статей */
@media (max-width: 991px) {
	.app-container { grid-template-columns: 200px 1fr; }
	.sidebar { width: 200px; padding: 0.8rem; }
	.sidebar-inner { padding: 0px; gap: 15px; }
	.nav-link, .nav-trigger { padding: 10px 12px; font-size: 13px; }
	.articles-list { left: calc(200px - 2rem); width: 250px; padding-left: 2rem; }
	.articles-header { padding: 20px; }
	.articles-content { padding: 0.8rem 0.3rem 0.8rem 0.3rem; }
	.logo {  }
		.sidebar-inner .sidebar-header { padding:0.5rem; }
}

/* Мобильные устройства: скрываем сайдбар, показываем burger menu */
@media (max-width: 768px) {
	.article-card__arrow { display:none; }
	.app-container { grid-template-columns: 1fr; }

	/* Скрытый сайдбар */
	.sidebar { position: fixed; left: -280px; width: 280px; height: 100vh; top: 0; z-index: 200; background: #fff; padding: 1rem; transition: left 0.3s ease; }
	.sidebar.active { left: 0;box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15); }

	/* Burger menu */
	.mobile-menu-toggle { display: block; position: fixed; top: 1rem; left: 1rem; z-index: 150; width: 50px; height: 50px; background: #2196f3; border: none; border-radius: 1rem; cursor: pointer; transition: all 0.2s ease; }
	.mobile-menu-toggle:hover { background: #1976d2; }
	.mobile-menu-toggle span { display: block; width: 25px; height: 3px; background: white; margin: 5px auto; border-radius: 2px; transition: all 0.3s ease; }
	.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
	.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
	.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

	/* Overlay для закрытия сайдбара */
	.sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 100; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
	.sidebar-overlay.active { opacity: 1; visibility: visible; }

	/* Контент сдвигаем */
	main.content { padding: 0.5rem; margin-top: 70px; }
	.content-inner { border-radius: 1rem;padding:0; }

	/* Панель статей адаптируем */
	.articles-list { left: 0; width: 100%; max-width: 400px; margin: 0 auto; border-radius: 1.4rem; padding-left: 0; }
	.articles-header { border-radius: 1.4rem 1.4rem 0 0; }
	.article-card__header   { margin-bottom:0.5rem; }

	.sections__grid { gap:1rem; }
	.section-card {margin-bottom:1rem;padding:0.5rem;}
	.section-card__header { margin-bottom:0 }
	.section-card__footer { padding-top:0.5rem;border-top:0; }


	.section-articles-list__grid .article-card { padding:0;margin-bottom:1rem; }


	/* Футер */
	.footer-content { flex-direction: column; gap: 1rem; text-align: center; }
	.help-article-single .content { padding:1rem 0; }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
	.mobile-menu-toggle { /*width: 45px; height: 45px;*/ top: 0.5rem; left: 0.5rem; }
	main.content { margin-top: 60px; padding: 0.3rem; }
	.sidebar { width: 100%; left: -100%; }
	.articles-list { width: 100%; max-width: none; }
	.articles-header { padding: 15px; }
	.articles-content { padding: 0.5rem; }

}




/* Кнопка закрытия сайдбара (добавить в блок @media (max-width: 768px)) */
.sidebar-close-mobile { display: none; }

/* Мобильная шапка (добавить в блок @media (max-width: 768px)) */
.mobile-header { display: none; }

@media (max-width: 768px) {
	.mobile-header { display: flex; justify-content: flex-end;position: relative; z-index: 50; background: #fff; padding: 0rem 1rem;padding-left:70px; margin-top: 0px; border-bottom: 1px solid #f0f0f0; min-height:70px;}
	.mobile-header__content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 100%; }
	.mobile-header__title { font-family: 'Montserrat', sans-serif; font-size: 0.9rem; font-weight: 600; color: #1a1a1a; margin: 0; flex: 1; text-align: start; line-height: 1.2;align-items: center; }
	.mobile-header__logo { flex-shrink: 0; }
	.mobile-header__logo img { max-width: 70px; height: auto; }

	/* Контент теперь идет после шапки */
	main.content { margin-top: 0; }

	.help-article-single__headbox.sticky-top { padding:0.5rem;padding-left:65px;margin-top:0.5rem; }
	.scroll-it .help-article-single__headbox.sticky-top { box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15); }
	.articlle-full-box .help-article-single__headbox { margin-left:0; }
	.articlle-full-box .help-article-single__headbox h1 { font-size:1.1rem; }
	.help-article-single__headbox .meta { font-size:0.8rem;gap:5px; }
	.sidebar-inner .sidebar-header { display:none; }
	.home .mobile-header__title { display:none; }
	.home .mobile-header__content { justify-content: flex-end; }
	.sidebar-close-mobile { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
	.sidebar-close-btn { background: #f44336; border: none; width: 50px; height: 50px; border-radius: 1rem; color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all 0.2s ease; }
	.sidebar-close-btn:hover { background: #d32f2f; }
	.sidebar-close-mobile .logo { max-width: 120px; height: auto; }

	.articlle-full-box .help-article-single { padding:0 1rem; }

}





figcaption.wp-element-caption { text-align:center;color:#777; }

