/* Все правила начинаются с "html body", чтобы перебить глобальные стили Elementor (Site Settings). */

html body .site-blog {
	--site-blog-accent: var(--e-global-color-5046f92, #1872e6);
	--site-blog-accent-dark: var(--e-global-color-fe452c7, #1151a5);
	--site-blog-heading: var(--e-global-color-secondary, #42424d);
	--site-blog-text: var(--e-global-color-text, #50505e);
	--site-blog-surface: #fff;
	--site-blog-soft: var(--e-global-color-6e54641, #f9f9f9);
	--site-blog-border: var(--e-global-color-dd29169, #e5e9ee);
	color: var(--site-blog-text);
	font-family: var(--e-global-typography-text-font-family, "Poppins"), sans-serif;
}

html body .site-blog *,
html body .site-blog *::before,
html body .site-blog *::after {
	box-sizing: border-box;
}

html body .site-blog a,
html body .site-blog a:hover {
	font-family: inherit;
	line-height: inherit;
}

html body .site-blog__container {
	width: min(100% - 48px, 1240px);
	margin-inline: auto;
}

html body .site-blog__hero {
	padding: clamp(72px, 9vw, 132px) 0;
	background:
		radial-gradient(circle at 82% 25%, rgba(90, 154, 238, 0.28), transparent 30%),
		linear-gradient(135deg, #072042 0%, #1151a5 100%);
	color: #fff;
}

html body .site-blog__eyebrow {
	margin: 0 0 16px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

html body .site-blog__title {
	margin: 0;
	color: #fff;
	font-family: var(--e-global-typography-primary-font-family, "Raleway"), sans-serif;
	font-size: clamp(44px, 7vw, 76px);
	font-weight: 500;
	line-height: 1.08;
}

html body .site-blog__lead {
	max-width: 650px;
	margin: 20px 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(17px, 2vw, 20px);
}

html body .site-blog__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	gap: clamp(36px, 5vw, 72px);
	align-items: start;
	padding-block: clamp(56px, 7vw, 96px);
}

/* Колонки Elementor: лента занимает всё место, сайдбар фиксированной ширины. */
html body .e-con:has(> .e-con-inner > .elementor-widget-shortcode .site-blog__posts),
html body .e-con:has(> .elementor-widget-shortcode .site-blog__posts) {
	--width: auto;
	flex: 1 1 0;
	min-width: 0;
}

html body .e-con:has(> .e-con-inner > .elementor-widget-shortcode .site-blog__sidebar),
html body .e-con:has(> .elementor-widget-shortcode .site-blog__sidebar) {
	--width: 380px;
	flex: 0 0 380px;
	max-width: 380px;
}

html body .site-blog__posts {
	container-type: inline-size;
}

html body .site-blog__grid {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

html body .site-blog-card {
	display: grid;
	grid-template-columns: minmax(220px, 42%) minmax(0, 1fr);
	overflow: hidden;
	margin: 0;
	border: 1px solid var(--site-blog-border);
	border-radius: 22px;
	background: var(--site-blog-surface);
	box-shadow: 0 14px 40px rgba(7, 32, 66, 0.07);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

html body .site-blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 52px rgba(7, 32, 66, 0.13);
}

html body .site-blog-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #dfe9f7;
}

html body .site-blog-card__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
}

html body .site-blog-card:hover .site-blog-card__image {
	transform: scale(1.035);
}

html body .site-blog-card__placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background: linear-gradient(135deg, #dfe9f7, #b9d4f8);
	color: var(--site-blog-accent-dark);
	font-family: var(--e-global-typography-primary-font-family, "Raleway"), sans-serif;
	font-size: 24px;
	font-weight: 600;
}

html body .site-blog-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 28px 32px;
}

html body .site-blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 14px;
	color: #727985;
	font-size: 13px;
}

html body .site-blog-card__meta a {
	color: var(--site-blog-accent);
	font-size: inherit;
	text-decoration: none;
}

html body .site-blog-card__meta a:hover,
html body .site-blog__hero-meta a:hover,
html body .site-blog-single__content a:hover {
	font-size: inherit;
	font-weight: inherit;
}

html body .site-blog-card__title {
	margin: 0 0 14px;
	font-family: var(--e-global-typography-primary-font-family, "Raleway"), sans-serif;
	font-size: clamp(21px, 1.9vw, 26px);
	font-weight: 600;
	line-height: 1.25;
}

html body .site-blog-card__title a {
	color: var(--site-blog-heading);
	font: inherit;
	text-decoration: none;
}

html body .site-blog-card__title a:hover {
	color: var(--site-blog-accent);
	font: inherit;
}

html body .site-blog-card__excerpt {
	margin-bottom: 20px;
	line-height: 1.65;
}

@container (max-width: 560px) {
	html body .site-blog-card {
		grid-template-columns: 1fr;
	}

	html body .site-blog-card__media {
		aspect-ratio: 4 / 3;
	}

	html body .site-blog-card__body {
		padding: 24px;
	}
}

html body .site-blog-card__more {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	color: var(--site-blog-accent);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

html body .site-blog-card__more:hover {
	color: var(--site-blog-accent-dark);
	font-size: 14px;
	font-weight: 600;
}

html body .site-blog__sidebar {
	position: sticky;
	top: 32px;
}

html body .site-blog__sidebar .widget {
	margin: 0 0 24px;
	padding: 28px;
	border: 1px solid var(--site-blog-border);
	border-radius: 20px;
	background: var(--site-blog-surface);
	box-shadow: 0 10px 32px rgba(7, 32, 66, 0.05);
}

html body .site-blog__sidebar .widget-title,
html body .site-blog__sidebar h2,
html body .site-blog__sidebar h3 {
	margin: 0 0 18px;
	color: var(--site-blog-heading);
	font-family: var(--e-global-typography-primary-font-family, "Raleway"), sans-serif;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
}

html body .site-blog__sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

html body .site-blog__sidebar li {
	padding: 10px 0;
	border-bottom: 1px solid var(--site-blog-border);
}

html body .site-blog__sidebar li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

html body .site-blog__sidebar a {
	color: var(--site-blog-text);
	font-size: 14px;
	text-decoration: none;
}

html body .site-blog__sidebar a:hover {
	color: var(--site-blog-accent);
	font-size: 14px;
}

html body .site-blog__sidebar .wp-block-search__inside-wrapper {
	display: flex;
	gap: 8px;
}

html body .site-blog__sidebar .wp-block-search__input {
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid var(--site-blog-border);
	border-radius: 12px;
}

html body .site-blog__sidebar .wp-block-search__button {
	margin: 0;
	padding: 12px 16px;
	border: 0;
	border-radius: 12px;
	background: var(--site-blog-accent);
	color: #fff;
}

/* Виджет «Последние новости»: миниатюра слева, заголовок и дата справа. */
html body .site-blog__sidebar .wp-block-latest-posts {
	margin: 0;
	padding: 0;
}

html body .site-blog__sidebar .wp-block-latest-posts li {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	grid-template-rows: auto auto;
	column-gap: 14px;
	align-items: center;
	margin: 0;
	padding: 14px 0;
}

html body .site-blog__sidebar .wp-block-latest-posts li:first-child {
	padding-top: 0;
}

html body .site-blog__sidebar .wp-block-latest-posts li:not(:has(> .wp-block-latest-posts__featured-image)) {
	display: block;
}

html body .site-blog__sidebar .wp-block-latest-posts .wp-block-latest-posts__featured-image {
	grid-row: 1 / span 2;
	float: none;
	width: 76px;
	height: 76px;
	margin: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #dfe9f7;
}

html body .site-blog__sidebar .wp-block-latest-posts .wp-block-latest-posts__featured-image a {
	display: block;
	height: 100%;
}

html body .site-blog__sidebar .wp-block-latest-posts .wp-block-latest-posts__featured-image img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

html body .site-blog__sidebar .wp-block-latest-posts li:hover .wp-block-latest-posts__featured-image img {
	transform: scale(1.06);
}

html body .site-blog__sidebar .wp-block-latest-posts .wp-block-latest-posts__post-title {
	display: -webkit-box;
	grid-column: 2;
	grid-row: 1;
	align-self: end;
	overflow: hidden;
	color: var(--site-blog-heading);
	font-family: var(--e-global-typography-primary-font-family, "Raleway"), sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

html body .site-blog__sidebar .wp-block-latest-posts .wp-block-latest-posts__post-title:hover {
	color: var(--site-blog-accent);
	font-family: var(--e-global-typography-primary-font-family, "Raleway"), sans-serif;
	font-size: 15px;
	font-weight: 600;
}

html body .site-blog__sidebar .wp-block-latest-posts .wp-block-latest-posts__post-date {
	grid-column: 2;
	grid-row: 2;
	align-self: start;
	margin-top: 6px;
	color: #8a909a;
	font-size: 12px;
}

html body .site-blog__sidebar .wp-block-latest-posts .wp-block-latest-posts__post-excerpt {
	grid-column: 2;
	margin: 4px 0 0;
	font-size: 13px;
	line-height: 1.5;
}

/* Страница новости. */
html body .site-blog__hero--single {
	padding: clamp(56px, 7vw, 104px) 0;
}

html body .site-blog__breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 14px;
}

html body .site-blog__breadcrumbs a {
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	text-decoration: none;
}

html body .site-blog__breadcrumbs a:hover {
	color: #fff;
	font-size: 14px;
}

html body .site-blog__title--single {
	max-width: 900px;
	font-size: clamp(32px, 4.6vw, 54px);
	line-height: 1.15;
}

html body .site-blog__hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-top: 20px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
}

html body .site-blog__hero-meta a {
	color: #fff;
	font-size: inherit;
	text-decoration: none;
}

html body .site-blog-single {
	min-width: 0;
}

html body .site-blog-single__media {
	margin: 0 0 36px;
	overflow: hidden;
	border-radius: 22px;
	background: #dfe9f7;
	box-shadow: 0 14px 40px rgba(7, 32, 66, 0.07);
}

html body .site-blog-single__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: cover;
}

html body .site-blog-single__content {
	font-size: 17px;
	line-height: 1.75;
}

html body .site-blog-single__content > * {
	margin-top: 0;
	margin-bottom: 1.2em;
}

html body .site-blog-single__content h2,
html body .site-blog-single__content h3,
html body .site-blog-single__content h4 {
	margin-top: 1.6em;
	margin-bottom: 0.6em;
	color: var(--site-blog-heading);
	font-family: var(--e-global-typography-primary-font-family, "Raleway"), sans-serif;
	font-weight: 600;
	line-height: 1.25;
}

html body .site-blog-single__content h2 {
	font-size: clamp(26px, 2.6vw, 32px);
}

html body .site-blog-single__content h3 {
	font-size: clamp(22px, 2.2vw, 26px);
}

html body .site-blog-single__content a {
	color: var(--site-blog-accent);
}

html body .site-blog-single__content img {
	max-width: 100%;
	height: auto;
	border-radius: 16px;
}

html body .site-blog-single__content ul,
html body .site-blog-single__content ol {
	padding-left: 1.4em;
}

html body .site-blog-single__content li + li {
	margin-top: 0.4em;
}

html body .site-blog-single__content blockquote {
	margin-inline: 0;
	padding: 20px 28px;
	border-left: 4px solid var(--site-blog-accent);
	border-radius: 0 16px 16px 0;
	background: var(--site-blog-soft);
	color: var(--site-blog-heading);
	font-style: italic;
}

html body .site-blog-single__content > :last-child {
	margin-bottom: 0;
}

html body .site-blog-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 32px;
}

html body .site-blog-single__tags a {
	padding: 6px 14px;
	border: 1px solid var(--site-blog-border);
	border-radius: 999px;
	color: var(--site-blog-text);
	font-size: 13px;
	text-decoration: none;
}

html body .site-blog-single__tags a:hover {
	border-color: var(--site-blog-accent);
	color: var(--site-blog-accent);
	font-size: 13px;
}

html body .site-blog-single__nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 44px;
	padding-top: 32px;
	border-top: 1px solid var(--site-blog-border);
}

html body .site-blog-single__nav:not(:has(a)) {
	display: none;
}

html body .site-blog-single__nav-link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px 24px;
	border: 1px solid var(--site-blog-border);
	border-radius: 18px;
	background: var(--site-blog-surface);
	text-decoration: none;
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

html body .site-blog-single__nav-link:hover {
	border-color: var(--site-blog-accent);
	box-shadow: 0 10px 32px rgba(7, 32, 66, 0.08);
}

html body .site-blog-single__nav-link--next {
	grid-column: 2;
	text-align: right;
}

html body .site-blog-single__nav-label {
	color: var(--site-blog-accent);
	font-size: 13px;
	font-weight: 600;
}

html body .site-blog-single__nav-title {
	color: var(--site-blog-heading);
	font-family: var(--e-global-typography-primary-font-family, "Raleway"), sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

html body .site-blog-single__back {
	margin-top: 32px;
}

html body .site-blog .navigation.pagination {
	margin-top: 44px;
}

html body .site-blog .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

html body .site-blog .page-numbers {
	display: grid;
	min-width: 44px;
	height: 44px;
	padding-inline: 12px;
	place-items: center;
	border: 1px solid var(--site-blog-border);
	border-radius: 12px;
	background: #fff;
	color: var(--site-blog-heading);
	font-size: 14px;
	text-decoration: none;
}

html body .site-blog .page-numbers.current,
html body .site-blog .page-numbers:hover {
	border-color: var(--site-blog-accent);
	background: var(--site-blog-accent);
	color: #fff;
	font-size: 14px;
}

html body .site-blog__empty {
	padding: 44px;
	border: 1px solid var(--site-blog-border);
	border-radius: 22px;
	background: #fff;
}

html body .site-blog__empty h2 {
	margin-top: 0;
	font-size: 30px;
}

@media (max-width: 1024px) {
	html body .site-blog__layout {
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 36px;
	}


	html body .e-con:has(> .e-con-inner > .elementor-widget-shortcode .site-blog__sidebar),
	html body .e-con:has(> .elementor-widget-shortcode .site-blog__sidebar) {
		--width: 320px;
		flex-basis: 320px;
		max-width: 320px;
	}
}

@media (max-width: 767px) {
	html body .site-blog__container {
		width: min(100% - 32px, 1240px);
	}

	html body .site-blog__hero {
		padding-block: 64px;
	}

	html body .site-blog__layout {
		grid-template-columns: 1fr;
		padding-block: 48px;
	}

	html body .site-blog__sidebar {
		position: static;
	}

	html body .e-con:has(> .e-con-inner > .elementor-widget-shortcode .site-blog__posts),
	html body .e-con:has(> .e-con-inner > .elementor-widget-shortcode .site-blog__sidebar),
	html body .e-con:has(> .elementor-widget-shortcode .site-blog__posts),
	html body .e-con:has(> .elementor-widget-shortcode .site-blog__sidebar) {
		--width: 100%;
		flex: 0 0 auto;
		width: 100%;
		max-width: 100%;
	}

	html body .site-blog__sidebar .widget {
		padding: 22px;
	}

	html body .site-blog-single__nav {
		grid-template-columns: 1fr;
	}

	html body .site-blog-single__nav-link--next {
		grid-column: auto;
	}
}

