/* =========================================================
   СТАНКОВЕД — native design system
   Clean tokens + primitives. No Tilda layout dependency.
   ========================================================= */

:root {
	--stk-ink: #0e1620;
	--stk-ink-soft: #243040;
	--stk-muted: #5c6b7a;
	--stk-line: rgba(14, 22, 32, 0.1);
	--stk-line-strong: rgba(14, 22, 32, 0.16);
	--stk-paper: #f5f8fb;
	--stk-paper-2: #eaf2f8;
	--stk-white: #ffffff;
	--stk-accent: #2f9fdf;
	--stk-accent-2: #1c7fbd;
	--stk-accent-soft: rgba(47, 159, 223, 0.12);
	--stk-steel: #6d8499;
	--stk-radius: 14px;
	--stk-radius-lg: 22px;
	--stk-shadow: 0 18px 48px rgba(14, 40, 60, 0.1);
	--stk-shadow-soft: 0 10px 28px rgba(14, 40, 60, 0.07);
	--stk-container: 1160px;
	--stk-gutter: 24px;
	--stk-font: "SiteSans", "TildaSans", "Segoe UI", sans-serif;
	--stk-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--stk-header-h: 76px;
}

html {
	scroll-behavior: smooth;
}

body.stk-site {
	margin: 0;
	background: var(--stk-paper);
	color: var(--stk-ink);
	font-family: var(--stk-font);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--stk-accent-2);
}

/* Layout */

.stk-container {
	width: min(var(--stk-container), calc(100% - (var(--stk-gutter) * 2)));
	margin-inline: auto;
}

.stk-page {
	overflow-x: clip;
}

.stk-section {
	padding: clamp(64px, 8vw, 112px) 0;
	position: relative;
}

.stk-section_ice {
	background:
		radial-gradient(900px 320px at 10% 0%, rgba(47, 159, 223, 0.1), transparent 60%),
		linear-gradient(180deg, #eef5fa 0%, #f7fafc 100%);
}

.stk-section_white {
	background: var(--stk-white);
}

.stk-section_ink {
	background:
		radial-gradient(700px 280px at 85% 10%, rgba(47, 159, 223, 0.28), transparent 55%),
		linear-gradient(145deg, #16324a 0%, #0f2233 55%, #12293d 100%);
	color: #fff;
}

.stk-section__eyebrow {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--stk-accent-2);
}

.stk-section__title {
	margin: 0 0 16px;
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.12;
	letter-spacing: -0.03em;
	font-weight: 780;
	color: inherit;
}

.stk-section__lead {
	margin: 0 0 36px;
	max-width: 40rem;
	font-size: clamp(16px, 1.7vw, 19px);
	line-height: 1.55;
	color: var(--stk-muted);
}

.stk-section_ink .stk-section__lead {
	color: rgba(255, 255, 255, 0.82);
}

.stk-section__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.stk-section__head .stk-section__title,
.stk-section__head .stk-section__lead {
	margin-bottom: 0;
}

.stk-section__head .stk-section__lead {
	margin-top: 10px;
}

/* Buttons */

.stk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 26px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(180deg, #49b0e8 0%, var(--stk-accent) 100%);
	color: #fff !important;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(28, 127, 189, 0.28);
	transition: transform 0.3s var(--stk-ease), box-shadow 0.3s ease, filter 0.2s ease;
}

.stk-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.03);
	box-shadow: 0 16px 34px rgba(28, 127, 189, 0.34);
}

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

.stk-btn_ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	box-shadow: none;
}

.stk-btn_dark {
	background: var(--stk-ink);
	box-shadow: 0 12px 28px rgba(14, 22, 32, 0.22);
}

.stk-btn_light {
	background: #fff;
	color: var(--stk-ink) !important;
	box-shadow: 0 10px 24px rgba(14, 40, 60, 0.12);
}

/* Cards / media */

.stk-card {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--stk-line);
	border-radius: var(--stk-radius-lg);
	overflow: hidden;
	box-shadow: var(--stk-shadow-soft);
	transition: transform 0.4s var(--stk-ease), box-shadow 0.4s ease;
}

.stk-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--stk-shadow);
}

.stk-card__media {
	aspect-ratio: 16 / 10;
	background: #d7e4ef center / cover no-repeat;
	transition: transform 0.7s var(--stk-ease);
}

.stk-card:hover .stk-card__media {
	transform: scale(1.05);
}

.stk-card__body {
	padding: 22px;
}

.stk-card__meta {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--stk-muted);
}

.stk-card__title {
	margin: 0 0 10px;
	font-size: 20px;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.stk-card__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--stk-muted);
}

/* Rails */

.stk-rail {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	padding: 6px 2px 18px;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}

.stk-rail > * {
	scroll-snap-align: start;
	flex: 0 0 min(320px, 82vw);
}

/* Photo covers (production-like, self-contained) */

.stk-cover-band {
	position: relative;
	isolation: isolate;
	min-height: 56vh;
	display: grid;
	align-items: end;
	overflow: hidden;
	color: #fff;
	background: #0b1520 center / cover no-repeat;
}

.stk-cover-band::before {
	content: "";
	position: absolute;
	inset: -3%;
	background: inherit;
	background-size: cover;
	transform: scale(1.05);
	z-index: 0;
	animation: stk-cover-drift 24s var(--stk-ease) infinite alternate;
}

.stk-cover-band::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background-image: var(--stk-cover-filter, linear-gradient(to bottom, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.22)));
}

.stk-cover-band__inner {
	position: relative;
	z-index: 2;
	width: min(var(--stk-container), calc(100% - 48px));
	margin: 0 auto;
	padding: 48px 0 40px;
}

/* Any custom shell inside a cover band must sit above ::after overlay. */
.stk-cover-band > *:not(.stk-breadcrumbs) {
	position: relative;
	z-index: 2;
}

.stk-cover-band__brand {
	margin: 0 0 8px;
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 780;
	letter-spacing: 0.02em;
}

.stk-cover-band__title {
	margin: 0;
	max-width: 34rem;
	font-size: clamp(18px, 2.3vw, 26px);
	line-height: 1.35;
	font-weight: 400;
}

.stk-cover-band_center {
	align-items: center;
	text-align: center;
}

.stk-cover-band_center .stk-cover-band__title {
	margin-inline: auto;
	max-width: 40rem;
	font-size: clamp(24px, 3.4vw, 40px);
	font-weight: 750;
}

.stk-cover-band_tall {
	min-height: 100vh;
}

.stk-cover-band_short {
	min-height: 48vh;
}

@keyframes stk-cover-drift {
	from { transform: scale(1.05) translate3d(0, 0, 0); }
	to { transform: scale(1.12) translate3d(-1.2%, -0.8%, 0); }
}

/* Forms */

.stk-form-panel {
	border-radius: var(--stk-radius-lg);
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--stk-line);
	box-shadow: var(--stk-shadow);
	padding: clamp(24px, 4vw, 40px);
}

.stk-form-panel input,
.stk-form-panel textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--stk-line-strong);
	border-radius: 12px;
	padding: 14px 16px;
	font: inherit;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stk-form-panel input:focus,
.stk-form-panel textarea:focus {
	outline: none;
	border-color: var(--stk-accent);
	box-shadow: 0 0 0 4px var(--stk-accent-soft);
}

/* Motion */

[data-stk-reveal] {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s var(--stk-ease), transform 0.7s var(--stk-ease);
}

[data-stk-reveal].is-in {
	opacity: 1;
	transform: none;
}

[data-stk-reveal-child] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.55s var(--stk-ease), transform 0.55s var(--stk-ease);
}

[data-stk-reveal].is-in [data-stk-reveal-child] {
	opacity: 1;
	transform: none;
}

[data-stk-reveal].is-in [data-stk-reveal-child]:nth-child(1) { transition-delay: 0.04s; }
[data-stk-reveal].is-in [data-stk-reveal-child]:nth-child(2) { transition-delay: 0.1s; }
[data-stk-reveal].is-in [data-stk-reveal-child]:nth-child(3) { transition-delay: 0.16s; }
[data-stk-reveal].is-in [data-stk-reveal-child]:nth-child(4) { transition-delay: 0.22s; }
[data-stk-reveal].is-in [data-stk-reveal-child]:nth-child(5) { transition-delay: 0.28s; }
[data-stk-reveal].is-in [data-stk-reveal-child]:nth-child(6) { transition-delay: 0.34s; }

@media (max-width: 900px) {
	.stk-section__head {
		flex-direction: column;
		align-items: start;
	}

	.stk-cover-band {
		min-height: 42vh;
	}

	.stk-cover-band_tall {
		min-height: 88vh;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.stk-cover-band::before,
	[data-stk-reveal],
	[data-stk-reveal-child],
	.stk-card,
	.stk-btn,
	.stk-card__media {
		animation: none !important;
		transition: none !important;
		transform: none !important;
		opacity: 1 !important;
	}
}
