/* Internal pages on stk-design */

.stk-page.stk-internal {
	background:
		radial-gradient(900px 360px at 90% -10%, rgba(47, 159, 223, 0.1), transparent 55%),
		linear-gradient(180deg, #f4f8fb 0%, #eef4f9 100%);
	padding-bottom: 72px;
}

/* Legal pages keep the same paper background as other internal pages
   so the shared site footer matches the homepage look. */

main.stk-partners-page,
main.stk-calculators-page,
main.stk-legal-page,
main.stk-about-page,
main.stk-contacts-page,
main.stk-reviews-page,
main.stk-faq-page,
main.stk-cases-page,
main.stk-projects-page {
	font-family: var(--stk-font);
	color: var(--stk-ink);
}

.stk-partners-page__inner,
.stk-calculators-page__inner,
.stk-about-page .stk-about-page__inner,
.stk-internal .stk-container {
	width: min(var(--stk-container), calc(100% - 48px));
	margin-inline: auto;
}

/* Legal content width only — cover stays full-bleed. */
.stk-legal-page > .stk-legal-page__inner {
	width: min(920px, calc(100% - 40px));
	margin-inline: auto;
}

/* Partners hero on cover band */
.stk-partners__hero-cover.stk-cover-band {
	align-items: end;
	min-height: min(720px, 92vh);
}

.stk-partners__hero-cover.stk-cover-band_tall {
	min-height: min(720px, 92vh);
}

.stk-partners__hero-cover .stk-partners__h1,
.stk-partners__hero-cover .stk-partners__lead {
	color: #fff;
}

.stk-partners__hero-cover .stk-partners__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 28px 0 22px;
	padding: 0;
	background: transparent;
	border: 0;
	backdrop-filter: none;
}

.stk-partners__hero-cover .stk-partners__stat-value {
	color: #2497dc;
}

.stk-partners__hero-cover .stk-partners__stat-label {
	color: #5a6a78;
}

.stk-partners__hero-cover .stk-partners__cta_ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.7);
	color: #fff !important;
	box-shadow: none;
}

.stk-partners__hero-cover > .stk-breadcrumbs,
.stk-cover-band .stk-breadcrumbs_on-cover {
	position: absolute;
	z-index: 3;
	top: 18px;
	left: max(24px, calc((100% - var(--stk-container, 1160px)) / 2));
	right: auto;
	width: min(var(--stk-container, 1160px), calc(100% - 48px));
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	color: rgba(255, 255, 255, 0.88);
	background: transparent !important;
	border: 0 !important;
	text-shadow: none;
	pointer-events: auto;
}

.stk-partners__hero-cover [data-stk-hero-el] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.7s var(--stk-ease), transform 0.7s var(--stk-ease);
}

.stk-partners__hero-cover.is-ready [data-stk-hero-el] {
	opacity: 1;
	transform: none;
}

.stk-partners__hero-cover.is-ready [data-stk-hero-el]:nth-child(1) { transition-delay: 0.05s; }
.stk-partners__hero-cover.is-ready [data-stk-hero-el]:nth-child(2) { transition-delay: 0.16s; }
.stk-partners__hero-cover.is-ready [data-stk-hero-el]:nth-child(3) { transition-delay: 0.28s; }
.stk-partners__hero-cover.is-ready [data-stk-hero-el]:nth-child(4) { transition-delay: 0.4s; }

@media (max-width: 900px) {
	.stk-partners__hero-cover .stk-partners__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stk-page.stk-internal,
	.stk-about-page,
	.stk-faq-page,
	.stk-reviews-page,
	.stk-etapy-page,
	.stk-contacts,
	.stk-calculators-page {
		overflow-x: clip;
	}

	.stk-partners__hero-shell,
	.stk-calculators__lead_after-cover,
	.stk-about-page__inner,
	.stk-faq-page__inner,
	.stk-reviews-page__inner,
	.stk-etapy-page__inner,
	.stk-contacts__inner {
		width: min(var(--stk-container), calc(100% - 32px));
		margin-inline: auto;
	}

	.stk-partners__section,
	.stk-calculators__section,
	.stk-calculators__text-block,
	.stk-calculators__faq,
	.stk-calculators__cta {
		padding-inline: 18px;
	}
}

@media (max-width: 560px) {
	.stk-partners__hero-cover .stk-partners__stats {
		grid-template-columns: 1fr;
	}

	.stk-partners__hero-cover .stk-partners__h1,
	.stk-calculators__h1,
	.stk-about-page h1,
	.stk-faq-page h1,
	.stk-reviews-page h1,
	.stk-etapy-page h1,
	.stk-contacts h1 {
		font-size: clamp(28px, 9vw, 40px);
		line-height: 1.12;
	}

	.stk-calculators__grid,
	.stk-partners__grid {
		grid-template-columns: 1fr;
	}

	.stk-calculators__card-cta,
	.stk-partners__cta,
	.stk-partners__submit {
		width: 100%;
		justify-content: center;
	}
}


.stk-partners-page__inner {
	padding-top: 36px;
}

.stk-partners__section {
	margin: 28px 0 0;
	padding: 28px 28px 16px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--stk-line);
	border-radius: var(--stk-radius-lg);
	box-shadow: var(--stk-shadow-soft);
}

.stk-partners__h1,
.stk-partners__h2 {
	letter-spacing: -0.03em;
}

.stk-partners__hero-shell {
	position: relative;
	z-index: 2;
	width: min(var(--stk-container), calc(100% - 48px));
	margin: 0 auto;
	padding: calc(var(--stk-header-h) + 48px) 0 48px;
}

.stk-partners__hero-cover .stk-partners__h1 {
	max-width: 16ch;
	font-size: clamp(32px, 5vw, 54px);
	line-height: 1.08;
}

.stk-partners__cta,
.stk-partners__submit {
	border-radius: 12px;
	background: linear-gradient(180deg, #49b0e8 0%, var(--stk-accent) 100%);
	box-shadow: 0 12px 28px rgba(28, 127, 189, 0.28);
	transition: transform 0.3s var(--stk-ease);
}

.stk-partners__cta:hover,
.stk-partners__submit:hover {
	transform: translateY(-2px);
}

.stk-partners__card,
.stk-partners__case,
.stk-partners__value {
	border-radius: 14px;
	border: 1px solid var(--stk-line);
	background: #fff;
	transition: transform 0.35s var(--stk-ease);
}

.stk-partners__card:hover,
.stk-partners__case:hover {
	transform: translateY(-3px);
}

/* Legal */

.stk-legal__body {
	width: min(860px, calc(100% - 48px));
	margin: 28px auto 0;
	padding: 28px;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--stk-line);
	border-radius: var(--stk-radius-lg);
	box-shadow: var(--stk-shadow-soft);
	line-height: 1.65;
}

.stk-legal__body h2,
.stk-legal__body h3 {
	letter-spacing: -0.02em;
}

/* Calculators */

.stk-calculators {
	padding-bottom: 40px;
}

.stk-calculators > .stk-calculators__lead_after-cover,
.stk-calculators > .stk-calculators__lead,
.stk-calculators > .stk-calculators__intro,
.stk-calculators > .stk-calculators__hero {
	width: min(var(--stk-container), calc(100% - 48px));
	margin-left: auto;
	margin-right: auto;
}

.stk-calculators__lead_after-cover {
	margin-top: 28px;
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 650;
}

.stk-calculators__intro {
	margin-bottom: 28px;
	color: var(--stk-muted);
	line-height: 1.6;
}

.stk-calculators__section,
.stk-calculators__text-block,
.stk-calculators__faq,
.stk-calculators__cta {
	width: min(var(--stk-container), calc(100% - 48px));
	margin: 28px auto 0;
	padding: 28px;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--stk-line);
	border-radius: var(--stk-radius-lg);
	box-shadow: var(--stk-shadow-soft);
}

.stk-calculators__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}

.stk-calculators__card {
	display: flex;
	flex-direction: column;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--stk-line);
	background: #fff;
	text-decoration: none !important;
	color: inherit;
	transition: transform 0.35s var(--stk-ease), box-shadow 0.35s ease;
}

.stk-calculators__card:hover {
	transform: translateY(-4px);
	box-shadow: var(--stk-shadow-soft);
}

.stk-calculators__card-media {
	display: block;
	height: 140px;
	background: #d7e4ef center / cover no-repeat;
}

.stk-calculators__card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 18px;
}

.stk-calculators__card-title {
	font-weight: 740;
	font-size: 17px;
	line-height: 1.3;
}

.stk-calculators__card-excerpt {
	color: var(--stk-muted);
	font-size: 14px;
	line-height: 1.45;
}

.stk-calculators__card-cta {
	margin-top: auto;
	color: var(--stk-accent-2);
	font-weight: 700;
	font-size: 14px;
}

.stk-calculators__cta-btn {
	display: inline-flex;
	margin-top: 14px;
	min-height: 48px;
	padding: 0 22px;
	align-items: center;
	border-radius: 12px;
	background: linear-gradient(180deg, #49b0e8 0%, var(--stk-accent) 100%);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
}

/* Generic breadcrumbs on internal pages */
.stk-internal .stk-breadcrumbs:not(.stk-breadcrumbs_on-cover) {
	box-sizing: border-box;
	width: min(var(--stk-container), calc(100% - 48px));
	margin: 20px auto 0;
	padding: 0;
	font-size: 14px;
	color: var(--stk-muted);
	background: transparent;
	border-bottom: 0;
}

.stk-internal .stk-breadcrumbs__link {
	color: var(--stk-accent-2);
	text-decoration: none;
}


.stk-calculators__card {
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(14, 40, 60, 0.06);
}
.stk-calculators__card-cta {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 12px;
	border-radius: 8px;
	background: rgba(36, 151, 220, 0.12);
	color: #1c7fbd !important;
}
.stk-calculators__card:hover .stk-calculators__card-cta {
	background: #2497dc;
	color: #fff !important;
}
