/*
Theme Name: TG Catalog
Theme URI: https://example.com/tg-catalog
Author: Your Name
Author URI: https://example.com
Description: Шаблон для каталога телеграм каналов
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tg-catalog
*/

/* ============================================
   Base Styles
   ============================================ */

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

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #fff;
}

a {
	color: #0066cc;
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: #0052a3;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ============================================
   Header
   ============================================ */

.site-header {
	background-color: #fff;
	border-bottom: 1px solid #e0e0e0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-wrapper {
	position: relative;
}

.header-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 15px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.header-left {
	flex-shrink: 0;
}

.site-branding {
	display: flex;
	align-items: center;
} 

.custom-logo {
	max-height: 50px;
	width: auto;
}

.site-logo-text {
	font-size: 24px;
	font-weight: bold;
	color: #0066cc;
}

.header-center {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	flex-direction: column;
	gap: 5px;
	z-index: 1001;
}

.menu-toggle-icon {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 24px;
	height: 18px;
}

.menu-toggle-icon span {
	display: block;
	width: 100%;
	height: 2px;
	background-color: #333;
	border-radius: 2px;
	transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
	transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
	opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

.main-navigation {
	display: flex;
}

.main-navigation ul {
	list-style: none;
	display: flex;
	gap: 30px;
	align-items: center;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	color: #333;
	font-weight: 500;
	padding: 8px 0;
	transition: color 0.3s ease;
}

.main-navigation a:hover {
	color: #0066cc;
}

.header-right {
	flex-shrink: 0;
}

.header-search-form {
	display: flex;
	align-items: center;
	gap: 8px;
}

.header-search-field {
	padding: 10px 15px;
	border: 1px solid #ddd;
	border-radius: 10px;
	font-size: 14px;
	min-width: 250px;
	outline: none;
	transition: border-color 0.3s ease;
}

.header-search-field:focus {
	border-color: #0066cc;
}

.header-search-submit {
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: #666;
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-search-submit:hover {
	color: #0066cc;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	color: #1a1a1a;
	padding: 80px 0 100px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
	pointer-events: none;
} 

.hero-section .container {
	position: relative;
	z-index: 1;
}

.hero-title {
	font-size: 48px;
	font-weight: bold;
	margin-bottom: 20px;
	line-height: 1.2;
	color: #1a1a1a;
}

.hero-description {
	font-size: 20px;
	color: #4a5568;
	max-width: 700px;
	margin: 0 auto 40px;
}

.hero-search {
	max-width: 700px;
	margin: 0 auto;
}

.main-search-form {
	width: 100%;
}

.search-wrapper {
	display: flex;
	gap: 10px;
	background: #fff;
	padding: 5px;
	border-radius: 15px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.main-search-field {
	flex: 1;
	padding: 18px 25px;
	border: none;
	font-size: 16px;
	outline: none;
	border-radius: 10px;
}

.main-search-submit {
	padding: 18px 35px;
	background: #0066cc;
	color: #fff;
	border: none;
	border-radius: 15px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	transition: background-color 0.3s ease;
}

.main-search-submit:hover {
	background: #0052a3;
}

/* ============================================
   Sections
   ============================================ */

.newest-section,
.categories-section,
.featured-section,
.blog-section {
	padding: 80px 0;
}

.featured-section {
	background-color: rgba(255, 247, 237, 0.5);
}

.section-title {
	font-size: 36px;
	font-weight: bold;
	margin-bottom: 10px;
	text-align: center;
}

.section-subtitle {
	font-size: 18px;
	color: #666;
	text-align: center;
	margin-bottom: 50px;
}

.section-footer {
	text-align: center;
	margin-top: 50px;
}

/* ============================================
   Channels Grid
   ============================================ */

.channels-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 50px;
}

.channel-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	transition: background-color 0.3s ease;
}

.channel-card:hover {
	background-color: #f8f8f8;
}

.channel-card-link {
	display: block;
	padding: 20px;
	text-decoration: none;
	color: inherit;
}

.channel-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.channel-logo {
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #f0f0f0;
}

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

.channel-logo-placeholder {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.channel-logo-text {
	font-size: 20px;
	font-weight: bold;
	color: #fff;
	text-transform: uppercase;
	line-height: 1;
}

.channel-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	color: #333;
	line-height: 1.3;
}

.channel-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.channel-category {
	font-size: 12px;
	padding: 4px 10px;
	background: #f0f0f0;
	border-radius: 12px;
	color: #666;
}

.channel-description {
	color: #666;
	font-size: 14px;
	line-height: 1.5;
	margin: 0;
}

/* ============================================
   Blog Grid
   ============================================ */

.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 50px;
}

.blog-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	transition: background-color 0.3s ease;
}

.blog-card:hover {
	background-color: #f8f8f8;
}

.blog-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.blog-thumbnail {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f0f0f0;
}

.blog-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.blog-card:hover .blog-thumbnail img {
	transform: scale(1.05);
}

.blog-content {
	padding: 20px;
}

.blog-title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 10px;
	color: #333;
	line-height: 1.3;
}

.blog-excerpt {
	color: #666;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 12px;
}

.blog-meta {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 12px;
	color: #999;
}

.blog-date {
	font-size: 12px;
	color: #999;
}

/* ============================================
   Categories Grid
   ============================================ */

.categories-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-top: 40px;
}

.category-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 12px 16px;
	text-align: left;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 12px;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
	border-color: #0066cc;
	background-color: #f8f9fa;
}

.category-icon {
	font-size: 24px;
	line-height: 1;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.category-emoji {
	font-size: 24px;
	line-height: 1;
}

.category-icon-default {
	font-size: 20px;
	color: #999;
}

.category-content {
	flex: 1;
	min-width: 0;
}

.category-name {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 2px;
	color: #333;
	line-height: 1.3;
}

.category-count {
	font-size: 12px;
	color: #666;
	line-height: 1.2;
}

/* ============================================
   Newsletter Section
   ============================================ */

.newsletter-section {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 80px 0;
	text-align: center;
	margin-bottom: 0;
}

.newsletter-title {
	font-size: 36px;
	font-weight: bold;
	margin-bottom: 15px;
}

.newsletter-description {
	font-size: 18px;
	margin-bottom: 30px;
	opacity: 0.95;
}

.newsletter-form {
	max-width: 500px;
	margin: 0 auto;
}

.newsletter-input-wrapper {
	display: flex;
	gap: 10px;
	background: rgba(255, 255, 255, 0.2);
	padding: 5px;
	border-radius: 10px;
	backdrop-filter: blur(10px);
	    overflow: auto;
}

.newsletter-email {
	flex: 1;
	padding: 15px 20px;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	background: #fff;
	outline: none;
}

.newsletter-submit {
	padding: 15px 30px;
	border: none;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
	display: inline-block;
	padding: 12px 30px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	transition: all 0.3s ease;
	cursor: pointer;
	border: none;
	text-decoration: none;
}

.btn-primary {
	background: #0066cc;
	color: #fff;
}

.btn-primary:hover {
	background: #0052a3;
	color: #fff;
}

.btn-telegram {
	background: #0088cc;
	color: #fff;
	font-size: 14px;
	padding: 10px 20px;
	width: 100%;
	display: block;
	text-align: center;
}

.btn-telegram:hover {
	background: #0077b3;
	color: #fff;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
	background: #1a1a1a;
	color: #ccc;
	padding: 60px 0 20px;
	margin-top: 0;
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
	margin-bottom: 40px;
}

.footer-title {
	color: #fff;
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 15px;
}

.footer-description {
	line-height: 1.8;
	color: #999;
}

.footer-section-title {
	color: #fff;
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 15px;
}

.footer-menu {
	list-style: none;
}

.footer-menu li {
	margin-bottom: 10px;
}

.footer-menu a {
	color: #ccc;
}

.footer-menu a:hover {
	color: #fff;
}

.footer-categories-list {
	list-style: none;
}

.footer-categories-list li {
	margin-bottom: 10px;
}

.footer-categories-list a {
	color: #ccc;
}

.footer-categories-list a:hover {
	color: #fff;
}

.footer-contact-text {
	color: #999;
	line-height: 1.8;
}

.footer-contact-text a {
	color: #0088cc;
}

.footer-bottom {
	border-top: 1px solid #333;
	padding-top: 20px;
	text-align: center;
}

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

/* ============================================
   Single Channel Page
   ============================================ */

.breadcrumbs-section {
	padding: 20px 0;
	background-color: #f8f9fa;
	border-bottom: 1px solid #e0e0e0;
}

.breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.breadcrumbs a {
	color: #666;
	text-decoration: none;
	transition: color 0.3s ease;
}

.breadcrumbs a:hover {
	color: #0066cc;
}

.breadcrumbs-separator {
	color: #999;
}

.breadcrumbs-current {
	color: #333;
	font-weight: 500;
}

.channel-single-container {
	padding: 50px 0;
}

.channel-single-wrapper {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
	align-items: start;
}

.channel-content-column {
	min-width: 0;
}

.channel-sidebar-column {
	position: sticky;
	top: 100px;
}

.channel-single-description {
	background: #fff;
	border-radius: 12px;
	padding: 0;
}

.channel-single-header {
	margin-bottom: 30px;
}

.channel-single-title-wrapper {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 15px;
}

.channel-single-logo {
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	border-radius: 12px;
	overflow: hidden;
}

.channel-single-logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.channel-single-title {
	font-size: 32px;
	font-weight: bold;
	color: #1a1a1a;
	line-height: 1.2;
}

.channel-single-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.channel-single-category {
	padding: 6px 14px;
	background: #f0f0f0;
	border-radius: 12px;
	font-size: 14px;
	color: #666;
	text-decoration: none;
	transition: all 0.3s ease;
}

.channel-single-category:hover {
	background: #0066cc;
	color: #fff;
}

.channel-single-excerpt {
	font-size: 18px;
	color: #666;
	line-height: 1.6;
	margin-bottom: 30px;
	padding-bottom: 30px;
	border-bottom: 1px solid #e0e0e0;
}

.channel-single-content {
	font-size: 16px;
	line-height: 1.8;
	color: #333;
}

.channel-single-content p {
	margin-bottom: 20px;
}

.channel-single-content h1,
.channel-single-content h2,
.channel-single-content h3,
.channel-single-content h4,
.channel-single-content h5,
.channel-single-content h6 {
	margin-top: 30px;
	margin-bottom: 15px;
	font-weight: 600;
	color: #1a1a1a;
}

.channel-single-content ul,
.channel-single-content ol {
	margin-bottom: 20px;
	padding-left: 30px;
}

.channel-single-content li {
	margin-bottom: 10px;
}

.channel-params-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 30px;
	position: sticky;
	top: 100px;
}

.channel-params-logo {
	width: 100%;
	max-width: 200px;
	margin: 0 auto 30px;
	border-radius: 12px;
	overflow: hidden;
}

.channel-params-logo img {
	width: 100%;
	height: auto;
	display: block;
}

.channel-params-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.channel-param {
	padding-bottom: 20px;
	border-bottom: 1px solid #f0f0f0;
}

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

.channel-param-label {
	font-size: 12px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
	font-weight: 600;
}

.channel-param-value {
	font-size: 16px;
	color: #333;
	line-height: 1.5;
}

.channel-param-link {
	color: #0066cc;
	text-decoration: none;
	font-weight: 500;
	display: inline-block;
	padding: 10px 20px;
	background: #0066cc;
	color: #fff;
	border-radius: 8px;
	text-align: center;
	width: 100%;
	transition: background-color 0.3s ease;
}

.channel-param-link:hover {
	background: #0052a3;
	color: #fff;
}


.channel-comments-section {
	padding: 50px 0;
	background-color: #f8f9fa;
}

.channel-comments-section .container {
	max-width: 1200px;
}

.categories-filter-wrapper {
	background: #fff;
	padding: 20px 0 0 0; 
	margin-bottom: 0;
}

.categories-filter {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 10px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #ccc #f0f0f0;
}

.categories-filter::-webkit-scrollbar {
	height: 8px;
}

.categories-filter::-webkit-scrollbar-track {
	background: #f0f0f0;
	border-radius: 4px;
}

.categories-filter::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 4px;
}

.categories-filter::-webkit-scrollbar-thumb:hover {
	background: #999;
}

.categories-filter::-webkit-scrollbar-button {
	display: none;
}

.category-filter-item {
	display: inline-flex;
	align-items: center;
	gap: 6px; 
	padding: 5px 18px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap; 
	transition: all 0.3s ease;
	flex-shrink: 0;
} 

.category-filter-item:hover {
	background: #f8f9fa;
	border-color: #0066cc;
	color: #0066cc;
}

.category-filter-item.active {
	background: #0066cc;
	color: #fff;
	border-color: #0066cc;
}

.category-filter-emoji {
	font-size: 16px;
	line-height: 1;
}

.category-filter-name {
	line-height: 1;
}

/* Комментарии */
.comments-area {
	max-width: 900px;
	margin: 0 auto;
}

.comments-title-wrapper {
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 2px solid #e0e0e0;
}

.comments-title {
	font-size: 28px;
	font-weight: bold;
	color: #1a1a1a;
	margin: 0;
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 50px 0;
}

.comment-list .children {
	list-style: none;
	padding-left: 50px;
	margin-top: 20px;
}

.comment {
	margin-bottom: 30px;
}

.comment-body {
	display: flex;
	gap: 15px;
	padding: 25px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	transition: box-shadow 0.3s ease;
}

.comment-body:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-author-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.comment-author-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.comment-content-wrapper {
	flex: 1;
	min-width: 0;
}

.comment-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.comment-author-name {
	font-size: 16px;
}

.comment-author-name .fn {
	font-weight: 600;
	color: #1a1a1a;
}

.comment-author-name a {
	color: #1a1a1a;
	text-decoration: none;
}

.comment-author-name a:hover {
	color: #0066cc;
}

.comment-metadata {
	font-size: 13px;
	color: #999;
	display: flex;
	align-items: center;
	gap: 10px;
}

.comment-metadata a {
	color: #999;
	text-decoration: none;
}

.comment-metadata a:hover {
	color: #0066cc;
}

.comment-text {
	color: #333;
	font-size: 15px;
	line-height: 1.7;
	margin-bottom: 15px;
}

.comment-text p {
	margin-bottom: 15px;
}

.comment-text p:last-child {
	margin-bottom: 0;
}

.comment-awaiting-moderation {
	padding: 12px 15px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 8px;
	color: #856404;
	font-size: 14px;
	margin-bottom: 15px;
}

.reply {
	margin-top: 10px;
}

.reply a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 15px;
	background: #f0f0f0;
	color: #666;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.3s ease;
}

.reply a:hover {
	background: #0066cc;
	color: #fff;
}

.comment-navigation {
	margin-bottom: 30px;
	padding: 15px 0;
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	justify-content: space-between;
}

.comment-navigation a {
	color: #0066cc;
	text-decoration: none;
	font-weight: 500;
}

.comment-navigation a:hover {
	text-decoration: underline;
}

.no-comments {
	padding: 30px;
	background: #f8f9fa;
	border-radius: 12px;
	text-align: center;
	color: #666;
	font-size: 16px;
}

/* Форма комментариев */
.comment-respond {
	margin-top: 50px;
	padding: 35px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e0e0e0;
}

.comment-reply-title {
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 25px;
	color: #1a1a1a;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.comment-reply-title small {
	font-size: 14px;
	font-weight: normal;
}

.comment-reply-title small a {
	color: #666;
	text-decoration: none;
	padding: 6px 12px;
	background: #f0f0f0;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.comment-reply-title small a:hover {
	background: #e0e0e0;
}

.comment-form {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

.comment-form-comment {
	grid-column: 1 / -1;
}

.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
	font-size: 14px;
}

.comment-form .required {
	color: #e74c3c;
}

.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	outline: none;
	transition: all 0.3s ease;
	background: #f8f9fa;
}

.comment-form textarea {
	min-height: 150px;
	resize: vertical;
}

.comment-form textarea:focus,
.comment-form input:focus {
	border-color: #0066cc;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.comment-form-cookies-consent {
	grid-column: 1 / -1;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: #666;
}

.comment-form-cookies-consent input[type="checkbox"] {
	margin-top: 3px;
	width: auto;
}

.comment-form .form-submit {
	grid-column: 1 / -1;
	margin-top: 10px;
}

.comment-form .submit {
	padding: 14px 35px;
	background: #0066cc;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.comment-form .submit:hover {
	background: #0052a3;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 102, 204, 0.2);
}

.related-channels-section {
	padding: 80px 0;
}

/* ============================================
   Category Archive Page
   ============================================ */

.category-archive-header {
	padding: 50px 0;
	background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
	border-bottom: 1px solid #e0e0e0;
}

.category-archive-title-wrapper {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
}

.category-archive-emoji {
	font-size: 48px;
	line-height: 1;
}

.category-archive-title {
	font-size: 42px;
	font-weight: bold;
	color: #1a1a1a;
	margin: 0;
	line-height: 1.2;
}

.category-archive-description {
	font-size: 18px;
	color: #666;
	line-height: 1.6;
	margin-bottom: 15px;
	max-width: 800px;
}

.category-archive-description p {
	margin: 0;
}

.category-archive-count {
	font-size: 16px;
	color: #999;
}

.category-channels-section {
	padding: 50px 0;
}

.category-no-channels {
	padding: 80px 0;
	text-align: center;
}

.category-no-channels p {
	font-size: 18px;
	color: #666;
}

/* ============================================
   Post Type Archive Page
   ============================================ */

.channel-archive-header {
	padding: 50px 0;
	background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
	border-bottom: 1px solid #e0e0e0;
}

.channel-archive-title {
	font-size: 42px;
	font-weight: bold;
	color: #1a1a1a;
	margin: 0 0 15px 0;
	line-height: 1.2;
}

.channel-archive-description {
	font-size: 18px;
	color: #666;
	line-height: 1.6;
	margin-bottom: 15px;
	max-width: 800px;
}

.channel-archive-description p {
	margin: 0;
}

.channel-archive-count {
	font-size: 16px;
	color: #999;
}

.channel-archive-section {
	padding: 50px 0;
}

.channel-archive-no-channels {
	padding: 80px 0;
	text-align: center;
}

.channel-archive-no-channels p {
	font-size: 18px;
	color: #666;
}

/* ============================================
   Search Results Page
   ============================================ */

.search-results-header {
	padding: 50px 0;
	background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
	border-bottom: 1px solid #e0e0e0;
}

.search-results-title {
	font-size: 42px;
	font-weight: bold;
	color: #1a1a1a;
	margin: 0 0 30px 0;
	line-height: 1.2;
}

.search-results-title .search-query {
	color: #0066cc;
}

.search-results-form {
	max-width: 700px;
	margin: 0 auto;
}

.search-results-section {
	padding: 50px 0;
}

.search-results-count {
	font-size: 16px;
	color: #666;
	margin-bottom: 30px;
}

.search-results-list {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.search-result-item {
	display: flex;
	gap: 20px;
	padding: 30px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	transition: box-shadow 0.3s ease;
}

.search-result-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-result-thumbnail {
	width: 120px;
	height: 120px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
}

.search-result-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.search-result-content {
	flex: 1;
	min-width: 0;
}

.search-result-header {
	margin-bottom: 15px;
}

.search-result-title {
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 10px 0;
	line-height: 1.3;
}

.search-result-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.search-result-title a:hover {
	color: #0066cc;
}

.search-result-meta {
	display: flex;
	align-items: center;
	gap: 15px;
	font-size: 14px;
	color: #999;
}

.search-result-type {
	padding: 4px 10px;
	background: #f0f0f0;
	border-radius: 12px;
	font-size: 12px;
}

.search-result-excerpt {
	font-size: 16px;
	color: #666;
	line-height: 1.6;
	margin-bottom: 15px;
}

.search-result-link {
	display: inline-block;
	color: #0066cc;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.search-result-link:hover {
	color: #0052a3;
	text-decoration: underline;
}

.search-no-results {
	padding: 80px 0;
	text-align: center;
}

.search-no-results-icon {
	margin-bottom: 30px;
	color: #ccc;
}

.search-no-results-icon svg {
	width: 64px;
	height: 64px;
}

.search-no-results-title {
	font-size: 32px;
	font-weight: bold;
	color: #1a1a1a;
	margin: 0 0 15px 0;
}

.search-no-results-text {
	font-size: 18px;
	color: #666;
	line-height: 1.6;
	margin-bottom: 30px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.search-no-results-actions {
	display: flex;
	justify-content: center;
	gap: 15px;
	flex-wrap: wrap;
}

.search-no-results-actions .button {
	display: inline-block;
	padding: 12px 30px;
	background: #0066cc;
	color: #fff;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.3s ease;
}

.search-no-results-actions .button:hover {
	background: #0052a3;
	color: #fff;
}

.search-no-results-actions .button-secondary {
	background: #f0f0f0;
	color: #333;
}

.search-no-results-actions .button-secondary:hover {
	background: #e0e0e0;
	color: #333;
}

/* Пагинация */
.pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 50px;
	padding: 0;
	list-style: none;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 15px;
	color: #333;
	text-decoration: none;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
	background: #0066cc;
	color: #fff;
	border-color: #0066cc;
}

.pagination .page-numbers.current {
	background: #0066cc;
	color: #fff;
	border-color: #0066cc;
}

.pagination .page-numbers.dots {
	border: none;
	cursor: default;
}

.pagination .page-numbers.dots:hover {
	background: transparent;
	color: #333;
}

/* ============================================
   Page Template
   ============================================ */

.page-content {
	padding-top: 0;
}

.page-article {
	background: #fff;
}

.page-header {
	padding: 50px 0 30px;
	background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
	border-bottom: 1px solid #e0e0e0;
}

.page-title {
	font-size: 42px;
	font-weight: bold;
	color: #1a1a1a;
	margin: 0;
	line-height: 1.2;
}

.page-content-wrapper {
	padding: 50px 0;
}

.page-content-inner {
	/*max-width: 900px;*/
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.8;
	color: #333;
}

.page-content-inner p {
	margin-bottom: 20px;
}

.page-content-inner h1,
.page-content-inner h2,
.page-content-inner h3,
.page-content-inner h4,
.page-content-inner h5,
.page-content-inner h6 {
	margin-top: 40px;
	margin-bottom: 20px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.3;
}

.page-content-inner h2 {
	font-size: 32px;
}

.page-content-inner h3 {
	font-size: 26px;
}

.page-content-inner h4 {
	font-size: 22px;
}

.page-content-inner ul,
.page-content-inner ol {
	margin-bottom: 20px;
	padding-left: 30px;
}

.page-content-inner li {
	margin-bottom: 10px;
}

.page-content-inner a {
	color: #0066cc;
	text-decoration: none;
}

.page-content-inner a:hover {
	text-decoration: underline;
}

.page-content-inner img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 20px 0;
}

.page-content-inner blockquote {
	margin: 30px 0;
	padding: 20px 30px;
	border-left: 4px solid #0066cc;
	background: #f5f7fa;
	font-style: italic;
	color: #666;
}

.page-content-inner table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}

.page-content-inner table th,
.page-content-inner table td {
	padding: 12px;
	border: 1px solid #e0e0e0;
	text-align: left;
}

.page-content-inner table th {
	background: #f5f7fa;
	font-weight: 600;
}

.page-links {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid #e0e0e0;
}

.page-links a {
	color: #0066cc;
	text-decoration: none;
	margin: 0 5px;
}

.page-links a:hover {
	text-decoration: underline;
}

.page-comments-section {
	padding: 50px 0;
	background-color: #f8f9fa;
	border-top: 1px solid #e0e0e0;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
	.header-container {
		flex-wrap: nowrap;
		gap: 15px;
		justify-content: space-between;
	}

	.header-left {
		flex: 0 0 auto;
	}

	.header-center {
		flex: 0 0 auto;
		position: relative;
		width: auto;
	}

	.menu-toggle {
		display: flex;
	}

	.site-header {
		position: relative;
	}

	.header-wrapper {
		position: relative;
	}

	.main-navigation {
		display: none;
		position: fixed;
		top: 70px;
		left: 0;
		right: 0;
		width: 100%;
		background: #fff;
		border-top: 1px solid #e0e0e0;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
		margin: 0;
		padding: 0;
		z-index: 1000;
		max-height: calc(100vh - 70px);
		overflow-y: auto;
	}

	.main-navigation.active {
		display: block;
	}

	.main-navigation ul {
		flex-direction: column;
		gap: 0;
		align-items: stretch;
		width: 100%;
		padding: 0;
		margin: 0;
	}

	.main-navigation li {
		border-bottom: 1px solid #f0f0f0;
		width: 100%;
	}

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

	.main-navigation a {
		display: block;
		padding: 15px 20px;
		width: 100%;
	}

	.header-right {
		display: none;
	}

	.hero-title {
		font-size: 32px;
	}

	.hero-description {
		font-size: 18px;
	}

	.search-wrapper {
		flex-direction: column;
		border-radius: 12px;
	}

	.main-search-submit {
		border-radius: 12px;
	}

	.channels-grid {
		grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
		gap: 20px;
	}

	.categories-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.category-card {
		padding: 10px 12px;
	}

	.category-name {
		font-size: 14px;
	}

	.category-count {
		font-size: 11px;
	}

	.channel-single-wrapper {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.channel-sidebar-column {
		position: static;
		order: -1;
	}

	.channel-params-card {
		position: static;
	}

	.category-archive-title {
		font-size: 28px;
	}

	.category-archive-emoji {
		font-size: 32px;
	}

	.channel-archive-title {
		font-size: 28px;
	}

	.channel-archive-description {
		font-size: 16px;
	}

	.category-archive-description {
		font-size: 16px;
	}

	.search-results-title {
		font-size: 28px;
	}

	.search-result-item {
		flex-direction: column;
		padding: 20px;
	}

	.search-result-thumbnail {
		width: 100%;
		height: 200px;
	}

	.search-result-title {
		font-size: 20px;
	}

	.search-no-results-title {
		font-size: 24px;
	}

	.search-no-results-text {
		font-size: 16px;
	}

	.search-no-results-actions {
		flex-direction: column;
		align-items: center;
	}

	.search-no-results-actions .button {
		width: 100%;
		max-width: 300px;
	}

	.comment-form {
		grid-template-columns: 1fr;
	}

	.comment-list .children {
		padding-left: 20px;
	}

	.comment-body {
		flex-direction: column;
		padding: 20px;
	}

	.comment-author-avatar {
		width: 40px;
		height: 40px;
		align-self: flex-start;
	}

	.comment-respond {
		padding: 25px 20px;
	}

	.comment-reply-title {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.page-title {
		font-size: 28px;
	}

	.page-content-inner h2 {
		font-size: 24px;
	}

	.page-content-inner h3 {
		font-size: 20px;
	}

	.pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		padding: 0 12px;
		font-size: 13px;
	}
}

@media (max-width: 380px) {
	.categories-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.newsletter-input-wrapper {
		flex-direction: column;
	}

	.footer-content {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.channel-single-title {
		font-size: 24px;
	}

	.channel-params-card {
		padding: 20px;
	}

	.category-archive-title {
		font-size: 32px;
	}

	.category-archive-emoji {
		font-size: 36px;
	}

	.page-title {
		font-size: 32px;
	}

	.page-content-inner {
		font-size: 15px;
	}

	.page-content-inner h2 {
		font-size: 26px;
	}

	.page-content-inner h3 {
		font-size: 22px;
	}
}
