/**
 * Superintech Accordion — front-end styles.
 * Smooth height via CSS grid (0fr → 1fr); no JS height measuring.
 */
.superintech-acc {
	--superintech-acc-dur: 400ms;
	--superintech-acc-accent: #e6447d;
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
}
.superintech-acc *, .superintech-acc *::before, .superintech-acc *::after { box-sizing: border-box; }

.superintech-acc__item {
	background: #fff;
	border: 1px solid #ece7ee;
	border-radius: 10px;
	overflow: hidden;
}
.superintech-acc__header { margin: 0; padding: 0; font-size: inherit; }

.superintech-acc__trigger {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 18px 20px;
	font: inherit;
	text-align: left;
	color: inherit;
	background: transparent;
	border: 0;
	cursor: pointer;
	transition: background var(--superintech-acc-dur) ease;
}
.superintech-acc__trigger:focus-visible {
	outline: 3px solid var(--superintech-acc-accent);
	outline-offset: -3px;
}
.superintech-acc__titles { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.superintech-acc__title { font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: #2b2a6b; }
.superintech-acc__subtitle { font-size: 0.85rem; color: #8a8a9a; }

.superintech-acc__lead { display: inline-flex; font-size: 20px; color: var(--superintech-acc-accent); }
.superintech-acc__lead svg { width: 1em; height: 1em; fill: currentColor; }
.superintech-acc__thumb { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 8px; overflow: hidden; }
.superintech-acc__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Marker */
.superintech-acc__marker {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: var(--superintech-acc-accent);
	transition: transform var(--superintech-acc-dur) ease;
}
.superintech-acc-marker-left .superintech-acc__marker { order: -1; }
.superintech-acc__item.is-open .superintech-acc__marker:not(.superintech-acc__marker--plus) { transform: rotate(180deg); }
.superintech-acc__bar-v { transition: transform var(--superintech-acc-dur) ease; transform-origin: center; transform-box: fill-box; }
.superintech-acc__item.is-open .superintech-acc__bar-v { transform: scaleY(0); }

/* Panel — animated height */
.superintech-acc__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows var(--superintech-acc-dur) ease;
}
.superintech-acc__item.is-open .superintech-acc__panel { grid-template-rows: 1fr; }
.superintech-acc__panel-inner { overflow: hidden; min-height: 0; }
.superintech-acc__body { padding: 4px 20px 20px; color: #4a4a5a; line-height: 1.65; }
.superintech-acc__body > :first-child { margin-top: 0; }
.superintech-acc__body > :last-child { margin-bottom: 0; }
.superintech-acc__content-img { max-width: 100%; height: auto; border-radius: 8px; margin-bottom: 12px; }
.superintech-acc__btn {
	display: inline-block;
	margin-top: 14px;
	padding: 10px 22px;
	border-radius: 30px;
	background: #2b2a6b;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.25s ease;
}
.superintech-acc__btn:hover { background: var(--superintech-acc-accent); }

/* ---- Style: Classic (flat, divider look) ---- */
.superintech-acc-style-classic .superintech-acc__item { border-radius: 0; border-width: 0 0 1px; background: transparent; }

/* ---- Style: Card ---- */
.superintech-acc-style-card .superintech-acc__item { box-shadow: 0 8px 22px rgba(43,42,107,0.08); border-color: transparent; }

/* ---- Style: Process (numbered) ---- */
.superintech-acc-style-process .superintech-acc { counter-reset: superintech-step; }
.superintech-acc-style-process .superintech-acc__trigger::before {
	counter-increment: superintech-step;
	content: counter(superintech-step, decimal-leading-zero);
	flex: 0 0 auto;
	font-weight: 800;
	font-size: 1.05rem;
	color: var(--superintech-acc-accent);
	min-width: 34px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.superintech-acc__panel, .superintech-acc__marker, .superintech-acc__bar-v, .superintech-acc__trigger { transition: none !important; }
}
