/**
 * Главная: первый экран «Свежесть Сахалина» + полоска доверия.
 * Шрифт: Montserrat (подключается в functions.php). Токены — под референс-макет.
 */

.sm-hero-wrap,
.sm-hero-trust-wrap {
	--sm-hero-navy: #121c2b;
	--sm-hero-navy-rgb: 18, 28, 43;
	--sm-hero-cta: #fd6422;
	--sm-hero-cta-hover: #e85518;
	--sm-hero-muted: #7f8c8d;
	--sm-hero-trust-bg: #f3f4f6;
	--sm-hero-font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	font-family: var(--sm-hero-font);
}

.sm-hero-wrap {
	max-width: 1520px;
	width: 100%;
	margin-top: 1rem;
	margin-left: auto;
	margin-right: auto;
	padding: 0;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.sm-hero-wrap {
		margin-top: 1.25rem;
	}
}

.sm-hero-shell {
	position: relative;
	overflow: hidden;
	border-radius: 1.25rem;
	background: transparent;
	min-height: auto;
	font-family: inherit;
}

@media (min-width: 768px) {
	.sm-hero-shell {
		min-height: 30rem;
	}
}

.sm-hero-photo {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.sm-hero-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		rgba(var(--sm-hero-navy-rgb), 0.25) 0%,
		rgba(var(--sm-hero-navy-rgb), 0.20) 42%,
		rgba(var(--sm-hero-navy-rgb), 0.15) 72%,
		rgba(var(--sm-hero-navy-rgb), 0.08) 100%
	);
}

.sm-hero-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 62% 50%;
}

@media (min-width: 768px) {
	.sm-hero-photo img {
		object-position: 68% 50%;
	}
}

@media (min-width: 1024px) {
	.sm-hero-photo img {
		object-position: 72% 50%;
	}
}

.sm-hero-grid {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding: 1.5rem var(--sahalin-gutter, 0.6rem) 1.75rem;
	height: 100%;
	min-height: inherit;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.sm-hero-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		column-gap: 2rem;
		row-gap: 1.5rem;
		padding: 2rem 2rem 2.5rem;
	}
}

@media (min-width: 1024px) {
	.sm-hero-grid {
		padding: 2.5rem 2.75rem 2.75rem;
		column-gap: 2.5rem;
	}
}

.sm-hero-copy {
	min-width: 0;
	width: 100%;
	max-width: none;
	color: #fff;
}

.sm-hero-kicker {
	font-size: 0.875rem;
	font-weight: 300;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 0.625rem;
	line-height: 1.3;
}

@media (min-width: 768px) {
	.sm-hero-kicker {
		font-size: 1rem;
		margin-bottom: 0.875rem;
	}
}

.sm-hero-title {
	font-family: inherit;
	font-size: 3.5rem;
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0 0 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.06em;
}

@media (min-width: 768px) {
	.sm-hero-title {
		margin-bottom: 1rem;
	}
}

.sm-hero-title__line {
	display: block;
}

.sm-hero-title__line--bold {
	font-weight: 600;
}

.sm-hero-title__line--muted {
	font-weight: 400;
	color: rgba(255, 255, 255, 0.9);
	white-space: nowrap;
}

.sm-hero-lead {
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.94);
	margin: 0 0 1.25rem;
	max-width: none;
}

@media (min-width: 768px) {
	.sm-hero-lead {
		font-size: 1.125rem;
		margin-bottom: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.sm-hero-lead {
		font-size: 1.25rem;
	}
}

/* Три фичи: слот иконки + две строки */
.sm-hero-features {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (min-width: 768px) {
	.sm-hero-features {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: flex-start;
		gap: 1.5rem;
		margin-bottom: 1.75rem;
	}
}

@media (min-width: 1024px) {
	.sm-hero-features {
		gap: 2rem;
	}
}

.sm-hero-feature {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.sm-hero-feature__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.8rem;
	height: 2.8rem;
	border-radius: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
}

.sm-hero-feature__icon-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 0.1875rem;
	box-sizing: border-box;
}

.sm-hero-feature__text {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
	font-size: 0.8125rem;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.92);
	text-align: left;
}

@media (min-width: 768px) {
	.sm-hero-feature__text {
		font-size: 0.8125rem;
		max-width: 9.5rem;
	}
}

.sm-hero-feature__line1 {
	font-weight: 600;
	display: block;
}

.sm-hero-feature__line2 {
	font-weight: 400;
	display: block;
	color: rgba(255, 255, 255, 0.94);
}

.sm-hero-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 240px;
	max-width: 100%;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: var(--sm-hero-cta);
	color: #fff !important;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.sm-hero-cta__label {
	white-space: nowrap;
}

.sm-hero-cta:hover,
.sm-hero-cta:focus-visible {
	background: var(--sm-hero-cta-hover);
	color: #fff !important;
}

.sm-hero-cta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (min-width: 768px) {
	.sm-hero-cta {
		width: 240px;
		padding: 0.8125rem 1rem;
		font-size: 1.0625rem;
		font-weight: 500;
	}
}

/* Белая карточка статистики — компактнее по ширине, кеглю и отступам */
.sm-hero-panel {
	width: 100%;
	max-width: 15rem;
	margin-left: 0;
	justify-self: end;
	align-self: center;
}

@media (min-width: 768px) {
	.sm-hero-panel {
		width: 15rem;
		max-width: 15rem;
	}
}

@media (min-width: 1024px) {
	.sm-hero-panel {
		width: 15rem;
		max-width: 15rem;
	}
}

.sm-hero-panel-inner {
	background: #fff;
	border-radius: 16px;
	padding: 0;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.sm-hero-stat {
	padding: 1.25rem 1rem;
	border-top: 1px solid #e5e5e5;
}

.sm-hero-stat:first-child {
	border-top: 0;
}

.sm-hero-stat__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35em;
}

.sm-hero-stat__value {
	display: inline;
	font-size: 1.6rem;
	font-weight: 500;
	line-height: 1.05;
	color: #002855;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.sm-hero-stat__mid {
	display: inline;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.2;
	color: #121212;
}

.sm-hero-stat__sub {
	display: block;
	margin-top: 0;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #656565;
	font-weight: 500;
}

/* Полоска доверия */
.sm-hero-trust-wrap {
	max-width: 1520px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0.75rem;
	padding: 0;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.sm-hero-trust-wrap {
		margin-top: 1rem;
	}
}

.sm-hero-trust {
	background: var(--sm-hero-trust-bg);
	border-radius: 1rem;
	padding: 0.875rem 1rem;
	font-family: inherit;
	display: flex;
	align-items: center;
	min-height: 3.25rem;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.sm-hero-trust {
		padding: 1rem 1.25rem;
		border-radius: 1.25rem;
		min-height: 3.5rem;
	}
}

.sm-hero-trust-grid {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.75rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: inherit;
	width: 100%;
}

@media (min-width: 640px) {
	.sm-hero-trust-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: center;
		column-gap: 1rem;
		row-gap: 0.875rem;
	}
}

@media (min-width: 900px) {
	.sm-hero-trust-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		column-gap: 0.75rem;
		row-gap: 0;
	}
}

@media (min-width: 1200px) {
	.sm-hero-trust-grid {
		column-gap: 1.25rem;
	}
}

.sm-hero-trust-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	min-width: 0;
	padding: 0.25rem 0;
	width: 100%;
	box-sizing: border-box;
}

@media (min-width: 640px) {
	.sm-hero-trust-item {
		padding: 0.15rem 0;
	}
}

.sm-hero-trust-item__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	background: transparent;
	border-radius: 0;
	overflow: visible;
	box-sizing: border-box;
}

.sm-hero-trust-item__icon-img {
	display: block;
	width: 2.25rem;
	height: 2.25rem;
	object-fit: contain;
	padding: 0;
	box-sizing: border-box;
}

.sm-hero-trust-item__text {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	min-width: 0;
	font-size: 0.8125rem;
	line-height: 1.35;
	color: #3d4f5f;
	font-weight: 500;
	text-align: left;
}

.sm-hero-trust-item__line1 {
	font-weight: 600;
	display: block;
	color: #111827;
}

.sm-hero-trust-item__line2 {
	font-weight: 400;
	display: block;
	color: #3d4f5f;
}

.sm-hero-trust-item__line2 strong {
	font-weight: 700;
	color: #111827;
}

/* ——— Мобильная главная: компактный герой, горизонтальный trust ——— */
@media (max-width: 767px) {
	.sm-hero-wrap,
	.sm-hero-trust-wrap {
		--sm-touch-min: 2.75rem;
	}

	.sm-hero-wrap {
		margin-top: 0;
		padding-left: 0;
		padding-right: 0;
		box-sizing: border-box;
	}

	.sm-hero-shell {
		border-radius: 0;
	}

	.sm-hero-trust-wrap {
		min-width: 0;
		margin-top: 0.5rem;
		padding-left: 0;
		padding-right: 0;
		box-sizing: border-box;
	}

	.sm-hero-grid {
		gap: 1rem;
		padding: 1rem var(--sahalin-gutter, 0.6rem) 1.25rem;
		padding-left: max(var(--sahalin-gutter, 0.6rem), env(safe-area-inset-left, 0px));
		padding-right: max(var(--sahalin-gutter, 0.6rem), env(safe-area-inset-right, 0px));
	}

	.sm-hero-photo::after {
		background: linear-gradient(
			180deg,
			rgba(var(--sm-hero-navy-rgb), 0.84) 0%,
			rgba(var(--sm-hero-navy-rgb), 0.74) 40%,
			rgba(var(--sm-hero-navy-rgb), 0.6) 70%,
			rgba(var(--sm-hero-navy-rgb), 0.48) 100%
		);
	}

	.sm-hero-kicker {
		font-size: 0.75rem;
		margin-bottom: 0.5rem;
	}

	.sm-hero-title {
		font-size: clamp(1.625rem, 7.2vw, 2.125rem);
		line-height: 1.12;
		margin-bottom: 0.625rem;
	}

	.sm-hero-title__line--muted {
		white-space: normal;
	}

	.sm-hero-lead {
		font-size: 1rem;
		margin-bottom: 1rem;
		line-height: 1.4;
	}

	.sm-hero-features {
		gap: 0.65rem;
		margin-bottom: 1rem;
	}

	.sm-hero-feature__icon {
		width: 2.25rem;
		height: 2.25rem;
	}

	.sm-hero-feature__text {
		font-size: 0.8125rem;
		color: #fff;
	}

	.sm-hero-feature__line1 {
		color: #fff;
	}

	.sm-hero-feature__line2 {
		color: rgba(255, 255, 255, 0.96);
	}

	.sm-hero-trust-item__icon {
		width: 1.75rem;
		height: 1.75rem;
	}

	.sm-hero-trust-item__icon-img {
		width: 1.75rem;
		height: 1.75rem;
	}

	.sm-hero-trust-item__text {
		font-size: 0.75rem;
		line-height: 1.3;
		color: #374151;
	}

	.sm-hero-trust-item__line1 {
		font-size: 0.8125rem;
		color: #111827;
		font-weight: 600;
	}

	.sm-hero-trust-item__line2 {
		font-size: 0.6875rem;
		color: #6b7280;
		font-weight: 400;
	}

	.sm-hero-trust-item__line2 strong {
		font-size: inherit;
		color: #111827;
	}

	.sm-hero-cta {
		width: 100%;
		min-height: var(--sm-touch-min);
		font-size: 0.9375rem;
		padding: 0.6875rem 1rem;
	}

	.sm-hero-panel {
		max-width: 100%;
		width: 100%;
	}

	.sm-hero-panel-inner {
		display: flex;
		flex-direction: row;
		align-items: stretch;
	}

	.sm-hero-stat {
		flex: 1 1 0;
		min-width: 0;
		padding: 0.75rem 0.4rem;
		border-top: 0;
		border-left: 1px solid #e5e5e5;
		text-align: center;
	}

	.sm-hero-stat:first-child {
		border-left: 0;
	}

	.sm-hero-stat__head {
		flex-direction: column;
		align-items: center;
		gap: 0.15rem;
	}

	.sm-hero-stat__value {
		font-size: 1.25rem;
	}

	.sm-hero-stat__mid {
		font-size: 0.6875rem;
		line-height: 1.2;
	}

	.sm-hero-stat__sub {
		display: none;
	}

	.sm-hero-trust {
		--sm-hero-trust-edge: max(var(--sahalin-gutter, 0.6rem), env(safe-area-inset-left, 0px));
		--sm-hero-trust-edge-end: max(var(--sahalin-gutter, 0.6rem), env(safe-area-inset-right, 0px));
		display: block;
		min-width: 0;
		padding: 0.625rem 0;
		min-height: 0;
		border-radius: 0.625rem;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
	}

	.sm-hero-trust::-webkit-scrollbar {
		display: none;
	}

	.sm-hero-trust-grid {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 0.5rem;
		margin: 0;
		padding: 0;
		width: max-content;
		min-width: 100%;
		box-sizing: border-box;
	}

	.sm-hero-trust-grid::before,
	.sm-hero-trust-grid::after {
		content: "";
		display: block;
		flex: 0 0 auto;
		width: var(--sm-hero-trust-edge);
		pointer-events: none;
	}

	.sm-hero-trust-grid::after {
		width: var(--sm-hero-trust-edge-end);
	}

	.sm-hero-trust-item {
		flex: 0 0 auto;
		width: min(14.5rem, 76vw);
		max-width: none;
		justify-content: flex-start;
		gap: 0.5rem;
		padding: 0.1rem 0;
	}
}
