/* ILStartupMap – strona główna */
.ism-home section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.ism-home .container > * { min-width: 0; }
.ism-sec-head { max-width: 760px; margin-bottom: 1.6rem; }
.ism-sec-head h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 0 0 .5rem; }
.ism-sec-head h2::after { content: ""; display: block; width: 56px; height: 4px; margin-top: .55rem; background: linear-gradient(90deg, var(--ism-red) 0 60%, var(--ism-amber) 60% 100%); }
.ism-sec-head p { color: var(--ism-muted); margin: 0; }
.ism-sec-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.ism-sec-head--light h2, .ism-sec-head--light p { color: #fff; }
.ism-sec-head--light p { color: #C9D1D9; }
.ism-more { font-family: var(--font-serif); font-weight: 700; color: var(--ism-red); text-decoration: none; }
.ism-btn { display: inline-block; font-family: var(--font-serif); font-weight: 700; font-size: .92rem; padding: .78rem 1.25rem; border-radius: 4px; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s; }
.ism-btn--red { background: var(--ism-red); color: #fff; }
.ism-btn--red:hover { background: var(--ism-red-2); color: #fff; }
.ism-btn--line { border-color: var(--ism-ink); color: var(--ism-ink); }
.ism-btn--line:hover { background: var(--ism-ink); color: #fff; }
.ism-btn--line-light { border-color: #fff; color: #fff; }
.ism-btn--line-light:hover { background: #fff; color: var(--ism-ink); }

/* H5: nagłówek typograficzny + mapa działów */
.ism-head { background: linear-gradient(180deg, var(--ism-alu) 0, #fff 100%); padding-top: clamp(2.5rem, 6vw, 4rem) !important; }
.ism-head__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.ism-head__kicker { font-family: var(--font-serif); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ism-red); margin: 0 0 .8rem; display: flex; align-items: center; gap: .6rem; }
.ism-head__kicker::before { content: ""; width: 28px; height: 3px; background: var(--ism-red); }
.ism-head h1 { font-size: clamp(1.8rem, 4.2vw, 3rem); line-height: 1.12; margin: 0 0 1rem; color: var(--ism-ink); font-weight: 800; }
.ism-head__lead { font-size: 1.08rem; color: var(--ism-muted); max-width: 600px; }
.ism-head__search { display: flex; max-width: 540px; margin: 1.4rem 0 1rem; border: 2px solid var(--ism-ink); border-radius: 4px; background: #fff; }
.ism-head__search input { flex: 1; min-width: 0; border: 0; padding: .8rem 1rem; font: inherit; background: transparent; }
.ism-head__search input:focus { outline: none; }
.ism-head__search button { border: 0; background: var(--ism-ink); color: #fff; font-family: var(--font-serif); font-weight: 700; padding: 0 1.3rem; cursor: pointer; }
.ism-head__search:focus-within { border-color: var(--ism-red); }
.ism-head__actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.ism-head__map { background: var(--ism-ink); color: #fff; border-radius: 8px; padding: 1.3rem 1.4rem 1rem; position: relative; overflow: hidden; }
.ism-head__map::after { content: ""; position: absolute; top: 0; bottom: 0; right: 18px; width: 3px; background: repeating-linear-gradient(180deg, var(--ism-amber) 0 14px, transparent 14px 28px); opacity: .7; }
.ism-head__maptitle { font-family: var(--font-serif); font-weight: 700; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #AEB8C2; margin: 0 0 .5rem; }
.ism-head__map ol { list-style: none; margin: 0; padding: 0 1.6rem 0 0; counter-reset: ism; }
.ism-head__map li { counter-increment: ism; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ism-head__map li:last-child { border-bottom: 0; }
.ism-head__map a { display: flex; align-items: center; gap: .75rem; padding: .48rem 0; color: #fff; text-decoration: none; font-family: var(--font-serif); font-weight: 600; font-size: .92rem; }
.ism-head__map a::before { content: counter(ism, decimal-leading-zero); font-size: .72rem; color: var(--ism-amber); font-weight: 700; width: 1.4rem; }
.ism-head__name { flex: 1; }
.ism-head__count { font-size: .72rem; color: #AEB8C2; background: rgba(255, 255, 255, .08); padding: .1rem .45rem; border-radius: 3px; }
.ism-head__map a:hover .ism-head__name { color: #F2B6AE; }

/* Deska rozdzielcza */
.ism-dash { background: radial-gradient(ellipse at 50% 0, #2C3540 0, var(--ism-ink) 70%); color: #fff; }
.ism-dash .is-red { color: #FF6B5B; } .ism-dash .is-amber { color: #F5C14B; } .ism-dash .is-blue { color: #6FB4FF; }
.ism-dash__panel { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: stretch; }
.ism-dash__lights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.ism-light { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .9rem .4rem .75rem; background: #12161A; border: 1px solid #2E363F; border-radius: 10px; color: #6B7682; cursor: pointer; font: inherit; font-size: .76rem; line-height: 1.25; text-align: center; transition: border-color .15s, background .15s; }
.ism-light svg { width: 38px; height: 38px; }
.ism-light--red svg { color: #FF5A47; } .ism-light--amber svg { color: #F5B82E; } .ism-light--blue svg { color: #4DA3FF; }
.ism-light span { color: #C9D1D9; }
.ism-light:hover { border-color: #56616D; }
.ism-light.is-active { background: #1E252C; border-color: currentColor; }
.ism-light--red.is-active { color: #FF5A47; box-shadow: 0 0 0 1px #FF5A47, 0 0 18px rgba(255, 90, 71, .25); }
.ism-light--amber.is-active { color: #F5B82E; box-shadow: 0 0 0 1px #F5B82E, 0 0 18px rgba(245, 184, 46, .22); }
.ism-light--blue.is-active { color: #4DA3FF; box-shadow: 0 0 0 1px #4DA3FF, 0 0 18px rgba(77, 163, 255, .22); }
.ism-dash__info { background: #F3F5F7; color: var(--ism-ink); border-radius: 10px; padding: 1.5rem; border-top: 5px solid var(--ism-red); }
.ism-dash__info h3 { margin: 0 0 .6rem; font-size: 1.25rem; }
.ism-dash__info a { font-family: var(--font-serif); font-weight: 700; color: var(--ism-red); }
.ism-dash__note { font-size: .8rem; color: #AEB8C2; margin: 1rem 0 0; }

/* Koszt trasy */
.ism-trip__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.ism-trip__formula { font-family: ui-monospace, Consolas, monospace; font-size: .86rem; background: var(--ism-alu); border-left: 4px solid var(--ism-steel); padding: .8rem 1rem; }
.ism-trip__calc { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; border: 2px solid var(--ism-ink); border-radius: 8px; padding: 1.4rem; background: #fff; box-shadow: 8px 8px 0 var(--ism-alu); }
.ism-trip__calc label { display: flex; flex-direction: column; gap: .3rem; font-size: .82rem; font-weight: 700; color: var(--ism-steel); min-width: 0; }
.ism-trip__calc input, .ism-trip__calc select { width: 100%; border: 1px solid var(--ism-line); border-radius: 4px; padding: .6rem .7rem; font: inherit; font-weight: 400; color: var(--ism-ink); background: #fff; }
.ism-trip__calc input:focus, .ism-trip__calc select:focus { outline: 2px solid var(--ism-red); outline-offset: 0; }
.ism-trip__out { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: .4rem 0 0; }
.ism-trip__out div { background: var(--ism-ink); color: #fff; border-radius: 6px; padding: .7rem .8rem; }
.ism-trip__out div:nth-child(2) { background: var(--ism-red); }
.ism-trip__out dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #C9D1D9; }
.ism-trip__out div:nth-child(2) dt { color: #FBE1DD; }
.ism-trip__out dd { margin: .2rem 0 0; font-family: var(--font-serif); font-weight: 800; font-size: 1.1rem; }

/* Najnowsze */
.ism-latest { background: var(--ism-alu); }

/* Oś przepisów */
.ism-law__line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 1.4rem; position: relative; }
.ism-law__line li { position: relative; padding-top: 1.6rem; border-top: 3px solid var(--ism-ink); }
.ism-law__line li::before { content: ""; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; background: #fff; border: 3px solid var(--ism-red); border-radius: 50%; }
.ism-law__line time { position: absolute; top: -.75rem; left: 1.6rem; background: #fff; padding: 0 .4rem; font-family: var(--font-serif); font-weight: 800; font-size: .82rem; color: var(--ism-red); }
.ism-law__line h3 { font-size: 1.02rem; margin: 0 0 .35rem; }
.ism-law__line p { font-size: .9rem; color: var(--ism-muted); margin: 0; }
.ism-law__src { font-size: .82rem; color: var(--ism-muted); margin-top: 1.8rem; }

/* Masz problem? */
.ism-help { padding-top: 0 !important; }
.ism-help__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.ism-help__card { border: 2px solid var(--ism-ink); border-radius: 6px; padding: 1.3rem; background: #fff; position: relative; }
.ism-help__card::before { content: "?"; position: absolute; top: -14px; right: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--ism-amber); color: var(--ism-ink); font-family: var(--font-serif); font-weight: 800; display: grid; place-items: center; }
.ism-help__card h3 { margin: 0 0 .45rem; font-size: 1.1rem; }
.ism-help__card p { font-size: .92rem; color: var(--ism-muted); }
.ism-help__card a { font-family: var(--font-serif); font-weight: 700; color: var(--ism-red); }

/* Słowniczek */
.ism-terms { background: var(--ism-alu); }
.ism-terms__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.3rem; }
.ism-terms__chips button { border: 1px solid var(--ism-steel); background: #fff; color: var(--ism-steel); border-radius: 3px; padding: .45rem .85rem; font-family: var(--font-serif); font-weight: 600; font-size: .82rem; cursor: pointer; }
.ism-terms__chips button.is-active { background: var(--ism-steel); color: #fff; }
.ism-terms__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 0; }
.ism-term { background: #fff; border-radius: 6px; padding: 1rem; border-bottom: 3px solid var(--ism-line); }
.ism-term[data-ism-g="naped"] { border-bottom-color: var(--ism-red); }
.ism-term[data-ism-g="podwozie"] { border-bottom-color: var(--ism-steel); }
.ism-term[data-ism-g="elektronika"] { border-bottom-color: var(--ism-amber); }
.ism-term[data-ism-g="bezpieczenstwo"] { border-bottom-color: #3E8E5E; }
.ism-term dt { font-family: var(--font-serif); font-weight: 800; margin-bottom: .3rem; }
.ism-term dd { margin: 0; font-size: .88rem; color: var(--ism-muted); }

/* Lista przed trasą */
.ism-check__count { margin: 0; font-family: var(--font-serif); font-weight: 700; }
.ism-check__count b { color: var(--ism-red); }
.ism-check__count button { margin-left: .5rem; border: 0; background: none; color: var(--ism-muted); text-decoration: underline; cursor: pointer; font: inherit; font-weight: 400; font-size: .85rem; }
.ism-check__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ism-check fieldset { border: 1px solid var(--ism-line); border-radius: 6px; padding: 1rem 1.2rem; margin: 0; min-width: 0; }
.ism-check legend { font-family: var(--font-serif); font-weight: 800; padding: 0 .4rem; }
.ism-check label { display: flex; gap: .65rem; align-items: flex-start; padding: .5rem 0; border-bottom: 1px dashed var(--ism-line); cursor: pointer; }
.ism-check label:last-child { border-bottom: 0; }
.ism-check input { accent-color: var(--ism-red); width: 18px; height: 18px; margin-top: .15rem; flex: 0 0 auto; }
.ism-check input:checked + span { color: var(--ism-muted); text-decoration: line-through; }
.ism-check__more { font-size: .85rem; color: var(--ism-muted); margin-top: 1rem; }

/* FAQ */
.ism-faq { background: #fff; border-top: 1px solid var(--ism-line); }
.ism-faq__grid { display: grid; grid-template-columns: .8fr 1.6fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.ism-faq__list details { border-bottom: 1px solid var(--ism-line); }
.ism-faq__list summary { cursor: pointer; list-style: none; padding: 1rem 0; font-family: var(--font-serif); font-weight: 700; display: flex; gap: .9rem; align-items: baseline; }
.ism-faq__list summary::-webkit-details-marker { display: none; }
.ism-faq__list summary span { color: var(--ism-red); font-size: .85rem; }
.ism-faq__list details[open] summary { color: var(--ism-red); }
.ism-faq__list details p { margin: 0 0 1rem 2.2rem; color: var(--ism-muted); }

/* O redakcji */
.ism-about { background: var(--ism-steel); color: #fff; position: relative; }
.ism-about::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 40px, transparent 40px 80px); }
.ism-about__inner { position: relative; max-width: 780px; text-align: center; background: var(--ism-steel); }
.ism-about h2 { color: #fff; margin-top: 0; }
.ism-about p { color: #DDE3E8; }

@media (max-width: 1024px) {
	.ism-dash__lights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ism-terms__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ism-law__line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.ism-head__grid, .ism-dash__panel, .ism-trip__grid, .ism-faq__grid { grid-template-columns: 1fr; }
	.ism-help__grid { grid-template-columns: 1fr; gap: 1.4rem; }
	.ism-trip__out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.ism-dash__lights { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
	.ism-light { font-size: .7rem; padding: .7rem .25rem .6rem; }
	.ism-light svg { width: 30px; height: 30px; }
	.ism-head h1 { font-size: 1.65rem; }
	.ism-terms__grid, .ism-law__line, .ism-check__cols, .ism-trip__calc { grid-template-columns: 1fr; }
	.ism-head__search button { padding: 0 .9rem; }
}
