/**
 * NOMA: вкладки и артикул товара.
 *
 * ВАЖНО про масштабирование. Сайт зумится «как в Тильде»: секция .noma-scale
 * верстается на артборде 1200 px и целиком масштабируется через
 * zoom: var(--noma-zoom) (themes/noma/assets/css/noma-autoscale.css).
 * Поэтому здесь ТОЛЬКО обычные px из макета — ни vw, ни rem, ни var(--noma-fs-*),
 * ни var(--noma-px): иначе размер умножится на зум дважды.
 * Мобильные значения — для артборда 360 px.
 */

/* Шрифт и цвета — как у остального сайта: MainFont, текст 15/20 px #454545, подписи прописными.
   Секция вкладок стоит вне .noma-scale, поэтому блок сам берёт зум сайта (как .noma-zoom темы);
   внутри уже масштабированной секции и в редакторе Elementor — без зума, иначе он удвоится. */
.noma-pt {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;                 /* артборд сайта: × зум = ширина окна */
	margin-left: auto;
	margin-right: auto;
	padding-left: 48px;                /* поля как у секций .noma-scale */
	padding-right: 48px;
	font-family: MainFont, sans-serif;
	zoom: var(--noma-zoom, 1);
}

.noma-scale .noma-pt,
.noma-zoom .noma-pt,
.elementor-editor-active .noma-pt {
	zoom: 1;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}

/* Секция вкладок, которую ставит кнопка каркаса (2.3.0+): она сама .noma-scale на артборде 1200,
   поля — как у остальных секций сайта. */
.noma-pt-section .noma-pt {
	padding-left: 48px;
	padding-right: 48px;
}

/* --- полоса вкладок ---------------------------------------------------- */
.noma-pt__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-bottom: 1px solid #e3e3e3;
	margin-bottom: 32px;
}

.noma-pt__tab {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	margin: 0 0 -1px 0;
	padding: 14px 28px 14px 0;
	margin-right: 36px;
	font: inherit;
	font-family: MainFont, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: uppercase;
	color: #9a9a9a;
	cursor: pointer;
	transition: color 160ms ease, border-color 160ms ease;
	white-space: nowrap;
}

.noma-pt__tab:last-child {
	margin-right: 0;
}

/* Тема Hello Elementor красит любые кнопки: рамка #c36, скругление, а на :hover/:focus —
   розовый фон и белый текст ([type=button]:focus … {background-color:#c36}). Её правила по весу
   равны нашим или сильнее, поэтому сбрасываем всё явно и с запасом специфичности. */
.noma-pt .noma-pt__tab,
.noma-pt .noma-pt__tab:hover,
.noma-pt .noma-pt__tab:focus,
.noma-pt .noma-pt__tab:active {
	background: none;
	background-color: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	box-shadow: none;
	text-decoration: none;
	outline: none;
	width: auto;
}

.noma-pt .noma-pt__tab:hover,
.noma-pt .noma-pt__tab:focus {
	color: #1a1a1a;
}

.noma-pt .noma-pt__tab:focus-visible {
	outline: 1px solid #1a1a1a;
	outline-offset: 2px;
}

.noma-pt .noma-pt__tab[aria-selected="true"] {
	color: #1a1a1a;
	border-bottom-color: #1a1a1a;
}

/* --- содержимое -------------------------------------------------------- */
/* таблица характеристик — на всю ширину блока; текст и чертёж — удобной для чтения ширины */
.noma-pt__panel {
	max-width: none;
}

.noma-pt__text {
	max-width: 760px;
}

/* чертёж — как в прежнем блоке «ЧЕРТЁЖ»: крупно, по центру, в светлой рамке */
.noma-pt__drawing-box {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px;
	background: #f7f7f7;
	border-radius: 20px;
}

.noma-pt .noma-pt__drawing-box img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 620px;
	object-fit: contain;
	mix-blend-mode: multiply;   /* светлый фон файла чертежа сливается с рамкой */
}

.noma-pt__panel[hidden] {
	display: none;
}

.noma-pt__text {
	font-size: 15px;
	line-height: 20px;
	color: #454545;
}

.noma-pt__text strong,
.noma-pt__text b {
	font-weight: 500;
	color: #1a1a1a;
}

/* ссылки — как в подвале сайта: цвет текста, тонкое подчёркивание; розовый #c36 темы не пускаем */
.noma-pt .noma-pt__text a,
.noma-pt .noma-pt__text a:visited,
.noma-pt .noma-pt__doc {
	color: #1a1a1a;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	border-bottom: 0;
}

.noma-pt .noma-pt__text a:hover,
.noma-pt .noma-pt__text a:focus,
.noma-pt .noma-pt__doc:hover {
	color: #737373;
}

.noma-pt__text p {
	margin: 0 0 16px;
}

.noma-pt__text p:last-child {
	margin-bottom: 0;
}

/* --- таблица характеристик --------------------------------------------- */
.noma-pt__specs {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 20px;
}

.noma-pt__specs th,
.noma-pt__specs td {
	padding: 12px 0;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid #efefef;
	font-weight: 400;
}

.noma-pt__specs th {
	width: 220px;
	padding-right: 24px;
	color: #737373;
}

.noma-pt__specs td {
	color: #1a1a1a;
}

/* Тема рисует таблицам рамку со всех сторон, «зебру» и подсветку строки при наведении
   (table td{border:1px solid …}, table tbody>tr:nth-child(odd)>td{background…}) — убираем. */
.noma-pt table.noma-pt__specs {
	margin: 0;
	background: transparent;
	font-size: 15px;
}

.noma-pt table.noma-pt__specs tr > th,
.noma-pt table.noma-pt__specs tr > td,
.noma-pt table.noma-pt__specs tbody tr:nth-child(odd) > th,
.noma-pt table.noma-pt__specs tbody tr:nth-child(odd) > td,
.noma-pt table.noma-pt__specs tbody tr:hover > th,
.noma-pt table.noma-pt__specs tbody tr:hover > td {
	background: transparent;
	border: 0;
	border-bottom: 1px solid #efefef;
	line-height: 20px;
	font-family: MainFont, sans-serif;
}

/* --- спецификация ------------------------------------------------------ */
.noma-pt__drawing img {
	display: block;
	max-width: 100%;
	height: auto;
}

.noma-pt__doc {
	display: inline-block;
	margin-top: 16px;
	font-size: 15px;
	color: #1a1a1a;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}

/* --- артикул в карточке ------------------------------------------------ */
.noma-pt-sku {
	font-family: MainFont, sans-serif;
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-size: 14px;
	line-height: 1.3;
	color: #848484;
}

.noma-pt-sku__value {
	color: #1a1a1a;
	transition: opacity 140ms ease;
}

.noma-pt-sku__value.is-updating {
	opacity: 0.35;
}

/* --- мобильный артборд 360 --------------------------------------------- */
@media (max-width: 767px) {
	.noma-pt {
		max-width: 360px;
		padding-left: 24px;
		padding-right: 24px;
	}

	.noma-scale .noma-pt,
	.noma-zoom .noma-pt {
		max-width: none;
		padding-left: 0;
		padding-right: 0;
	}

	.noma-pt-section .noma-pt {
		padding-left: 24px;
		padding-right: 24px;
	}

	.noma-pt__tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin-bottom: 24px;
	}

	.noma-pt__tabs::-webkit-scrollbar {
		display: none;
	}

	.noma-pt__tab {
		margin-right: 24px;
		padding: 12px 0;
		font-size: 14px;
	}

	.noma-pt__specs th {
		width: 140px;
		padding-right: 12px;
	}

	.noma-pt__specs th,
	.noma-pt__specs td {
		font-size: 14px;
	}

	.noma-pt__text {
		font-size: 14px;
	}

	.noma-pt__drawing-box {
		padding: 16px;
		border-radius: 12px;
	}

	.noma-pt .noma-pt__drawing-box img {
		max-height: none;
	}
}
