/* Machine catalog /baza-stankov/ — aligned with stk-design */

.stk-baza {
	background:
		radial-gradient(900px 360px at 90% -10%, rgba(47, 159, 223, 0.1), transparent 55%),
		linear-gradient(180deg, #f4f8fb 0%, #eef4f9 100%);
	padding: 0 0 80px;
	font-family: var(--stk-font, "SiteSans", "TildaSans", "Segoe UI", sans-serif);
	color: var(--stk-ink, #0e1620);
}

.stk-baza__inner {
	width: min(var(--stk-container, 1160px), calc(100% - 48px));
	margin: 0 auto;
}

.stk-baza__hero {
	padding: 28px 0 24px;
}

.stk-baza__hero .stk-breadcrumbs {
	margin: 0 0 18px;
	padding: 0;
	background: transparent;
	border: 0;
	width: auto;
	max-width: none;
}

.stk-baza__title {
	margin: 0 0 14px;
	font-size: clamp(32px, 4.6vw, 48px);
	line-height: 1.08;
	font-weight: 780;
	letter-spacing: -0.03em;
	color: var(--stk-ink, #0e1620);
}

.stk-baza__lead {
	font-size: clamp(16px, 1.6vw, 18px);
	line-height: 1.55;
	color: var(--stk-muted, #5c6b7a);
}

.stk-baza__lead p {
	margin: 0 0 12px;
}

.stk-baza__lead-strong {
	font-size: clamp(17px, 1.8vw, 20px);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--stk-ink, #0e1620);
}

.stk-baza__nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 4px 0 40px;
	padding: 12px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid var(--stk-line, rgba(14, 22, 32, 0.1));
	border-radius: var(--stk-radius-lg, 22px);
	box-shadow: var(--stk-shadow-soft, 0 10px 28px rgba(14, 40, 60, 0.07));
}

.stk-baza__nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 48px;
	padding: 10px 16px;
	border-radius: 12px;
	border: 1px solid var(--stk-line, rgba(14, 22, 32, 0.1));
	background: #fff;
	color: var(--stk-ink, #0e1620) !important;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.3;
	text-decoration: none !important;
	transition: transform 0.25s var(--stk-ease, ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}

.stk-baza__nav-btn:hover {
	border-color: rgba(47, 159, 223, 0.45);
	color: var(--stk-accent-2, #1c7fbd) !important;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(28, 127, 189, 0.12);
}

.stk-baza__nav-btn.is-active {
	background: linear-gradient(180deg, #49b0e8 0%, var(--stk-accent, #2f9fdf) 100%);
	border-color: transparent;
	color: #fff !important;
	box-shadow: 0 10px 22px rgba(28, 127, 189, 0.28);
}

.stk-baza__seo {
	margin: 8px 0 40px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.stk-baza__seo-block {
	padding: 24px 26px;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--stk-line, rgba(14, 22, 32, 0.1));
	border-radius: var(--stk-radius-lg, 22px);
	box-shadow: var(--stk-shadow-soft, 0 10px 28px rgba(14, 40, 60, 0.07));
}

.stk-baza__seo-block .stk-baza__h2 {
	margin-bottom: 10px;
}

.stk-baza__seo-block p {
	margin: 0;
	max-width: 52rem;
	font-size: 16px;
	line-height: 1.6;
	color: var(--stk-muted, #5c6b7a);
}

.stk-baza .stk-blog-questions {
	margin-top: 8px;
}

/* ---- Machine card (detail) layout kept below ---- */

.stk-baza__inner_machine {
	width: min(var(--stk-container, 1160px), calc(100% - 48px));
}

.stk-machine__hero {
	padding: 28px 0 8px;
}

.stk-machine__layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
	padding-bottom: 48px;
}

.stk-machine__toc-wrap {
	position: sticky;
	top: 132px;
}

body.admin-bar .stk-machine__toc-wrap {
	top: 164px;
}

.stk-machine__toc {
	padding: 14px 12px;
	background: #fff;
	border: 1px solid rgba(36, 151, 220, 0.12);
	border-radius: 14px;
	max-height: calc(100vh - 120px);
	overflow: auto;
	scrollbar-width: thin;
	scrollbar-color: #9fd3f3 transparent;
}

.stk-machine__toc-title {
	margin: 0 0 8px;
	padding: 0 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7a8a;
}

.stk-machine__toc-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.stk-machine__toc-link {
	display: block;
	padding: 6px 8px 6px 10px;
	border-radius: 8px;
	border-left: 2px solid transparent;
	color: #3d4a57 !important;
	font-size: 12.5px;
	line-height: 1.35;
	text-decoration: none !important;
}

.stk-machine__toc-link:hover {
	background: #f3f9fd;
	color: #1a7eb8 !important;
}

.stk-machine__toc-link.is-active {
	background: #eaf6fd;
	border-left-color: #2497dc;
	color: #1a7eb8 !important;
	font-weight: 600;
}

.stk-machine__title {
	margin: 0 0 12px;
	font-size: clamp(28px, 4.2vw, 42px);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #12151a;
}

.stk-machine__excerpt {
	margin: 0 0 18px;
	max-width: 46rem;
	font-size: 16px;
	line-height: 1.55;
	color: #4b5866;
}

.stk-machine__callouts {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 20px;
}

.stk-machine__disclaimer {
	margin: 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid rgba(36, 151, 220, 0.14);
	border-left: 3px solid #66bbf0;
	color: #1f4e79;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.45;
}

.stk-machine__definition {
	margin: 0;
	padding: 16px 18px;
	border-radius: 12px;
	border: 1px solid rgba(36, 151, 220, 0.12);
	background: #fff;
}

.stk-machine__definition p {
	margin: 0;
	color: #3a4654;
	font-size: 15px;
	line-height: 1.6;
}

.stk-machine__media {
	margin: 0 0 28px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid rgba(36, 151, 220, 0.1);
	background-color: #d9ecf8;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	aspect-ratio: 16 / 9;
	min-height: 220px;
}

.stk-machine__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.stk-machine__section {
	margin: 0 0 36px;
	font-size: 16px;
	line-height: 1.65;
	color: #3d4a57;
}

.stk-machine__h2 {
	margin: 0 0 14px;
	font-size: clamp(22px, 3vw, 28px);
	line-height: 1.25;
	font-weight: 800;
	color: #12151a;
}

.stk-machine__section p {
	margin: 0 0 12px;
}

.stk-machine__related {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	grid-auto-flow: row;
	overflow: visible;
	gap: 14px;
	padding-bottom: 0;
}

.stk-machine__related .stk-baza__card {
	flex: none;
}

.stk-machine__cta {
	margin: 8px 0 36px;
	padding: 24px 26px;
	background: #fff;
	border: 1px solid rgba(36, 151, 220, 0.12);
	border-radius: 16px;
}

.stk-machine__cta p {
	margin: 0 0 14px;
	max-width: 40rem;
	color: #4b5866;
}

.stk-machine__mid-cta {
	margin: 4px 0 32px;
	padding: 20px 22px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid rgba(36, 151, 220, 0.12);
}

.stk-machine__mid-cta-title {
	margin: 0 0 8px;
	color: #12151a;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.3;
}

.stk-machine__mid-cta-text {
	margin: 0 0 14px;
	max-width: 40rem;
	color: #4b5866;
	font-size: 15px;
	line-height: 1.55;
}

.stk-machine__mid-cta-actions {
	margin: 0;
}

.stk-machine__mid-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 10px;
	background: #2497dc;
	color: #fff !important;
	font-size: 14.5px;
	font-weight: 700;
	text-decoration: none !important;
}

.stk-machine__mid-cta-btn:hover {
	background: #1b82c1;
}

.stk-machine__longform .stk-machine__h3 {
	margin: 22px 0 10px;
	font-size: 1.05rem;
	font-weight: 700;
	color: #12151a;
}

.stk-machine__longform ul,
.stk-machine__longform ol {
	margin: 0 0 16px;
	padding-left: 1.25em;
	max-width: 46rem;
}

.stk-machine__longform li {
	margin: 0 0 8px;
}

.stk-machine__table-wrap {
	margin: 18px 0 24px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 2px solid rgba(36, 151, 220, 0.28);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(31, 78, 121, 0.08);
}

.stk-machine__table {
	width: 100%;
	border-collapse: collapse;
	min-width: 560px;
	font-size: 14.5px;
}

.stk-machine__table th,
.stk-machine__table td {
	padding: 13px 16px;
	border-bottom: 1px solid rgba(18, 40, 60, 0.1);
	text-align: left;
	vertical-align: top;
	line-height: 1.45;
	color: #3a4654;
}

.stk-machine__table th {
	background: #1f4e79;
	color: #fff;
	font-weight: 700;
	white-space: nowrap;
}

.stk-machine__table thead th:first-child {
	border-radius: 12px 0 0 0;
}

.stk-machine__table thead th:last-child {
	border-radius: 0 12px 0 0;
}

.stk-machine__table tbody tr:nth-child(even) td {
	background: #eef7fd;
}

.stk-machine__table tbody tr:hover td {
	background: #e0f1fb;
}

.stk-machine__table tr:last-child td {
	border-bottom: 0;
}

.stk-machine__drugie-intro {
	margin: 0 0 16px;
	max-width: 46rem;
	font-size: 16px;
	line-height: 1.6;
	color: #3d4a57;
}

.stk-machine__drugie-intro p {
	margin: 0 0 10px;
}

.stk-machine__drugie-intro p:last-child {
	margin-bottom: 0;
}

.stk-machine__layout > * {
	min-width: 0;
}

@media screen and (max-width: 980px) {
	.stk-machine__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.stk-machine__toc-wrap {
		position: static;
		max-width: 100%;
	}

	.stk-machine__toc {
		overflow-x: auto;
	}

	.stk-machine__toc-list {
		flex-direction: row;
		flex-wrap: nowrap;
		gap: 8px;
	}

	.stk-machine__toc-link {
		white-space: nowrap;
	}
}


.stk-baza__section {
	margin: 0 0 48px;
}

.stk-baza__h2 {
	margin: 0 0 18px;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.15;
	font-weight: 780;
	letter-spacing: -0.03em;
	color: var(--stk-ink, #0e1620);
}

.stk-baza__h2::before {
	content: "";
	display: block;
	width: 36px;
	height: 3px;
	margin-bottom: 12px;
	border-radius: 999px;
	background: linear-gradient(90deg, #a8cf45 0%, var(--stk-accent, #2f9fdf) 100%);
}

.stk-baza__rail-wrap {
	position: relative;
}

.stk-baza__rail {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	padding: 2px 0 4px;
	overflow: visible;
}

.stk-baza__card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--stk-radius-lg, 22px);
	background: #fff;
	border: 1px solid var(--stk-line, rgba(14, 22, 32, 0.1));
	box-shadow: var(--stk-shadow-soft, 0 10px 28px rgba(14, 40, 60, 0.07));
	text-decoration: none !important;
	color: inherit;
	min-height: 100%;
	transition: transform 0.35s var(--stk-ease, ease), box-shadow 0.35s ease, border-color 0.25s ease;
}

.stk-baza__card:hover {
	transform: translateY(-4px);
	border-color: rgba(47, 159, 223, 0.35);
	box-shadow: var(--stk-shadow, 0 18px 48px rgba(14, 40, 60, 0.1));
}

.stk-baza__card-media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 11;
	background-color: #e8eef3;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
}

.stk-baza__card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(180deg, transparent 58%, rgba(7, 14, 22, 0.28) 100%);
	opacity: 1;
	transition: background 0.35s ease;
}

.stk-baza__card:hover .stk-baza__card-media::after {
	background: linear-gradient(180deg, transparent 50%, rgba(7, 14, 22, 0.4) 100%);
}

.stk-baza__card-img {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--stk-ease, ease);
}

.stk-baza__card:hover .stk-baza__card-img {
	transform: scale(1.05);
}

.stk-baza__card-title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
	min-height: 3.6em;
	margin: 0;
	padding: 16px 18px 18px;
	font-size: 16px;
	line-height: 1.35;
	font-weight: 740;
	letter-spacing: -0.02em;
	color: var(--stk-ink, #0e1620);
}

.stk-baza__card::after {
	content: "Смотреть";
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 18px 18px;
	padding: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--stk-accent-2, #1c7fbd);
	transition: gap 0.25s ease, color 0.2s ease;
}

.stk-baza__card:hover::after {
	gap: 10px;
	color: var(--stk-accent, #2f9fdf);
}

.stk-baza__arrow {
	display: none !important;
}

.stk-baza__section-foot {
	display: flex;
	justify-content: flex-start;
	margin-top: 18px;
}

.stk-baza__all {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 20px;
	border-radius: 12px;
	background: linear-gradient(180deg, #49b0e8 0%, var(--stk-accent, #2f9fdf) 100%);
	box-shadow: 0 12px 28px rgba(28, 127, 189, 0.28);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform 0.3s var(--stk-ease, ease), box-shadow 0.3s ease;
}

.stk-baza__all:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(28, 127, 189, 0.34);
	color: #fff !important;
}

.stk-baza__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	font-size: 13px;
}

.stk-baza__help {
	margin: 8px 0 48px;
	padding: 32px;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--stk-line, rgba(14, 22, 32, 0.1));
	border-radius: var(--stk-radius-lg, 22px);
	box-shadow: var(--stk-shadow-soft, 0 10px 28px rgba(14, 40, 60, 0.07));
}

.stk-baza__help-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 28px;
	align-items: start;
}

.stk-baza__help-copy {
	font-size: 16px;
	line-height: 1.55;
	color: var(--stk-muted, #5c6b7a);
}

.stk-baza__help-copy p {
	margin: 0 0 12px;
}

.stk-baza__help-list-title {
	margin-top: 8px !important;
	font-weight: 700;
	color: var(--stk-ink, #0e1620);
}

.stk-baza__help-list {
	margin: 0 0 14px;
	padding-left: 1.2em;
}

.stk-baza__help-list li {
	margin: 0 0 6px;
}

.stk-baza__help-form .stk-blog-questions {
	margin: 0;
	padding: 28px 22px;
	border-radius: 14px;
}

.stk-baza__faq {
	margin: 0 0 20px;
}

.stk-baza__faq-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.stk-baza__faq-item {
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid var(--stk-line, rgba(14, 22, 32, 0.1));
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--stk-shadow-soft, 0 10px 28px rgba(14, 40, 60, 0.07));
	transition: border-color 0.2s ease;
}

.stk-baza__faq-item[open] {
	border-color: rgba(47, 159, 223, 0.35);
}

.stk-baza__faq-q {
	display: block;
	cursor: pointer;
	list-style: none;
	padding: 16px 48px 16px 18px;
	position: relative;
}

.stk-baza__faq-q::-webkit-details-marker {
	display: none;
}

.stk-baza__faq-q::after {
	content: '+';
	position: absolute;
	right: 14px;
	top: 14px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--stk-accent-soft, rgba(47, 159, 223, 0.12));
	color: var(--stk-accent-2, #1c7fbd);
	font-size: 20px;
	line-height: 26px;
	text-align: center;
	font-weight: 600;
}

.stk-baza__faq-item[open] .stk-baza__faq-q::after {
	content: '\2212';
}

.stk-baza__faq-h3 {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 700;
	color: var(--stk-ink, #0e1620);
}

.stk-baza__faq-a {
	padding: 0 18px 16px;
	font-size: 15px;
	line-height: 1.55;
	color: var(--stk-muted, #5c6b7a);
}

.stk-baza__faq-a p {
	margin: 0;
}

@media screen and (max-width: 980px) {
	.stk-baza__rail {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}

	.stk-baza__help-grid {
		grid-template-columns: 1fr;
	}

	.stk-baza__nav {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 640px) {
	.stk-baza__inner {
		width: min(var(--stk-container, 1160px), calc(100% - 28px));
	}

	.stk-baza__nav {
		padding: 10px;
	}

	.stk-baza__help {
		padding: 22px 16px;
	}

	.stk-baza__rail {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.stk-baza__card-title {
		min-height: 0;
		font-size: 15px;
		-webkit-line-clamp: 4;
	}

	.stk-machine__img {
		aspect-ratio: 4 / 3;
	}

	.stk-baza__inner_machine {
		width: calc(100% - 28px);
	}

	.stk-machine__title {
		font-size: 26px;
		overflow-wrap: anywhere;
	}

	.stk-machine__excerpt {
		font-size: 15px;
	}

	.stk-machine__media {
		aspect-ratio: 4 / 3;
		min-height: 0;
		margin-bottom: 20px;
	}

	.stk-machine__main img,
	.stk-machine__main iframe,
	.stk-machine__main video {
		max-width: 100%;
		height: auto;
	}
}


/* Sticky header is ~114px; leave a gap so H2 is not covered. */
.stk-machine__h2,
.stk-machine__section > h2,
.stk-machine__cta > h2 {
	scroll-margin-top: 140px;
}

body.admin-bar .stk-machine__h2,
body.admin-bar .stk-machine__section > h2,
body.admin-bar .stk-machine__cta > h2 {
	scroll-margin-top: 172px;
}

.stk-baza__lead,
.stk-baza__lead-strong,
.stk-baza__title,
.stk-machine__h2,
.stk-machine__title {
	text-align: left;
}

.stk-baza__lead p,
.stk-machine__section p,
.stk-machine__longform p {
	text-align: justify;
}

.stk-baza__note {
	margin: 16px 0 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: rgba(36, 151, 220, 0.08);
	border: 1px solid rgba(36, 151, 220, 0.18);
	color: #243040;
}

.stk-machine__toc-title {
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 800;
	color: #6b7785;
}

.stk-machine__longform .stk-blog-questions {
	margin: 8px 0 36px;
}
