/* ============================================================
   Pains Section — «Diagnostic Dashboard»
   ============================================================
   Dark transition from hero, glass accordion cards,
   orange accents, mesh background.
   ============================================================ */

section.pains-section.section {
	position: relative;
	background-color: #0d0d20 !important;
	overflow: hidden;
}

/* Mesh background — subtle grid + dots */
section.pains-section.section::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		/* fine grid */
		linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		/* decorative dots */
		radial-gradient(rgba(255, 94, 20, 0.08) 1px, transparent 1px);
	background-size: 40px 40px, 40px 40px, 20px 20px;
	-webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 70%);
	mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 70%);
	pointer-events: none;
}

/* Radar scan rings — bottom-right, diagnostic feel */
section.pains-section.section::after {
	content: '';
	position: absolute;
	width: 550px;
	height: 550px;
	bottom: -100px;
	right: -60px;
	z-index: 0;
	pointer-events: none;
	border-radius: 50%;
	background:
		/* Center origin dot */
		radial-gradient(circle at 50% 50%, rgba(255, 94, 20, 0.20) 0%, rgba(255, 94, 20, 0.07) 6px, transparent 12px),
		/* Concentric rings */
		repeating-radial-gradient(
			circle at 50% 50%,
			transparent 0px,
			transparent 44px,
			rgba(255, 94, 20, 0.04) 44px,
			transparent 47px
		);
	animation: radar-throb 4s ease-in-out infinite;
}

@keyframes radar-throb {
	0%, 100% { transform: scale(0.92); opacity: 0.5; }
	50% { transform: scale(1.08); opacity: 1; }
}

/* Rotating scan beam — overlays the radar rings */
.pains-scan-beam {
	position: absolute;
	bottom: -100px;
	right: -60px;
	width: 550px;
	height: 550px;
	z-index: 0;
	pointer-events: none;
	border-radius: 50%;
	overflow: hidden;
	animation: scan-spin 12s linear infinite;
}

.pains-scan-beam::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	width: 50%;
	height: 50%;
	background: linear-gradient(
		to top,
		rgba(255, 94, 20, 0) 0%,
		rgba(255, 94, 20, 0.05) 60%,
		rgba(255, 94, 20, 0.10) 100%
	);
	border-radius: 0 100% 0 0;
	transform-origin: bottom left;
	mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
	-webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

@keyframes scan-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Floating diagnostic particles */
.pains-particles {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.pains-particles::before,
.pains-particles::after {
	content: '';
	position: absolute;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: var(--color-primary);
}

.pains-particles::before {
	top: 15%;
	left: 20%;
	box-shadow:
		160px 90px 0 rgba(255, 94, 20, 0.3),
		300px 200px 0 rgba(255, 94, 20, 0.2),
		100px 250px 0 rgba(255, 94, 20, 0.15),
		450px 120px 0 rgba(255, 255, 255, 0.08),
		-80px 300px 0 rgba(255, 94, 20, 0.25);
	animation: particle-float-1 8s ease-in-out infinite;
}

.pains-particles::after {
	bottom: 30%;
	left: 60%;
	width: 2px;
	height: 2px;
	background: rgba(100, 180, 255, 0.3);
	box-shadow:
		-120px -50px 0 rgba(100, 180, 255, 0.2),
		80px 100px 0 rgba(255, 94, 20, 0.15),
		200px -80px 0 rgba(100, 180, 255, 0.15),
		-60px 180px 0 rgba(255, 94, 20, 0.2);
	animation: particle-float-2 11s ease-in-out infinite;
}

@keyframes particle-float-1 {
	0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
	25% { transform: translate(15px, -20px) scale(1.3); opacity: 0.8; }
	50% { transform: translate(-10px, 25px) scale(0.8); opacity: 0.3; }
	75% { transform: translate(20px, 10px) scale(1.2); opacity: 0.6; }
}

@keyframes particle-float-2 {
	0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
	33% { transform: translate(-18px, -15px) scale(1.4); opacity: 0.7; }
	66% { transform: translate(12px, 22px) scale(0.7); opacity: 0.4; }
}

section.pains-section .container {
	position: relative;
	z-index: 1;
}

/* ==============================
   Section Header
   ============================== */

.pains-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 48px;
	gap: 24px;
}

.pains-title-group {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Decorative marker — same as logo-marker */
.pains-marker {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pains-marker-line {
	width: 32px;
	height: 2px;
	background: var(--color-primary);
	opacity: 0.6;
	border-radius: 1px;
}

.pains-marker-dot {
	display: block;
	width: 6px;
	height: 6px;
	background: var(--color-primary);
	border-radius: 1px;
	transform: rotate(45deg);
	box-shadow: 0 0 8px rgba(255, 94, 20, 0.3);
}

.pains-title {
	font-family: var(--font-heading);
	font-size: 38px;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
	letter-spacing: -0.02em;
	margin: 0;
}

.pains-title-accent {
	color: var(--color-primary);
}

/* Counter badge — "04 / проблемы" */
.pains-counter {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	padding-bottom: 4px;
}

.pains-counter-number {
	font-family: var(--font-heading);
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	color: var(--color-primary);
	letter-spacing: -0.03em;
}

.pains-counter-label {
	font-size: 11px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.3);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* ==============================
   Accordion — Glass Cards
   ============================== */

.pains-accordion {
	max-width: 820px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
	z-index: 1;
}

.accordion-item {
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: rgba(255, 255, 255, 0.03);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: all 0.35s ease;
	position: relative;
}

/* Active state — left glow line */
.accordion-item.active {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 94, 20, 0.25);
	border-left: 3px solid var(--color-primary);
	padding-left: 0; /* border takes no extra space */
}

.accordion-item:hover:not(.active) {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.1);
}

/* ==============================
   Accordion Trigger
   ============================== */

.accordion-trigger {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	padding: 18px 22px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 500;
	text-align: left;
	color: rgba(255, 255, 255, 0.9);
	transition: color 0.3s ease, padding 0.35s ease;
	position: relative;
}

.accordion-item.active .accordion-trigger {
	color: #ffffff;
}

/* Icon in a glowing circle */
.accordion-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba(255, 94, 20, 0.1);
	border-radius: 50%;
	position: relative;
	transition: background 0.3s ease;
}

.accordion-icon::before {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 94, 20, 0.15) 0%, transparent 70%);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.accordion-item.active .accordion-icon::before {
	opacity: 1;
}

.accordion-icon svg {
	position: relative;
	z-index: 1;
}

.accordion-title {
	flex: 1;
	font-size: 16px;
	line-height: 1.4;
}

.accordion-arrow {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: rgba(255, 255, 255, 0.3);
	transition: transform 0.4s ease, color 0.3s ease;
}

.accordion-item.active .accordion-arrow {
	transform: rotate(180deg);
	color: var(--color-primary);
}

/* ==============================
   Accordion Content / Body
   ============================== */

.accordion-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.45s ease;
}

.accordion-item.active .accordion-content {
	max-height: 300px;
}

.accordion-body {
	padding: 0 24px 22px 82px;
	font-size: 15px;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.6);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding-top: 16px;
	margin-top: 0;
}

.accordion-body p {
	margin: 0;
}
