@font-face {
	font-family: "Tektur";
	font-style: normal;
	font-weight: 400 900;
	font-stretch: 75% 100%;
	font-display: swap;
	src: url("../fonts/Tektur-variable.ttf") format("truetype-variations");
}

.divTable {
	display: table;
	width: 100%;
}
.divTableRow {
	display: table-row;
}
.divTableHeading {
	background-color: #eee;
	display: table-header-group;
}
.divTableCell,
.divTableHead {
	border: 1px solid #999999;
	display: table-cell;
	padding: 3px 10px;
}
.divTableHeading {
	background-color: #eee;
	display: table-header-group;
	font-weight: bold;
}
.divTableFoot {
	background-color: #eee;
	display: table-footer-group;
	font-weight: bold;
}
.divTableBody {
	display: table-row-group;
}

.md-typeset {
	line-height: 1.3;
	font-size: 0.7rem;
}

.md-typeset table:not([class]) th {
	min-width: 2.5rem;
	vertical-align: middle;
}

.md-typeset table:not([class]) td {
	vertical-align: middle;
	min-width: none;
}

.md-typeset p {
	line-height: 1.3;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4 {
	line-height: 1.3;
}

.md-nav {
	line-height: 1.3;
}

.md-grid {
	max-width: 1500px;
}

.md-nav__link svg {
	height: 1.3em;
	max-width: 1.3em;
}

.printertable {
	width: 100%;
	font-size: 0.7rem;
	table-layout: fixed;
}

.printertable td {
	padding-bottom: 0.5em;
	padding-left: 1.25em;
	padding-right: 1.25em;
	padding-top: 0.5em;
}

.printertable td.printerimgtd {
	width: 50%;
	text-align: center;
}

.printerimg {
	width: 230px;
}

.altprinters {
	width: fit-content;
	line-height: 1.6em;
	font-size: 0.7rem;
}

.altprinters th {
	font-size: 1rem;
}

.altprinters td {
	padding-bottom: 0.9375em;
	padding-left: 1.25em;
	padding-right: 1.25em;
	padding-top: 0.9375em;
	min-width: 120px;
	vertical-align: middle;
	text-align: justify;
}

.altprinterimg {
	width: 120px;
	min-width: 120px;
}

.printerimgtd {
	padding-right: 50px;
	vertical-align: middle;
	padding-bottom: 0.9375em;
	padding-left: 1.25em;
	padding-right: 1.25em;
	padding-top: 0.9375em;
	min-width: 120px;
}

@media (max-width: 600px) {
	.printerimgtd {
		display: none;
	}
}

@media (max-width: 600px) {
	.altprinterimgtd {
		display: none;
	}
}

@media (min-width: 600px) {
	.upperprinterimgtr {
		display: none;
	}
}

@media screen and (min-width: 76.25em) {
	.md-nav__item--section {
		margin-top: 2em;
	}
}

[dir="ltr"] .md-header__title {
	margin-top: 0.1rem;
	margin-left: 0.5rem;
	font-size: 1.6rem;
}

.md-header__topic:first-child {
	font-weight: 100;
}

.navitable {
	width: 100%;
	font-size: large;
}

.navitable td {
	text-align: center;
	width: 33%;
	padding: 0.2rem;
}

.calibratorInput {
	text-align: center;
	min-height: 2em;
	border-radius: 0.3em;
	max-width: 8.4em;
	font-size: 0.8rem;
	border: 1px solid #000000;
}

.calibratorInputSmall {
	text-align: center;
	min-height: 2em;
	border-radius: 0.3em;
	max-width: 4em;
	font-size: 0.8rem;
	border: 1px solid #000000;
}

input[type="radio"] {
	min-height: fit-content;
}

.calibrationCodeTable {
	width: 100%;
	border-top: 0.05rem solid var(--md-typeset-table-color);
	border-bottom: 0.05rem solid var(--md-typeset-table-color);
	border-left: 0.05rem solid var(--md-typeset-table-color);
	border-right: 0.05rem solid var(--md-typeset-table-color);
}

.calibrationCodeTable th {
	font-weight: 700;
	padding-top: 1em;
	padding-bottom: 0.5em;
	padding-left: 1.5em;
	padding-right: 1.5em;
}

.calibrationCodeTable td {
	text-align: center;
	padding-left: 0.5em;
	padding-bottom: 0.5em;
	padding-right: 0.5em;
	padding-top: 0.5em;
}

.calibrationCodeTable textarea {
	width: 100%;
}

.caliButton {
	border-width: 0.1rem solid var(--md-primary-fg-color);
	font-weight: 700;
	border-radius: 0.1rem;
	border-style: solid;
	color: var(--md-primary-fg-color);
	padding-left: 32px;
	padding-right: 32px;
	padding-top: 10px;
	padding-bottom: 10px;
	transition: 0.2s linear;
	cursor: pointer;
}

.caliButton:hover {
	background-color: var(--md-accent-fg-color);
	border-color: var(--md-accent-fg-color);
	color: var(--md-accent-bg-color);
}

.caliButton:focus {
	background-color: #6c91d5;
	color: rgb(0, 0, 0);
	box-shadow: 0 0 0 4px #6c91d5;
}

.caliButtonTable {
	width: 100%;
	font-size: 0.8rem;
	border: 0px;
	margin-top: 2em;
}

.caliButtonTable td {
	padding-left: 1.5em;
	padding-right: 1.5em;
	align-content: center;
}

.filamentName {
	white-space: nowrap;
	font-size: 0.56rem;
}

.md-typeset__table th {
	white-space: nowrap;
}

.innerTable,
.innerTable tbody,
.innerTable thead,
.innerTableTR,
.innerTableTR:hover,
.innerTableTR:nth-child(2n),
.innerTableTR:nth-child(odd),
.innerTableTD,
.innerTableTD:hover {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

.innerTable {
	border: 0px;
}

.innerTableTR {
	border: 0px;
}

.innerTableTD {
	padding: 0.2em !important;
	border: 0px !important;
}

.inline-error {
	color: rgb(255, 70, 70);
	padding-top: 1em;
}

input[type="text"]:disabled {
	opacity: 0.6;
}

/* =====================================================
   Стили для системы управления профилями калибровщика
   ===================================================== */

/* Панель управления профилями - Material Design */
.profilePanel {
	padding: 20px;
	background-color: var(--md-default-bg-color);
	border: 0.05rem solid var(--md-typeset-table-color);
}

.profileControls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.profileControls label {
	font-weight: 700;
	color: var(--md-typeset-color);
	margin-right: 8px;
}

.profileSelect {
	padding: 0.7em;
	font-weight: 700;
	/*font-size: 14px;*/
	min-width: 15em;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 0.3em;
	border: 1px solid #000000;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Модальное окно */
.profileModal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	backdrop-filter: blur(5px);
	animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.profileModalContent {
	background: linear-gradient(135deg, #2a2b38 0%, #1e1f2a 100%);
	border: 1px solid rgba(0, 148, 133, 0.2);
	padding: 32px;
	min-width: 450px;
	max-width: 90vw;
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(255, 255, 255, 0.05) inset;
	animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.profileModalContent::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, #009485, #5d6cc0, #009485);
	background-size: 200% 100%;
	animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
	0% {
		background-position: -200% 0;
	}
	100% {
		background-position: 200% 0;
	}
}

.profileModalContent h3 {
	margin: 0 0 24px 0;
	color: rgba(233, 235, 252, 0.95);
	font-size: 24px;
	font-weight: 300;
	letter-spacing: 0.5px;
}

.profileNameInput {
	width: 100%;
	padding: 14px 16px;
	background: rgba(40, 41, 54, 0.6);
	border: 2px solid transparent;
	border-radius: 8px;
	color: rgb(233, 235, 252);
	font-size: 15px;
	margin-bottom: 28px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profileNameInput:focus {
	outline: none;
	background: rgba(40, 41, 54, 0.8);
	border-color: #009485;
	box-shadow: 0 0 0 4px rgba(0, 148, 133, 0.1);
}

.profileModalButtons {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

.inlineButton {
	color: var(--md-typeset-a-color) !important;
}

.inlineButton:focus {
	color: var(--md-accent-fg-color) !important;
}

.inlineButton:hover {
	color: var(--md-accent-fg-color) !important;
}

.inlineButton:disabled {
	opacity: 0.6;
}

/* Скругление углов у всех изображений и видео в контенте (8px),
   кроме эмодзи и логотипа */
.md-typeset img:not(.twemoji):not(.md-logo),
.md-typeset video {
	border-radius: 8px;
}

.md-typeset img.notrounded:not(.twemoji):not(.md-logo),
.md-typeset video.notrounded {
	border-radius: 0;
}

/* Вариант grid cards без отступов между карточками */
.grid.cards.no-gap > ul > li {
	padding: 0;
}

/* Квадратные превью-картинки в grid cards.
   Картинки большого разрешения выводятся в квадрате с центрированным
   кропом, чтобы превью выглядело аккуратно независимо от
   соотношения сторон исходника. Не задевает текстовые карточки
   (у тех первым ребёнком <li> идёт <p> с эмодзи/заголовком, а не <img>). */
.md-typeset .grid.cards > ul > li > a:has(> img:only-child) {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 8px;
}

.md-typeset .grid.cards > ul > li > a:has(> img:only-child) > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.grid.cards.no-gap.cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cards.no-gap.cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cards.cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.cards.cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Класс .no-border для grid cards: убирает обводку ячеек и hover-эффект
   (подъём/тень/заливку). Вешается на любой grid cards — cols-N, no-gap,
   обычный. Без него дефолтные стили Material (обводка + hover) сохраняются. */
.md-typeset .grid.cards.no-border > ul > li {
	border: none;
	background: transparent;
	box-shadow: none;
}

.md-typeset .grid.cards.no-border > ul > li:hover {
	border: none;
	background: transparent;
	box-shadow: none;
	transform: none;
}

@media screen and (max-width: 60rem) {
	.grid.cards.no-gap.cols-2,
	.grid.cards.no-gap.cols-3,
	.grid.cards.cols-2,
	.grid.cards.cols-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 30rem) {
	.grid.cards.no-gap.cols-2,
	.grid.cards.no-gap.cols-3,
	.grid.cards.cols-2,
	.grid.cards.cols-3 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Горизонтальный блок «картинка слева, текст справа».
   Используем flex вместо grid, потому что flex-direction: row-reverse —
   единственный короткий способ визуально переставить элементы без order. */
.md-typeset .image-text-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	margin: 1em 0;
}

/* Картинка справа, текст слева. DOM-порядок при этом сохраняется обычный. */
.md-typeset .image-text-row.reverse {
	flex-direction: row-reverse;
}

.md-typeset .image-text-row .image-text-img {
	flex: 0 0 auto;
	max-width: 100%;
}

.md-typeset .image-text-row .image-text-content {
	flex: 1 1 0;
	min-width: 0;
}

/* :where(...) зануляет специфичность классов, чтобы не перебивать
   правила темы для img[src$="#only-light"] / img[src$="#only-dark"]. */
:where(.md-typeset .image-text-row .image-text-img) img,
:where(.md-typeset .image-text-row .image-text-img) video {
	max-width: 100%;
	height: auto;
	display: block;
}

/* <video> без загруженных метаданных имеет intrinsic 0×0 → без явной ширины
   flex-basis: auto даёт ноль, и блок пропадает. Задаём width + aspect-ratio. */
:where(.md-typeset .image-text-row .image-text-img) video {
	width: 320px;
	aspect-ratio: 1 / 1;
}

/* Узкий экран: одна колонка во всю ширину контейнера;
   картинка тянется на всю колонку, текст под ней занимает ту же ширину. */
@media (max-width: 40rem) {
	.md-typeset .image-text-row,
	.md-typeset .image-text-row.reverse {
		flex-direction: column;
	}

	:where(.md-typeset .image-text-row .image-text-img) img,
	:where(.md-typeset .image-text-row .image-text-img) video {
		width: 100%;
	}
}

.md-typeset .image-text-row .image-text-content > :first-child {
	margin-top: 0;
}

.md-typeset .image-text-row .image-text-content > :last-child {
	margin-bottom: 0;
}

.md-typeset .image-text-row .image-text-content > p {
	line-height: 1.6;
}

.md-typeset .admonition-title:before,
.md-typeset summary:before {
	top: 0.3rem;
}

/* =====================================================
   Галерея сборок VOSTOK (docs/vostok/gallery/index.md)
   ===================================================== */

/* Каждый пост — это <article class="gallery-post"> с H2 (id="post-NNN"),
   шапкой, текстом и сеткой медиа внутри. Скрываем все посты, кроме того,
   на который указывает URL-фрагмент (#post-NNN). Material TOC генерирует
   ссылки на эти H2 — клик по ним меняет хеш, после чего CSS показывает
   нужный пост без перезагрузки страницы. */
.md-typeset .gallery > .gallery-post {
	display: none;
	scroll-margin-top: 4.5rem;
}

/* ID якоря ставится на H2 внутри <article>, потому что так Material
   подхватывает заголовок в TOC. Активируем пост через :has(). */
.md-typeset .gallery > .gallery-post:has(h2[id^="post-"]:target) {
	display: block;
}

/* Если в URL нет фрагмента (первый заход / рефреш) — показываем первый пост.
   :has() поддерживается во всех актуальных браузерах с 2023 года. */
.md-typeset
	.gallery:not(:has(h2[id^="post-"]:target))
	> .gallery-post:first-of-type {
	display: block;
}

/* В галерее grid.cards.no-gap рендерится сеткой квадратных превью:
   кроп через object-fit: cover, оригинал открывается по клику через
   glightbox (он навешивается на ссылки с data-glightbox). */
.md-typeset .gallery .grid.cards.no-gap > ul > li {
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.md-typeset .gallery .grid.cards.no-gap > ul > li > a,
.md-typeset .gallery .grid.cards.no-gap > ul > li > a > img,
.md-typeset .gallery .grid.cards.no-gap > ul > li > p > a,
.md-typeset .gallery .grid.cards.no-gap > ul > li > p > a > img,
.md-typeset .gallery .grid.cards.no-gap > ul > li > img,
.md-typeset .gallery .grid.cards.no-gap > ul > li > video {
	display: block;
	width: 100%;
	height: 100%;
}
.md-typeset .gallery .grid.cards.no-gap > ul > li > p {
	margin: 0;
	width: 100%;
	height: 100%;
}
.md-typeset .gallery .grid.cards.no-gap > ul > li > a > img,
.md-typeset .gallery .grid.cards.no-gap > ul > li > p > a > img,
.md-typeset .gallery .grid.cards.no-gap > ul > li > img,
.md-typeset .gallery .grid.cards.no-gap > ul > li > video {
	object-fit: cover;
}

/* Если первая ячейка сетки содержит admonition (например, инфо-карточка
   поста), то вместо квадратного превью admonition должен заполнять ячейку
   целиком, а его содержимое выравниваться по центру по вертикали. */
.md-typeset .grid.cards.no-gap > ul > li:has(> .admonition) {
	aspect-ratio: auto;
	overflow: visible;
	display: flex;
	padding: 0;
}

.md-typeset .grid.cards.no-gap > ul > li:has(> .admonition) > .admonition {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0;
	width: 100%;
}

/* Кнопки навигации между постами (предыдущий/следующий).
   По умолчанию скрыты: при широком экране справа виден TOC со списком
   постов, отдельные кнопки не нужны. Показываем только когда TOC скрылся
   из-за узкого экрана (тот же breakpoint, что у .md-sidebar--secondary
   в Material). */
.md-typeset .gallery .gallery-nav {
	display: none;
	margin: 0.6rem 0;
}

.md-typeset .gallery .gallery-nav__arrow {
	display: inline-block;
	transition: transform 0.15s ease-out;
}

.md-typeset .gallery .gallery-nav--prev:hover .gallery-nav__arrow {
	transform: translateX(-2px);
}

.md-typeset .gallery .gallery-nav--next:hover .gallery-nav__arrow {
	transform: translateX(2px);
}

.md-typeset .gallery .gallery-nav--next {
	text-align: right;
}

@media screen and (max-width: 59.984375em) {
	.md-typeset .gallery .gallery-nav {
		display: block;
		margin-left: auto;
		margin-right: auto;
		width: max-content;
		padding: 0.4rem 0.8rem;
		border: 0.05rem solid var(--md-default-fg-color--lightest);
		border-radius: 0.4rem;
		background-color: var(--md-default-bg-color--light);
	}

	.md-typeset .gallery .gallery-nav--next {
		text-align: center;
	}
}

/* ============ Прототипы главной страницы (временно) ============ */

/* Герой: видео-фон с затемнением, размытием и логотипом + заголовком */
.md-typeset .lp-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	margin: 1rem 0 2.5rem;
	padding: 3.5rem 2rem;
	overflow: hidden;
	border-radius: 0.6rem;
	background: color-mix(in srgb, var(--md-default-bg-color), black 30%);
	color: #ffffff;
}

.md-typeset .lp-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
	filter: blur(4px);
	opacity: 0;
	transition: opacity 2s ease;
}

.md-typeset .lp-hero__video.is-loaded {
	opacity: 1;
}

.md-typeset .lp-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: rgba(0, 0, 0, 0.3);
	pointer-events: none;
}

.md-typeset .lp-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	padding: 0.5rem 1rem;
	flex-wrap: wrap;
}

.md-typeset .lp-hero {
	container-type: inline-size;
}

.md-typeset .lp-hero__content {
	gap: 2.5rem;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.md-typeset .lp-hero__logo {
	flex: 0 0 auto;
	height: 56px;
	width: auto;
	border-radius: 0 !important;
	filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.95));
	animation: lp-rise 0.7s 0.5s backwards;
}

.md-typeset .lp-hero__title {
	font-family: "Tektur", var(--md-text-font), sans-serif;
	font-weight: 400;
	font-size: clamp(28px, 13cqi, 79px);
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-shadow:
		0 2px 16px rgba(0, 0, 0, 0.95),
		0 0 8px rgba(0, 0, 0, 0.75);
	white-space: nowrap;
	flex: 0 0 auto;
	animation: lp-rise 0.7s 0.7s backwards;
}

.md-ellipsis,
.md-nav__link,
.md-nav__link .md-ellipsis,
.md-nav__title,
.md-tabs__link {
	font-family: "Tektur", var(--md-text-font), sans-serif;
	text-transform: uppercase;
}

.md-nav__item--section > .md-nav__link {
	font-weight: 700;
}

.md-nav--secondary .md-nav__title,
.md-nav--secondary .md-nav__link,
.md-nav--secondary .md-ellipsis {
	font-family: var(--md-text-font-family);
	text-transform: none;
}

.md-ellipsis small,
.md-nav__link small {
	text-transform: none;
}

/* На главной странице название в шапке прозрачное (чтобы layout не съезжал);
   логотип оставляем видимым */
body:has(.lp-hero) .md-header__title {
	visibility: hidden;
}

/* На главной скрываем авто-сгенерированный <h1> из frontmatter title над hero */
body:has(.lp-hero) .md-content__inner > h1:first-of-type {
	display: none;
}

/* Сетка карточек (варианты A и C) */
.md-typeset .lp-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-bottom: 2.5rem;
}

@media screen and (max-width: 1100px) {
	.md-typeset .lp-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 600px) {
	.md-typeset .lp-cards {
		grid-template-columns: 1fr;
	}
}

.md-typeset a.lp-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	color: inherit;
	border: 0.05rem solid var(--md-default-fg-color--lightest);
	border-radius: 0.5rem;
	background: var(--md-default-bg-color);
	text-decoration: none;
	position: relative;
	top: 0;
	transition:
		top 0.25s ease,
		box-shadow 0.25s ease;
}

.md-typeset a.lp-card:hover,
.md-typeset a.lp-card:focus-visible {
	text-decoration: none;
	top: -0.33rem;
	box-shadow: 0 0.5rem 1.2rem rgba(0, 0, 0, 0.22);
}

.md-typeset a.lp-card * {
	text-decoration: none;
}

.md-typeset .lp-card img {
	width: 100%;
	height: 8.5rem;
	margin: 0;
	object-fit: cover;
}

.md-typeset .lp-card-body {
	padding: 0.9rem 1rem 1.1rem;
}

.md-typeset .lp-card-body h3 {
	margin: 0 0 0.4rem;
	font-size: 0.95rem;
}

.md-typeset .lp-card-body p {
	margin: 0;
	font-size: 0.75rem;
	color: var(--md-default-fg-color--light);
}

/* Номерные текстовые карточки (вариант C) */
.md-typeset .lp-num {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--md-primary-fg-color);
}

.md-typeset .lp-search-note {
	margin: -1.5rem 0 2rem;
	text-align: center;
	font-size: 0.8rem;
	color: var(--md-default-fg-color--light);
}

.md-typeset .lp-search-note kbd {
	padding: 0 0.3rem;
	border: 0.05rem solid var(--md-default-fg-color--lightest);
	border-radius: 0.2rem;
}

/* Карта навигации (6 колонок, переход 6→3→2→1) */
.grid.cards.cols-6 {
	grid-template-columns: repeat(6, 1fr);
}

@media screen and (max-width: 1200px) {
	.grid.cards.cols-6 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 700px) {
	.grid.cards.cols-6 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 420px) {
	.grid.cards.cols-6 {
		grid-template-columns: 1fr;
	}
}

.md-typeset .lp-secondary > ul > li {
	display: flex;
	flex-direction: column;
	padding: 0 !important;
	font-size: 0.7rem;
	line-height: 1.4;
	border: none !important;
	border-radius: 0 !important;
	background: none !important;
	transition: none !important;
	box-shadow: none !important;
}

.md-typeset .lp-secondary > ul > li:hover,
.md-typeset .lp-secondary > ul > li:focus-within {
	transform: none !important;
	box-shadow: none !important;
	border-color: transparent !important;
}

.md-typeset .lp-secondary > ul > li > p {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	line-height: 1.3;
}

.md-typeset .lp-secondary > ul > li > p:first-child svg {
	width: 1.4rem;
	height: 1.4rem;
	fill: var(--md-primary-fg-color);
	flex: 0 0 auto;
}

.md-typeset .lp-secondary > ul > li > p:first-child a {
	color: var(--md-primary-fg-color);
	font-weight: 700;
	font-size: 0.78rem;
}

.md-typeset .lp-secondary > ul > li > hr {
	margin: 0.3rem 0;
	border: 0;
	border-top: 0.05rem solid var(--md-default-fg-color--lightest);
}

/* Список ссылок: убираем большие отступы от <br>, делаем компактным */
.md-typeset .lp-secondary > ul > li > p:not(:first-child) {
	display: block;
	line-height: 1.5;
	margin: 0;
}

.md-typeset .lp-secondary > ul > li > p:not(:first-child) a {
	display: block;
	line-height: 1.5;
	color: var(--md-default-fg-color);
	text-decoration: none;
	transition: color 0.15s ease;
}

.md-typeset .lp-secondary > ul > li > p:not(:first-child) a:hover,
.md-typeset .lp-secondary > ul > li > p:not(:first-child) a:focus-visible {
	color: var(--md-primary-fg-color);
	text-decoration: none;
}

.md-typeset .lp-secondary > ul > li > p:not(:first-child) svg {
	width: 1em;
	height: 1em;
	fill: var(--md-default-fg-color--light);
	margin-right: 0.3rem;
	vertical-align: -0.15em;
	transition: fill 0.15s ease;
}

.md-typeset .lp-secondary > ul > li > p:not(:first-child) a:hover svg,
.md-typeset .lp-secondary > ul > li > p:not(:first-child) a:focus-visible svg {
	fill: var(--md-primary-fg-color);
}

/* Появление текста героя при загрузке */
@keyframes lp-rise {
	from {
		opacity: 0;
		transform: translateY(1rem);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* (анимации lp-rise для h1/p старого hero удалены — структура изменилась) */

/* Плавное появление блоков при прокрутке (где поддерживается) */
@supports (animation-timeline: view()) {
	.md-typeset .lp-card,
	.md-typeset .lp-secondary > div {
		animation: lp-rise linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 70%;
	}
}

/* Зум фото карточки при наведении */
.md-typeset .lp-card img {
	transition: transform 0.3s ease;
}

.md-typeset a.lp-card:hover img {
	transform: scale(1.05);
}

/* Уважение к prefers-reduced-motion: только подавляем входные анимации, hover-переходы оставляем */
@media (prefers-reduced-motion: reduce) {
	.md-typeset .lp-hero *,
	.md-typeset .lp-cards *,
	.md-typeset .lp-secondary * {
		animation: none !important;
	}
}

/* Основной текст без разрядки букв и чуть тоньше */
.md-typeset,
.md-typeset .divTable,
.md-typeset .divTableCell,
.md-typeset .divTableHead,
.md-typeset table td {
	letter-spacing: 0;
	font-weight: 300;
}

/* Цветные номера шагов: <div class="steps colored" markdown> */
.md-typeset .steps.colored > ol > li::before {
	color: #fff;
	border: none;
	font-size: 16px;
}
.md-typeset .steps.colored > ol > li:nth-child(1)::before {
	background-color: #00b294;
}
.md-typeset .steps.colored > ol > li:nth-child(2)::before {
	background-color: #f7630c;
}
.md-typeset .steps.colored > ol > li:nth-child(3)::before {
	background-color: #c239b3;
}
.md-typeset .steps.colored > ol > li:nth-child(4)::before {
	background-color: #0078d7;
}
.md-typeset .steps.colored > ol > li:nth-child(5)::before {
	background-color: #8e8cd8;
}
.md-typeset .steps.colored > ol > li:nth-child(6)::before {
	background-color: #498205;
}
.md-typeset .steps.colored > ol > li:nth-child(7)::before {
	background-color: #ff4343;
}
