/* Герой главной: полноэкранный фон и CTA (после components-buttons). */

/* Hero (homepage) — full-bleed фон: отдельное изображение на мобилке и на десктопе */
.hero.hero--home {
	padding-top: 0;
	padding-bottom: 0;
	margin: 0;
	max-width: none;
	border: none;
}

.hero__inner {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
	background-color: var(--color-bg);
}

.hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: var(--color-surface);
	background-size: cover;
	background-repeat: no-repeat;
}

.hero__bg--mobile {
	display: block;
	background-position: center 68%;
}

.hero__bg--desktop {
	display: none;
	background-position: 21% 50%;
}

.hero__top {
	position: relative;
	z-index: 1;
	background-color: transparent;
	padding-top: clamp(var(--space-xl), 10.8vw, 6.9rem);
	padding-bottom: clamp(var(--space-xl), 10.8vw, 6.9rem);
	min-height: min(88vh, 984px);
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.hero__container {
	display: flex;
	justify-content: center;
	width: 100%;
}

.hero__content {
	width: 100%;
	max-width: 33.9rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* Mobile wordmark; desktop wordmark hidden on small screens */
.hero__brand--desktop {
	display: none;
}

.hero__brand--mobile {
	margin: 0 0 3rem;
	width: 100%;
}

.hero__wordmark {
	margin: 0 0 0.525rem;
	font-size: clamp(2.04rem, 7.2vw, 2.82rem);
	font-weight: 600;
	letter-spacing: -0.024em;
	line-height: 1.02;
	color: var(--color-text);
}

.hero__goods-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.9rem;
	margin: 0;
}

.hero__line {
	flex: 0 0 auto;
	width: clamp(2.1rem, 12vw, 3.6rem);
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--color-accent-soft) 40%, var(--color-accent-soft) 60%, transparent);
	opacity: 0.65;
}

.hero__goods-row .hero__line:first-of-type {
	background: linear-gradient(90deg, transparent, var(--color-accent-soft));
}

.hero__goods-row .hero__line:last-of-type {
	background: linear-gradient(90deg, var(--color-accent-soft), transparent);
}

.hero__goods {
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(110, 106, 99, 0.88);
	line-height: 1;
}

.hero__heading {
	margin: 0 0 1.575rem;
	font-size: clamp(1.2375rem, 4.02vw, 1.3875rem);
	font-weight: 500;
	letter-spacing: -0.011em;
	line-height: 1.52;
	color: var(--color-text);
	max-width: 21.9rem;
}

.hero__description {
	margin: 0 0 2.15rem;
	font-size: 1.06875rem;
	font-weight: 400;
	line-height: 1.66;
	color: var(--color-text-muted);
	max-width: 21rem;
}

.hero__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.675rem;
	margin: 0;
	width: 100%;
	max-width: 18.6rem;
}

/* Мобилка: шапка absolute поверх героя — иначе вордмарк «Senatove» оказывается под хедером */
@media (max-width: 959px) {
	body.home .hero.hero--home .hero__top {
		padding-top: calc(clamp(var(--space-xl), 10.8vw, 6.9rem) + 4.75rem);
	}

	body.home .hero.hero--home .hero__description {
		color: rgba(31, 31, 27, 0.82);
	}
}

@media (min-width: 960px) {
	.hero__bg--mobile {
		display: none;
	}

	.hero__bg--desktop {
		display: block;
	}

	.hero__top {
		min-height: min(90vh, 880px);
		align-items: center;
		padding-top: clamp(3.5rem, 6vw, 5.25rem);
		padding-bottom: clamp(3.5rem, 6vw, 5.25rem);
	}

	.hero__container {
		justify-content: flex-end;
		padding-right: clamp(var(--space-lg), 5vw, 4rem);
		padding-left: clamp(var(--space-md), 4vw, var(--space-xl));
	}

	.hero__content {
		align-items: flex-start;
		text-align: left;
		flex: 0 0 50%;
		width: 50%;
		max-width: 50%;
		min-width: 0;
		padding-top: clamp(0.5rem, 2.5vh, var(--space-md));
		padding-bottom: clamp(0.5rem, 2.5vh, var(--space-md));
	}

	.hero__brand--mobile {
		display: none;
	}

	.hero__brand--desktop {
		display: block;
		margin: 0 0 2.4rem;
		font-size: clamp(2.4rem, 4.2vw, 3.9rem);
		font-weight: 500;
		letter-spacing: -0.03em;
		line-height: 1.07;
		color: var(--color-text);
	}

	.hero__heading {
		max-width: 100%;
		font-size: clamp(1.3125rem, 1.344vw, 1.5375rem);
		font-weight: 500;
		margin-bottom: 1.575rem;
		line-height: 1.48;
		letter-spacing: -0.013em;
	}

	.hero__description {
		margin-bottom: 3.45rem;
		max-width: 100%;
		font-size: 1.06875rem;
		line-height: 1.7;
	}

	.hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 1.05rem;
		max-width: none;
		width: auto;
	}
}
/* Hero homepage — refined CTAs (override base .button after its definition) */
.hero--home .hero__actions .button {
	padding: 0.5625rem 1.275rem;
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	border-radius: 999px;
	line-height: 1.3;
	width: 100%;
	justify-content: center;
}

.hero--home .hero__actions .button.button--ghost {
	color: rgba(91, 102, 82, 0.92);
	border-color: rgba(91, 102, 82, 0.26);
	background-color: rgba(255, 253, 252, 0.3);
}

.hero--home .hero__actions .button.button--ghost:hover,
.hero--home .hero__actions .button.button--ghost:focus-visible {
	background-color: rgba(255, 253, 252, 0.42);
	border-color: rgba(91, 102, 82, 0.34);
	color: var(--color-accent-hover);
}

@media (min-width: 960px) {
	.hero--home .hero__actions .button {
		width: auto;
		min-width: 8.7rem;
		padding: 0.6rem 1.425rem;
		font-size: 0.9375rem;
	}

	.hero--home .hero__actions .button.button--ghost {
		background-color: rgba(255, 253, 252, 0.22);
		border-color: rgba(91, 102, 82, 0.22);
		color: rgba(91, 102, 82, 0.88);
	}
}
