/*
Hero section styles.
*/

/* =========================
   Hero section
   ========================= */

.section-hero {
	position: relative;
	overflow: hidden;
	padding: 0 16px 20px;

	background-image: url("../../assets/images/hero-bg.jpg");
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	background-color: #f8fbff;
}

.section-hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		repeating-linear-gradient(
			90deg,
			rgba(11, 150, 198, 0.05) 0,
			rgba(11, 150, 198, 0.05) 1px,
			transparent 1px,
			transparent 18px
		);
	opacity: 0.35;
	mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}

.section-hero__inner {
	position: relative;
	max-width: 1540px;
	min-height: 760px;
	margin: 0 auto;
	padding: 48px 54px 0;
	display: grid;
	grid-template-columns: minmax(0, 760px) minmax(360px, 1fr);
	grid-template-areas:
		"content visual"
		"stats stats"
		"features features";
	column-gap: 54px;
	align-items: start;
}

.section-hero__content {
	grid-area: content;
	position: relative;
	z-index: 2;
}

.section-hero__eyebrow {
	margin: 0 0 8px;
	color: rgba(20, 38, 111, 0.78);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
}

.section-hero__title {
	--hero-title-size: clamp(48px, 4.7vw, 70px);
	--hero-title-line: 1;
	--hero-title-spacing: -0.035em;

	margin: 0;
	font-size: var(--hero-title-size);
	font-weight: 800;
	line-height: var(--hero-title-line);
	letter-spacing: var(--hero-title-spacing);
	color: #071f63;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

/* Средний H1 — например: "Налоговая консультация" */

.section-hero--title-medium .section-hero__title {
	--hero-title-size: clamp(46px, 4.5vw, 60px);
	--hero-title-line: 1;
	--hero-title-spacing: -0.035em;
}

/* Длинный H1 — например: "Налоговая консультация для бизнеса" */

.section-hero--title-small .section-hero__title {
	--hero-title-size: clamp(34px, 3vw, 52px);
	--hero-title-line: 1.08;
	--hero-title-spacing: -0.02em;
}

/* Очень длинный H1 */

.section-hero--title-xsmall .section-hero__title {
	--hero-title-size: clamp(32px, 3vw, 48px);
	--hero-title-line: 1.1;
	--hero-title-spacing: -0.015em;
}

.section-hero__offer {
	max-width: 720px;
}

.section-hero__offer-title {
	display: inline-block;
	margin: 0 0 14px;
	color: #0b96c6;
	font-size: 25px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.02em;
	border-bottom: 4px solid #0b96c6;
}

/* Пустой spacer вместо offer-title: текста в HTML нет, остаётся только воздух */

.section-hero__offer-title-spacer {
	display: block;
	width: 1px;
	height: 33px;
	margin: 0 0 14px;
}

.section-hero__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.section-hero__list li {
	position: relative;
	min-height: 43px;
	padding: 10px 18px 10px 58px;
	display: flex;
	align-items: center;
	color: #10266d;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
	background: rgba(255, 255, 255, 0.86);
	border: 1px solid rgba(18, 74, 145, 0.08);
	border-radius: 12px;
	box-shadow: 0 8px 18px rgba(14, 52, 100, 0.08);
}

.section-hero__list li::before {
	content: "✓";
	position: absolute;
	left: 22px;
	top: 50%;
	width: 22px;
	height: 22px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #0b96c6;
	color: #ffffff;
	font-size: 13px;
	font-weight: 800;
}

/* =========================
   Hero action cards
   ========================= */

.section-hero__actions {
	margin-top: 22px;
	margin-bottom: 28px;
	display: grid;
	grid-template-columns: minmax(240px, 380px) minmax(240px, 360px);
	gap: 20px;
}

.section-hero__action-card {
	min-height: 72px;
	padding: 12px 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	border-radius: 12px;
	text-decoration: none;
	box-shadow: 0 14px 34px rgba(13, 45, 98, 0.12);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.section-hero__action-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 42px rgba(13, 45, 98, 0.16);
	text-decoration: none;
}

.section-hero__action-card--orange {
	background: linear-gradient(135deg, #ff6a24 0%, #ff2519 100%);
	color: #ffffff;
}

.section-hero__action-card--orange:hover {
	color: #ffffff;
}

.section-hero__action-card--white {
	background: linear-gradient(135deg, #ffffff 0%, #eef8ff 48%, #dff3ff 100%);
	color: #10266d;
	border: 1px solid rgba(22, 143, 232, 0.16);
}

.section-hero__action-card--white:hover {
	color: #10266d;
	background: linear-gradient(135deg, #f7fcff 0%, #e5f6ff 48%, #d3efff 100%);
}

.section-hero__action-icon {
	flex: 0 0 auto;
	width: 45px;
	height: 45px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9px;
	font-size: 0;
	line-height: 1;
	overflow: hidden;
}

.section-hero__action-icon img {
	display: block;
	width: 58px;
	height: 58px;
	object-fit: contain;
}

.section-hero__action-card--orange .section-hero__action-icon {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.section-hero__action-card--white .section-hero__action-icon {
	background: rgba(22, 143, 232, 0.12);
	color: #168fe8;
}

.section-hero__action-content {
	display: grid;
	gap: 4px;
}

.section-hero__action-content strong {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
}

.section-hero__action-content small {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.section-hero__action-card--orange .section-hero__action-content strong,
.section-hero__action-card--orange .section-hero__action-content small {
	color: #ffffff;
}

.section-hero__action-card--white .section-hero__action-content strong {
	color: #071f63;
}

.section-hero__action-card--white .section-hero__action-content small {
	color: #10266d;
}

/* =========================
   Hero visual
   ========================= */

.section-hero__visual {
	grid-area: visual;
	position: relative;
	align-self: stretch;
	min-height: 640px;
	z-index: 1;
	padding-top: 18px;
}

.section-hero__image {
	position: absolute;
	right: -10px;
	top: -58px;
	bottom: auto;
	max-width: 640px;
	width: 100%;
	height: auto;
	display: block;
}

.section-hero__guarantee {
	position: absolute;
	right: 8px;
	top: 315px;
	bottom: auto;
	width: 282px;
	padding: 20px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(18, 74, 145, 0.08);
	border-radius: 12px;
	box-shadow: 0 18px 34px rgba(13, 45, 98, 0.14);
}

.section-hero__guarantee-icon {
	flex: 0 0 58px;
	width: 58px;
	height: 58px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0;
	line-height: 1;
	border-radius: 0;
	background: transparent;
	overflow: visible;
}

.section-hero__guarantee-icon img {
	display: block;
	width: 88px;
	height: 88px;
	max-width: none;
	max-height: none;
	object-fit: contain;
	transform: translate(-3px, -13px);
	filter: brightness(0) saturate(100%) invert(45%) sepia(94%) saturate(1042%) hue-rotate(158deg) brightness(92%) contrast(92%);
}

.section-hero__guarantee strong {
	display: block;
	margin-bottom: 8px;
	color: #151b2a;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: 0;
}

.section-hero__guarantee p {
	margin: 6px 0 0 -58px;
	width: calc(100% + 58px);
	color: #1f2933;
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
}

/* =========================
   Hero stats
   ========================= */

.section-hero__stats {
	grid-area: stats;
	position: relative;
	z-index: 3;
	margin-top: 18px;
	padding: 18px 26px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	background: rgba(255, 255, 255, 0.88);
	border: 1px solid rgba(18, 74, 145, 0.08);
	border-radius: 14px;
	box-shadow: 0 12px 34px rgba(13, 45, 98, 0.11);
	backdrop-filter: blur(6px);
}

.section-hero__stat {
	position: relative;
	text-align: center;
	padding: 0 20px;
}

.section-hero__stat:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 14px;
	bottom: 14px;
	width: 1px;
	background: rgba(7, 31, 99, 0.28);
}

.section-hero__stat span {
	display: block;
	margin-bottom: 4px;
	color: #071f63;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
}

.section-hero__stat strong {
	display: block;
	color: #0b96c6;
	font-size: 44px;
	font-weight: 800;
	line-height: 0.95;
}

.section-hero__stat small {
	display: block;
	margin-top: 2px;
	color: #0b96c6;
	font-size: 17px;
	font-weight: 600;
}

/* =========================
   Hero features
   ========================= */

.section-hero__features {
	grid-area: features;
	position: relative;
	z-index: 3;
	margin-top: 8px;
	padding: 15px 26px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(18, 74, 145, 0.08);
	border-radius: 12px;
	box-shadow: 0 10px 26px rgba(13, 45, 98, 0.08);
}

.section-hero__feature {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	color: #4c6387;
	font-size: 16px;
	font-weight: 500;
}

.section-hero__feature:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 4px;
	bottom: 4px;
	width: 1px;
	background: rgba(7, 31, 99, 0.28);
}

.section-hero__feature span {
	color: #071f63;
	font-size: 18px;
	font-weight: 800;
}

/* =========================
   Adaptive
   ========================= */

@media (max-width: 1280px) {
	.section-hero__inner {
		padding-left: 36px;
		padding-right: 36px;
		grid-template-columns: minmax(0, 1fr) 420px;
		column-gap: 28px;
	}

	.section-hero__actions {
		grid-template-columns: 1fr;
		max-width: 520px;
	}

	.section-hero__image {
		top: -42px;
		max-width: 540px;
	}

	.section-hero__guarantee {
		right: 0;
		top: 320px;
	}
}

@media (max-width: 1024px) {
	.section-hero__inner {
		min-height: auto;
		padding: 44px 24px 0;
		grid-template-columns: 1fr;
		grid-template-areas:
			"content"
			"visual"
			"stats"
			"features";
	}

	.section-hero__visual {
		min-height: 520px;
		padding-top: 20px;
	}

	.section-hero__image {
		right: 0;
		left: auto;
		top: -8px;
		max-width: 520px;
	}

	.section-hero__guarantee {
		right: 24px;
		top: 300px;
	}
}

@media (max-width: 768px) {
	.section-hero {
		padding: 0 10px 18px;
		background-size: cover;
		background-position: center top;
	}

	.section-hero__inner {
		max-width: 100%;
		min-height: auto;
		padding: 28px 18px 0;
		display: grid;
		grid-template-columns: 1fr;
		grid-template-areas:
			"eyebrow"
			"title"
			"offer"
			"visual"
			"actions"
			"stats"
			"features";
		row-gap: 0;
	}

	.section-hero__content {
		display: contents;
	}

	.section-hero__eyebrow {
		grid-area: eyebrow;
		margin: 0 0 12px;
		font-size: 20px;
		line-height: 1.25;
	}

	.section-hero__title {
		grid-area: title;
		margin: 0 0 20px;
	}

	.section-hero--title-medium .section-hero__title {
		--hero-title-size: clamp(38px, 8vw, 54px);
		--hero-title-line: 1;
		--hero-title-spacing: -0.035em;
	}

	.section-hero--title-small .section-hero__title {
		--hero-title-size: clamp(32px, 7vw, 44px);
		--hero-title-line: 1.08;
		--hero-title-spacing: -0.02em;
	}

	.section-hero--title-xsmall .section-hero__title {
		--hero-title-size: clamp(28px, 6vw, 38px);
		--hero-title-line: 1.12;
		--hero-title-spacing: -0.015em;
	}

	.section-hero__offer {
		grid-area: offer;
		max-width: none;
	}

	.section-hero__offer-title {
		margin-bottom: 14px;
		font-size: 24px;
		line-height: 1.15;
		border-bottom-width: 3px;
	}

	.section-hero__offer-title-spacer {
		height: 31px;
		margin-bottom: 14px;
	}

	.section-hero__list {
		gap: 8px;
	}

	.section-hero__list li {
		min-height: 52px;
		padding: 10px 16px 10px 54px;
		border-radius: 12px;
		font-size: 18px;
		line-height: 1.25;
	}

	.section-hero__list li::before {
		left: 20px;
		width: 24px;
		height: 24px;
		font-size: 14px;
	}

	.section-hero__visual {
		grid-area: visual;
		position: relative;
		min-height: 430px;
		padding-top: 0;
		margin-top: 0;
		z-index: 2;
	}

	.section-hero__image {
		position: absolute;
		left: 50%;
		right: auto;
		top: 0;
		transform: translateX(-50%);
		width: auto;
		max-width: min(82vw, 440px);
		height: auto;
		margin: 0;
		z-index: 1;
	}

	.section-hero__guarantee {
		position: absolute;
		right: 0;
		top: 52%;
		bottom: auto;
		z-index: 3;
		width: min(56%, 300px);
		padding: 14px;
		border-radius: 12px;
		display: flex;
		gap: 12px;
		align-items: flex-start;
		background: rgba(255, 255, 255, 0.92);
		border: 1px solid rgba(18, 74, 145, 0.08);
		box-shadow: 0 18px 34px rgba(13, 45, 98, 0.14);
	}

	.section-hero__guarantee-icon {
		flex-basis: 30px;
		width: 30px;
		height: 30px;
	}

	.section-hero__guarantee-icon img {
		width: 62px;
		height: 62px;
		transform: translate(2px, 0);
	}

	.section-hero__guarantee strong {
		font-size: 15px;
	}

	.section-hero__guarantee p {
		margin: 4px 0 0 -42px;
		width: calc(100% + 42px);
		font-size: 13px;
	}

	.section-hero__actions {
		grid-area: actions;
		position: relative;
		z-index: 5;
		margin-top: 0;
		margin-bottom: 0;
		display: grid;
		grid-template-columns: 1fr;
		gap: 12px;
		max-width: none;
	}

	.section-hero__action-card {
		min-height: 86px;
		padding: 16px 20px;
		border-radius: 14px;
		gap: 16px;
	}

	.section-hero__action-icon {
		width: 54px;
		height: 54px;
		flex-basis: 54px;
		border-radius: 12px;
	}

	.section-hero__action-icon img {
		width: 68px;
		height: 68px;
	}

	.section-hero__action-content strong {
		font-size: 22px;
		line-height: 1.1;
	}

	.section-hero__action-content small {
		font-size: 16px;
		line-height: 1.3;
	}

	.section-hero__stats {
		grid-area: stats;
		margin-top: 16px;
		padding: 16px 8px;
		grid-template-columns: repeat(3, 1fr);
		border-radius: 14px;
	}

	.section-hero__stat {
		padding: 0 8px;
	}

	.section-hero__stat span {
		font-size: 12px;
		line-height: 1.2;
	}

	.section-hero__stat strong {
		font-size: clamp(30px, 8vw, 42px);
	}

	.section-hero__stat small {
		font-size: 13px;
		line-height: 1.2;
	}

	.section-hero__stat:not(:last-child)::after {
		top: 12px;
		bottom: 12px;
		left: auto;
		right: 0;
		width: 1px;
		height: auto;
	}

	.section-hero__features {
		grid-area: features;
		margin-top: 10px;
		padding: 8px 24px;
		grid-template-columns: 1fr;
		border-radius: 14px;
	}

	.section-hero__feature {
		justify-content: flex-start;
		padding: 12px 0;
		font-size: 17px;
		line-height: 1.25;
	}

	.section-hero__feature:not(:last-child)::after {
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		width: auto;
		height: 1px;
	}
}

@media (max-width: 480px) {
	.section-hero__inner {
		padding-left: 14px;
		padding-right: 14px;
	}

	.section-hero__eyebrow {
		font-size: 17px;
	}

	.section-hero__offer-title {
		font-size: 22px;
	}

	.section-hero__offer-title-spacer {
		height: 28px;
	}

	.section-hero__list li {
		font-size: 16px;
		min-height: 48px;
		padding-left: 50px;
	}

	.section-hero__visual {
		min-height: 360px;
	}

	.section-hero__image {
		max-width: 330px;
	}

	.section-hero__guarantee {
		top: 48%;
		right: -4px;
		width: 220px;
		padding: 12px;
	}

	.section-hero__guarantee p {
		font-size: 12px;
	}

	.section-hero__action-card {
		min-height: 78px;
		padding: 14px 16px;
	}

	.section-hero__action-icon {
		width: 48px;
		height: 48px;
		flex-basis: 48px;
	}

	.section-hero__action-icon img {
		width: 62px;
		height: 62px;
	}

	.section-hero__action-content strong {
		font-size: 20px;
	}

	.section-hero__action-content small {
		font-size: 14px;
	}

	.section-hero__stats {
		padding: 14px 6px;
	}

	.section-hero__stat span {
		font-size: 11px;
	}

	.section-hero__stat small {
		font-size: 12px;
	}

	.section-hero__features {
		padding-left: 18px;
		padding-right: 18px;
	}
}
