/* Strona glowna */
.ebmt-hero { position: relative; min-height: 640px; height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; overflow: hidden; } /* tresc wysrodkowana w pionie (na duzych ekranach bez pustki nad naglowkiem) */
.ebmt-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.7); }
.ebmt-hero__grid { position: absolute; inset: 0; background-image: var(--grid-48); background-size: 96px 96px; background-position: center top; pointer-events: none; }
.ebmt-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,41,51,.35) 0%, rgba(30,41,51,.9) 100%); pointer-events: none; }
.ebmt-hero__inner { position: relative; width: 100%; padding-top: clamp(48px, 7.3vw, 96px); padding-bottom: clamp(40px, 6.1vw, 80px); display: grid; grid-template-columns: 8fr 4fr; gap: 64px; align-items: end; }
.ebmt-hero__kicker { font-size: 14px; margin-bottom: 32px; }
.ebmt-hero .ebmt-h1 { margin-bottom: 36px; }
.ebmt-hero__lead { color: rgba(247,247,245,.82); }
.ebmt-hero__col { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 520px; width: 100%; }
.ebmt-hero__foot { margin-top: 20px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--c-on-dark-50); display: flex; justify-content: space-between; }

.ebmt-proof { background: var(--c-paper); border-bottom: 1px solid var(--c-rule); }
.ebmt-proof__inner { display: flex; align-items: stretch; }
.ebmt-proof__label { flex: 0 0 auto; display: flex; align-items: center; padding: 24px 24px 24px 0; border-right: 1px solid var(--c-rule); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); line-height: 1.5; margin-top: 8px; }
.ebmt-proof__cells { flex: 1 1 0; min-width: 0; display: flex; align-items: stretch; }
.ebmt-proof__cells > div { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 24px 16px 24px 24px; border-left: 1px solid var(--c-rule); }
.ebmt-proof__cells > div:first-child { border-left: 0; }
.ebmt-proof__cells > div:last-child { padding-right: 0; }
.ebmt-proof__cells > .ebmt-proof__cell--wide { flex: 2 1 0; } /* komorka z dlugim podpisem (> 60 znakow) dostaje dwie szerokosci */
.ebmt-proof__value { font-size: 20px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em; color: var(--c-graphite-deep); }
.ebmt-proof__text { font-size: 13px; line-height: 1.4; color: var(--c-muted); }

.ebmt-about { padding-top: var(--sec-bottom); padding-bottom: var(--sec-top); }
.ebmt-about__kicker { margin-bottom: 28px; }
.ebmt-about__title { margin-bottom: 32px; }
.ebmt-about__diagram { padding-top: 8px; }
.ebmt-about__diagram svg { overflow: visible; }
/* Os procesu: ciagla linia z wezlami, stale wiersze 12/72/34px (naglowki i opisy na jednej wysokosci) */
.ebmt-rail { margin: 96px -32px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.ebmt-rail__item { display: grid; grid-template-rows: 12px 72px 34px auto; padding: 0 32px 36px; border-right: 1px solid var(--c-rule); transition: background .2s ease; }
.ebmt-rail__item:last-child { border-right: 0; }
.ebmt-rail__item:hover { background: var(--c-white); }
.ebmt-rail__line { display: flex; align-items: center; height: 12px; margin: 0 -32px; } /* linia biegnie przez padding, wezel siedzi na separatorze */
.ebmt-rail__item:first-child .ebmt-rail__line { margin-left: 0; }
.ebmt-rail__item:last-child .ebmt-rail__line { margin-right: 0; }
.ebmt-rail__dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--c-graphite); background: var(--c-paper); flex: none; margin-left: -6px; }
.ebmt-rail__dot--start { background: var(--c-graphite); margin-left: 0; }
.ebmt-rail__dot--end { background: var(--c-blue); border-color: var(--c-blue); margin-left: 0; }
.ebmt-rail__bar { flex: 1; height: 1px; background: var(--c-graphite); }
.ebmt-rail__label { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; color: var(--c-muted); align-self: end; padding-bottom: 14px; }
.ebmt-rail__label--accent { color: var(--c-blue); }
.ebmt-rail__title { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.ebmt-rail__text { margin: 20px 0 0; font-size: 16px; line-height: 1.55; color: var(--c-graphite); text-wrap: pretty; }

.ebmt-services { grid-template-columns: repeat(3, 1fr); }
.ebmt-partners__more { margin-top: 64px; display: flex; justify-content: flex-end; }
.ebmt-head--process { margin-bottom: 80px; }
.ebmt-steps__more { margin-top: 72px; }

.ebmt-wiedza { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 32px; align-items: stretch; }
.ebmt-wiedza--c2.ebmt-wiedza--case { grid-template-columns: 7fr 5fr; } /* bez slownika */
.ebmt-wiedza--c2.ebmt-wiedza--terms { grid-template-columns: 8fr 4fr; } /* bez case study */
.ebmt-wiedza--c1 { grid-template-columns: 1fr; max-width: 880px; } /* same wpisy */
.ebmt-wiedza__posts { display: grid; grid-template-rows: auto 1fr 1fr 1fr; min-height: 0; }
.ebmt-wiedza__label { padding-bottom: 12px; border-bottom: 1px solid var(--c-graphite); }
.ebmt-card-term { display: flex; flex-direction: column; border: 1px solid var(--c-graphite); padding: 28px; color: var(--c-graphite); }
.ebmt-card-term:hover { background: var(--c-white); color: var(--c-graphite); }
.ebmt-card-term__label { padding-bottom: 12px; border-bottom: 1px solid var(--c-graphite); margin-bottom: 24px; }
.ebmt-card-term__title { font-size: 22px; line-height: 1.25; font-weight: 600; margin-bottom: 20px; }
.ebmt-card-term__chips { margin-bottom: auto; }
.ebmt-card-term .ebmt-more { margin-top: 28px; }

@media (max-width: 1100px) {
	.ebmt-proof__inner { flex-direction: column; }
	.ebmt-proof__label { border-right: 0; padding: 20px 0 0; }
	.ebmt-proof__cells { display: grid; grid-template-columns: repeat(3, 1fr); }
	.ebmt-proof__cells > .ebmt-proof__cell--wide { grid-column: span 2; }
	.ebmt-proof__cells > div { border-left: 0; border-top: 1px solid var(--c-rule); padding: 20px 24px 20px 0; }
	/* Os procesu, tablet: 2 x 2, linia osobno w kazdym rzedzie, bez pionowych separatorow */
	.ebmt-rail { margin: 64px 0 0; grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
	.ebmt-rail__item { border-right: 0; padding: 0 32px 0 0; }
	.ebmt-rail__item:nth-child(2n) { padding: 0 0 0 32px; }
	.ebmt-rail__line { margin: 0; }
	.ebmt-rail__dot { margin-left: 0; }
}
@media (max-width: 900px) {
	.ebmt-proof__cells { grid-template-columns: repeat(2, 1fr); }
	.ebmt-proof__cells > .ebmt-proof__cell--wide { grid-column: auto; }
	.ebmt-proof__cells > div:last-child { grid-column: 1 / -1; align-items: center; text-align: center; }
}
@media (max-width: 720px) {
	.ebmt-hero { height: auto; min-height: 0; }
	.ebmt-hero__inner { padding-top: 64px; }
	.ebmt-proof { padding-top: 32px; padding-bottom: 20px; }
	.ebmt-proof__label { padding: 0 0 12px; font-size: 10px; justify-content: center; text-align: center; margin-top: 0; }
	.ebmt-proof__label br { display: none; }
	.ebmt-proof__cells { grid-template-columns: repeat(2, 1fr); column-gap: 16px; row-gap: 0; }
	.ebmt-proof__cells > div { padding: 10px 0; gap: 2px; border-top: 1px solid var(--c-fill); align-items: center; text-align: center; }
	.ebmt-proof__cells > div:last-child { border-bottom: 1px solid var(--c-fill); }
	/* szeroka komorka na mobile: caly wiersz na koncu pasa, reszta 2 x 2 */
	.ebmt-proof__cells > .ebmt-proof__cell--wide { grid-column: 1 / -1; order: 1; border-bottom: 1px solid var(--c-fill); }
	.ebmt-proof__cells:has(.ebmt-proof__cell--wide) > div:last-child { grid-column: auto; border-bottom: 0; }
	.ebmt-proof__value { font-size: 15px; }
	.ebmt-proof__text { font-size: 11px; line-height: 1.3; }
	.ebmt-proof__cells > div:not(.ebmt-proof__cell--wide) .ebmt-proof__text { max-width: 26ch; text-wrap: balance; } /* podpisy lamia sie na 2 linie, komorki w rzedzie sa symetryczne */
	.ebmt-proof__cells > div { justify-content: flex-start; }
	/* Os procesu, mobile: 1 kolumna, os pionowa po lewej */
	.ebmt-rail { margin-top: 48px; grid-template-columns: 1fr; row-gap: 0; }
	.ebmt-rail__item, .ebmt-rail__item:nth-child(2n) { grid-template-columns: 12px 1fr; grid-template-rows: auto auto auto; column-gap: 20px; padding: 0 0 40px; }
	.ebmt-rail__item:hover { background: transparent; }
	.ebmt-rail__line { grid-row: 1 / 4; grid-column: 1; flex-direction: column; align-items: center; height: auto; }
	.ebmt-rail__dot { margin-left: 0; }
	.ebmt-rail__bar { width: 1px; height: auto; flex: 1; }
	.ebmt-rail__dot--end { display: none; }
	.ebmt-rail__item:last-child .ebmt-rail__bar { display: none; }
	.ebmt-rail__item:last-child .ebmt-rail__dot { background: var(--c-blue); border-color: var(--c-blue); }
	.ebmt-rail__label { grid-column: 2; padding-bottom: 10px; margin-top: -3px; }
	.ebmt-rail__title { grid-column: 2; }
	.ebmt-rail__text { grid-column: 2; margin-top: 12px; }
	.ebmt-wiedza__posts { grid-template-rows: auto; }
	.ebmt-partners__more { margin-top: 40px; }
	.ebmt-steps__more { margin-top: 48px; }
}
