/**
 * Стили для шаблона записи с похожими статьями
 * Добавить в style.css темы или создать отдельный файл assets/css/single-post.css
 */

/* Общие стили для страницы записи */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0px;
}

/* Хлебные крошки */
.breadcrumbs {
    padding: 34px 0px 30px 0px;
    font-size: 18px;
    color: #232323;
    
    font-weight: 300;
}

.breadcrumbs a {
    color: #232323;
    text-decoration: underline;
	transition: color .3s;
	font-weight:500;
}

.breadcrumbs a:hover {
    color: #63A1CB;
	transition: color .3s;
}

/* Контейнер записи с сайдбаром */
.post-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 20px 0 40px;
}

.post-content-wrapper {
    flex: 1;
    min-width: 0;
    max-width: 987px;
}

.post-sidebar {
    width: 300px;
}

/* Заголовок и мета-информация */
 .post-title {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 40px;
    color: #333;
    font-weight: bold;
    font-family: 'Inter';
}
.post-card .post-details{
	height: 203px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}
.post-content-wrapper .post-meta {
    display: flex;
    align-items: center;
    font-size: 16px;
	font-weight:300;
    color: #232323;
	margin-bottom:30px;
	gap:10px;
	
}
.post-details .post-meta {
    display: flex;
    align-items: center;
    font-size: 16px;
	font-weight:300;
    color: #232323;
	
}

.post-author-avatar {
    margin-right: 10px;
}

.post-author-avatar img {
    border-radius: 50%;
    width: 30px;
    height: 30px;
}

.post-author {
    margin-right: 30px;
}
.post-card .post-author{
	margin-right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.post-card .post-author img{
	width:36px;
	height:36px;
	border-radius: 36px;
}
.post-categories {
    margin-bottom: 20px;
}

.category-tag {
    display: inline-block;
    padding: 5px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
    background-color: #0066FF;
    color: white;
    border-radius: 4px;
    
	font-weight:400;
    text-decoration: none;
    font-size: 12px;
    transition: background-color 0.3s;
}

.category-tag:hover {
    background-color: #63A1CB;
	color:white;
	text-decoration:none;
}
.post-content-wrapper .post-thumbnail{
	height:424px;
}
/* Миниатюра записи */
.post-thumbnail {
    margin-bottom: 30px;
    border-radius: 20px;
    overflow: hidden;
	padding:0px !important;
}

.post-thumbnail img {
    width: 100%;
    height: 424px !important;
	object-fit:cover;
	border-radius:6px;
    display: block;
}
.post-card .post-thumbnail img {
	height:256px !important;
	object-fit:cover;
}

/* Основной контент */
.post-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 30px;
}

.post-content p {
    margin-bottom: 20px;
	
	font-size:16px;
	line-height:120%;
	color:#000000;
}

.post-content h2 {
    
	font-size:22px;
	line-height:120%;
	font-weight:bold;
    margin-top: 26px;
    margin-bottom: 26px;
}

.post-content h3, .post-content h4, .post-content h5 {
    
	font-size:20px;
	line-height:120%;
	font-weight:bold;
    margin-top: 22px;
    margin-bottom: 22px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 25px 0;
}
.post-content a{
	transition:color .3s;
}
.post-content a:hover{
	transition:color .3s;
}

.post-content ul, 
.post-content ol {
    margin-bottom: 20px;
    margin-top: 20px;
    padding-left: 5px;
    margin-left: 30px;
    color: black;
    font-size: 16px;
    line-height: 120%;

}
.post-content ul,.post-content ul li{
	list-style:disc;
}
.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    margin: 25px 0;
    border-radius: 12px;
    padding: 25px 30px;
    border-left: 4px solid #0066FF;
    background-color: #FFFDF4;
    font-style: italic;
	
}

/* Теги */
.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.post-tags a {
    color: #0073aa;
    text-decoration: none;
}

.post-tags a:hover {
    text-decoration: underline;
}

/* Сайдбар */
.post-sidebar {
    position: relative;
	padding-top:0px;
}

.post-sidebar.fixed {
    position: fixed;
    width: 300px;
}

.sidebar-widget {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #EBEBEB;
    border-radius: 20px;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.07));
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-top: 0;
    font-weight: 500;
    margin-bottom: 20px;
    font-family: 'Inter';
    color: #232323;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* Оглавление */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}
.toc-list li:
.toc-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}
.toc-list li:last-child{
	margin-bottom:0px;
}

.toc-list a:hover {
    color: #0073aa;
}
.toc-list .level-1 a{
    margin-left: 0;
	
	color:#303030;
	font-size:18px;
	line-height:100%;
	font-weight:400;
	text-decoration:none;
	
}
.toc-list .level-2 a{
    margin-left: 0;
	
	color:#4E4E4E;
	font-size:16px;
	line-height:100%;
	font-weight:400;
	text-decoration:none;
}
.toc-list .level-2{
	list-style: disc;
	margin-left:17px;
}

.toc-list .level-3 a{
    margin-left: 0;
	
	color:#4E4E4E;
	line-height:100%;
	font-size:15px;
	font-weight:400;
	text-decoration:none;
}

.toc-list .level-4 a,.toc-list .level-5 a{
    margin-left: 0;
	
	color:#4E4E4E;
	line-height:100%;
	font-size:15px;
	font-weight:400;
	text-decoration:none;
}

/* Категории в сайдбаре */
.categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories li {
    margin-bottom: 20px;
    margin-left: 0;
    
    color: #303030;
    font-size: 16px;
    line-height: 100%;
    font-weight: 400;
    text-decoration: none;
}
.categories li:last-child{
	margin-bottom: 0px;
}

.categories a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.categories a:hover {
    color: #0073aa;
}
/*	Социальные сети			*/
.social-share-buttons{
	display: flex;
    gap: 16px;
    margin: 0px 0px 50px 0px;
}
.social-share-buttons a{
    background: #0066FF;
    padding: 14px 20px;
    display: flex;
    border-radius: 10px;
	transition:background .3s;
}
.social-share-buttons a svg{
	margin-bottom:0px !important;
}
.share-links-caption{
	font-size: 24px;
	font-weight: bold;
	color: #232323;
	margin-bottom: 27px;
	font-family: 'Inter';
}
.social-share-buttons a:hover{
    background: #63A1CB; 
	transition:background .3s;
}
.social-share-buttons a:hover svg path:nth-child(2){
	fill:#63A1CB;
}

/* Недавние записи в сайдбаре */
.recent-post-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
	
}

.recent-post-thumb {
    flex: 0 0 80px;
    margin-right: 20px;
	margin-top:5px
}

.recent-post-thumb img {
    width: 100%;
    height: 55px;
    object-fit: cover;
    border-radius: 5px;
}

.recent-post-content a {
	color: #808080;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    
    line-height: 100%;
    transition: color 0.3s;
}

.recent-post-content a:hover {
    color: #000000;
}

/* Похожие статьи */
.related-posts-section h2{
	border-bottom: 2px solid #0066FF;
	display: flex;
	width: 100%;
	max-width: 266px;
	color: #232323;
	font-family: 'Inter';
	font-size: 30px;
	font-weight: bold;
	box-sizing: border-box;
}
.posts-grid{
	display:flex;
	gap:36px;
	margin-top:60px;
	
}
#related-posts-container{
	min-height:507px;
}
#related-posts-container .posts-pagination{
	display: flex;
    justify-content: space-between;
	margin:71px 0px 404px 0px;
}
#related-posts-container .posts-pagination button{
	padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid #D0D5DD;
    background: white;
    color: #232323;
    
    text-transform: math-auto;
    font-size: 16px;
    line-height: 120%;
    font-weight: 400;
}
.post-card .post-thumbnail{
	height:256px;
	border-radius:6px;
	margin-bottom:24px;
}
.post-card{
    display: flex;
    width: 33%;
    flex-direction: column;
    height: 507px;
    border-radius: 12px;
    border: 1px solid #E8E8EA;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.07));
    background: #fff;
	padding: 16px;
}
.post-card .post-details h4 a{
    color: #0B2959;
    font-size: 24px;
    font-weight: bold;
    line-height: 120%;
	margin-bottom:20px;
	transition: color .4s;
	overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}
.post-card .post-details h4 a:hover{
	color:#051124;
	transition: color .4s;
}
.post-card .post-details{
	padding:0px 8px 8px 8px;
}
.post-card .post-details .post-category{
	margin-bottom: 16px;
    height: 25px;
    box-sizing: border-box;
    display: flex;
}
.post-card .post-details .post-category a{
background: #63a1cb;
    padding: 4px 10px;
    font-size: 14px;
    line-height: 20px;
    color: white;
    line-height: 120%;
    text-decoration: none;
    border-radius: 6px;
    transition: background .4s;
}
.text-center img{
	margin:25px auto !important;
}
.container-button-form{
	margin:20px auto;
}
.container-button-form:hover{
	    outline: 1px solid #0066FF !important;
    background: none;
    color: #0066FF !important;
}
.text-center{
	display:flex;
}
.post-card .post-details .post-category a:hover{
	background: #cebe93;
	transition: background .4s;
}

/* Индикатор загрузки */
.loading-spinner {
    text-align: center;
    padding: 30px 0;
    color: #232323;
}

.loading-spinner span {
    display: inline-block;
    position: relative;
    padding-left: 30px;
}

.loading-spinner span:before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border: 3px solid #0066FF;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.wc-block-product-template__responsive{
	margin-left:0px !important;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.desktop-hidden{
	display:none;
}
/* Стили для таблиц */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E8E8EA;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.post-content table thead {
    background: #0066FF;
}

.post-content table thead th {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 20px 24px;
    text-align: left;
    border: none;
    line-height: 120%;
}

.post-content table thead th:first-child {
    border-top-left-radius: 12px;
}

.post-content table thead th:last-child {
    border-top-right-radius: 12px;
}

.post-content table tbody td {
    padding: 18px 24px;
    border-bottom: 1px solid #E8E8EA;
    font-size: 16px;
    line-height: 120%;
    color: #000;
    vertical-align: top;
}

.post-content table tbody tr:last-child td {
    border-bottom: none;
}

.post-content table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.post-content table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Первая колонка (критерии) */
.post-content table tbody td:first-child {
    background: #F8F9FA;
    font-weight: 600;
    color: #232323;
    border-right: 1px solid #E8E8EA;
}

/* Вторая колонка (самостоятельно) - красноватый оттенок */
.post-content table tbody td:nth-child(2) {
    background: #FEF7F7;
    color: #8B0000;
    border-right: 1px solid #E8E8EA;
}

/* Третья колонка (с компанией) - зеленоватый оттенок */
.post-content table tbody td:nth-child(3) {
    background: #F7FEF7;
    color: #0F5132;
}

/* Hover эффект для строк */
.post-content table tbody tr:hover {
    background: rgba(99, 161, 203, 0.05);
    transition: background 0.3s ease;
}

.post-content table tbody tr:hover td {
    background: rgba(99, 161, 203, 0.05) !important;
}

/* Адаптивность для таблиц */
@media (max-width: 768px) {
    .post-content table {
        font-size: 14px;
        margin: 20px 0;
    }
    
    .post-content table thead th {
        padding: 16px 12px;
        font-size: 14px;
    }
    
    .post-content table tbody td {
        padding: 14px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .post-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: 8px;
    }
    
    .post-content table thead th {
        padding: 12px 8px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .post-content table tbody td {
        padding: 12px 8px;
        font-size: 12px;
        min-width: 100px;
    }
}

/* Альтернативный стиль для горизонтального скролла на мобильных */
@media (max-width: 600px) {
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 20px 0;
    }
    
    .table-responsive table {
        width: auto;
        min-width: 500px;
        margin: 0;
    }
}

/* Дополнительные стили для специальных таблиц */
.comparison-table tbody td:nth-child(2)::before {
    content: "❌ ";
    margin-right: 8px;
}

.comparison-table tbody td:nth-child(3)::before {
    content: "✅ ";
    margin-right: 8px;
}

/* Стили для таблицы проектов */
.projects-table tbody td:first-child {
    font-weight: 600;
    color: #0066FF;
}

.projects-table tbody td:nth-child(2) {
    background: #F0F8FF;
    font-weight: 600;
    text-align: center;
}

.projects-table tbody td:nth-child(3) {
    background: #F9F9F9;
}

.projects-table tbody td:nth-child(4) {
    background: #F7FEF7;
    color: #0F5132;
}
/* Стили для счетчика показов в мета-информации */
.post-views {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 300;
    color: #666;
    margin-left: 10px;
}

.post-views svg {
    flex-shrink: 0;
}

.post-views span {
    font-weight: 400;
}

/* Виджет статистики в сайдбаре */
.sidebar-widget.page-stats {
    background: white;
    border: 1px solid #dee2e6;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #63A1CB;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 161, 203, 0.15);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(99, 161, 203, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #0066FF;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Анимация для счетчиков */
.stat-number,
#page-view-count,
#sidebar-view-count {
    transition: all 0.3s ease;
}

.stat-number.updating,
#page-view-count.updating,
#sidebar-view-count.updating {
    color: #63A1CB;
    transform: scale(1.1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .post-views {
        font-size: 14px;
        margin-left: 5px;
        gap: 4px;
    }
    
    .post-views svg {
        width: 14px;
        height: 14px;
    }
    
    .stats-content {
        gap: 15px;
    }
    
    .stat-item {
        padding: 12px;
        gap: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .post-views {
        display: none; /* Скрываем в мета на мобильных */
    }
    
    .stat-item {
        padding: 10px;
        gap: 10px;
    }
    
    .stat-number {
        font-size: 18px;
    }
}
/* Адаптивность */
@media (max-width: 1339px) {
    .post-container {
        flex-direction: column;
		max-width: 650px;
		gap:20px;
		margin:10px auto 10px;
    }
	.post-content-wrapper{
		max-width:650px;
	}
	.container{
		max-width:650px;
		margin:0px auto;
	}
	.post-sidebar{
		padding-top:0px;
		width:100%;
	}
	.post-sidebar .table-of-contents{
		display:none;
	}
	.desktop-hidden{
		display:block;
	}
	#inner-wrap .container{
		max-width:650px;
	}
	#related-posts-container .post-card{
		width:100%;
	}
	#related-posts-container .posts-grid{
		flex-direction:column
	}
	#related-posts-container .posts-pagination{
		margin:71px 0px 150px 0px;
	}
	.post-content-wrapper .post-thumbnail{
		height:345px;
	}
	.post-content-wrapper .post-meta{
		margin-bottom:20px;
	}
	.post-content-wrapper .post-title{
		margin-bottom:20px;
	}
	.breadcrumbs{
		padding:30px 0px 30px 0px;
	}
}
@media(max-width:768px){
	.container{
		max-width:375px;
		margin:0px auto;
	}
	.post-content-wrapper,.post-container,.post-content-wrapper{
		max-width:375px;
	}
	.table th, table th, .table td, table td{
		font-size:10px;
	}
	#inner-wrap .container{
		max-width:345px;
	}
	.post-content-wrapper .post-title{
		font-size:20px;
	}
	.breadcrumbs{
		font-size:14px;
	}
	.post-content-wrapper .post-meta{
		gap:0px;
		justify-content:flex-start;
	}
	.post-categories{
		margin-bottom:22px;
	}
	.post-content-wrapper .post-thumbnail{
		height:246px;
	}
	.table-of-contents.desktop-hidden{
		margin-bottom:32px;
	}
	.post-content h2{
		font-size:18px;
		margin:20px 0px;
	}
	.post-content h3, .post-content h4, .post-content h5{
		font-size:17px;
		margin:18px 0px;
	}
	.post-container .post-sidebar{
		display:none
	}
	.post-container{
		margin:10px 0 30px;
	}
	.share-links-caption{
		font-size:20px;
	}
	.related-posts-section h2{
		font-size:20px;
		max-width:168px;
	}
	.post-content blockquote p{
		margin:0px;
	}
	#related-posts-container .posts-grid{
		margin-top:40px;
	}
	#related-posts-container .posts-pagination{
		margin:68px 0px 68px 0px;
	}
	.post-card .post-thumbnail img,.post-card .post-thumbnail{
		height:191px !important;
	}
	.post-card .post-details{
		height:180px;
	}
	.post-card{
		height:419px;
	}
	.post-details .post-meta{
		font-size:14px;
	}
}
/* FAQ - Вопросы и ответы */
.faq-section {
    margin: 40px 0;
    background: white;
    border-radius: 20px;
    border: 1px solid #EBEBEB;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.07));
    padding: 30px;
}

.faq-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-item {
    border-bottom: 1px solid #E8E8EA;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

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

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #232323;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    color: #63A1CB;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    color: #0066FF;
    transition: all 0.3s ease;
    line-height: 1;
    min-width: 24px;
    text-align: center;
}

.faq-item.active .faq-question::after {
    content: '−';
    color: #63A1CB;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    padding: 0 0 0 0;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding: 0 0 24px 0;
}

.faq-answer-content {
    font-size: 16px;
    line-height: 140%;
    color: #4E4E4E;
    padding-right: 40px;
}

.faq-answer-content p {
    margin: 0;
    font-size: 16px;
    line-height: 140%;
    color: #4E4E4E;
}

.faq-answer-content a {
    color: #63A1CB;
    text-decoration: none;
    transition: color 0.3s;
}

.faq-answer-content a:hover {
    color: #0066FF;
    text-decoration: underline;
}

/* Анимация появления для всего блока FAQ */
.faq-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Схема org - скрытый элемент */
.faq-schema {
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-section {
        margin: 30px 0;
        padding: 20px;
        border-radius: 12px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 20px 0;
    }
    
    .faq-question::after {
        font-size: 20px;
        min-width: 20px;
    }
    
    .faq-answer-content {
        font-size: 15px;
        padding-right: 30px;
    }
    
    .faq-answer-content p {
        font-size: 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 0 20px 0;
    }
}

@media (max-width: 480px) {
    .faq-section {
        margin: 20px 0;
        padding: 16px;
        border-radius: 10px;
    }
    
    .faq-question {
        font-size: 15px;
        padding: 16px 0;
        line-height: 120%;
    }
    
    .faq-answer-content {
        font-size: 14px;
        padding-right: 25px;
        line-height: 130%;
    }
    
    .faq-answer-content p {
        font-size: 14px;
        line-height: 130%;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 0 16px 0;
    }
}