.page-wrapper { min-width: 320px; box-sizing: border-box; }
body.home .page-inner-container,
body.home .page-col-full,
body.archive .page-col-full,
body.category .page-col-full
 {
		max-width: 100%;
}

@media only screen and (max-width: 1520px) {
	.featured-large-title { font-size: 32px; }
}
@media (max-width: 1399px) {
	.latest-posts-layout { grid-template-areas: "featured column" "grid grid"; grid-template-columns: 1fr 1fr }
	.latest-posts-featured { grid-area: featured; max-width: 100% !important; width: 100% !important; }
	.latest-posts-grid { grid-area: grid;  max-width: 100% !important; width: 100% !important; grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr; }
	.front-faq-column { grid-area: column; max-width: 100% !important; width: 100% !important; }
	.front-faq-column {
		padding: 0px;
	}
	.front-faq-column-list {
		padding: 0rem 1.25rem 1.25rem 1.25rem;
	}
	.front-faq-column-title {
		margin: 0;
		padding: 1.25rem 1rem;
	}
	.latest-posts-grid .page-card {
		height: 300px;
	}
}
@media only screen and (max-width: 1340px) {
	body.home .page-row { display: block; }
	.page-col-featured { width: 40%; float: left; box-sizing: border-box; }
	.page-col { width: 60%; float: left; padding-right: 0; }
	.page-col-sidebar { width: 100%; float: left; }
	.page-col-sidebar .sidebar-content { max-width: 100%; margin: 0 auto; }
	
	.page-grid { grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); }
	
	/* blog home */
	.blog-card-title { font-size: 18px; }
	.blog-card-excerpt { font-size: 14px; }
	
	/* single */
	body.single .page-row { margin-top: 0; }
	.header-single { display: block; aspect-ratio: 0; }
	.header-single-content { background: none; box-shadow: none; padding-bottom: 20px; backdrop-filter: none; -webkit-backdrop-filter: none; }
	.header-single-thumb { position: static; width: 100%; height: 80%; border-radius: 30px; }
	.header-single-container {height: 20%;}
	.header-single-title { font-size: 32px; }	
}
@media only screen and (max-width: 1340px) and (min-width: 1024px) {
	/* featured block */
	.featured-large-title { font-size: 24px; }
	/* highlights block */
	.highlights-card-inner { padding-left: 0; }
	.highlights-card-left { float: none; margin-left: 0; }
	.highlights-card-thumb { width: 100%; }  
	.highlights-card-title { width: 100%; margin-top: 15px; }
}
@media only screen and (max-width: 1200px) {
	.page-grid-center { grid-template-columns: repeat(2, 1fr); }
	/* Latest posts layout - на экранах меньше 1200px переключаемся на вертикальное расположение */
	body.home .page-inner-container,
	body.home .page-col-full {
		max-width: 100%;
	}
	.page-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 1rem;
	}
	#header-nav {
		display: none !important;
	}
}
@media only screen and (max-width: 1023px) {
	.page-col-featured { width: 100%; padding-right: 0; }
	.page-col { width: 100%; padding-right: 0; }
	.page-col-sidebar { width: 100%; }
	/* featured block */
	.featured-card { aspect-ratio: 3/2; }
	
	body.home .page-row,
	body.blog .page-row,
	body.archive .page-row,
	body.category .page-row,
	body.tag .page-row,
	body.single .page-row,
	body.search .page-row,
	body.page .page-row,
	body.error404 .page-row	{ display: block; }
	.page-col-center { width: 100%; padding-right: 0; }
	.page-col-sidebar-center { width: 100%; }
	.page-col-sidebar-center .sidebar-content { max-width: 100%; margin: 0 auto; }
	.page-grid-center { grid-template-columns: repeat(2, 1fr); gap: 15px; }
	
	body.home.paged .page-col-featured { display: none; }
}
@media (max-width: 992px) {
	.latest-posts-layout {
        grid-template-areas:
        "featured featured"
        "column column"
		"grid grid";
        grid-template-columns: 1fr 1fr;
    }
	.latest-posts-featured .page-card {
		height: 535px;
	}
	.featured-large-title a {
		font-size: 1.25rem;
	}
	.latest-posts-grid {
		grid-template-columns: 1fr;
	}
	.front-faq-column-list, .front-faq-column-item {
		flex: auto;
	}
}
@media only screen and (max-width: 719px) {
	/* Latest posts layout - мобильные */
	.latest-posts-grid { grid-template-columns: 1fr; grid-template-rows: repeat(2, auto); }
	.latest-posts-featured .featured-card {  }
	.latest-posts-featured .featured-large-title { font-size: 28px; }
	.latest-posts-grid .featured-card-small { height: auto; }
	.featured-card-title-small { font-size: 18px; }
	.grid { width: 100%; margin: 0 0 10px; }
	.entry { font-size: 15px; }
	.entry h1 { font-size: 30px; letter-spacing: -0.7px; }
	.entry h2 { font-size: 26px; letter-spacing: -0.5px; }
	.entry h3 { font-size: 24px; letter-spacing: -0.3px; }
	.entry h4 { font-size: 22px; letter-spacing: -0.3px; }
	.entry h5 { font-size: 18px; }
	.entry h6 { font-size: 16px; text-transform: uppercase; }
	.entry-header .entry-title { font-size: 28px; }
	
	.site-title { padding: 10px 0; margin-left: 20px; }
	.site-title a { flex-wrap: wrap; gap: 8px; }
	.site-title a img { max-height: 40px; }
	.site-description { display: none; }
	
	.page-wrapper { padding: 0; }
	.page-inner {
		padding-top: 7.5rem;
	}
	.page-sidebar {
		display: none;
	}
	/* Скрываем theme-toggle и language-switcher в sidebar на мобильных */
	.page-sidebar #theme-toggle { display: none; }
	.page-sidebar #language-switcher { display: none; }
	
	/* Размещаем theme-toggle внизу menu-overlay-content (position оставляем absolute из style.css, чтобы панель выезжала справа) */
	.menu-overlay-content {
		display: flex;
		flex-direction: column;
	}
	
	.menu-overlay-content .main-menu {
		flex: 1;
		overflow-y: auto;
	}
	
	/* Контейнер для кнопок в menu-overlay-content */
	.menu-overlay-content .menu-overlay__buttons {
		display: flex;
		flex-direction: row-reverse;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 20px;
		margin-top: auto;
	}
	
	/* Размещаем language-switcher в menu-overlay__buttons */
	.menu-overlay__buttons #language-switcher {
		position: static;
		display: block;
		width: fit-content;
		padding: 8px;
		border-radius: 16px;
		margin: 0;
	}
	
	.menu-overlay__buttons #language-switcher .language-links {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 6px;
	}
	
	.menu-overlay__buttons #language-switcher .language-link {
		padding: 8px 12px;
		min-height: 36px;
	}
	
	.menu-overlay__buttons #language-switcher .language-name {
		display: inline;
		margin-left: 4px;
	}
	
	/* Размещаем theme-toggle в menu-overlay__buttons */
	.menu-overlay__buttons #theme-toggle {
		position: static;
		display: block;
		width: fit-content;
		padding: 12px;
		border-radius: 16px;
		margin: 0;
	}
	
	.menu-overlay__buttons #theme-toggle i {
		top: 17px;
		right: 17px;
	}
	
	.canvas-bottom { display: none; }
	.canvas-wrapper { padding: 0; top: 0!important; }
	.canvas-inner { border-radius: 0; border: 0; }
	.canvas-inner:after { display: none; }
	
	.page-sidebar .social-links { margin: 10px 20px 0; width: auto; }
	.page-sidebar .social-links li { float: left; width: auto; margin-right: 6px; }
	.page-sidebar .social-links .social-tooltip { margin: 0; font-size: 16px; padding: 8px; }
	.page-sidebar .social-links .social-tooltip:hover:after,
	.page-sidebar .social-links .social-tooltip:hover:before { display: none; }
	
	.sharrre-header { margin: 10px 20px 0; width: auto; }
	.sharrre-header .sharrre { float: left; width: auto; margin-right: 6px; }
	.sharrre-header .sharrre .box { margin: 0; font-size: 16px; padding: 8px; }
	.sharrre-header .sharrre .box .share { height: 16px; }
	.sharrre-header .sharrre .box .share i:before { position: relative; top: -2px; }
	.sharrre-footer .sharrre .share span { display: none; }
	
	.featured-card { aspect-ratio: 5/4; }
	.featured-large-title { font-size: 22px; }
	.featured-card-avatar,
	.featured-card-divider { display: none; }
	.header-single {
		height: fit-content;
	}
	.header-single-thumb { height: 400px; }
	.header-single-title { font-size: 22px; }
	
	#footer { margin: 0; }
	#footer .pad { padding: 0; }
	#back-to-top { margin-left: -20px; width: 40px; height: 20px; }
	#back-to-top i { font-size: 26px; }
}
@media (max-width: 575px) {
	.header-single-thumb { height: 250px; }
}
@media only screen and (max-width: 479px) {
	/* featured block */
	.header-single-thumb { height: 200px; }
	.featured-card { aspect-ratio: 4/5; }
	/* highlights block */
	.highlights-card-inner { padding-left: 0; }
	.highlights-card-left { float: none; margin-left: 0; }
	.highlights-card-thumb { width: 100%; }  
	.highlights-card-title { width: 100%; margin-top: 15px; }
	
	.page-card-latest .themeform.searchform { position: static; padding: 0 30px 20px; }
	
	.header-single-content { padding-left: 20px; padding-right: 20px; }
	.header-single-meta { font-size: 10px; gap: 12px; }
	.header-single-meta .header-single-date-published,
	.header-single-meta .header-single-date-updated { flex-direction: column; align-items: flex-start; gap: 4px; }
	.header-single-meta .meta-label { font-size: 9px; }
	
	.entry, 
	.entry-header, 
	.entry-footer { padding-left: 20px; padding-right: 20px; }
	.entry-header { padding-top: 20px; }
	.entry-header .entry-title { font-size: 22px; }
	
	.page-grid-center { grid-template-columns: 1fr; gap: 15px; }
	
	.sharrre-footer .sharrre .count { display: none; }
	
	#footer-bottom { font-size: 13px; }
	
}

