/* ==========================================================================
   Public Offer Page — MyAgroParts v2.3.16
   Двухколоночный layout: контент слева, sticky-оглавление справа.
   ========================================================================== */

/* ---- Страница ---- */
.po-page {
	margin-top: 24px;
	margin-bottom: 64px;
}

/* ---- Hero Banner ---- */
.po-hero {
	position: relative;
	background: linear-gradient(135deg, #145214, #1e7a2a, #2d9a3f);
	border-radius: 24px;
	padding: 48px 56px;
	color: #fff;
	overflow: hidden;
	margin-bottom: 32px;
	box-shadow: 0 4px 24px -8px rgba(21, 82, 20, 0.35);
}

.po-hero-bg-icon {
	position: absolute;
	top: 0;
	right: 0;
	transform: translate(20%, -20%);
	opacity: 0.1;
	pointer-events: none;
	line-height: 0;
}

.po-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 740px;
}

.po-hero-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.po-hero-icon-wrap {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	backdrop-filter: blur(4px);
}

.po-hero-icon-wrap svg {
	color: #fff;
}

.po-hero-date {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	background: rgba(0, 0, 0, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 20px;
	padding: 6px 14px;
}

.po-hero-date svg {
	flex-shrink: 0;
	opacity: 0.8;
}

.po-hero-title {
	font-size: 44px;
	font-weight: 800;
	color: #fff;
	line-height: 1.15;
	margin: 0 0 20px;
	letter-spacing: -0.5px;
}

.po-hero-desc {
	font-size: 17px;
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.7;
	font-weight: 300;
	margin: 0;
}

/* ---- Layout ---- */
.po-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 32px;
}

/* ---- Основной контент ---- */
.po-content {
	background: #fff;
	border-radius: 20px;
	border: 1px solid #e8e8e8;
	padding: 40px 44px;
	counter-reset: po-section;
}

/* Разделы: нумерованные значки перед h2 */
.po-content h2 {
	counter-increment: po-section;
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 22px;
	font-weight: 800;
	color: #1a1a1a;
	line-height: 1.3;
	margin-top: 36px;
	margin-bottom: 16px;
	padding-top: 36px;
	border-top: 1px solid #f0f0f0;
}

.po-content h2:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.po-content h2::before {
	content: counter(po-section);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	min-width: 34px;
	background: #e8f5e9;
	color: #2d8c3c;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.po-content h3 {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	margin-top: 24px;
	margin-bottom: 12px;
	line-height: 1.35;
}

.po-content p {
	font-size: 15px;
	color: #444;
	line-height: 1.8;
	margin-bottom: 14px;
}

.po-content ul,
.po-content ol {
	padding-left: 0;
	margin-bottom: 16px;
}

.po-content ul li {
	list-style: none;
	position: relative;
	padding-left: 22px;
	font-size: 15px;
	color: #444;
	line-height: 1.75;
	margin-bottom: 8px;
}

.po-content ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 10px;
	width: 8px;
	height: 8px;
	background: #3ba54e;
	border-radius: 50%;
}

.po-content ol {
	counter-reset: po-ol;
	padding-left: 0;
}

.po-content ol li {
	counter-increment: po-ol;
	list-style: none;
	position: relative;
	padding-left: 28px;
	font-size: 15px;
	color: #444;
	line-height: 1.75;
	margin-bottom: 8px;
}

.po-content ol li::before {
	content: counter(po-ol) '.';
	position: absolute;
	left: 0;
	color: #3ba54e;
	font-weight: 700;
}

.po-content a {
	color: #3ba54e;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s;
}

.po-content a:hover {
	color: #2d8c3c;
}

.po-content strong,
.po-content b {
	font-weight: 700;
	color: #1a1a1a;
}

.po-content .wpb_text_column blockquote,
.po-content blockquote {
	border-left: 4px solid #3ba54e;
	background: #f0f9f1;
	padding: 16px 20px;
	border-radius: 0 10px 10px 0;
	margin: 20px 0;
	font-size: 15px;
	color: #444;
	line-height: 1.7;
}

.po-content .vc_row,
.po-content .wpb_column,
.po-content .vc_column-inner,
.po-content .wpb_wrapper {
	margin: 0 !important;
	padding: 0 !important;
}

/* ---- Сайдбар ---- */
.po-sidebar {}

.po-sidebar-sticky {
	position: sticky;
	top: 96px;
}

/* ---- Оглавление ---- */
.po-toc-card {
	background: #fff;
	border-radius: 20px;
	border: 1px solid #e8e8e8;
	padding: 24px;
	margin-bottom: 16px;
}

.po-toc-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f0f0f0;
}

.po-toc-header svg {
	color: #3ba54e;
	flex-shrink: 0;
}

.po-toc-title {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
}

.po-toc-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.po-toc-link {
	display: block;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	color: #555;
	text-decoration: none;
	transition: all 0.2s;
	line-height: 1.4;
}

.po-toc-link:hover {
	background: #f0f7f1;
	color: #2d8c3c;
}

.po-toc-link.active {
	background: #e8f5e9;
	color: #2d8c3c;
	font-weight: 600;
}

/* ---- Контактная карточка ---- */
.po-contact-card {
	background: linear-gradient(135deg, #2d8c3c, #3ba54e);
	border-radius: 20px;
	padding: 24px;
	color: #fff;
}

.po-contact-icon-wrap {
	width: 44px;
	height: 44px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}

.po-contact-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 8px;
}

.po-contact-desc {
	font-size: 13px;
	opacity: 0.85;
	line-height: 1.6;
	margin-bottom: 16px;
}

.po-contact-phone,
.po-contact-email {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 10px;
	transition: opacity 0.2s;
}

.po-contact-phone:hover,
.po-contact-email:hover {
	opacity: 0.8;
}

.po-contact-phone svg,
.po-contact-email svg {
	flex-shrink: 0;
	opacity: 0.85;
}

/* ---- Адаптив ---- */
@media (max-width: 1024px) {
	.po-layout {
		grid-template-columns: 1fr 260px;
		gap: 24px;
	}

	.po-hero {
		padding: 36px 36px;
	}

	.po-hero-title {
		font-size: 34px;
	}

	.po-content {
		padding: 32px 32px;
	}
}

@media (max-width: 768px) {
	.po-hero {
		padding: 28px 24px;
		border-radius: 18px;
		margin-bottom: 24px;
	}

	.po-hero-bg-icon {
		display: none;
	}

	.po-hero-title {
		font-size: 26px;
	}

	.po-hero-desc {
		font-size: 15px;
	}

	.po-layout {
		grid-template-columns: 1fr;
	}

	.po-sidebar {
		order: -1;
	}

	.po-sidebar-sticky {
		position: static;
	}

	.po-toc-card {
		margin-bottom: 20px;
	}

	.po-content {
		padding: 24px 20px;
	}

	.po-content h2 {
		font-size: 18px;
	}
}
