/*
Theme Name: Polor Memfis
Theme URI: https://example.com
Author: Memfis
Description: Тема WordPress по вёрстке Polor: те же классы и структура. Настройки — через меню WordPress, страницу «Главная» (шаблон Polor Home) и SCF (папка acf-json).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: polor-memfis
*/

/* Стили подключаются из css/styles.css темы (как в оригинальной вёрстке). */

/*
 * Текстовый логотип — в одной шкале с макетом Polor:
 * типографика Open Sans (классы text-body-*, fw-6, letter-spacing-2 из styles.css),
 * иконка в квадратном «бейдже» (ровные стороны, лёгкий фон) рядом с двумя строками текста.
 */
.header .main-logo .site-logo.site-logo--text,
.footer .main-logo .site-logo.site-logo--text,
.footer-bottom .main-logo .site-logo.site-logo--text,
.offcanvas-title .site-logo.site-logo--text {
	display: inline-flex !important;
	align-items: center;
	width: auto !important;
	height: auto !important;
	max-width: min(100%, 15.5rem);
	vertical-align: middle;
	text-decoration: none;
	color: inherit;
	line-height: 1;
}

.footer .footer-bottom .main-logo .site-logo.site-logo--text,
.offcanvas-title .site-logo.site-logo--text {
	max-width: min(100%, 13rem);
}

/* Футер: подзаголовок логотипа в одну строку + запас ширины рядом с крупной иконкой */
.footer .main-logo .site-brand__tag,
.footer-bottom .main-logo .site-brand__tag {
	white-space: nowrap;
}

.footer .main-logo .site-logo.site-logo--text.site-logo--compact,
.footer-bottom .main-logo .site-logo.site-logo--text.site-logo--compact,
.footer .footer-bottom .main-logo .site-logo.site-logo--text.site-logo--compact {
	max-width: min(100%, 24rem);
}

.site-brand__titles {
	min-width: 0;
}

.site-brand__text {
	display: block;
	margin: 0;
	word-break: break-word;
}

.site-brand__tag {
	display: block;
	margin: 0;
	line-height: 16px;
}

/* Иконка: квадратная плашка, центрирование глифа, спокойный фон для «проф» вида */
.site-logo--text .site-brand__icon {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
	border-radius: 1.25rem;
	background-color: var(--Mono-gray-1, #f8f8f8);
	border: 1px solid var(--Mono-gray-2, #dddddd);
	color: var(--Black);
}

.site-logo--text .site-brand__icon > i {
	display: block;
	line-height: 1;
}

.header .main-logo .site-brand__icon {
	width: 5rem;
	height: 5rem;
	min-width: 5rem;
	min-height: 5rem;
	font-size: 2.75rem;
}

/* Компактный вариант (подвал / мобильное меню): как уменьшенный тот же мотив */
.site-logo.site-logo--text.site-logo--compact {
	max-width: min(100%, 12rem);
}

.site-logo--text.site-logo--compact .site-brand__icon {
	width: 4.25rem;
	height: 4.25rem;
	min-width: 4.25rem;
	min-height: 4.25rem;
	font-size: 2.375rem;
}

/*
 * Четыре плитки в духе Windows 11: геометрическая стилизация (не товарный знак Microsoft).
 * Лёгкая «дыхание» по квадрантам; при prefers-reduced-motion анимация отключается.
 */
.site-logo--text .site-brand__icon--win11 {
	display: flex;
	flex-direction: column;
	padding: 0.75rem;
	background: linear-gradient(160deg, #e9f3fb 0%, #f5f9fc 55%, #eef5fc 100%);
	border-color: #c8dff0;
}

.site-logo--text.site-logo--compact .site-brand__icon--win11 {
	padding: 0.55rem;
}

.site-brand__win11 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: clamp(2px, 9%, 0.45rem);
	box-sizing: border-box;
	flex: 1 1 0;
	width: 100%;
	min-height: 0;
	min-width: 0;
}

.site-brand__win11-tile {
	display: block;
	border-radius: 2px;
	background: var(--win11-tile, #0078d4);
	animation: polorWin11Tile 2.4s ease-in-out infinite;
}

.site-brand__win11-tile--1 {
	--win11-tile: #0078d4;
	animation-delay: 0s;
}

.site-brand__win11-tile--2 {
	--win11-tile: #0f84da;
	animation-delay: 0.2s;
}

.site-brand__win11-tile--3 {
	--win11-tile: #2692df;
	animation-delay: 0.4s;
}

.site-brand__win11-tile--4 {
	--win11-tile: #3da1e6;
	animation-delay: 0.6s;
}

@keyframes polorWin11Tile {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	38% {
		opacity: 0.82;
		transform: scale(0.93);
	}
	55% {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-brand__win11-tile {
		animation: none;
	}
}

@media (max-width: 991px) {
	.site-logo.site-logo--text {
		width: auto !important;
		height: auto !important;
		max-width: min(100%, 13rem);
	}
}

/* Каталог дистрибутивов (/dist/) */
.dist-hub-card__icon.icon-play {
	background: rgba(0, 0, 0, 0.45);
}
.dist-archive-card__dl.icon-play {
	background: rgba(0, 0, 0, 0.45);
}
.dist-sidebar {
	border: 1px solid var(--Mono-gray-2, #dddddd);
	border-radius: 12px;
}

/* Страница одного дистрибутива (single-distrib) — шкала как в styles.css: h4/h6, text-body-2, отступы 12/16/24/32 */
.dist-single-hero-wrap {
	padding-bottom: 32px !important;
}
.dist-single-hero {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 20px;
	padding: 8px 0 0;
}
.dist-single-hero__head {
	min-width: 0;
}
.dist-single-hero__category {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	min-width: 0;
}
.dist-single-hero__category-body {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
}
.dist-single-title {
	margin: 0;
	font-size: 36px;
	line-height: 48px;
	font-weight: 600;
}
.dist-single-hero__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.dist-single-hero__series {
	display: inline-block;
	margin: 0;
	align-self: flex-start;
}
.dist-single-lead > p {
	margin-bottom: 16px;
}
.dist-single-lead > p:last-child {
	margin-bottom: 0;
}
.dist-single-hero__icon {
	flex-shrink: 0;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid var(--Mono-gray-2, #dddddd);
	background: var(--Mono-gray-1, #f8f8f8);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}
.dist-single-hero__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
@media (max-width: 991px) {
	.dist-single-title {
		font-size: 30px;
		line-height: 38px;
	}
}
@media (min-width: 576px) {
	.dist-single-hero {
		gap: 24px;
	}
	.dist-single-hero__category {
		flex-direction: row;
		align-items: flex-start;
		gap: 24px;
	}
}
@media (min-width: 992px) {
	.dist-single-hero__category {
		align-items: center;
	}
}
@media (max-width: 575px) {
	.dist-single-hero-wrap {
		padding-bottom: 24px !important;
	}
	.dist-single-hero {
		gap: 16px;
	}
	.dist-single-title {
		font-size: 25px;
		line-height: 33px;
	}
}

/* Контент под витриной: убрать верхний padding tf-spacing-4, нижний не трогаем */
.dist-single .main-content.tf-spacing-4 {
	padding-top: 0;
}

/* Витрина: галерея + блок справа */
.dist-showcase {
	/* border-top: 1px solid var(--Mono-gray-1, #eeeeee);
	background: var(--White, #fff); */
}
.dist-showcase:not(.dist-showcase--nested) {
	padding: 40px 0 48px;
}
.dist-showcase--nested {
	margin-bottom: 40px;
}
.dist-showcase__gallery-wrap {
	height: 100%;
	min-height: 200px;
}
/* Одно фото — та же «рамка», что у сплит-галереи */
.dist-showcase__gallery-wrap > .dist-showcase__single {
	padding: 12px;
	border-radius: 16px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: linear-gradient(165deg, #2a2a2a 0%, #1a1a1a 45%, #141414 100%);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* Галерея: основной кадр + превью справа (в духе «Фото» / Windows) */
/* Десктоп: превью position:absolute — иначе высота стопки миниатюр задаёт высоту всего блока и даёт чёрное поле под фото */
.dist-showcase__gallery-layout--split {
	position: relative;
	display: block;
	padding: 12px;
	padding-right: 12px;
	border-radius: 16px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: linear-gradient(165deg, #2a2a2a 0%, #1a1a1a 45%, #141414 100%);
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
@media (min-width: 768px) {
	.dist-showcase__gallery-layout--split {
		/* место под колонку превью 92px + зазор 12px */
		padding-right: 116px;
	}
}
.dist-showcase__gallery-main {
	min-width: 0;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #0a0a0a;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.dist-showcase-swiper-main {
	border-radius: 12px;
	overflow: hidden;
}
.dist-showcase-swiper-main .swiper-slide {
	height: auto;
}
.dist-showcase__slide,
.dist-showcase__single {
	margin: 0;
	position: relative;
	background: transparent;
}
/* Высота от реальных пропорций скрина: на всю ширину колонки, без полей и без кропа */
.dist-showcase__stage {
	position: relative;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #050505;
	line-height: 0;
}
.dist-showcase__slide-img,
.dist-showcase__single-img {
	display: block;
	position: relative;
	left: auto;
	top: auto;
	width: 100%;
	height: auto;
	max-width: 100%;
	vertical-align: middle;
}
.dist-showcase__slide-cap {
	margin: 0;
	padding: 12px 16px;
	font-size: 12px;
	line-height: 16px;
	color: rgba(255, 255, 255, 0.92);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
}
/* Высоту задаёт JS; скролл на обёртке — внутри Swiper тянется по высоте всех превью */
.dist-showcase__gallery-thumbs-wrap {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 92px;
	min-height: 0;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	border-radius: 10px;
	padding: 6px 4px;
	background: rgba(0, 0, 0, 0.35);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.45) rgba(0, 0, 0, 0.45);
}
.dist-showcase__gallery-thumbs-wrap::-webkit-scrollbar {
	width: 8px;
}
.dist-showcase__gallery-thumbs-wrap::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.38);
	border-radius: 4px;
	border: 1px solid rgba(0, 0, 0, 0.2);
}
.dist-showcase__gallery-thumbs-wrap::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.45);
	border-radius: 4px;
}
.dist-showcase-swiper-thumbs {
	width: 100%;
	flex: 0 0 auto;
	min-height: 0;
	height: auto !important;
	max-height: none !important;
}
.dist-showcase-swiper-thumbs.swiper {
	overflow: visible !important;
}
.dist-showcase-swiper-thumbs .swiper-slide {
	width: 100%;
	height: auto;
	margin-top: 0 !important;
	opacity: 0.55;
	transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
}
.dist-showcase-swiper-thumbs .swiper-slide-thumb-active {
	opacity: 1;
	transform: scale(1.03);
}
.dist-showcase-swiper-thumbs .swiper-slide-thumb-active .dist-showcase__thumb {
	box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.95), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.dist-showcase__thumb {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	line-height: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
	transition: box-shadow 0.25s ease;
}
.dist-showcase__thumb:focus-visible {
	outline: 2px solid #d4a574;
	outline-offset: 2px;
}
.dist-showcase__thumb-img {
	display: block;
	width: 100%;
	height: 64px;
	object-fit: cover;
	object-position: center;
}
@media (max-width: 767px) {
	.dist-showcase__gallery-layout--split {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: auto auto;
		gap: 12px;
		padding: 10px;
		padding-right: 10px;
	}
	.dist-showcase__gallery-thumbs-wrap {
		position: relative;
		top: auto;
		right: auto;
		width: 100%;
		height: auto !important;
		max-height: none !important;
	}
	.dist-showcase-swiper-thumbs {
		max-height: 88px;
		min-height: 0;
		height: auto;
		overflow-x: auto !important;
		overflow-y: hidden !important;
	}
	.dist-showcase-swiper-thumbs .swiper-slide {
		width: auto !important;
		margin-right: 10px !important;
		opacity: 0.65;
	}
	.dist-showcase-swiper-thumbs .swiper-wrapper {
		align-items: center;
	}
	.dist-showcase__thumb-img {
		width: 96px;
		height: 56px;
	}
}
.dist-showcase__aside-inner {
	height: 100%;
	min-height: 200px;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--Mono-gray-2, #dddddd);
	border-radius: 16px;
	padding: 24px;
	background: var(--White, #fff);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}
.dist-showcase__aside-title {
	margin: 0 0 16px;
	padding-bottom: 12px;
	font-size: 24px;
	line-height: 32px;
	font-weight: 600;
	border-bottom: 1px solid var(--Mono-gray-1, #eeeeee);
	color: var(--Black, #111);
}
.dist-showcase__news-item {
	padding: 12px 0;
	border-bottom: 1px solid var(--Mono-gray-1, #eeeeee);
}
.dist-showcase__news-item:last-child {
	border-bottom: 0;
}
.dist-showcase__news-link {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
}
.dist-showcase__news-date {
	font-size: 12px;
	line-height: 16px;
	color: var(--Mono-gray-5, #808080);
}
.dist-showcase__embed {
	margin-bottom: 0;
}
.dist-showcase__video-inner {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 12px;
	background: #000;
}
.dist-showcase__video-inner iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.dist-showcase__video-cap {
	margin-top: 12px !important;
	font-size: 14px;
	line-height: 20px;
	color: var(--Mono-gray-5, #555);
}
.dist-showcase__aside-block--ad {
	font-size: 16px;
	line-height: 24px;
}
.dist-showcase__banner-link {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 12px;
	overflow: hidden;
}
.dist-showcase__banner-visual {
	display: block;
	position: relative;
	line-height: 0;
}
.dist-showcase__banner-img {
	width: 100%;
	height: auto;
	display: block;
}
.dist-showcase__banner-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 16px 20px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.dist-showcase__banner-title {
	font-size: 18px;
	line-height: 28px;
	font-weight: 700;
	color: #fff;
}
.dist-showcase__banner-sub {
	font-size: 12px;
	line-height: 16px;
	color: rgba(255, 255, 255, 0.88);
}
@media (max-width: 575px) {
	.dist-showcase {
		padding: 32px 0;
	}
	.dist-showcase__aside-inner {
		padding: 20px 16px;
	}
	.dist-showcase__aside-title {
		font-size: 20px;
		line-height: 28px;
	}
}

/* Сайдбар: характеристики в тёмном стиле (как системные требования) */
.dist-side-card.dist-spec-win {
	padding: 0;
	overflow: hidden;
	background: #1c1c1c;
	border-color: rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
	color: #f0f0f0;
	font-size: 16px;
	line-height: 24px;
	-webkit-font-smoothing: antialiased;
}
.dist-spec-win__head {
	padding: 20px 24px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	background: #252526;
}
.dist-spec-win__title {
	margin: 0;
	font-size: 24px;
	line-height: 32px;
	font-weight: 600;
	color: #fff;
}
.dist-spec-win__rows {
	padding: 12px 24px 0;
}
.dist-spec-win__row {
	display: grid;
	grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
	gap: 12px 16px;
	align-items: start;
	padding: 12px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.dist-spec-win__row:last-child {
	border-bottom: 0;
}
.dist-spec-win__k {
	margin: 0;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.72);
}
.dist-spec-win__v {
	font-size: 14px;
	line-height: 20px;
	font-weight: 600;
	color: #fff;
	word-break: break-word;
    margin-bottom: 0;
}
.dist-spec-win__rows + .dist-spec-win__downloads {
	margin-top: 0;
}
.dist-spec-win__downloads {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px 24px 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.dist-spec-win__downloads--first {
	border-top: 0;
	padding-top: 24px;
}
.dist-spec-win__btn-secondary {
	border-color: rgba(255, 255, 255, 0.28) !important;
	color: #fff !important;
	background: rgba(255, 255, 255, 0.08) !important;
}
.dist-spec-win__btn-secondary:hover {
	border-color: rgba(255, 255, 255, 0.4) !important;
	background: rgba(255, 255, 255, 0.14) !important;
	color: #fff !important;
}
.dist-spec-win__note {
	padding: 16px 24px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 12px;
	line-height: 16px;
	color: rgba(255, 255, 255, 0.5);
	background: rgba(0, 0, 0, 0.2);
}
.dist-spec-win__note--solo {
	border-top: 0;
	padding-top: 24px;
	background: transparent;
}
@media (max-width: 575px) {
	.dist-spec-win__head,
	.dist-spec-win__rows,
	.dist-spec-win__downloads,
	.dist-spec-win__note {
		padding-left: 16px;
		padding-right: 16px;
	}
	.dist-spec-win__title {
		font-size: 20px;
		line-height: 28px;
	}
	.dist-spec-win__row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

.dist-single-cover {
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--Mono-gray-2, #dddddd);
	background: var(--Mono-gray-1, #f8f8f8);
}
.dist-single-cover__img {
	display: block;
	height: auto;
	vertical-align: middle;
}

/* Карточка «Описание» + плашка, пункты, вводный/заключительный HTML */
.dist-desc-panel__shell {
	border: 1px solid var(--Mono-gray-2, #dddddd);
	border-radius: 16px;
	padding: 24px;
	background: var(--White, #fff);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}
@media (max-width: 575px) {
	.dist-desc-panel__shell {
		padding: 20px 16px;
	}
}
.dist-desc-panel__title {
	padding-bottom: 12px;
	margin-bottom: 16px !important;
	border-bottom: 1px solid var(--Mono-gray-1, #eeeeee);
}
.dist-desc-notice {
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 20px;
	background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
	border: 1px solid #c5ddf5;
}
.dist-desc-notice__label {
	color: #1d4ed8;
	display: block;
}
.dist-desc-points {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px !important;
}
.dist-desc-points__icon {
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 50%;
	background: var(--Mono-gray-1, #f0f0f0);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.65rem;
	color: var(--Black, #111);
	margin-top: 0.2rem;
}
.dist-desc-preface {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px dashed var(--Mono-gray-2, #dddddd);
}
.dist-desc-after {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--Mono-gray-1, #eeeeee);
}

/* Типографика и отступы внутри «Описание» (контент, вводный/финальный HTML, уведомление) */
.dist-desc-panel .dist-desc-inner p,
.dist-desc-panel .dist-desc-preface p,
.dist-desc-panel .dist-desc-after p,
.dist-desc-panel .dist-desc-notice__text p {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 24px;
}
.dist-desc-panel .dist-desc-inner > h1,
.dist-desc-panel .dist-desc-inner > h2,
.dist-desc-panel .dist-desc-inner > h3,
.dist-desc-panel .dist-desc-inner > h4,
.dist-desc-panel .dist-desc-inner > h5,
.dist-desc-panel .dist-desc-inner > h6,
.dist-desc-panel .dist-desc-preface > h1,
.dist-desc-panel .dist-desc-preface > h2,
.dist-desc-panel .dist-desc-preface > h3,
.dist-desc-panel .dist-desc-preface > h4,
.dist-desc-panel .dist-desc-preface > h5,
.dist-desc-panel .dist-desc-preface > h6,
.dist-desc-panel .dist-desc-after > h1,
.dist-desc-panel .dist-desc-after > h2,
.dist-desc-panel .dist-desc-after > h3,
.dist-desc-panel .dist-desc-after > h4,
.dist-desc-panel .dist-desc-after > h5,
.dist-desc-panel .dist-desc-after > h6 {
	margin: 24px 0 8px;
	font-weight: 600;
	color: var(--Black, #111);
}
.dist-desc-panel .dist-desc-inner > h1,
.dist-desc-panel .dist-desc-preface > h1,
.dist-desc-panel .dist-desc-after > h1 {
	font-size: 33px;
	line-height: 41px;
}
.dist-desc-panel .dist-desc-inner > h2,
.dist-desc-panel .dist-desc-preface > h2,
.dist-desc-panel .dist-desc-after > h2 {
	font-size: 28px;
	line-height: 36px;
}
.dist-desc-panel .dist-desc-inner > h3,
.dist-desc-panel .dist-desc-preface > h3,
.dist-desc-panel .dist-desc-after > h3 {
	font-size: 24px;
	line-height: 32px;
}
.dist-desc-panel .dist-desc-inner > h4,
.dist-desc-panel .dist-desc-preface > h4,
.dist-desc-panel .dist-desc-after > h4 {
	font-size: 20px;
	line-height: 28px;
}
.dist-desc-panel .dist-desc-inner > h5,
.dist-desc-panel .dist-desc-inner > h6,
.dist-desc-panel .dist-desc-preface > h5,
.dist-desc-panel .dist-desc-preface > h6,
.dist-desc-panel .dist-desc-after > h5,
.dist-desc-panel .dist-desc-after > h6 {
	font-size: 18px;
	line-height: 28px;
}
@media (max-width: 575px) {
	.dist-desc-panel .dist-desc-inner > h1,
	.dist-desc-panel .dist-desc-preface > h1,
	.dist-desc-panel .dist-desc-after > h1 {
		font-size: 27px;
		line-height: 35px;
	}
	.dist-desc-panel .dist-desc-inner > h2,
	.dist-desc-panel .dist-desc-preface > h2,
	.dist-desc-panel .dist-desc-after > h2 {
		font-size: 23px;
		line-height: 31px;
	}
	.dist-desc-panel .dist-desc-inner > h3,
	.dist-desc-panel .dist-desc-preface > h3,
	.dist-desc-panel .dist-desc-after > h3 {
		font-size: 20px;
		line-height: 28px;
	}
}
.dist-desc-panel .dist-desc-inner > h1:first-child,
.dist-desc-panel .dist-desc-inner > h2:first-child,
.dist-desc-panel .dist-desc-inner > h3:first-child,
.dist-desc-panel .dist-desc-inner > h4:first-child,
.dist-desc-panel .dist-desc-inner > h5:first-child,
.dist-desc-panel .dist-desc-inner > h6:first-child,
.dist-desc-panel .dist-desc-preface > h1:first-child,
.dist-desc-panel .dist-desc-preface > h2:first-child,
.dist-desc-panel .dist-desc-preface > h3:first-child,
.dist-desc-panel .dist-desc-preface > h4:first-child,
.dist-desc-panel .dist-desc-preface > h5:first-child,
.dist-desc-panel .dist-desc-preface > h6:first-child,
.dist-desc-panel .dist-desc-after > h1:first-child,
.dist-desc-panel .dist-desc-after > h2:first-child,
.dist-desc-panel .dist-desc-after > h3:first-child,
.dist-desc-panel .dist-desc-after > h4:first-child,
.dist-desc-panel .dist-desc-after > h5:first-child,
.dist-desc-panel .dist-desc-after > h6:first-child {
	margin-top: 0;
}
.dist-desc-panel .dist-desc-inner ul,
.dist-desc-panel .dist-desc-inner ol,
.dist-desc-panel .dist-desc-preface ul,
.dist-desc-panel .dist-desc-preface ol,
.dist-desc-panel .dist-desc-after ul,
.dist-desc-panel .dist-desc-after ol {
	margin: 0 0 16px;
	padding-left: 24px;
	font-size: 16px;
	line-height: 24px;
}
.dist-desc-panel .dist-desc-inner li + li,
.dist-desc-panel .dist-desc-preface li + li,
.dist-desc-panel .dist-desc-after li + li {
	margin-top: 8px;
}
.dist-desc-panel .dist-desc-inner li > p,
.dist-desc-panel .dist-desc-preface li > p,
.dist-desc-panel .dist-desc-after li > p {
	margin-bottom: 0.4em;
}
.dist-desc-panel .dist-desc-inner li > p:last-child,
.dist-desc-panel .dist-desc-preface li > p:last-child,
.dist-desc-panel .dist-desc-after li > p:last-child {
	margin-bottom: 0;
}
.dist-desc-panel .dist-desc-inner blockquote,
.dist-desc-panel .dist-desc-preface blockquote,
.dist-desc-panel .dist-desc-after blockquote {
	margin: 16px 0;
	padding: 16px 20px;
	border-left: 4px solid var(--Mono-gray-2, #dddddd);
	background: var(--Mono-gray-1, #f8f8f8);
	border-radius: 0 12px 12px 0;
	font-style: normal;
	font-size: 16px;
	line-height: 24px;
	color: var(--Mono-gray-5, #555);
}
.dist-desc-panel .dist-desc-inner hr,
.dist-desc-panel .dist-desc-preface hr,
.dist-desc-panel .dist-desc-after hr {
	margin: 24px 0;
	border: 0;
	border-top: 1px solid var(--Mono-gray-2, #dddddd);
}
.dist-desc-panel .dist-desc-inner img,
.dist-desc-panel .dist-desc-preface img,
.dist-desc-panel .dist-desc-after img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 12px;
	margin: 16px 0;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}
.dist-desc-panel .dist-desc-inner figure,
.dist-desc-panel .dist-desc-preface figure,
.dist-desc-panel .dist-desc-after figure {
	margin: 16px 0;
	max-width: 100%;
}
.dist-desc-panel .dist-desc-inner figcaption,
.dist-desc-panel .dist-desc-preface figcaption,
.dist-desc-panel .dist-desc-after figcaption {
	margin-top: 8px;
	font-size: 12px;
	line-height: 16px;
	color: var(--Mono-gray-5, #808080);
}
.dist-desc-panel .dist-desc-inner pre,
.dist-desc-panel .dist-desc-preface pre,
.dist-desc-panel .dist-desc-after pre {
	margin: 16px 0;
	padding: 16px;
	overflow-x: auto;
	font-size: 14px;
	line-height: 20px;
	border-radius: 12px;
	background: var(--Mono-gray-1, #f4f4f4);
	border: 1px solid var(--Mono-gray-2, #e0e0e0);
}
.dist-desc-panel .dist-desc-inner code,
.dist-desc-panel .dist-desc-preface code,
.dist-desc-panel .dist-desc-after code {
	padding: 0.12em 0.35em;
	font-size: 0.92em;
	border-radius: 4px;
	background: var(--Mono-gray-1, #f0f0f0);
}
.dist-desc-panel .dist-desc-inner pre code,
.dist-desc-panel .dist-desc-preface pre code,
.dist-desc-panel .dist-desc-after pre code {
	padding: 0;
	background: none;
	font-size: inherit;
}
.dist-desc-panel .dist-desc-inner table,
.dist-desc-panel .dist-desc-preface table,
.dist-desc-panel .dist-desc-after table {
	width: 100%;
	margin: 16px 0;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 20px;
}
.dist-desc-panel .dist-desc-inner th,
.dist-desc-panel .dist-desc-inner td,
.dist-desc-panel .dist-desc-preface th,
.dist-desc-panel .dist-desc-preface td,
.dist-desc-panel .dist-desc-after th,
.dist-desc-panel .dist-desc-after td {
	padding: 12px 16px;
	border: 1px solid var(--Mono-gray-2, #dddddd);
	vertical-align: top;
}
.dist-desc-panel .dist-desc-inner th,
.dist-desc-panel .dist-desc-preface th,
.dist-desc-panel .dist-desc-after th {
	background: var(--Mono-gray-1, #f8f8f8);
	font-weight: 600;
	text-align: left;
}
.dist-desc-panel .dist-desc-inner > *:first-child,
.dist-desc-panel .dist-desc-preface > *:first-child,
.dist-desc-panel .dist-desc-after > *:first-child,
.dist-desc-panel .dist-desc-notice__text > *:first-child {
	margin-top: 0;
}
.dist-desc-panel .dist-desc-inner > *:last-child,
.dist-desc-panel .dist-desc-preface > *:last-child,
.dist-desc-panel .dist-desc-after > *:last-child,
.dist-desc-panel .dist-desc-notice__text > *:last-child {
	margin-bottom: 0;
}

.dist-desc-wrap {
	position: relative;
}
/* Градиент только над обрезанным текстом (не над кнопкой), плотное «затухание» к фону карточки */
.dist-desc-wrap.is-collapsed .dist-desc-inner {
	position: relative;
	max-height: 220px;
	overflow: hidden;
	padding-bottom: 4px;
}
.dist-desc-wrap.is-collapsed:not(.is-expanded) .dist-desc-inner::after {
	content: "";
	position: absolute;
	z-index: 1;
	left: 0;
	right: 0;
	bottom: 0;
	height: 52px;
	pointer-events: none;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.88) 55%,
		#ffffff 100%
	);
}
.dist-desc-wrap.is-expanded .dist-desc-inner {
	max-height: none;
	padding-bottom: 0;
}
.dist-desc-wrap.is-expanded .dist-desc-inner::after {
	display: none;
	content: none;
}
.dist-desc-more {
	position: relative;
	z-index: 2;
	margin-top: 16px;
}
.dist-desc-wrap.is-expanded .dist-desc-more {
	margin-top: 20px;
}

/* Системные требования — тёмная панель (шкала шрифтов как text-body-*, text-caption, h6) */
.dist-req-win {
	--dist-req-bg: #1c1c1c;
	--dist-req-surface: #2d2d2d;
	--dist-req-border: rgba(255, 255, 255, 0.14);
	--dist-req-muted: #c4c4c4;
	--dist-req-accent: #d4a574;
	--dist-req-radius: 16px;
	isolation: isolate;
	color: #f3f3f3;
	font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 24px;
	-webkit-font-smoothing: antialiased;
}
.dist-req-win__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
	gap: 12px;
	margin-bottom: 24px;
	padding: 0;
	list-style: none;
}
.dist-req-win__card {
	background: var(--dist-req-surface);
	border: 1px solid var(--dist-req-border);
	border-radius: 12px;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 100%;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.dist-req-win__card-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.92);
	font-size: 20px;
	margin-bottom: 0;
}
.dist-req-win__card-ico [class^="icon-"],
.dist-req-win__card-ico [class*=" icon-"] {
	font-size: 22px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.92);
}
.dist-req-win__card-ico--dot {
	width: 10px;
	height: 10px;
	min-width: 10px;
	min-height: 10px;
	border-radius: 50%;
	padding: 0;
	background: rgba(255, 255, 255, 0.35);
}
.dist-req-win__card-label {
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--dist-req-muted);
}
.dist-req-win__card-value {
	font-size: 18px;
	line-height: 28px;
	font-weight: 600;
	color: #fff;
}
.dist-req-win__card-sub {
	margin-top: 0;
	font-size: 14px;
	line-height: 20px;
	color: var(--dist-req-muted);
}
.dist-req-win__shell {
	background: var(--dist-req-bg);
	border: 1px solid var(--dist-req-border);
	border-radius: var(--dist-req-radius);
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.dist-req-win__banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	padding: 20px 24px;
	background: #252526;
	border-bottom: 1px solid var(--dist-req-border);
}
.dist-req-win__banner-title {
	font-size: 18px;
	line-height: 28px;
	font-weight: 600;
	color: #fff;
}
.dist-req-win__banner-sub {
	margin-top: 4px;
	font-size: 14px;
	line-height: 20px;
	color: var(--dist-req-muted);
}
.dist-req-win__banner-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid var(--dist-req-border);
	border-radius: 999px;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.dist-req-win__banner-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.16);
	border-color: rgba(255, 255, 255, 0.18);
}
.dist-req-win__acc {
	border-bottom: 1px solid var(--dist-req-border);
}
.dist-req-win__acc:last-child {
	border-bottom: 0;
}
.dist-req-win__acc-head {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px 16px;
	padding: 16px 24px;
	cursor: default;
}
.dist-req-win__acc-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.92);
	font-size: 18px;
	flex-shrink: 0;
}
.dist-req-win__acc-ico [class^="icon-"],
.dist-req-win__acc-ico [class*=" icon-"] {
	font-size: 20px;
	line-height: 1;
	color: rgba(255, 255, 255, 0.92);
}
.dist-req-win__acc-ico--info {
	font-size: 0;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	position: relative;
}
.dist-req-win__acc-ico--info::after {
	content: "i";
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 14px;
	line-height: 20px;
	font-weight: 700;
	font-style: normal;
	color: rgba(255, 255, 255, 0.88);
}
.dist-req-win .dist-req-win__acc-title {
	margin: 0;
	padding: 0;
	font-size: 18px;
	line-height: 28px;
	font-weight: 600;
	color: #fff;
	min-width: 0;
	word-break: break-word;
}
.dist-req-win__acc-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}
.dist-req-win__copy {
	margin: 0;
	padding: 8px 14px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid var(--dist-req-border);
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}
.dist-req-win__copy:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.16);
}
.dist-req-win__copy.is-done {
	border-color: rgba(80, 200, 120, 0.45);
	color: #9dffb8;
}
.dist-req-win__chev {
	margin: 0;
	padding: 6px;
	width: 36px;
	height: 36px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.75);
	transition: background 0.2s ease, border-color 0.2s ease;
}
.dist-req-win__chev:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--dist-req-border);
}
.dist-req-win__chev-inner {
	display: block;
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	margin-top: -3px;
}
.dist-req-win__acc.is-open .dist-req-win__chev-inner {
	transform: rotate(225deg);
	margin-top: 2px;
}
.dist-req-win__acc-panel {
	padding: 0 24px 20px;
}
.dist-req-win__acc-panel[hidden] {
	display: none !important;
}
.dist-req-win__rows {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.dist-req-win__row {
	display: grid;
	grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
	gap: 12px 24px;
	align-items: start;
	padding: 12px 0;
	border-top: 1px solid var(--dist-req-border);
	font-size: 14px;
	line-height: 20px;
}
.dist-req-win__rows .dist-req-win__row:first-child {
	border-top: 0;
	padding-top: 4px;
}
.dist-req-win__row-k {
	color: #fff;
	font-weight: 600;
	min-width: 0;
}
.dist-req-win__row-v {
	font-weight: 400;
	color: var(--dist-req-muted);
	word-break: break-word;
	min-width: 0;
}
.dist-req-win__foot-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--dist-req-border);
}
.dist-req-win__foot-link {
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	color: var(--dist-req-accent);
	text-decoration: none;
}
.dist-req-win__foot-link:hover {
	color: #e8bc8e;
	text-decoration: underline;
}
@media (max-width: 575px) {
	.dist-req-win__acc-head {
		grid-template-columns: auto 1fr;
		grid-template-rows: auto auto;
		padding: 16px;
	}
	.dist-req-win__acc-panel {
		padding: 0 16px 16px;
	}
	.dist-req-win__acc-actions {
		grid-column: 1 / -1;
		justify-content: flex-end;
	}
	.dist-req-win .dist-req-win__acc-title {
		font-size: 16px;
		line-height: 24px;
	}
	.dist-req-win__row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
	.dist-req-win__row-v {
		padding-bottom: 4px;
	}
}

/* SEO-таблица «Системные требования» (SoftwareApplication + table), вид как у сайдбара */
.dist-req-content section[itemscope][itemtype*="schema.org/SoftwareApplication"],
.dist-req-content section.dist-seo-app {
	margin: 0;
}
.dist-req-content section[itemscope] meta[itemprop] {
	display: none;
}
.dist-req-content section[itemscope][itemtype*="SoftwareApplication"] table,
.dist-req-content section.dist-seo-app table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--Mono-gray-2, #dddddd);
	border-radius: 16px;
	overflow: hidden;
	background: var(--White, #fff);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
	margin: 0;
}
.dist-req-content section[itemscope] thead th,
.dist-req-content section.dist-seo-app thead th {
	padding: 14px 20px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--Mono-gray-5, #808080);
	background: var(--Mono-gray-1, #f8f8f8);
	border-bottom: 1px solid var(--Mono-gray-2, #dddddd);
	text-align: left;
	vertical-align: middle;
}
.dist-req-content section[itemscope] thead th:first-child,
.dist-req-content section.dist-seo-app thead th:first-child {
	border-right: 1px solid var(--Mono-gray-2, #dddddd);
}
.dist-req-content section[itemscope] tbody td,
.dist-req-content section.dist-seo-app tbody td {
	padding: 14px 20px;
	vertical-align: top;
	font-size: 14px;
	line-height: 20px;
	border-bottom: 1px solid var(--Mono-gray-1, #eeeeee);
}
.dist-req-content section[itemscope] tbody tr:last-child td,
.dist-req-content section.dist-seo-app tbody tr:last-child td {
	border-bottom: 0;
}
.dist-req-content section[itemscope] tbody td:first-child,
.dist-req-content section.dist-seo-app tbody td:first-child {
	width: 36%;
	max-width: 260px;
	color: var(--Mono-gray-5, #808080);
	font-size: 14px;
	line-height: 20px;
	border-right: 1px solid var(--Mono-gray-1, #eeeeee);
}
.dist-req-content section[itemscope] tbody td:last-child,
.dist-req-content section.dist-seo-app tbody td:last-child {
	font-weight: 600;
	color: var(--Black, #000);
}
@media (max-width: 575px) {
	.dist-req-content section[itemscope] thead,
	.dist-req-content section.dist-seo-app thead {
		display: none;
	}
	.dist-req-content section[itemscope] tbody td,
	.dist-req-content section.dist-seo-app tbody td {
		display: block;
		width: 100% !important;
		max-width: none !important;
		border-right: 0 !important;
	}
	.dist-req-content section[itemscope] tbody td:first-child,
	.dist-req-content section.dist-seo-app tbody td:first-child {
		padding-bottom: 4px;
		font-size: 12px;
		line-height: 16px;
		font-weight: 600;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: var(--Mono-gray-5, #808080);
	}
	.dist-req-content section[itemscope] tbody td:last-child,
	.dist-req-content section.dist-seo-app tbody td:last-child {
		padding-top: 0;
		font-weight: 600;
		color: var(--Black, #000);
		border-bottom: 1px solid var(--Mono-gray-1, #eeeeee);
		padding-bottom: 16px;
	}
	.dist-req-content section[itemscope] tbody tr:last-child td:last-child,
	.dist-req-content section.dist-seo-app tbody tr:last-child td:last-child {
		border-bottom: 0;
	}
}

.dist-faq-accordion .accordion-item {
	border: 1px solid var(--Mono-gray-2, #dddddd);
	border-radius: 12px;
	margin-bottom: 12px;
	overflow: hidden;
	background: var(--White, #fff);
}
.dist-faq-accordion .accordion-button {
	font-size: 16px;
	line-height: 24px;
	padding: 16px 20px;
	box-shadow: none;
	background: var(--White, #fff);
	color: var(--Black, #000);
}
.dist-faq-accordion .accordion-button:not(.collapsed) {
	background: var(--Mono-gray-1, #f8f8f8);
	color: var(--Black, #000);
}
.dist-faq-accordion .accordion-button::after {
	filter: none;
}
.dist-faq-accordion .accordion-body {
	padding: 0 20px 16px;
	font-size: 16px;
	line-height: 24px;
}
.dist-sidebar-sticky {
	position: sticky;
	top: 100px;
}
@media (max-width: 991px) {
	.dist-sidebar-sticky {
		position: static;
	}
}
.dist-side-card {
	border: 1px solid var(--Mono-gray-2, #dddddd);
	border-radius: 16px;
	padding: 1.5rem;
	background: var(--White, #fff);
}
/* Главная кнопка загрузки (акцент как у каталогов образов) */
.dist-btn-download {
	background: #16a34a !important;
	color: #fff !important;
	border: none !important;
}
.dist-btn-download:hover {
	background: #15803d !important;
	color: #fff !important;
}
.dist-related__thumb img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 12px;
	border: 1px solid var(--Mono-gray-2, #dddddd);
}
.dist-comments .comment-list .comment {
	border-bottom: 1px solid var(--Mono-gray-1, #eeeeee);
	padding-bottom: 1rem;
}
.dist-comments .comment-list .comment:last-child {
	border-bottom: 0;
}
