/*
Theme Name: KGZT Material Final
Author: Gemini Partner
Version: 3.4
Text Domain: kgzt
*/

/* 1. ПЕРЕМЕННЫЕ */
:root {
	--bg-main: #ffffff;
	--separator: rgb(248, 247, 252);
	--text-dark: #222222;
	--text-light: #555555;
	--accent: #0088cc;
	--fira: 'Fira Sans', sans-serif;
	--lora: 'Lora', serif;
	--primary-font: 'Fira Sans', sans-serif;
	--secondary-font: 'Lora', serif;
}

* { box-sizing: border-box; }

body {
	background-color: var(--bg-main);
	margin: 0;
	padding: 0;
	font-family: var(--lora);
	font-size: 16.8px;
	line-height: 26.88px;
	color: var(--text-dark);
	-webkit-font-smoothing: antialiased;
}

/* 2. ДОСТУПНОСТЬ */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: 0;
	top: -60px;
	z-index: 100000;
	background: var(--accent);
	color: #fff;
	padding: 10px 18px;
	font-family: var(--fira);
	font-size: 14px;
	text-decoration: none;
	border-radius: 0 0 4px 0;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 0;
	color: #fff;
}

/* 3. ТИПОГРАФИКА */
h1, h2, h3, h4, h5, h6,
.site-logo,
.nav-links a,
.search-input-full,
.sidebar-title,
.sidebar-post-title,
.main-pagination a,
.main-pagination span,
.tag-link,
.widget-title {
	font-family: var(--fira) !important;
	font-weight: 600 !important;
}

.post-date { font-size: 0.8em; }

/* 4. СЕТКА */
.main-layout {
	display: grid;
	grid-template-columns: minmax(0, 750px) 320px;
	max-width: 1140px;
	margin: 40px auto;
	gap: 70px;
	padding: 0 20px;
}

.content-area { min-width: 0; }
.sidebar-area { width: 320px; }

/* 5. ХИДЕР И ВЫЕЗЖАЮЩИЙ ПОИСК */
.main-header {
	border-bottom: 1px solid var(--separator);
	height: 70px;
	display: flex;
	align-items: center;
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: rgb(229, 246, 255);
}

.header-content-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
	position: relative;
}

.site-logo { font-size: 24px; text-decoration: none; color: #000; text-transform: uppercase; }
.nav-links { display: flex; list-style: none; gap: 25px; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: #000; text-transform: uppercase; font-size: 14px; }

#search-overlay {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 70px;
	background: #fff;
	display: none;
	align-items: center;
	z-index: 1100;
	padding: 0 20px;
}
#search-overlay.is-active { display: flex; }

.search-form-fullscreen {
	display: flex; align-items: center;
	width: 100%; max-width: 1140px; margin: 0 auto;
}

.search-input-full {
	flex-grow: 1; border: none; font-size: 18px; padding: 10px 20px; outline: none;
}

.search-trigger, .search-close, .menu-toggle {
	background: none; border: none; cursor: pointer;
	color: var(--text-dark); display: flex; align-items: center;
}
.menu-toggle { display: none; }

/* 6. ТЕЛЕГРАМ-БАР */
.telegram-bar {
	background-color: #f7fcff;
	border-bottom: 1px solid #d1e7ff;
	border-top: 1px solid #d1e7ff;
	padding: 10px 15px;
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.telegram-bar a {
	color: #0088cc;
	font-weight: 400;
	text-decoration: none;
	margin-left: 5px;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s;
}

.telegram-bar a:hover { border-bottom-color: #0088cc; }

/* 7. HERO-СЕКЦИЯ ГЛАВНОЙ */
.floor-hero {
	max-width: 1140px;
	margin: 30px auto 0;
	padding: 0 20px;
}

.hero-grid-new {
	display: grid;
	grid-template-columns: 1.8fr 1fr;
	gap: 30px;
	align-items: start;
}

/* Левая часть: Главная новость */
.hero-main-featured {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	height: 500px;
}

.hero-img-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.hero-main-featured img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.hero-main-featured:hover img {
	transform: scale(1.03);
}

.hero-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 40px 30px;
	background: linear-gradient(transparent, rgba(0,0,0,0.85));
	color: #fff;
}

.hero-overlay h1 {
	font-family: var(--fira);
	font-size: 32px;
	line-height: 1.2;
	margin: 10px 0 0;
	color: #fff;
}

.category-badge {
	background: var(--accent);
	color: #fff;
	padding: 4px 12px;
	font-size: 12px;
	text-transform: uppercase;
	font-family: var(--fira);
	border-radius: 4px;
}

/* Правая часть: Таймлайн (Свежее) */
.hero-timeline {
	background: rgb(247, 252, 255);
	border: 1px solid var(--separator);
	border-radius: 12px;
	padding: 25px;
	height: 500px;
	display: flex;
	flex-direction: column;
	overflow: hidden !important;
}

.timeline-title {
	margin-top: 0;
	margin-bottom: 25px;
	font-size: 18px;
	font-family: var(--fira);
	letter-spacing: -0.3px;
}

.timeline-container {
	flex-grow: 1;
	overflow: hidden !important;
	display: flex;
	flex-direction: column;
}

/* Элемент списка новостей */
.timeline-item {
	position: relative;
	padding-left: 25px;
	padding-bottom: 22px;
	min-height: 65px;
}

/* Линия таймлайна */
.timeline-item::before {
	content: '';
	position: absolute;
	left: 5px;
	top: 15px;
	bottom: 0;
	width: 2px;
	background: #f0f4f7;
}

.timeline-item:last-child::before { display: none; }

/* Кружок (узелок) */
.timeline-node {
	position: absolute;
	left: 0;
	top: 3px;
	width: 12px;
	height: 12px;
	background: #fff;
	border: 1px solid var(--accent);
	border-radius: 50%;
	z-index: 2;
	box-sizing: border-box;
}

.timeline-content {
	font-family: var(--fira);
	font-size: 15.5px;
	line-height: 1.4;
}

.timeline-content a {
	text-decoration: none;
	color: var(--text-dark);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-weight: 500;
	transition: color 0.2s ease;
}

.timeline-content a:hover {
	color: var(--accent);
}

/* 8. ЛЕНТА ГЛАВНОЙ И АРХИВОВ */
.post-item-list {
	display: flex;
	gap: 25px;
	padding-bottom: 25px;
	margin-bottom: 25px;
	border-bottom: 1px solid #f0f0f0;
	align-items: flex-start;
	clear: both;
}

.post-item-image {
	flex: 0 0 200px;
	height: 155px;
	overflow: hidden;
	border-radius: 4px;
}
.post-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.post-item-content h2 { margin: 0 0 10px 0; font-size: 24px; line-height: 1.2; }

/* Выделенные посты и бейджи */
.is-highlighted-post {
	padding-left: 20px !important;
	padding-top: 15px !important;
	padding-bottom: 20px !important;
	margin-left: -20px;
	margin-bottom: 30px !important;
	border-radius: 4px;
}

.type-important {
	background: linear-gradient(to right, rgba(0, 136, 204, 0.08), transparent) !important;
	border-left: 4px solid #0088cc !important;
}

.badge-important {
	background: #0088cc;
	color: #fff;
	font-family: var(--fira);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 3px;
	display: inline-block;
	margin-bottom: 5px;
}

.type-fraud {
	background: linear-gradient(to right, rgba(255, 23, 68, 0.08), transparent) !important;
	border-left: 4px solid #ff1744 !important;
}

.badge-fraud {
	background: #ff1744;
	color: #fff;
	font-family: var(--fira);
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	padding: 2px 7px;
	border-radius: 3px;
	display: inline-block;
	margin-bottom: 5px;
}

/* 9. ТЕГИ-КНОПКИ */
.post-tags-section {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--separator);
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tag-link {
	background-color: rgb(248, 247, 252) !important;
	color: var(--text-dark) !important;
	padding: 8px 18px !important;
	border-radius: 6px !important;
	text-decoration: none !important;
	font-size: 13px !important;
	display: inline-flex !important;
	align-items: center;
	margin: 5px 5px 0 0;
	border: 1px solid rgb(235, 235, 245);
	transition: all 0.2s ease;
}

.tag-link:hover {
	background-color: var(--accent) !important;
	color: #ffffff !important;
	border-color: var(--accent);
}

/* 10. СТРАНИЦА ЗАПИСИ (SINGLE) */
.news-post {
	margin-bottom: 40px;
	max-width: 100%;
}

.entry-title {
	font-size: 2.2rem;
	line-height: 1.2;
	margin-bottom: 20px;
	font-family: var(--fira);
	font-weight: 700;
}

.post-meta, .post-date {
	color: #888;
	font-family: var(--fira);
	font-size: 12px;
	margin-bottom: 10px;
}

.breadcrumb {
	font-size: 11px;
	color: #ccc;
}

.breadcrumb a {
	font-size: 11px;
	font-weight: 300;
	color: var(--accent);
}

.post-main-image {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
	margin-bottom: 25px;
}

.entry-content {
	font-size: 1.05rem;
	line-height: 1.7;
	color: #333;
}

/* SEO-лид: первый абзац */
.entry-content p:first-of-type {
	font-weight: 600;
	font-size: 0.9em;
	color: #1f201d;
	line-height: 1.5;
	font-family: var(--lora);
	margin-bottom: 20px;
}

/* Картинки в тексте: контейнер сжимается до размеров картинки */
.post-inline-image {
	position: relative;
	margin: 30px 0;
	display: inline-block;
	line-height: 0;
}

.post-inline-image img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

/* Подпись-плашка внутри картинки.
   Раньше white-space:nowrap не давал длинным подписям
   переноситься — они уезжали за край экрана. */
.image-caption {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	color: #fff;
	padding: 6px 12px;
	border-radius: 6px;
	font-family: var(--fira);
	font-size: 11px;
	font-style: italic;
	line-height: 1.4;
	text-align: right;
	max-width: 80%;
	overflow-wrap: break-word;
	pointer-events: none;
	z-index: 10;
	opacity: 0.85;
	transition: opacity 0.3s ease;
}

.post-inline-image:hover .image-caption {
	opacity: 1;
}

.cap-sep {
	opacity: 0.5;
	margin: 0 4px;
	font-weight: 300;
}

.img-source {
	opacity: 0.9;
	margin-left: 5px;
}

.cap-text {
	display: inline-block;
}

figure {
	margin-bottom: 10px !important;
	margin-top: 10px !important;
}

/* 11. БЛОК ПОДЕЛИТЬСЯ (SHARE BOX) */
.share-box {
	margin: 40px 0;
	padding: 25px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.share-title {
	font-family: var(--fira);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 12px;
	color: #64748b;
	letter-spacing: 1px;
}

.share-buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 8px;
	font-family: var(--fira);
	font-size: 14px;
	font-weight: 600;
	color: #fff !important;
	text-decoration: none !important;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
}

.share-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.share-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.share-btn.tg { background-color: #229ED9; }
.share-btn.vk { background-color: #0077FF; }
.share-btn.copy { background-color: #475569; }

/* 12. БЛОК РЕКОМЕНДАЦИЙ (RELATED POSTS) */
.related-posts {
	margin-top: 50px;
	padding-top: 30px;
	border-top: 1px solid #eee;
}

.related-title {
	font-family: var(--fira);
	font-size: 18px;
	text-transform: uppercase;
	margin-bottom: 20px;
	color: #222;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
}

.related-item a {
	text-decoration: none !important;
	color: inherit;
	display: block;
}

.related-thumb img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 12px;
	transition: transform 0.3s ease;
}

.related-post-title {
	font-family: var(--fira);
	font-size: 15px;
	line-height: 1.4;
	font-weight: 600;
	margin: 0;
	color: #333;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.related-item:hover .related-thumb img {
	transform: translateY(-5px);
}

.related-item:hover .related-post-title {
	color: var(--accent);
}

/* 13. САЙДБАР */
.sidebar-widget { margin-bottom: 45px; }
.sidebar-title {
	border-bottom: 2px solid var(--accent);
	display: inline-block;
	margin-bottom: 20px;
	font-size: 16px;
	text-transform: uppercase;
}
.sidebar-small-post { display: flex; gap: 15px; text-decoration: none; color: inherit; margin-bottom: 20px; }
.sidebar-thumb { flex-shrink: 0; width: 65px; height: 65px; border-radius: 4px; overflow: hidden; }
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover !important; }

.sidebar-post-title { font-size: 0.9em; line-height: 1.3em; }

/* 14. ПАГИНАЦИЯ */
.main-pagination {
	margin: 40px 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.main-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 15px;
	background: #fff;
	border: 1px solid #e1eff7;
	color: #333;
	font-family: var(--fira);
	font-size: 15px;
	transition: all 0.2s ease;
	text-decoration: none;
	line-height: 1;
}

.main-pagination a.page-numbers:hover {
	background-color: #f0f7ff;
	border-color: var(--accent);
	color: var(--accent);
}

.main-pagination .current {
	background-color: var(--accent) !important;
	color: #fff !important;
	border-color: var(--accent) !important;
	font-weight: 700;
	cursor: default;
}

.main-pagination .prev,
.main-pagination .next {
	font-weight: 600;
}

/* 15. КНОПКА ВВЕРХ */
#backToTop {
	display: none;
	position: fixed;
	right: 20px; top: 50%;
	transform: translateY(-50%);
	z-index: 999;
	width: 45px; height: 45px;
	background-color: #32325d;
	color: white;
	border-radius: 12px;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
}

#backToTop::before {
	content: '';
	display: block;
	width: 10px;
	height: 10px;
	border-top: 3px solid #fff;
	border-left: 3px solid #fff;
	transform: rotate(45deg);
	margin: 6px auto 0;
}

#backToTop:hover {
	background-color: #d4af37;
	transform: translateY(-50%) scale(1.1);
}

/* 16. МОБИЛЬНАЯ ШТОРКА (DRAWER) */
.mobile-drawer {
	position: fixed;
	top: 0;
	left: -320px;
	width: 300px;
	height: 100%;
	background: #fff;
	z-index: 9999;
	transition: all 0.3s ease;
	padding: 30px 20px;
	box-shadow: 5px 0 15px rgba(0,0,0,0.1);
}

.mobile-drawer.is-active { left: 0; }

.mobile-drawer-overlay {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.5);
	display: none;
	z-index: 9998;
}

.mobile-drawer-overlay.is-active { display: block; }

.drawer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	border-bottom: 1px solid #eee;
	padding-bottom: 15px;
}

.mobile-nav-links {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-nav-links li { margin-bottom: 20px; }

.mobile-nav-links a {
	text-decoration: none;
	color: #000;
	font-family: var(--fira);
	font-weight: 600;
	font-size: 18px;
}

/* 17. ФУТЕР */
.site-footer {
	background-color: rgb(226, 237, 243);
	padding: 60px 0;
	margin-top: 60px;
	color: var(--text-dark);
}

.footer-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
	gap: 60px;
}

.footer-left .footer-logo { font-size: 28px; font-family: var(--fira); font-weight: 600; text-decoration: none; color: #000; }
.footer-description { margin: 20px 0; font-size: 15px; color: var(--text-light); }

.footer-legal-blocks { margin-top: 30px; }
.legal-item { font-size: 14px; margin: 10px 0; }
.tiny-text { font-size: 14px; color: var(--text-light); line-height: 1.4; }

.footer-separator { height: 1px; background: rgba(0,0,0,0.1); margin: 15px 0; }

.footer-copyright-block { font-size: 13px; color: var(--text-light); }
.footer-copyright-block a { color: inherit; text-decoration: underline; }

.footer-socials {
	display: flex;
	gap: 15px;
	margin: 25px 0;
	align-items: center;
}

.footer-socials a {
	display: inline-block;
	width: 32px;
	height: 32px;
	line-height: 1;
}

.footer-socials svg {
	width: 32px !important;
	height: 32px !important;
	display: block;
	fill: #222222 !important;
	transition: fill 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover svg {
	fill: var(--accent) !important;
	transform: translateY(-3px);
}

.footer-counters {
	margin: 25px 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.yandex-counter {
	min-height: 31px;
	display: block;
	clear: both;
}

.partner-label {
	font-family: var(--fira);
	font-weight: 600;
	font-size: 14px;
	margin: 0;
	color: var(--text-dark);
}

/* 18. СТРАНИЦЫ АРХИВОВ */
.page-header { padding-bottom: 10px; margin-top: 0; }
.page-title { margin: 0; padding-bottom: 5px; letter-spacing: -0.5px; }

.archive-description {
	max-width: 750px;
	margin-bottom: 30px;
	line-height: 1.5;
	font-family: var(--lora);
}

/* Плавный переход для всех ссылок */
a { transition: color 0.2s ease-in-out; }

/* 19. МЕДИА: ФОТО, ВИДЕО, ГАЛЕРЕИ */
.entry-content img, .wp-block-image img, .wp-block-video video {
	max-width: 100% !important;
	height: auto !important;
	border-radius: 12px;
	display: block;
	margin: 0 auto 10px;
}

.wp-block-embed, .wp-block-video { margin: 30px 0; }

.wp-block-embed__wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 12px;
}

.wp-block-embed__wrapper iframe {
	position: absolute;
	top: 0; left: 0;
	width: 100%; height: 100%;
}

figcaption, .wp-block-image figcaption, .wp-block-video figcaption {
	font-family: var(--lora);
	font-size: 13px;
	color: #8898aa;
	text-align: center;
	margin: 12px 0 10px 0;
	font-style: italic;
}

.wp-block-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin: 30px 0 !important;
	padding: 0 !important;
}

.wp-block-gallery .wp-block-image {
	margin: 0 !important;
	flex-grow: 1;
	width: calc(33.33% - 15px);
	position: relative;
}

.wp-block-gallery figure img {
	width: 100% !important;
	height: 250px !important;
	object-fit: cover !important;
	border-radius: 12px;
	transition: transform 0.3s ease;
}

.wp-block-gallery .wp-block-image figcaption {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	margin: 0 !important;
	padding: 10px 10px 10px !important;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
	color: #ffffff !important;
	opacity: 0;
	transition: opacity 0.3s ease;
	border-radius: 0 0 12px 12px;
}

.wp-block-gallery .wp-block-image:hover figcaption { opacity: 1; }

/* 20. ТАБЛИЦЫ
   Тематические правила «подиума» и пометок DNF/DNS/OTL удалены:
   они раскрашивали первые три строки ЛЮБОЙ таблицы в золотой,
   серебряный и бронзовый цвета — на новостном сайте это ломало
   все статистические таблицы. */
.wp-block-table {
	border-radius: 12px;
	border: 1px solid #e0e6ed;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	margin: 35px 0;
	background: #fff;
	display: block;
	overflow-x: auto;
	font-family: var(--fira);
}

.wp-block-table table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.wp-block-table th {
	background-color: #f8fafd;
	color: #8898aa;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 11px;
	padding: 16px 20px;
	text-align: left;
	border-bottom: 1px solid #e0e6ed;
}

.wp-block-table td {
	padding: 14px 20px;
	border-bottom: 1px solid #f0f2f5;
	font-size: 15px;
	color: #32325d;
}

/* ============================================================
   21. АДАПТИВНОСТЬ (все медиазапросы — в конце файла,
   чтобы базовые стили их не перебивали)
   ============================================================ */
@media (max-width: 1024px) {
	.main-layout {
		grid-template-columns: 1fr;
		max-width: 800px;
	}
	.sidebar-area {
		width: 100%;
	}
}

@media (max-width: 900px) {
	.hero-grid-new {
		grid-template-columns: 1fr;
	}
	.hero-main-featured, .hero-timeline {
		height: auto;
		min-height: 350px;
		overflow: visible !important;
	}
	.timeline-container { overflow: visible !important; }
	.hero-overlay h1 { font-size: 22px; }
	.footer-container { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
	.menu-toggle { display: flex; }
	.desktop-nav { display: none; }

	.post-item-list { flex-direction: column; }
	.post-item-image {
		width: 100%;
		height: 200px;
		flex: 0 0 auto;
	}

	.wp-block-gallery .wp-block-image { width: calc(50% - 15px); }
	.wp-block-gallery figure img { height: 180px !important; }

	.entry-content p:first-of-type {
		font-size: 1.05em;
		line-height: 1.4;
	}

	.related-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.related-thumb img { height: 180px; }
	.related-post-title { font-size: 18px; }
}

@media (max-width: 600px) {
	.telegram-bar { font-size: 13px; padding: 12px; }
	.entry-title { font-size: 1.8rem; }
	.share-buttons { width: 100%; }
	.share-btn { flex: 1; justify-content: center; padding: 12px; }
}

@media (max-width: 480px) {
	.wp-block-gallery .wp-block-image { width: 100%; }
}
