/* ================================================================
   ВНУТРЕННИЕ СТРАНИЦЫ — стили поверх дизайн-системы landings.css
   О компании · Каталог продукции · Остатки товаров · Контакты
   Scope: main.template-landing-ppu.tp-page
   ================================================================ */

/* ---- Breadcrumbs ---- */
.lp-breadcrumbs-wrapper {
	background-color: var(--bg-base);
	padding: 20px 0 0;
}

/* ---- Заголовок страницы ---- */
.tp-page-hero {
	padding: 48px 0 56px;
	position: relative;
	background:
		radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.07) 0%, transparent 50%),
		radial-gradient(circle at 10% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 40%);
}

/* ---- Улучшенный Hero для "О компании" ---- */
.tp-about-hero {
	position: relative;
	padding: 70px 0 80px;
	overflow: hidden;
	background: var(--bg-surface);
	border-bottom: 1px solid var(--border);
}

.tp-about-hero-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.tp-hero-bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: blur(4px) brightness(0.4);
	transform: scale(1.05);
}

.tp-about-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(7, 10, 19, 0.92) 0%, rgba(15, 22, 38, 0.85) 60%, rgba(7, 10, 19, 0.95) 100%);
}

.tp-about-hero-content {
	position: relative;
	z-index: 1;
	max-width: 900px;
}

.tp-about-hero-content h1 {
	font-size: clamp(32px, 4.5vw, 52px);
	line-height: 1.15;
	margin-bottom: 18px;
	background: linear-gradient(135deg, #ffffff 30%, #cbd5e1 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.tp-about-hero-content .hero-description {
	font-size: clamp(16px, 1.8vw, 19px);
	color: var(--text-secondary);
	line-height: 1.6;
	margin-bottom: 32px;
	max-width: 800px;
}

/* Статистика в Hero */
.tp-hero-stats-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin-bottom: 36px;
	padding: 20px 24px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	backdrop-filter: blur(8px);
}

.tp-hero-stat-item {
	display: flex;
	flex-direction: column;
}

.tp-hero-stat-item .stat-num {
	font-size: 28px;
	font-weight: 800;
	color: var(--primary);
	line-height: 1.1;
	font-family: var(--font);
}

.tp-hero-stat-item .stat-text {
	font-size: 13px;
	color: var(--text-secondary);
	margin-top: 4px;
}

/* Макет двух колонок "О компании" */
.tp-about-grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 48px;
	align-items: start;
}

.tp-about-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 100px;
}

.tp-sidebar-card {
	padding: 28px;
	background-color: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	transition: var(--transition);
}

.tp-sidebar-card:hover {
	border-color: rgba(249, 115, 22, 0.3);
	transform: translateY(-3px);
}

.tp-sidebar-card.highlight {
	background: linear-gradient(145deg, var(--bg-surface-elevated) 0%, var(--bg-surface) 100%);
	border-color: rgba(249, 115, 22, 0.25);
}

.tp-sidebar-card .sidebar-icon {
	color: var(--primary);
	margin-bottom: 16px;
}

.tp-sidebar-card h3 {
	font-size: 18px;
	margin-bottom: 10px;
	color: var(--text-primary);
}

.tp-sidebar-card p {
	font-size: 14px;
	color: var(--text-secondary);
	margin-bottom: 0;
	line-height: 1.55;
}

.tp-sidebar-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}

.tp-sidebar-actions .btn {
	font-size: 14px;
	padding: 9px 16px;
}

/* ---- Контактные быстрые карточки в Hero ---- */
.tp-contact-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: 16px;
	margin-bottom: 34px;
	padding: 20px 24px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	backdrop-filter: blur(8px);
}

.tp-contact-fact {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
}

.tp-contact-fact svg {
	flex: 0 0 auto;
	color: var(--primary);
	margin-top: 2px;
}

.tp-contact-fact > div {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.tp-contact-fact-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	margin-bottom: 3px;
}

.tp-contact-fact-value {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-primary);
	line-height: 1.4;
	word-break: break-word;
	transition: var(--transition);
}

a.tp-contact-fact-value:hover {
	color: var(--primary);
}

/* ---- Три контактных блока в ряд ---- */
.tp-contact-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: stretch;
	margin-bottom: 36px;
}

.tp-contact-cards .tp-sidebar-card {
	display: flex;
	flex-direction: column;
}

.tp-contact-cards .tp-sidebar-card > p {
	flex-grow: 1;
}

.tp-email-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tp-email-list li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tp-email-list a {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-primary);
	text-decoration: none;
	word-break: break-word;
	transition: var(--transition);
}

.tp-email-list a:hover {
	color: var(--primary);
}

.tp-email-list span {
	font-size: 13px;
	color: var(--text-muted);
}

.tp-contacts-note {
	max-width: 900px;
}

/* ---- Действия под картой ---- */
.tp-map-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
}

/* Обновленная галерея сертификатов */
.tp-certs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 24px;
}

.tp-cert-card {
	display: flex;
	flex-direction: column;
	background-color: var(--bg-surface-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: var(--transition);
	cursor: pointer;
}

.tp-cert-card:hover {
	transform: translateY(-6px);
	border-color: var(--primary);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(249, 115, 22, 0.15);
}

.tp-cert-thumb {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #05070d;
}

.tp-cert-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.tp-cert-card:hover .tp-cert-thumb img {
	transform: scale(1.05);
}

.tp-cert-overlay {
	position: absolute;
	inset: 0;
	background: rgba(7, 10, 19, 0.65);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	opacity: 0;
	transition: var(--transition);
	backdrop-filter: blur(2px);
}

.tp-cert-card:hover .tp-cert-overlay {
	opacity: 1;
}

.tp-cert-overlay .zoom-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
	transform: scale(0.8);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tp-cert-card:hover .tp-cert-overlay .zoom-icon {
	transform: scale(1);
}

.tp-cert-overlay .zoom-text {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	letter-spacing: 0.03em;
}

.tp-cert-title {
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary);
	text-align: center;
	border-top: 1px solid var(--border);
	background-color: var(--bg-surface);
}

.tp-page-hero .badge {
	margin-bottom: 14px;
}

.tp-page-hero h1 {
	font-size: clamp(28px, 3.8vw, 46px);
	line-height: 1.15;
	margin-bottom: 0;
	max-width: 960px;
	word-break: break-word;
	background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* ---- Секции ---- */
.tp-page .lp-section {
	padding: 76px 0;
}

.tp-page .lp-section:first-of-type {
	padding-top: 76px;
}

.tp-page .lp-section-header {
	max-width: 880px;
}

.tp-page .section-title {
	font-size: clamp(24px, 2.8vw, 34px);
}

/* ---- Текстовое содержимое (the_content) ---- */
.tp-prose {
	max-width: 920px;
	color: var(--text-secondary);
	font-size: 16px;
	line-height: 1.75;
}

.tp-prose > *:first-child {
	margin-top: 0;
}

.tp-prose > *:last-child {
	margin-bottom: 0;
}

.tp-prose p {
	margin-bottom: 18px;
}

.tp-prose h2 {
	font-size: clamp(22px, 2.4vw, 28px);
	margin: 36px 0 14px;
}

.tp-prose h3 {
	font-size: clamp(18px, 2vw, 21px);
	margin: 30px 0 12px;
}

.tp-prose h4 {
	font-size: 17px;
	margin: 26px 0 10px;
}

.tp-prose ul,
.tp-prose ol {
	padding-left: 22px;
	margin-bottom: 20px;
}

.tp-prose li {
	margin-bottom: 8px;
}

.tp-prose li::marker {
	color: var(--primary);
}

.tp-prose a {
	color: var(--secondary);
	border-bottom: 1px solid rgba(14, 165, 233, 0.35);
}

.tp-prose a:hover {
	color: var(--primary);
	border-bottom-color: rgba(249, 115, 22, 0.5);
}

.tp-prose strong,
.tp-prose b {
	color: var(--text-primary);
	font-weight: 600;
}

.tp-prose img {
	max-width: 100%;
	height: auto;
	border-radius: var(--radius-md);
}

.tp-prose figure {
	margin: 0 0 22px;
}

.tp-prose blockquote {
	margin: 26px 0;
	padding: 18px 22px;
	border-left: 3px solid var(--primary);
	background: rgba(255, 255, 255, 0.03);
	border-radius: var(--radius-sm);
	color: var(--text-primary);
}

.tp-prose hr {
	border: 0;
	border-top: 1px solid var(--border);
	margin: 30px 0;
}

.tp-prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 24px;
	font-size: 15px;
}

.tp-prose th,
.tp-prose td {
	border: 1px solid var(--border);
	padding: 12px 14px;
	text-align: left;
}

.tp-prose th {
	background-color: var(--bg-surface-elevated);
	color: var(--text-primary);
}

.tp-prose td {
	color: var(--text-secondary);
}

.tp-prose .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* ---- Карточки каталога / остатков / сертификатов ---- */
.tp-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

.tp-card {
	background-color: var(--bg-surface-elevated);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: var(--transition);
}

.tp-card:hover {
	transform: translateY(-6px);
	border-color: rgba(249, 115, 22, 0.35);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.tp-card-media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #05070d;
}

.tp-card-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(7, 10, 19, 0) 55%, rgba(7, 10, 19, 0.55) 100%);
	pointer-events: none;
}

.tp-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp-card:hover .tp-card-media img {
	transform: scale(1.06);
}

.tp-card-body {
	padding: 22px 24px 26px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.tp-card-body h3 {
	font-size: 17px;
	margin-bottom: 0;
	line-height: 1.35;
}

.tp-card-body h3 a {
	color: var(--text-primary);
	transition: var(--transition);
}

.tp-card:hover .tp-card-body h3 a {
	color: var(--primary);
}

.tp-card-body p {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-secondary);
	margin-bottom: 0;
}

/* ---- Сертификаты ---- */
.tp-certs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
}

.tp-cert-card {
	display: block;
	background-color: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: var(--transition);
}

.tp-cert-card:hover {
	transform: translateY(-4px);
	border-color: rgba(249, 115, 22, 0.35);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.tp-cert-card img {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}

/* ---- Остатки товаров ---- */
.tp-sale-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 22px;
}

.tp-sale-card {
	background-color: var(--bg-surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	overflow: hidden;
	transition: var(--transition);
}

.tp-sale-card:hover {
	transform: translateY(-4px);
	border-color: rgba(249, 115, 22, 0.35);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.tp-sale-media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #05070d;
}

.tp-sale-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp-sale-card:hover .tp-sale-media img {
	transform: scale(1.06);
}

.tp-sale-card h2 {
	font-size: 16px;
	line-height: 1.4;
	margin: 0;
	padding: 18px 20px 22px;
}

/* ---- Распродажа: детали карточки ---- */
.tp-sale-media {
	position: relative;
}

.tp-sale-zoom {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(7, 10, 19, 0.7);
	border: 1px solid var(--border-hover);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: translateY(-6px);
	transition: var(--transition);
	backdrop-filter: blur(4px);
}

.tp-sale-card:hover .tp-sale-zoom {
	opacity: 1;
	transform: translateY(0);
}

.tp-sale-body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.tp-sale-body h3 {
	font-size: 16px;
	line-height: 1.4;
	margin: 0;
}

.tp-sale-body h3 a {
	color: var(--text-primary);
	transition: var(--transition);
}

.tp-sale-card:hover .tp-sale-body h3 a {
	color: var(--primary);
}

.tp-sale-meta {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 14px;
}

.tp-sale-meta-label {
	color: var(--text-muted);
}

.tp-sale-meta-value {
	color: var(--text-secondary);
	font-weight: 600;
}

.tp-sale-price {
	font-size: 20px;
	font-weight: 800;
	color: var(--primary);
	letter-spacing: -0.01em;
}

.tp-sale-desc {
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-secondary);
}

.tp-sale-desc p {
	margin: 0 0 8px;
}

.tp-sale-desc p:last-child {
	margin-bottom: 0;
}

.tp-sale-btn {
	margin-top: 0;
	align-self: flex-start;
	font-size: 14px;
	padding: 9px 18px;
}

/* ---- Пагинация ---- */
.tp-pagination-section {
	padding-top: 0;
}

.tp-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.tp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-surface);
	color: var(--text-secondary);
	font-size: 15px;
	font-weight: 600;
	transition: var(--transition);
}

.tp-pagination .page-numbers:hover {
	border-color: rgba(249, 115, 22, 0.45);
	color: var(--text-primary);
}

.tp-pagination .page-numbers.current {
	background: var(--primary);
	border-color: var(--primary);
	color: #fff;
}

/* ---- Контакты / карта ---- */
.tp-map-frame {
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background-color: var(--bg-surface);
}

.tp-map-frame iframe {
	display: block;
	width: 100%;
	height: 460px;
	border: 0;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
	.tp-page-hero {
		padding: 40px 0 44px;
	}

	.tp-about-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.tp-about-sidebar {
		position: static;
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	}

	.tp-contact-cards {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
		gap: 16px;
	}

	.tp-page .lp-section {
		padding: 60px 0;
	}
}

@media (max-width: 767.98px) {
	.tp-page-hero {
		padding: 32px 0 36px;
	}

	.tp-about-hero {
		padding: 48px 0 52px;
	}

	.tp-hero-stats-row {
		grid-template-columns: repeat(2, 1fr);
		padding: 16px;
	}

	.tp-contact-facts {
		grid-template-columns: 1fr;
		padding: 16px 18px;
		gap: 14px;
	}

	.tp-page .lp-section {
		padding: 48px 0;
	}

	.tp-page .lp-section-header {
		margin-bottom: 36px;
	}

	.tp-cards-grid,
	.tp-sale-grid,
	.tp-certs-grid {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 16px;
	}

	.tp-map-frame iframe {
		height: 340px;
	}

	.tp-prose table {
		display: block;
		overflow-x: auto;
	}
}

@media (max-width: 575.98px) {
	.tp-hero-stats-row {
		grid-template-columns: 1fr;
	}

	.tp-cards-grid,
	.tp-sale-grid,
	.tp-certs-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.tp-page .btn-group {
		flex-wrap: wrap;
	}

	.tp-page .btn {
		width: 100%;
	}

	.tp-map-frame {
		border-radius: var(--radius-md);
	}

	.tp-map-frame iframe {
		height: 300px;
	}
}

/* ================================================================
   РАСПРОДАЖА: КНОПКА «ПОДРОБНЕЕ» И МОДАЛЬНОЕ ОКНО ОПИСАНИЯ
   ================================================================ */
.tp-sale-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--primary);
	transition: var(--transition);
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tp-sale-more:hover {
	color: var(--primary-hover);
}

.tp-sale-more svg {
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.tp-sale-card:hover .tp-sale-more svg {
	transform: translateX(4px);
}

/* ---- Модальное окно: общая оболочка ----
   При открытии содержимое переносится в оверлей .tp-modal на уровне body —
   за пределы .template-landing-ppu, поэтому токены и размеры
   заданы здесь литерально. */
.tp-sale-popup {
	--primary: #f97316;
	--primary-hover: #fb923c;
	--primary-glow: rgba(249, 115, 22, 0.15);
	--text-primary: #f8fafc;
	--text-secondary: #94a3b8;
	--text-muted: #64748b;
	--border: rgba(255, 255, 255, 0.08);
	--border-hover: rgba(255, 255, 255, 0.16);
	--radius-sm: 8px;
	--radius-md: 16px;
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	width: 680px;
	max-width: 100%;
	margin: 0 auto;
	background: #0f1626;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
	padding: 26px;
	color: #94a3b8;
	font-size: 15px;
	line-height: 1.6;
	text-align: left;
}

.tp-sale-popup-title {
	font-size: 20px;
	line-height: 1.35;
	font-weight: 700;
	color: #f8fafc;
	margin: 0 42px 16px 0;
}

.tp-sale-popup-media {
	margin-bottom: 16px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	overflow: hidden;
	background: #05070d;
}

.tp-sale-popup-media img {
	display: block;
	width: 100%;
	height: auto;
}

.tp-sale-popup .tp-sale-meta {
	margin-bottom: 12px;
}

.tp-sale-popup .tp-sale-price {
	margin-bottom: 4px;
}

.tp-sale-popup .tp-sale-desc {
	font-size: 15px;
	color: #94a3b8;
}

.tp-sale-popup .tp-sale-desc h2,
.tp-sale-popup .tp-sale-desc h3,
.tp-sale-popup .tp-sale-desc h4 {
	font-size: 17px;
	font-weight: 700;
	color: #f8fafc;
	margin: 16px 0 8px;
}

.tp-sale-popup .tp-sale-desc ul,
.tp-sale-popup .tp-sale-desc ol {
	margin: 0 0 10px;
	padding-left: 22px;
}

.tp-sale-popup .tp-sale-desc li {
	margin-bottom: 6px;
}

.tp-sale-popup .tp-sale-desc strong,
.tp-sale-popup .tp-sale-desc b {
	color: #f8fafc;
}

.tp-sale-popup .tp-sale-desc table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 12px;
	font-size: 14px;
}

.tp-sale-popup .tp-sale-desc td,
.tp-sale-popup .tp-sale-desc th {
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 8px 10px;
	text-align: left;
}

.tp-sale-popup-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-sale-popup-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 26px;
	background: #f97316;
	border: 1px solid transparent;
	border-radius: 16px;
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp-sale-popup-btn:hover {
	background: #fb923c;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
}

/* Вариант с фото: на десктопе фото слева, описание справа */
@media (min-width: 768px) {
	.tp-sale-popup--media {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		column-gap: 30px;
		align-items: start;
	}

	.tp-sale-popup--media .tp-sale-popup-title {
		grid-column: 1 / -1;
	}

	.tp-sale-popup--media .tp-sale-popup-media {
		grid-column: 1;
		grid-row: 2 / span 3;
		align-self: start;
		min-width: 0;
		margin-bottom: 0;
	}

	.tp-sale-popup--media .tp-sale-meta,
	.tp-sale-popup--media .tp-sale-popup-desc,
	.tp-sale-popup--media .tp-sale-popup-price {
		grid-column: 2;
	}

	.tp-sale-popup--media .tp-sale-popup-actions {
		grid-column: 1 / -1;
	}
}

/* ---- Модальное окно описания товара (собственная реализация) ---- */
html.tp-modal-open,
html.tp-modal-open body {
	overflow: hidden;
}

.tp-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	display: none;
}

.tp-modal.is-open {
	display: block;
}

.tp-modal__backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(3, 5, 10, 0.8);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: tp-modal-fade 0.25s ease;
}

.tp-modal__dialog {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	height: 100%;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 32px 16px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.tp-modal__body {
	position: relative;
	width: 100%;
	max-width: 680px;
	margin: 0 auto;
	animation: tp-modal-rise 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.tp-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 5;
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 50%;
	color: #cbd5e1;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tp-modal__close:hover {
	background: rgba(249, 115, 22, 0.18);
	border-color: #f97316;
	color: #fff;
}

.tp-modal__close:focus-visible {
	outline: 2px solid #f97316;
	outline-offset: 2px;
}

.tp-modal__close svg {
	display: block;
}

@keyframes tp-modal-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes tp-modal-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tp-modal__backdrop,
	.tp-modal__body {
		animation: none;
	}
}

@media (max-width: 575.98px) {
	.tp-sale-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.tp-modal__dialog {
		padding: 16px 10px 24px;
	}

	.tp-sale-popup {
		padding: 20px 16px;
		font-size: 14.5px;
	}

	.tp-sale-popup-title {
		font-size: 18px;
		margin-right: 36px;
	}

	.tp-sale-popup .tp-sale-desc {
		font-size: 14.5px;
	}

	.tp-sale-popup-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.tp-sale-popup-btn {
		width: 100%;
		padding: 14px 20px;
	}
}

/* ---- Страница 404 ---- */
.tp-page--404 .tp-404 {
	padding: 72px 0 96px;
	text-align: center;
}

.tp-page--404 h1 {
	margin: 0 0 16px;
	font-size: clamp(30px, 5vw, 46px);
	line-height: 1.15;
	font-weight: 800;
	color: var(--text-primary, #fff);
}

.tp-page--404 .tp-404-text {
	max-width: 620px;
	margin: 0 auto 28px;
	color: var(--text-secondary, #94a3b8);
	font-size: 17px;
	line-height: 1.6;
}

.tp-page--404 .btn-group {
	justify-content: center;
	margin-bottom: 36px;
}

.tp-404-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 26px;
}

.tp-404-links a {
	color: #f97316;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.25s ease;
}

.tp-404-links a:hover {
	color: #fb923c;
	text-decoration: underline;
}

@media (max-width: 575.98px) {
	.tp-page--404 .tp-404 {
		padding: 48px 0 72px;
	}

	.tp-page--404 .btn-group {
		flex-direction: column;
		align-items: stretch;
	}

	.tp-page--404 .btn-group .btn {
		width: 100%;
	}
}
