/* STREFA ZASILANIA — karta wyszukiwarki dopasowania. Tokeny wg handoffu ENERON. */
.szf {
	--ink: #0B0E12;
	--accent: #1668FF;
	--accent-dark: #0B4FD1;
	--accent-bg: #EEF3FA;
	--accent-bg2: #F3F8FF;
	--surface: #fff;
	--field: #F1F4F7;
	--line: #E3E8ED;
	--line2: #DDE3E9;
	--muted: #6B7787;
	--muted2: #7A8794;
	--muted3: #8B97A4;
	--ok: #1E9E68;
	--ok-dark: #14603F;
	--ok-bg: #F1FAF5;
	--ok-line: #BFE3CF;

	box-sizing: border-box;
	position: relative;
	background: var(--surface);
	border-radius: 22px;
	padding: 28px clamp(20px, 3vw, 36px) 26px;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75);
	color: var(--ink);
	font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

.szf *, .szf *::before, .szf *::after { box-sizing: inherit; }
.szf button { font-family: inherit; }

/* ---------------------------------------------------------------- nagłówek */
.szf__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}

.szf__title {
	margin: 0;
	font-family: 'Archivo', system-ui, sans-serif;
	font-weight: 700;
	font-size: 21px;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--ink);
}

.szf__help-open {
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--accent);
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: none;
}

.szf__help-open:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- zakładki */
.szf__tabs {
	display: flex;
	gap: 4px;
	padding: 5px;
	background: var(--field);
	border-radius: 12px;
	margin-bottom: 18px;
}

.szf__tab {
	flex: 1 1 120px;
	padding: 11px 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	background: transparent;
	border: 0;
	border-radius: 9px;
	cursor: pointer;
	line-height: 1.25;
}

.szf__tab.is-active {
	background: #fff;
	color: var(--ink);
	box-shadow: 0 1px 3px rgba(11, 14, 18, .16);
}

.szf__panel { display: none; }
.szf__panel.is-active { display: block; }

.szf__lead { margin: 0 0 14px; font-size: 14.5px; color: var(--muted); }

.szf__label {
	display: block;
	margin-bottom: 8px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted2);
}

/* ------------------------------------------------------- 1. model laptopa */
.szf__form {
	display: grid;
	grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(240px, 1.8fr) auto;
	gap: 12px;
	align-items: end;
}

@media (max-width: 1000px) {
	.szf__form { grid-template-columns: 1fr 1fr; }
	.szf__field--model { grid-column: 1 / -1; }
	.szf__form .szf__go { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
	.szf__form { grid-template-columns: 1fr; }
	.szf__field--model { grid-column: auto; }
	.szf__form .szf__go { grid-column: auto; }
}

.szf__field { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.szf__field > label {
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted2);
}

.szf__opt { font-weight: 400; text-transform: none; letter-spacing: 0; }

.szf select,
.szf input[type="text"] {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	color: var(--ink);
	background: #fff;
	border: 2px solid var(--line2);
	border-radius: 13px;
	appearance: auto;
}

.szf input[type="text"] { border-color: var(--ink); }

.szf select:focus,
.szf input[type="text"]:focus {
	outline: 3px solid rgba(22, 104, 255, .25);
	outline-offset: 0;
	border-color: var(--accent);
}

.szf select:disabled,
.szf input:disabled { background: var(--field); color: #9AA7B4; border-color: var(--line2); cursor: not-allowed; }

.szf__go {
	min-height: 50px;
	padding: 0 24px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: var(--ink);
	border: 0;
	border-radius: 13px;
	cursor: pointer;
}

.szf__go:hover:not(:disabled) { background: #000; }
.szf__go:disabled { background: #C6CCD4; cursor: not-allowed; }

.szf__hint { margin: 12px 0 0; font-size: 13.5px; color: var(--muted2); }

/* -------------------------------------------------- lista podpowiedzi */
.szf__list {
	position: absolute;
	z-index: 40;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 300px;
	margin: 0;
	padding: 5px;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 13px;
	box-shadow: 0 18px 40px -16px rgba(11, 14, 18, .3);
}

.szf__opt-item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	min-height: 44px;
	padding: 9px 11px;
	border-radius: 9px;
	cursor: pointer;
	font-size: 15.5px;
	font-weight: 600;
}

.szf__opt-item:hover,
.szf__opt-item.is-active { background: #F6F9FC; }

.szf__opt-name { flex: 1 1 auto; min-width: 0; }

.szf__opt-sub {
	flex: 1 1 100%;
	order: 3;
	font-size: 13.5px;
	font-weight: 400;
	color: var(--muted2);
}

.szf__opt-go { font-size: 13.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }

.szf__pn-code {
	font-family: 'Archivo', system-ui, sans-serif;
	font-weight: 700;
	letter-spacing: .04em;
}

.szf__empty { padding: 12px; font-size: 14px; color: var(--muted); }
.szf__empty a { color: var(--accent); }

/* ----------------------------------------------------------------- 2. P/N */
.szf__pn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.szf__pn-wrap { position: relative; flex: 1 1 260px; display: flex; align-items: stretch; }

.szf__pn-prefix {
	display: flex;
	align-items: center;
	padding: 0 12px;
	font-family: 'Archivo', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	color: var(--muted2);
	background: var(--field);
	border: 2px solid var(--ink);
	border-right: 0;
	border-radius: 13px 0 0 13px;
}

.szf__pn-wrap .szf__pn {
	border-radius: 0 13px 13px 0;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.szf__go--pn { flex: 0 0 auto; }

.szf__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	min-height: 20px;
}

.szf__chips-label { font-size: 13px; color: var(--muted2); }

.szf__chip {
	padding: 7px 12px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line2);
	border-radius: 999px;
	cursor: pointer;
}

.szf__chip:hover { border-color: var(--ink); }

/* ---------------------------------------------------- 3. parametry i wtyk */
.szf__spec-cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.szf__pills { display: flex; flex-wrap: wrap; gap: 8px; }

.szf__pill {
	min-height: 40px;
	padding: 8px 15px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ink);
	background: #fff;
	border: 1px solid var(--line2);
	border-radius: 9px;
	cursor: pointer;
}

.szf__pill:hover { border-color: var(--ink); }
.szf__pill.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.szf__pills .szf__pill.is-extra { display: none; }
.szf__pills.show-extra .szf__pill.is-extra { display: inline-block; }

.szf__more {
	min-height: 40px;
	padding: 8px 12px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--accent);
	background: none;
	border: 0;
	cursor: pointer;
}

.szf__more:hover { text-decoration: underline; }

.szf__plug-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.szf__plug-head .szf__label { margin-bottom: 0; }
.szf__scale { font-size: 12px; color: var(--muted3); }

.szf__plugs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 10px;
	margin: 10px 0 20px;
}

.szf__plug {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 14px 10px;
	background: #fff;
	border: 1px solid var(--line2);
	border-radius: 12px;
	cursor: pointer;
	text-align: center;
}

.szf__plug:hover { border-color: var(--ink); }
.szf__plug.is-on { border-color: var(--accent); background: var(--accent-bg2); }
.szf__plug svg { display: block; }

.szf__plug-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.szf__plug-note { font-size: 12.5px; color: var(--muted2); }

.szf__go--spec { width: 100%; max-width: 420px; }

/* ------------------------------------------------------------------ wyniki */
.szf__results { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }

.szf__loading, .szf__error { margin: 0; color: var(--muted); }
.szf__error a { color: var(--accent); }

.szf__nohit {
	padding: 16px 18px;
	font-size: 14.5px;
	color: var(--muted);
	border: 1px dashed #CBD3DB;
	border-radius: 14px;
}

.szf__nohit a, .szf__nohit strong { color: var(--ink); }
.szf__nohit a { color: var(--accent); }

.szf__found { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }

.szf__found-pill {
	padding: 5px 11px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--ok-dark);
	background: var(--ok-bg);
	border: 1px solid var(--ok-line);
	border-radius: 999px;
	white-space: nowrap;
}

.szf__groups { display: grid; grid-template-columns: 1fr; gap: 22px; }

.szf__group-title {
	margin: 0 0 12px;
	font-family: 'Archivo', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted2);
}

.szf__none { margin: 0; font-size: 14px; color: var(--muted2); }

.szf__cards { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

/* duża karta wyniku — jedna pod drugą */
.szf__card {
	display: grid;
	grid-template-columns: clamp(120px, 14%, 180px) minmax(240px, 1fr) minmax(190px, 230px);
	gap: 22px;
	align-items: center;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
}

@media (max-width: 820px) {
	.szf__card { grid-template-columns: 96px minmax(0, 1fr); }
	.szf__card-buy { grid-column: 1 / -1; }
}

.szf__card-img { display: block; }

.szf__card-img img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: #F4F6F8;
	border-radius: 12px;
	padding: 8px;
}

.szf__card-main { min-width: 0; }

.szf__card-name {
	display: block;
	font-family: 'Archivo', system-ui, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.01em;
	color: var(--ink);
	text-decoration: none;
}

.szf__card-name:hover { color: var(--accent); }
.szf__card-spec { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
.szf__card-sku { margin: 4px 0 0; font-size: 13px; color: var(--muted3); }

.szf__card-avail { margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: #2E7D5B; }
.szf__card-avail.is-out { color: #A33; }
.szf__card-avail span { font-weight: 400; color: var(--muted); }

.szf__card-buy { display: flex; flex-direction: column; gap: 6px; }

.szf__card-price {
	font-family: 'Archivo', system-ui, sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	white-space: nowrap;
}

.szf__card-price del { font-size: 18px; font-weight: 400; color: var(--muted3); }
.szf__card-price ins { text-decoration: none; }
.szf__card-ship { font-size: 12.5px; color: var(--muted2); margin-bottom: 6px; }

.szf__card-btn,
.szf__card-btn2 {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 18px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 11px;
	text-decoration: none;
	text-align: center;
}

.szf__card-btn { color: #fff; background: var(--ink); border: 1px solid var(--ink); }
.szf__card-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.szf__card-btn2 { color: var(--ink); background: #fff; border: 1px solid var(--line2); }
.szf__card-btn2:hover { border-color: var(--ink); color: var(--ink); }

/* zestaw zasilacz + bateria */
.szf__bundle {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) minmax(210px, 260px);
	gap: 22px;
	align-items: center;
	padding: 20px 22px;
	background: linear-gradient(120deg, #0B0E12 0%, #142238 100%);
	border-radius: 16px;
	color: #fff;
}

@media (max-width: 820px) {
	.szf__bundle { grid-template-columns: 1fr; }
}

.szf__bundle-tag {
	display: inline-block;
	padding: 5px 11px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #9FD0FF;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
}

.szf__bundle-what { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: #C3CCD6; }

.szf__bundle-buy { display: flex; flex-direction: column; gap: 4px; }

.szf__bundle-price {
	font-family: 'Archivo', system-ui, sans-serif;
	font-size: 26px;
	font-weight: 700;
	white-space: nowrap;
}

.szf__bundle-price del { font-size: 17px; font-weight: 400; color: #8F9CAA; }
.szf__bundle-save { font-size: 12.5px; color: #63E0A8; margin-bottom: 8px; }

.szf__bundle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 13px 18px;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	background: var(--accent);
	border-radius: 11px;
	text-decoration: none;
	text-align: center;
}

.szf__bundle-btn:hover { background: var(--accent-dark); color: #fff; }

/* --------------------------------------------------------------- gwarancja */
.szf__guarantee {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.szf__check {
	flex: 0 0 26px;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	font-size: 14px;
	color: #fff;
	background: var(--ink);
	border-radius: 999px;
}

.szf__guarantee p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.szf__guarantee strong { color: var(--ink); }

/* ------------------------------------------------------------------ modal */
.szf-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(6, 9, 13, .7);
}

.szf-modal[hidden] { display: none !important; }

.szf-modal__card {
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px;
	background: #fff;
	border-radius: 20px;
	font-family: 'Barlow', system-ui, sans-serif;
	color: #0B0E12;
}

.szf-modal__card h3 {
	margin: 0 0 18px;
	font-family: 'Archivo', system-ui, sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.szf-modal__steps { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 16px; }
.szf-modal__steps li { display: flex; gap: 12px; }

.szf-modal__steps li > span {
	flex: 0 0 26px;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	font-size: 13px;
	font-weight: 700;
	color: #1668FF;
	background: #EEF3FA;
	border-radius: 999px;
}

.szf-modal__steps strong { font-size: 15px; }
.szf-modal__steps p { margin: 3px 0 0; font-size: 14px; color: #6B7787; }
.szf-modal__steps code { padding: 1px 5px; font-size: 13px; background: #F1F4F7; border-radius: 5px; }
.szf-modal__phone { margin: 0 0 18px; font-size: 14px; color: #6B7787; }
.szf-modal__phone a { color: #1668FF; }

.szf-modal__close {
	width: 100%;
	min-height: 48px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: #0B0E12;
	border: 0;
	border-radius: 13px;
	cursor: pointer;
}

/* ------------------------------------------------------- wariant kompaktowy */
.szf--kompakt { padding: 20px; border-radius: 18px; box-shadow: 0 20px 50px -28px rgba(0, 0, 0, .5); }
.szf--kompakt .szf__title { font-size: 18px; }
.szf--kompakt .szf__guarantee { display: none; }
