/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Nov 13 2026 | 17:20:57 */
/* =====================================================================
   Контент страниц и описаний: галереи, блоки файлов и PDF, вкладки,
   таблицы, 3D-модели, картинки.
   (08.10.2026, сведено из записей block-gallery, 3d-container,
   block-image | block-file, Tabs, img, Tables (обе), «Ссылка на файлы pdf
   в тексте»). Таблица вариаций в карточке товара — в product.css.
   ===================================================================== */

/* ===== Галерея (block-gallery: страницы, вкладка «Фотографии» товара) ===== */
.block-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0;
	margin-bottom: 1em;
	padding: 0;
	list-style: none;
}

/* Карточка галереи: 3 колонки с учётом gap */
.block-image {
	flex: 0 1 calc(33.333% - 14px);
	max-width: calc(33.333% - 14px);
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	border: 1px solid white;
	border-radius: 2px;
}
.block-image a {
	display: block;
	width: 100%;
}
.block-image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	border-radius: 2px;
}

.block-gallery-with-zoom a {
	overflow: hidden;
}
.block-gallery-with-zoom a img {
	transition: transform 0.3s ease;
}
.block-gallery-with-zoom a:hover img {
	transform: scale(1.2);
}

/* Подпись */
.block-image figcaption {
	width: 100%;
}
.block-image figcaption a {
	font-size: 160%;
	font-weight: 400;
	padding: 0.5em 1em;
	border-top: 1px solid;
	border-image: linear-gradient(to right, transparent, white, transparent) 1;
}

@media (max-width: 768px) {
	.block-gallery {
		gap: 16px;
	}
	.block-image {
		flex-grow: 1;
		flex-shrink: 1;
		flex-basis: 100%;
		max-width: none;
	}
	.block-image figcaption a {
		font-size: 120%;
	}
}

/* ===== 3D-модель (шорткод [3d_model], сниппет 032) ===== */
.three-container {
	border: 1px dashed gray;
	border-radius: 2px;
	display: block;
	position: relative;
}
.three-container:fullscreen {
	width: 100vw !important;
	height: 100vh !important;
	background-color: black;
}
/* Кнопку «на весь экран» добавляет /threejs/viewer.js */
.three-container .full-screen-button {
	position: absolute;
	top: 0;
	right: 10px;
	background: transparent;
	color: white;
	cursor: pointer;
	font-size: 30px;
	z-index: 10;
	transition: background 0.3s;
	margin: 0;
	padding: 0;
}
.three-container .full-screen-button:hover {
	color: red;
}
@media (orientation: portrait) and (max-width: 1024px) {
	.three-container {
		width: 100% !important;
	}
}
@media (orientation: landscape) and (max-width: 1024px) {
	.three-container {
		width: 100% !important;
	}
}

/* ===== Картинка с увеличением (block-image) и блок файла (block-file, шорткод [pdf_file]) ===== */
.block-image a {
	overflow: hidden;
}
.block-image a img {
	transition: transform 0.3s ease;
	display: block;
}
.block-image a:hover img {
	transform: scale(1.1);
}

.block-file {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1.5em;
	margin-bottom: 1em;
}
.block-file-image {
	flex-shrink: 0;
}
.block-file-image img {
	display: block;
	width: auto;
	height: 200px;
	transition: transform 0.3s ease;
}
.block-file-image a:hover img {
	transform: scale(1.1);
}
.block-file-text {
	flex: 1;
	min-width: 0; /* позволяет тексту корректно переноситься */
}
.block-file-text a {
	display: inline-flex;
	align-items: center;
	word-break: break-word;
}
/* Появление блока при прокрутке (AOS fade-up, настройка aos_files; 10.10.2026):
   снизу на 40px, а не на 100 (как в aos.css) — не наезжает на заголовок под ним */
.block-file[data-aos="fade-up"] {
	transform: translate3d(0, 40px, 0);
}
.block-file[data-aos="fade-up"].aos-animate {
	transform: none;
}
@media (orientation: portrait) and (max-width: 1024px) {
	.block-file-image img {
		max-height: 100px;
		max-width: 70px;
		height: auto !important;
	}
}

/* ===== Вкладки (плагин Tabby Responsive Tabs) ===== */
#page .responsive-tabs .responsive-tabs__panel.transparent-content {
	background-color: transparent;
}
#page .responsive-tabs .responsive-tabs__panel {
	background-color: black;
	border: 1px solid white;
	border-radius: 0 2px 2px 2px;
}
#page .responsive-tabs ul.responsive-tabs__list {
	margin-left: 0;
}
#page .responsive-tabs ul.responsive-tabs__list span.fa {
	color: red;
}
#page .responsive-tabs .responsive-tabs__list__item {
	font-size: 1.3rem;
	color: black;
	background-color: darkgrey;
}
#page .responsive-tabs .responsive-tabs__list__item:hover {
	background-color: red;
}
#page .responsive-tabs .responsive-tabs__list__item:hover span.fa {
	color: wheat;
}
#page .responsive-tabs .responsive-tabs__list__item--active {
	background-color: black;
	color: white;
}
/* Ярлыки — в строку флексом, а не float плагина (у float ярлык, не
   поместившийся в строку, вставал под соседним, а не с начала строки).
   Активный стоит на блоке: на 1px длиннее и перекрывает его верхнюю рамку
   (вместо top: 1px плагина). Только на широком экране: на телефоне плагин
   показывает гармошку. Все темы (10.10.2026; до этого — в theme-landing и
   theme-dark по отдельности). */
@media (min-width: 768px) {
	#page .responsive-tabs ul.responsive-tabs__list {
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
		row-gap: 6px;
	}
	#page .responsive-tabs .responsive-tabs__list__item {
		float: none;
	}
	#page .responsive-tabs .responsive-tabs__list__item--active {
		top: 0;
		margin-bottom: -1px;
		padding-bottom: 11px;
	}
}
@media (orientation: portrait) and (max-width: 1024px) {
	#page #content h2 {
		font-size: 1.1rem;
	}
	#page #content h2.responsive-tabs__heading {
		color: black;
	}
	#page #content h2.responsive-tabs__heading--active {
		color: white;
		background-color: black;
		border: 1px solid white !important;
		border: 0;
	}
}

/* ===== Картинки ограниченной высоты (класс max-height-3) ===== */
.max-height-3 {
	max-width: none;
	flex-direction: row;
}
/* иллюстрация в начале страницы: отступ до текста под ней (13.11.2026) */
.entry-content > .block-image.max-height-3 {
	margin-bottom: 1.6em;
}
.max-height-3 img {
	max-height: 350px;
	object-fit: cover;
}

/* ===== Плитки-ссылки в тексте страницы (заглавная «Партнёрам», 13.11.2026) =====
   Разметка: .sk-tiles > .sk-tile (<h3><a>заголовок</a></h3><p>пояснение</p>).
   Ссылка в заголовке растянута на всю плитку (a::after) — плитка нажимается
   целиком. .sk-lead — вводный абзац крупнее обычного; .sk-cta-line — строка
   с вопросом и кнопкой под плитками. Цвета — в теме. */
.sk-lead {
	max-width: 48em;
	font-size: 1.2rem;
	line-height: 1.55;
	margin-bottom: 1.6em;
}
.sk-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 20px;
	margin: 0 0 2em;
}
.sk-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 1.4rem 1.4rem 3rem;
}
#content .sk-tile h3 {
	margin: 0 0 .5em;
}
#content .sk-tile h3 a {
	text-decoration: none;
	font-weight: inherit;   /* у ссылок темы свой вес — заголовок плитки выходил тонким */
}
.sk-tile h3 a::after {
	content: '';
	position: absolute;
	inset: 0;
}
#content .sk-tile p {
	margin: 0;
}
.sk-tile::after {
	/* стрелка в правом нижнем углу — рисуется маской, толщина линии не зависит от шрифта */
	content: '';
	position: absolute;
	right: 1.3rem;
	bottom: 1.1rem;
	width: 30px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 18'%3E%3Cpath d='M2 9h25M19 2l8 7-8 7' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 18'%3E%3Cpath d='M2 9h25M19 2l8 7-8 7' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: translate .2s ease;
}
.sk-tile:hover::after {
	translate: 6px 0;
}
.sk-cta-line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

/* ===== Таблицы в тексте ===== */
#page .content-area table {
	background-color: black;
	color: white;
	border: 1px solid white;
}
#page .content-area table thead {
	background-color: wheat;
	color: black;
}
#page .content-area table tbody td {
	background-color: transparent;
}
#page .content-area table tbody tr:nth-child(2n) td {
	background-color: #5b5b5b;
}
#page .content-area table tbody tr:hover {
	background-color: gray;
}
#page table th {
	background-color: transparent;
}
#page table:not( .has-background ) th {
	background-color: transparent;
}
#page .content-area table.table-sm td {
	padding: 0.5em 1em;
}

/* ===== Ссылки на файлы (PDF и т. п.) в тексте ===== */
.wp-block-file a, a.pdf, a.download {
	font-size: 1.3rem;
}
a.pdf-big {
	display: inline-block;
	overflow: hidden;
	vertical-align: middle;
	border: 1px solid white;
}
a.pdf-big img {
	transition: transform 0.3s ease;
	display: block;
}
a.pdf-big:hover img {
	transform: scale(1.1);
}
@media (orientation: landscape) and (max-width: 1024px) {
	.wp-block-file a, a.pdf, a.download {
		font-size: 1rem;
	}
}
@media (orientation: portrait) and (max-width: 1024px) {
	.wp-block-file a, a.pdf, a.download {
		font-size: 1rem;
		line-height: 1.2;
	}
}

/* Вертикальная таблица характеристик (подпись слева) — используется в текстах
   товаров ../site-texts (<table class="vertical-table">), не удалять. */
.vertical-table { width: auto; max-width: 100%; }
.vertical-table td:first-child { font-weight: 600; padding-right: 1.5em; }

/* ===== Видео в тексте страницы (sk-video) и текст с видео в две колонки
   (sk-with-video), 12.11.2026 =====
   <figure class="sk-video"><video controls preload="none" poster src></figure>
   — плеер браузера со скруглёнными углами; ролик грузится по нажатию.
   <div class="sk-with-video"><div>текст</div><figure class="sk-video">…
   — слева текст, справа плеер; на окне уже 1200 px (с боковым меню колонка
   текста узкая) — в один столбец: текст, под ним плеер. */
.sk-video {
	margin: 0 0 1.5em;
	border: 1px solid rgba(128, 128, 128, .35);
	border-radius: 12px;
	overflow: hidden;
	background: #1e1a16;
	line-height: 0;
}
.sk-video video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}
.sk-with-video {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 2rem;
	align-items: center;
	margin-bottom: 1.5em;
}
.sk-with-video > .sk-video,
.sk-with-video > div > :last-child {
	margin-bottom: 0;
}
@media (max-width: 1199px) {
	.sk-with-video {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.25rem;
	}
}

/* Раскрывающиеся блоки (частые вопросы): отступы у раскрытого ответа */
#content .wp-block-details > summary { cursor: pointer; padding: 0.25em 0; }
#content .wp-block-details[open] { margin-bottom: 1.4em; }
#content .wp-block-details[open] > summary { margin-bottom: 0.5em; }
#content .wp-block-details > :last-child { margin-bottom: 0; }
