/* Главная по макету 93:5885 / 93:5207. Контент приходит из существующих блоков и полей. */
/* stylelint-disable no-descending-specificity */
.home .ps-main {
	overflow-x: clip;
}

body.home {
	--ps-color-contrast: #0f0f0f;
}

:root[data-theme="dark"] body.home {
	--ps-color-base: #0f0f0f;
	--ps-color-contrast: #fff;
	--ps-color-field-bg: #0f0f0f;
}

.ps-fixed-page--home {
	--ps-container: 1200px;
	--ps-articles-button-bg: var(--ps-color-surface);
	--ps-articles-button-border: 0;
}

.ps-fixed-page--home .ps-head__title,
.ps-fixed-page--home .ps-carousel__bar .ps-head__title,
.ps-fixed-page--home .ps-subscribe .ps-head__title {
	font-weight: 700;
}

.ps-fixed-page--home .ps-btn {
	--ps-button-font-weight: var(--ps-button-preset-weight-medium);
}

.ps-fixed-page--home .ps-chip {
	text-decoration: none;
}












@media (min-width: 768px) {



	.ps-fixed-page--home .ps-logos__item {
		height: 180px;
	}

	.ps-fixed-page--home .ps-logos__img {
		width: 180px;
		height: 180px;
		max-height: 180px;
	}

	.ps-fixed-page--home .ps-btn {
		--ps-button-font-size: var(--ps-button-preset-font-large);
		--ps-button-line-height: var(--ps-button-preset-leading-large);
	}

	.ps-fixed-page--home .ps-carousel__slide {
		flex-basis: calc((100% - 48px) / 3);
	}

	.ps-fixed-page--home .ps-card-article__title {
		font-size: 24px;
		font-weight: 600;
		line-height: 24px;
	}
}

@media (min-width: 1025px) {

	.ps-fixed-page--home {
		padding-top: 48px;
	}

	.ps-fixed-page--home .entry-content > :not(.wp-block-piterstory-hero) {
		margin-inline: 0;
	}

	.ps-fixed-page--home .ps-hero__title,
	.ps-fixed-page--home .ps-head__title,
	.ps-fixed-page--home .ps-carousel__bar .ps-head__title,
	.ps-fixed-page--home .ps-subscribe .ps-head__title {
		font-size: 110px;
		font-weight: 700;
		line-height: 115px;
	}

	.ps-fixed-page--home .ps-hero__home-break {
		display: block;
	}

	.ps-fixed-page--home .ps-hero__home-line {
		white-space: nowrap;
	}

	.ps-fixed-page--home .ps-hero__lead {
		max-width: 1080px;
		margin-top: 48px;
		font-size: 40px;
		font-weight: 500;
		line-height: 48px;
	}

	.ps-fixed-page--home .ps-hero__cta {
		margin-top: 48px;
	}

	/* Текстовая CTA на главной сохраняет тот же вертикальный интервал, что и первый экран. */
	.ps-fixed-page--home .ps-cta--statement {
		row-gap: 48px;
	}

	.ps-fixed-page--home .ps-flagships__list {
		gap: 48px 24px;
	}

	.ps-fixed-page--home .ps-flagships__title,
	.ps-fixed-page--home .ps-text-columns__title,
	.ps-fixed-page--home .ps-fit__title {
		font-size: 40px;
		line-height: 48px;
	}


}

/* Бейдж первого экрана: видимость и содержимое задаются в настройках блока. */
.ps-home-award {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 500px;
	margin-top: 32px;
	padding: 16px;
	border-radius: 100px 0 0 100px;
	background: var(--ps-color-gold);
	color: #0f0f0f;
}

.ps-home-award img {
	flex: none;
	width: 133px;
	height: 145px;
}

.ps-home-award__body {
	display: grid;
	gap: 10px;
}

.ps-home-award__year {
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	line-height: 20px;
}

.ps-home-award__text {
	font-size: 22px;
	line-height: 26px;
}

.ps-home-award__source {
	font-size: 14px;
	line-height: 20px;
}

/* На планшете плашка остаётся под заголовком и выравнивается по правому краю текстовой колонки. */
@media (min-width: 768px) and (max-width: 1024px) {

	.ps-fixed-page--home .ps-hero .ps-home-award {
		margin-inline-start: auto;
	}
}

@media (min-width: 1025px) {

	.ps-fixed-page--home .ps-hero {
		position: relative;
	}

	.ps-fixed-page--home .ps-hero__title {
		font-size: clamp(72px, 7.6389vw, 110px);
		line-height: 1.04545;
	}

	.ps-home-award {
		position: absolute;
		top: 0;
		left: calc(100% - 378px);
		width: 500px;
		min-height: 178px;
		margin-top: 0;
		padding-right: 120px;
	}
}

@media (max-width: 1279px) {

	.ps-home-award img {
		width: 92px;
		height: auto;
	}

	.ps-home-award__text {
		font-size: 18px;
		line-height: 22px;
	}
}

/* Плашки — элементы интерфейса, отступ абзацного списка li + li им не нужен. */
.ps-fixed-page--home .ps-chips > li {
	margin: 0;
}

/* Общие естественные строки карточек выравнивают категории по самому длинному заголовку. */
.ps-fixed-page--home .ps-carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 82%;
	grid-template-columns: none;
	grid-template-rows: auto auto auto;
	row-gap: 12px;
}

.ps-fixed-page--home .ps-carousel__slide,
.ps-fixed-page--home .ps-card-article {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	row-gap: 12px;
}

.ps-fixed-page--home .ps-card-article__link {
	display: contents;
}

.ps-fixed-page--home .ps-card-article .ps-chips {
	align-self: start;
}

@media (min-width: 768px) {

	.ps-fixed-page--home .ps-carousel__track {
		grid-auto-columns: calc((100% - 24px) / 2);
	}
}

@media (min-width: 1025px) {

	.ps-fixed-page--home .ps-carousel__track {
		grid-auto-flow: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	/* Размер показателей главной в настольных макетах 93:6397 и 93:5785. */
	.ps-fixed-page--home .ps-stats__value {
		font-size: 90px;
		line-height: 90px;
	}
}

/* Единые поля и ритм секций главной, пока шапка использует меню-бургер. */
@media (max-width: 991px) {

	.ps-fixed-page--home {
		--ps-gutter: 24px;

		padding-top: 0;
	}

	.ps-fixed-page--home .entry-content > .ps-block {
		margin-block: 0;
		padding-block: 24px;
	}

	.ps-fixed-page--home :where(.ps-block:not(.ps-contact-form)) .ps-head {
		margin-bottom: 24px;
	}

}

/* Планшет сохраняет композицию; меняются только интервалы и внешние поля. */
@media (min-width: 768px) and (max-width: 991px) {

	.ps-fixed-page--home .ps-hero .ps-home-award,
	.ps-fixed-page--home .ps-hero__lead,
	.ps-fixed-page--home .ps-hero__cta {
		margin-top: 24px;
	}

	.ps-fixed-page--home .ps-stats__list {
		padding-inline: 0;
	}

	.ps-fixed-page--home .entry-content > :is(.ps-cases--editorial, .ps-contact-form) {
		width: 100%;
		margin-inline: 0;
	}
}

/* Мобильная композиция главной (93:4617): высота секций зависит от актуального содержимого. */
@media (max-width: 767px) {

	.ps-fixed-page--home .ps-head__title,
	.ps-fixed-page--home .ps-carousel__bar .ps-head__title,
	.ps-fixed-page--home .ps-subscribe .ps-head__title {
		font-size: 36px;
		line-height: 46px;
	}

	.ps-fixed-page--home .ps-btn {
		--ps-button-min-height: var(--ps-button-preset-height-large);
		--ps-button-padding: var(--ps-button-preset-padding-mobile);
		--ps-button-border: var(--ps-button-preset-borderless);
		--ps-button-font-size: var(--ps-button-preset-font-large);
		--ps-button-line-height: var(--ps-button-preset-leading-large);
	}

	.ps-fixed-page--home .ps-hero {
		display: flex;
		flex-direction: column;
		gap: 24px;
	}

	.ps-fixed-page--home .ps-hero__title {
		font-size: 36px;
		line-height: 46px;
		text-wrap: balance;
	}

	.ps-fixed-page--home .ps-hero__lead,
	.ps-fixed-page--home .ps-hero__cta {
		margin: 0;
	}

	.ps-fixed-page--home .ps-hero__lead {
		font-size: 20px;
		font-weight: 500;
		line-height: 24px;
	}

	.ps-fixed-page--home .ps-hero__cta .ps-btn {
		width: 100%;
	}

	.ps-fixed-page--home .ps-home-award {
		position: relative;
		isolation: isolate;
		order: -1;
		gap: 24px;
		width: 100%;
		max-width: none;
		min-height: 100px;
		margin: 0;
		padding: 7px 24px 7px 10.75px;
		background: transparent;
	}

	/* Золотая лента доходит до края экрана, не расширяя текстовую колонку и область прокрутки. */
	.ps-fixed-page--home .ps-home-award::before {
		content: "";
		position: absolute;
		z-index: -1;
		inset: 0 -24px 0 0;
		border-radius: 100px 0 0 100px;
		background: var(--ps-color-gold);
	}

	.ps-fixed-page--home .ps-home-award img {
		width: 79.4px;
		height: 86.6px;
		object-fit: contain;
	}

	.ps-fixed-page--home .ps-home-award__body {
		flex: 0 1 205px;
		min-width: 0;
		gap: 4px;
	}

	.ps-fixed-page--home .ps-home-award__year {
		font-size: 20px;
		line-height: 22px;
	}

	.ps-fixed-page--home .ps-home-award__text {
		font-size: 20px;
		font-weight: 700;
		line-height: 22px;
	}

	.ps-fixed-page--home .ps-home-award__source {
		font-size: 12px;
		line-height: 16px;
	}

	.ps-fixed-page--home .ps-flagships__list {
		gap: 48px;
	}

	/* Между элементами сеток работает gap; абзацный отступ списков содержимого здесь не нужен. */
	.ps-fixed-page--home :where(.ps-flagships__item, .ps-text-columns__item, .ps-stats__item, .ps-fit__point, .ps-carousel__slide, .ps-logos__item) {
		margin: 0;
	}

	.ps-fixed-page--home .ps-flagships__title,
	.ps-fixed-page--home .ps-text-columns__title {
		padding-bottom: 11px;
		border-bottom-width: 2px;
		font-size: 28px;
		line-height: 28px;
	}

	.ps-fixed-page--home .ps-flagships__text {
		margin: 11px 0 12px;
		font-size: 16px;
		line-height: 20px;
	}

	/* Эти CTA продолжают предыдущую секцию, хотя в редакторе остаются отдельными блоками. */
	.ps-fixed-page--home .entry-content > .ps-flagships + .ps-cta--gold,
	.ps-fixed-page--home .entry-content > .ps-fit + .ps-cta--statement {
		padding-top: 0;
	}

	.ps-fixed-page--home .ps-awards__item {
		grid-template-columns: 100px minmax(0, 1fr);
		gap: 12px;
		padding: 24px 0 0;
		margin-top: 24px;
	}

	.ps-fixed-page--home .ps-awards__item:first-child {
		padding-top: 0;
		margin-top: 0;
	}

	/* Реальные описания длиннее макета: два разделителя компенсируют 26 px без сжатия текста. */
	.ps-fixed-page--home .ps-awards.is-collapsed .ps-awards__item + .ps-awards__item {
		margin-top: 17.5px;
		padding-top: 17.5px;
	}

	.ps-fixed-page--home .ps-awards__img {
		width: 100px;
		height: 100px;
	}

	.ps-fixed-page--home .ps-awards__title {
		font-size: 20px;
		font-weight: 600;
		line-height: 24px;
	}

	.ps-fixed-page--home .ps-awards__text {
		font-size: 20px;
		font-weight: 600;
		line-height: 24px;
	}

	.ps-fixed-page--home .ps-awards__year {
		font-size: 20px;
		font-weight: 600;
		line-height: 24px;
	}

	:root[data-theme="dark"] .ps-fixed-page--home .ps-awards__title {
		color: var(--ps-color-contrast);
	}

	/* Серый макета 5d5d5d оставлен венку: читаемые строки требуют контраста не ниже 4,5:1. */
	:root[data-theme="dark"] .ps-fixed-page--home :where(.ps-awards__text, .ps-awards__year) {
		color: #757575;
	}

	.ps-fixed-page--home .ps-awards__toggle {
		margin-top: 24px;
		padding: 12px 16px;
		font-size: 20px;
		line-height: 28px;
	}

	.ps-fixed-page--home .ps-text-columns__list {
		gap: 24px;
	}

	.ps-fixed-page--home .ps-text-columns__text {
		margin-top: 11px;
		font-size: 16px;
		line-height: 20px;
	}

	.ps-fixed-page--home .ps-text-columns__text p {
		margin-bottom: 12px;
	}

	.ps-fixed-page--home .ps-text-columns__text p:last-child {
		margin-bottom: 0;
	}

	.ps-fixed-page--home .ps-logos__wrap {
		width: calc(100% + 24px);
	}

	.ps-fixed-page--home .ps-logos__track {
		gap: 24px;
	}

	.ps-fixed-page--home .ps-logos__item {
		flex: 0 0 120px;
		width: 120px;
		height: 120px;
	}

	.ps-fixed-page--home .ps-logos__img {
		width: 120px;
		height: 120px;
		max-height: 120px;
	}

	.ps-fixed-page--home .ps-stats__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding: 0;
	}

	.ps-fixed-page--home .ps-stats__value {
		padding-bottom: 11px;
		border-bottom-width: 2px;
		font-size: 34px;
		line-height: 40px;
	}

	.ps-fixed-page--home .ps-stats__label {
		margin-top: 11px;
		font-size: 16px;
		line-height: 20px;
	}

	.ps-fixed-page--home .ps-subscribe .ps-head__title {
		text-transform: uppercase;
	}

	.ps-fixed-page--home .ps-subscribe .ps-head__lead {
		max-width: 259px;
		margin: 24px 0 0 auto;
		font-size: 16px;
		line-height: 20px;
	}

	.ps-fixed-page--home .ps-subscribe__row {
		gap: 24px;
	}

	.ps-fixed-page--home .ps-subscribe__input {
		font-size: 16px;
		line-height: 20px;
	}

	.ps-fixed-page--home .ps-subscribe__consent {
		margin-top: 20px;
	}

	.ps-fixed-page--home .ps-subscribe__agree {
		width: 28px;
		height: 28px;
	}

	.ps-fixed-page--home .ps-fit__columns {
		gap: 24px;
	}

	.ps-fixed-page--home .ps-fit__title {
		margin-bottom: 11px;
		padding-bottom: 11px;
		border-bottom-width: 2px;
		font-size: 28px;
		line-height: 28px;
	}

	.ps-fixed-page--home .ps-fit__list {
		gap: 12px;
	}

	.ps-fixed-page--home .ps-fit__point {
		gap: 12px;
		font-size: 16px;
		line-height: 20px;
	}

	.ps-fixed-page--home .ps-fit__icon {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
		margin: 0;
	}

	.ps-fixed-page--home .ps-cta--statement {
		text-align: center;
	}

	.ps-fixed-page--home .ps-cta--statement .ps-cta__text {
		font-size: 28px;
		line-height: 28px;
	}

	.ps-fixed-page--home .ps-carousel__bar {
		margin-bottom: 24px;
	}

	.ps-fixed-page--home .ps-carousel__bar .ps-head {
		margin-bottom: 0;
	}

	.ps-fixed-page--home .ps-carousel__track {
		grid-auto-columns: calc(100% - 72px);
		padding-bottom: 0;
	}

	.ps-fixed-page--home .ps-card-article__image {
		aspect-ratio: 282 / 164.1;
		margin-bottom: 12px;
	}

	.ps-fixed-page--home .ps-card-article__title {
		font-size: 12px;
		font-weight: 700;
		line-height: 12px;
	}

	.ps-fixed-page--home .ps-card-article .ps-chip {
		padding: 8px 12px;
		font-size: 12px;
		line-height: 14px;
	}

	.ps-fixed-page--home .ps-carousel__more {
		margin-top: 24px;
	}
}

/* Общий цвет проверенных венков тёмной темы на всех ширинах экрана. */

/* Только проверенные серо-золотые эмблемы CLEAN; произвольные изображения не перекрашиваются. */
:root[data-theme="dark"] .ps-fixed-page--home .ps-awards__img:is(
	[src$="/reward-04.webp"],
	[src$="/reward-03.webp"],
	[src$="/reward-03-1.webp"],
	[src$="/Prizes_silverM_1.webp"],
	[src$="/arda_prices.webp"]
) {
	filter: url(../icons/award-mobile-dark-filter.svg#award-mobile-dark);
}
