/**
 * Pricing Page Styles for ООО «Гидрона» (Theme: Самодвижец)
 * Adheres strictly to Living 8085 Design DNA: #ff7a00, #0e131f, #f8fafc, 1240px container, Apple HIG & Emil Kowalski standards.
 */

:root {
	--p-primary: #ff7a00;
	--p-primary-hover: #e56d00;
	--p-primary-light: #fff2e6;
	--p-dark: #0e131f;
	--p-dark-card: #161e31;
	--p-dark-border: rgba(255, 255, 255, 0.08);
	--p-text-dark: #0f172a;
	--p-text-muted: #64748b;
	--p-text-light: #94a3b8;
	--p-bg-light: #f8fafc;
	--p-bg-white: #ffffff;
	--p-radius: 12px;
	--p-radius-lg: 16px;
	--p-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
	--p-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
	--p-shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
	--p-shadow-glow: 0 8px 25px rgba(255, 122, 0, 0.35);
	--p-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gidrona-pricing-page {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: var(--p-text-dark);
	line-height: 1.6;
	width: 100%;
	overflow-x: hidden;
}

.p-container {
	max-width: 1240px !important;
	width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
	box-sizing: border-box !important;
}

.p-section {
	width: 100%;
	padding: 80px 0;
	position: relative;
	box-sizing: border-box;
}

.p-bg-light {
	background-color: var(--p-bg-light);
}

.p-bg-white {
	background-color: var(--p-bg-white);
}

.p-bg-dark {
	background-color: var(--p-dark);
	color: #ffffff;
}

/* Badges & Headers */
.p-badge {
	display: inline-block;
	padding: 6px 16px;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	border-radius: 50px;
	background: rgba(255, 122, 0, 0.12);
	color: var(--p-primary);
	margin-bottom: 16px;
}

.p-badge-accent {
	background: rgba(255, 122, 0, 0.2);
	color: #ff9500;
}

.p-section-head {
	margin-bottom: 48px;
}

.p-section-head.text-center {
	text-align: center;
}

.p-section-title {
	font-size: 2.25rem;
	font-weight: 800;
	line-height: 1.25;
	color: var(--p-text-dark);
	margin: 0 0 16px 0;
	letter-spacing: -0.02em;
}

.p-section-desc {
	font-size: 1.125rem;
	color: var(--p-text-muted);
	max-width: 820px;
	margin: 0 auto;
	line-height: 1.65;
}

/* Buttons */
.p-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 28px;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none;
	transition: var(--p-transition);
	cursor: pointer;
	border: 2px solid transparent;
	box-sizing: border-box;
}

.p-btn-primary {
	background: linear-gradient(135deg, #ff8c00, #ff6000);
	color: #ffffff !important;
	box-shadow: var(--p-shadow-glow);
}

.p-btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(255, 122, 0, 0.5);
	color: #ffffff !important;
}

.p-btn-outline-white {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.35);
	color: #ffffff !important;
}

.p-btn-outline-white:hover {
	border-color: var(--p-primary);
	color: var(--p-primary) !important;
	background: rgba(255, 122, 0, 0.08);
}

.p-btn-outline-dark {
	background: transparent;
	border-color: #cbd5e1;
	color: var(--p-text-dark) !important;
}

.p-btn-outline-dark:hover {
	border-color: var(--p-primary);
	color: var(--p-primary) !important;
	background: rgba(255, 122, 0, 0.06);
}

.p-btn-phone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	text-align: left;
}

.p-btn-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1.25;
}

.p-btn-title {
	font-size: 0.8rem;
	font-weight: 600;
	opacity: 0.92;
	letter-spacing: 0.2px;
	display: block;
}

.p-btn-number {
	font-size: 1.12rem;
	font-weight: 800;
	white-space: nowrap !important;
	letter-spacing: 0.5px;
	display: block;
}

.p-btn-phone .phone-icon-pulse {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.25);
	animation: pPhonePulse 2s infinite ease-in-out;
	flex-shrink: 0;
}

@keyframes pPhonePulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.18); }
}

.is-idle-pulsing {
	animation: pIdleBreathing 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pIdleBreathing {
	0%, 100% {
		box-shadow: 0 8px 25px rgba(255, 122, 0, 0.35);
		transform: scale(1);
	}
	50% {
		box-shadow: 0 14px 38px rgba(255, 122, 0, 0.65);
		transform: scale(1.025);
	}
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.p-hero-section {
	background-color: #0d121f;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	color: #ffffff;
	padding: 85px 0 95px;
	position: relative;
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	min-height: 500px;
	display: flex;
	align-items: center;
}

.p-hero-overlay {
	position: absolute;
	inset: 0;
	background: 
		linear-gradient(90deg, 
			rgba(7, 11, 19, 0.88) 0%, 
			rgba(7, 11, 19, 0.78) 45%, 
			rgba(7, 11, 19, 0.55) 75%, 
			rgba(7, 11, 19, 0.35) 100%),
		linear-gradient(180deg, 
			rgba(7, 11, 19, 0.5) 0%, 
			transparent 25%, 
			transparent 75%, 
			rgba(7, 11, 19, 0.6) 100%);
	z-index: 1;
	pointer-events: none;
}

.p-hero-content {
	position: relative;
	z-index: 2;
	max-width: 880px;
}

.p-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.85rem;
	color: #94a3b8;
	margin-bottom: 20px;
}

.p-breadcrumbs a {
	color: #cbd5e1;
	text-decoration: none;
	transition: var(--p-transition);
}

.p-breadcrumbs a:hover {
	color: var(--p-primary);
}

.p-hero-title {
	font-size: 2.55rem;
	font-weight: 800;
	line-height: 1.2;
	color: #ffffff;
	margin: 0 0 20px;
	letter-spacing: -0.02em;
}

.p-hero-subtitle {
	font-size: 1.25rem;
	color: #cbd5e1;
	line-height: 1.6;
	margin-bottom: 30px;
	max-width: 780px;
}

.p-hero-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 36px;
}

.p-hero-chips {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.p-hero-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	padding: 8px 16px;
	border-radius: 50px;
	font-size: 0.85rem;
	color: #f1f5f9;
	font-weight: 600;
}

.p-hero-chip span.dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--p-primary);
	box-shadow: 0 0 8px var(--p-primary);
}

/* ==========================================================================
   Pricing Cards Grid (3D Animated Cards)
   ========================================================================== */
.p-pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-bottom: 40px;
}

.p-pricing-card {
	background: #ffffff;
	border-radius: var(--p-radius-lg);
	border: 1px solid #e2e8f0;
	box-shadow: var(--p-shadow-md);
	overflow: hidden;
	transition: var(--p-transition);
	display: flex;
	flex-direction: column;
	position: relative;
	transform-style: preserve-3d;
	perspective: 1000px;
}

.p-pricing-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--p-shadow-lg);
	border-color: rgba(255, 122, 0, 0.35);
}

.p-card-header {
	padding: 24px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	position: relative;
}

.p-card-category {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--p-primary);
	margin-bottom: 6px;
}

.p-card-title {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--p-text-dark);
	margin: 0;
	line-height: 1.3;
}

.p-card-body {
	padding: 24px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.p-price-row {
	display: flex;
	flex-direction: column;
	padding: 14px 0;
	border-bottom: 1px solid #f1f5f9;
}

.p-price-row:last-child {
	border-bottom: none;
}

.p-price-row .brand-list {
	font-size: 0.84rem;
	color: var(--p-text-muted);
	line-height: 1.45;
	margin-bottom: 6px;
}

.p-price-row .brand-highlight {
	font-weight: 700;
	color: var(--p-text-dark);
}

.p-price-row .price-val {
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--p-primary);
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	white-space: nowrap !important;
}

.p-card-footer {
	padding: 18px 24px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
}

/* ==========================================================================
   NEW Value-Add Block: Interactive Price Calculator / Brand Filter
   ========================================================================== */
.p-calc-box {
	background: #0f172a;
	border-radius: 20px;
	padding: 40px;
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: var(--p-shadow-lg);
	margin-bottom: 50px;
	position: relative;
	overflow: hidden;
}

.p-calc-box::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #ff7a00, #ffb703, #ff4500);
}

.p-calc-grid {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 36px;
	align-items: center;
}

.p-calc-controls label {
	display: block;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	font-weight: 700;
	color: #94a3b8;
	margin-bottom: 12px;
}

.p-brand-pills,
.p-line-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.p-calc-pill {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #e2e8f0;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	transition: var(--p-transition);
	user-select: none;
}

.p-calc-pill:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 122, 0, 0.4);
}

.p-calc-pill.is-active {
	background: var(--p-primary);
	border-color: var(--p-primary);
	color: #ffffff;
	box-shadow: 0 4px 14px rgba(255, 122, 0, 0.35);
}

.p-calc-result-box {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--p-radius-lg);
	padding: 28px;
}

.p-result-badge {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--p-primary);
	background: rgba(255, 122, 0, 0.15);
	padding: 4px 12px;
	border-radius: 50px;
	margin-bottom: 12px;
	text-transform: uppercase;
}

.p-result-title {
	font-size: 1.4rem;
	font-weight: 800;
	margin: 0 0 10px;
	color: #ffffff;
}

.p-result-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 12px;
	margin: 0 0 16px;
}

.p-price-val {
	font-size: 2.1rem;
	font-weight: 800;
	color: #ffb703;
	white-space: nowrap !important;
	display: inline-block;
	line-height: 1.15;
}

.p-price-note {
	font-size: 0.88rem;
	font-weight: 500;
	color: #94a3b8;
	white-space: nowrap;
}

.p-result-features {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
}

.p-result-features li {
	font-size: 0.88rem;
	color: #cbd5e1;
	padding: 6px 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.p-result-features li span.check {
	color: var(--p-primary);
	font-weight: 800;
}

/* ==========================================================================
   Pricing Strategy & Customization (Как формируется цена)
   ========================================================================== */
.p-form-price-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.p-form-text h3 {
	font-size: 1.85rem;
	font-weight: 800;
	color: var(--p-text-dark);
	margin: 0 0 18px;
}

.p-form-text p {
	font-size: 1.05rem;
	color: #334155;
	line-height: 1.7;
	margin-bottom: 18px;
}

.p-form-img-wrap {
	border-radius: var(--p-radius-lg);
	overflow: hidden;
	box-shadow: var(--p-shadow-lg);
	border: 1px solid #e2e8f0;
	position: relative;
}

.p-form-img {
	width: 100%;
	height: auto;
	display: block;
}

.p-form-badge {
	position: absolute;
	bottom: 20px;
	left: 20px;
	background: rgba(14, 19, 31, 0.92);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	padding: 10px 18px;
	border-radius: 12px;
	color: #ffffff;
}

.p-form-badge .val {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--p-primary);
	display: block;
}

.p-form-badge .lbl {
	font-size: 0.78rem;
	color: #cbd5e1;
}

/* ==========================================================================
   Manufacturer Guarantee & Quality Section
   ========================================================================== */
.p-quality-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: var(--p-radius-lg);
	padding: 44px;
	box-shadow: var(--p-shadow-sm);
	margin-bottom: 30px;
}

.p-quality-box h3 {
	font-size: 1.65rem;
	font-weight: 800;
	color: var(--p-text-dark);
	margin: 0 0 16px;
}

.p-quality-box p {
	font-size: 1.05rem;
	color: #475569;
	line-height: 1.75;
	margin-bottom: 0;
}

/* ==========================================================================
   Direct Call CTA Banner
   ========================================================================== */
.p-cta-banner {
	background-color: #0e131f;
	color: #ffffff;
	padding: 85px 24px;
	border-radius: 20px;
	text-align: center;
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow: var(--p-shadow-lg);
	margin: 20px 0;
}

.p-cta-banner h2 {
	font-size: 2.3rem;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 18px;
	line-height: 1.25;
}

.p-cta-banner p {
	font-size: 1.15rem;
	color: #cbd5e1;
	line-height: 1.6;
	max-width: 760px;
	margin: 0 auto 36px;
}

.p-cta-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Optimization
   ========================================================================== */
@media (max-width: 1024px) {
	.p-hero-title {
		font-size: 2.2rem;
	}
	.p-section-title {
		font-size: 1.95rem;
	}
	.p-pricing-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.p-calc-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 30px;
	}
	.p-form-price-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}
}

@media (max-width: 768px) {
	.p-section {
		padding: 55px 0;
	}
	.p-container {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}
	.p-hero-section {
		padding: 55px 0 65px;
		min-height: auto;
	}
	.p-hero-title {
		font-size: 1.75rem;
	}
	.p-hero-subtitle {
		font-size: 1.05rem;
	}
	.p-hero-actions {
		flex-direction: column;
		align-items: stretch;
	}
	.p-btn {
		width: 100%;
	}
	.p-pricing-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	.p-calc-box {
		padding: 24px 16px;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
	.p-calc-grid {
		grid-template-columns: minmax(0, 1fr);
		width: 100%;
		min-width: 0;
		gap: 24px;
	}
	.p-calc-controls,
	.p-calc-result-box {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}
	.p-calc-controls h3 {
		font-size: clamp(1.18rem, 4.8vw, 1.35rem) !important;
		line-height: 1.25 !important;
		word-break: normal !important;
		overflow-wrap: break-word !important;
	}
	.p-calc-result-box {
		padding: 20px 16px;
		border-radius: 14px;
	}
	.p-result-title {
		font-size: clamp(1.15rem, 4.8vw, 1.35rem);
		line-height: 1.25;
		word-break: normal;
		overflow-wrap: break-word;
	}
	.p-calc-result-box .p-btn-phone {
		padding: 10px 14px;
		gap: 8px;
		width: 100%;
		box-sizing: border-box;
	}
	.p-calc-result-box .p-btn-number {
		font-size: clamp(0.92rem, 3.8vw, 1.05rem);
		white-space: nowrap !important;
	}
	.p-brand-pills,
	.p-line-pills {
		gap: 6px;
		margin-bottom: 20px;
	}
	.p-calc-pill {
		padding: 7px 12px;
		font-size: 0.82rem;
	}
	.p-quality-box {
		padding: 24px 18px;
	}
	.p-cta-banner {
		padding: 40px 24px;
		margin: 30px 0;
	}
	.p-cta-banner h2 {
		font-size: 1.55rem;
		line-height: 1.3;
		margin-bottom: 12px;
	}
	.p-cta-banner p {
		font-size: 0.98rem;
		line-height: 1.6;
		margin-bottom: 24px;
	}
	.p-cta-actions {
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.p-hero-title {
		font-size: 1.5rem;
	}
	.p-section-title {
		font-size: 1.4rem;
	}
	.p-badge {
		font-size: 0.72rem;
	}
	.p-calc-pill {
		padding: 7px 12px;
		font-size: 0.82rem;
	}
	.p-price-val {
		font-size: 1.7rem;
		white-space: nowrap !important;
	}
	.p-price-note {
		font-size: 0.8rem;
	}
	.p-btn-number {
		font-size: 1.05rem;
		white-space: nowrap !important;
	}
	.p-btn-title {
		font-size: 0.76rem;
	}
	.p-quality-box {
		padding: 24px 16px;
	}
	.p-quality-box h3 {
		font-size: 1.25rem;
		line-height: 1.35;
	}
	.p-quality-box p {
		font-size: 0.9rem;
		line-height: 1.6;
	}
	.p-cta-banner {
		padding: 30px 16px;
		margin: 20px 0;
		border-radius: 16px;
	}
	.p-cta-banner h2 {
		font-size: 1.22rem;
		line-height: 1.32;
		margin-bottom: 10px;
		letter-spacing: -0.2px;
		word-break: normal;
		overflow-wrap: break-word;
	}
	.p-cta-banner p {
		font-size: 0.88rem;
		line-height: 1.55;
		margin-bottom: 20px;
	}
}
