/* ==========================================================================
   EBMT Consulting - system projektowy (tokeny, baza, komponenty wspolne)
   Bez zaokraglen, bez cieni. Dwa tla: papier i grafit. Blekit tylko funkcjonalnie.
   ========================================================================== */

:root {
	--c-graphite: #2F3B49;
	--c-graphite-deep: #1E2933;
	--c-paper: #F7F7F5;
	--c-blue: #1B57D6;
	--c-blue-light: #6FA0FF;
	--c-rule: #D8DBD9;
	--c-muted: #6B7580;
	--c-fill: #E3E6E4;
	--c-white: #FFFFFF;
	--c-on-dark-80: rgba(247,247,245,.8);
	--c-on-dark-75: rgba(247,247,245,.75);
	--c-on-dark-65: rgba(247,247,245,.65);
	--c-on-dark-60: rgba(247,247,245,.6);
	--c-on-dark-55: rgba(247,247,245,.55);
	--c-on-dark-50: rgba(247,247,245,.5);
	--c-on-dark-40: rgba(247,247,245,.4);
	--c-on-dark-30: rgba(247,247,245,.3);
	--c-on-dark-25: rgba(247,247,245,.25);
	--c-on-dark-15: rgba(247,247,245,.15);
	--c-on-dark-12: rgba(247,247,245,.12);
	--c-on-dark-10: rgba(247,247,245,.10);
	--c-blue-08: rgba(27,87,214,.08);
	--c-blue-05: rgba(27,87,214,.05);
	--f-sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
	--f-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
	--container: 1312px;
	--gutter: clamp(20px, 5vw, 64px);
	--nav-h: 84px;
	--nav-h-compact: 64px;
	--sec-top: clamp(56px, 8.5vw, 112px);
	--sec-bottom: clamp(64px, 9.8vw, 128px);
	--sec-top-dark: clamp(60px, 9.1vw, 120px);
	--ease: cubic-bezier(.2,.7,.2,1);
	--grid-96: linear-gradient(rgba(247,247,245,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(247,247,245,.04) 1px, transparent 1px);
	--grid-48: linear-gradient(rgba(247,247,245,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(247,247,245,.05) 1px, transparent 1px);
}

/* Baza ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--c-paper);
	color: var(--c-graphite);
	font-family: var(--f-sans);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
	min-width: 360px;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--c-blue); text-decoration: none; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
a:hover { color: var(--c-graphite); }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }
[id] { scroll-margin-top: 96px; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.ebmt-dark :focus-visible, .ebmt-nav :focus-visible, .ebmt-menu :focus-visible { outline-color: var(--c-blue-light); }
::selection { background: var(--c-blue); color: var(--c-paper); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.ebmt-skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--c-blue); color: var(--c-paper); padding: 12px 20px; font-weight: 500; }
.ebmt-skip:focus { top: 16px; color: var(--c-paper); }
.ebmt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
mark { background: rgba(27,87,214,.14); color: inherit; box-shadow: 0 1px 0 var(--c-blue); }

/* Uklad ----------------------------------------------------------------- */
.ebmt-container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.ebmt-main { display: block; }
.ebmt-main > *:first-child { margin-top: var(--nav-h); }
.ebmt-section { padding: var(--sec-top) 0 var(--sec-bottom); }
.ebmt-section--dark { padding-top: var(--sec-top-dark); }
.ebmt-section--line { border-top: 1px solid var(--c-rule); }
.ebmt-section--tight { padding-top: clamp(40px, 6vw, 80px); }
.ebmt-dark { background-color: var(--c-graphite-deep); color: var(--c-paper); background-image: var(--grid-96); background-size: 96px 96px; }
.ebmt-dark--plain { background-image: none; }
.ebmt-paper { background: var(--c-paper); color: var(--c-graphite); }
:where(.ebmt-dark) a:where(:not(.ebmt-btn):not(.ebmt-nav__cta)) { color: var(--c-paper); }
:where(.ebmt-dark) a:where(:not(.ebmt-btn):not(.ebmt-nav__cta)):hover { color: var(--c-blue-light); }

.ebmt-grid { display: grid; gap: 32px; }
.ebmt-grid-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: 96px; align-items: start; }
.ebmt-grid-5-7 { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.ebmt-grid-8-4 { display: grid; grid-template-columns: 8fr 4fr; gap: 64px; align-items: end; }
.ebmt-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.ebmt-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.ebmt-grid-lines { display: grid; gap: 1px; background: var(--c-rule); border: 1px solid var(--c-rule); }
.ebmt-grid-lines > * { background: var(--c-paper); }

/* Typografia ------------------------------------------------------------ */
.ebmt-h1 { font-size: clamp(38px, 7.2vw, 88px); line-height: .98; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; max-width: 16ch; }
.ebmt-h1--hero { font-size: clamp(44px, 7.5vw, 96px); max-width: 14ch; }
.ebmt-h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.ebmt-h2--big { font-size: clamp(44px, 6.5vw, 72px); line-height: 1; letter-spacing: -.025em; }
.ebmt-h2--doc { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; }
.ebmt-h3 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.ebmt-h3--sm { font-size: 22px; line-height: 1.25; letter-spacing: 0; }
.ebmt-lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; max-width: 600px; text-wrap: pretty; }
.ebmt-lead--hero { font-size: clamp(17px, 2vw, 22px); line-height: 1.5; }
.ebmt-quote { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.2; font-weight: 500; letter-spacing: -.015em; text-wrap: balance; }
.ebmt-quote__dim { color: var(--c-on-dark-55); }
.ebmt-body { font-size: 15px; line-height: 1.55; }
.ebmt-doc-body { font-size: 17px; line-height: 1.6; }
.ebmt-kicker { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; color: var(--c-blue); }
.ebmt-dark .ebmt-kicker { color: var(--c-blue-light); }
.ebmt-meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--c-muted); }
.ebmt-micro { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--c-muted); }
.ebmt-dark .ebmt-micro { color: var(--c-on-dark-50); }
.ebmt-mono { font-family: var(--f-mono); }
.ebmt-muted { color: var(--c-muted); }
.ebmt-num { font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; color: var(--c-blue); }
.ebmt-dark .ebmt-num { color: var(--c-blue-light); }

/* Naglowki sekcji --------------------------------------------------------- */
.ebmt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; margin-bottom: 56px; }
.ebmt-head .ebmt-kicker { margin-bottom: 24px; }
.ebmt-head__link { white-space: nowrap; }
.ebmt-head--grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; margin-bottom: 64px; }
.ebmt-head__text { max-width: 560px; justify-self: end; }
.ebmt-head__text.ebmt-quote { max-width: 620px; }

/* Przyciski i linki ------------------------------------------------------ */
.ebmt-btn {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 60px; padding: 14px 24px; border: 0;
	font-size: 17px; font-weight: 500; line-height: 1.25; text-align: left;
	background: var(--c-blue); color: var(--c-paper);
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ebmt-btn--inline { display: inline-flex; width: auto; }
.ebmt-btn__arrow { font-family: var(--f-mono); font-size: 14px; flex: 0 0 auto; }
.ebmt-btn--primary { background: var(--c-blue); color: var(--c-paper); }
.ebmt-btn--primary:hover { background: var(--c-graphite); color: var(--c-paper); }
.ebmt-dark .ebmt-btn--primary:hover, .ebmt-menu .ebmt-btn--primary:hover { background: var(--c-paper); color: var(--c-graphite-deep); }
.ebmt-btn--secondary { background: transparent; color: var(--c-graphite); border: 1px solid var(--c-graphite); }
.ebmt-btn--secondary:hover { background: var(--c-graphite); color: var(--c-paper); }
.ebmt-dark .ebmt-btn--secondary { color: var(--c-paper); border-color: var(--c-on-dark-40); }
.ebmt-dark .ebmt-btn--secondary:hover { background: rgba(247,247,245,.06); border-color: var(--c-paper); color: var(--c-paper); }
.ebmt-btn--sm { min-height: 48px; padding: 10px 20px; font-size: 15px; gap: 12px; }
.ebmt-btn--submit { height: 56px; min-height: 56px; padding: 0 22px; font-size: 16px; width: 100%; }
.ebmt-btn--submit:hover { background: var(--c-graphite); color: var(--c-paper); }
.ebmt-btn.is-loading { opacity: .7; pointer-events: none; }
.ebmt-link { font-size: 16px; font-weight: 500; color: var(--c-blue); border-bottom: 1px solid var(--c-blue); padding-bottom: 3px; }
.ebmt-link:hover { color: var(--c-graphite); border-color: var(--c-graphite); }
.ebmt-dark .ebmt-link { color: var(--c-paper); border-color: var(--c-paper); }
.ebmt-dark .ebmt-link:hover { color: var(--c-blue-light); border-color: var(--c-blue-light); }
.ebmt-more { font-size: 14px; font-weight: 500; color: var(--c-blue); }
.ebmt-more--lg { font-size: 15px; }
.ebmt-more--light { color: var(--c-blue-light); }
.ebmt-pict { display: block; width: 44px; height: 44px; color: currentColor; }

/* Nawigacja ------------------------------------------------------------- */
.ebmt-nav {
	position: fixed; top: 0; left: 0; right: 0; z-index: 50;
	height: var(--nav-h); background: rgba(30,41,51,.92);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--c-on-dark-10);
	transition: height .3s ease, background-color .3s ease;
	color: var(--c-paper);
}
.ebmt-nav.is-compact { height: var(--nav-h-compact); background: rgba(30,41,51,.97); }
.ebmt-nav__inner { height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.ebmt-nav__logo { display: flex; align-items: center; height: 100%; }
.ebmt-nav__logo img { height: 36px; width: auto; }
.ebmt-nav__links ul { list-style: none; display: flex; align-items: center; justify-content: center; gap: 36px; font-size: 15px; font-weight: 500; }
.ebmt-nav__links a { color: var(--c-on-dark-75); padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.ebmt-nav__links a:hover { color: var(--c-paper); }
.ebmt-nav__links a.is-active { color: var(--c-paper); border-bottom-color: var(--c-blue); }
.ebmt-nav__right { display: flex; align-items: center; justify-content: flex-end; gap: 28px; }
.ebmt-nav__cta { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; background: var(--c-blue); color: var(--c-paper); font-size: 15px; font-weight: 500; white-space: nowrap; }
.ebmt-nav__cta:hover { background: var(--c-paper); color: var(--c-graphite-deep); }
.ebmt-lang { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em; }
.ebmt-lang a, .ebmt-lang span.is-off { color: var(--c-on-dark-55); border-bottom: 1px solid transparent; padding-bottom: 2px; }
.ebmt-lang a:hover { color: var(--c-paper); }
.ebmt-lang .is-active { color: var(--c-paper); border-bottom-color: var(--c-paper); }
.ebmt-lang__sep { width: 1px; height: 12px; background: var(--c-on-dark-30); }
.ebmt-burger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 10px; background: transparent; border: 1px solid rgba(247,247,245,.35); }
.ebmt-burger span { display: block; height: 1px; background: var(--c-paper); transition: transform .3s ease, opacity .3s ease; }
.ebmt-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ebmt-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ebmt-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ebmt-menu {
	position: fixed; inset: 0; z-index: 49; background: var(--c-graphite-deep); color: var(--c-paper);
	padding: 108px var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; overflow: auto;
}
.ebmt-menu[hidden] { display: none; }
.ebmt-menu__links { display: flex; flex-direction: column; font-size: 28px; font-weight: 600; letter-spacing: -.01em; }
.ebmt-menu__links a { color: var(--c-on-dark-80); padding: 18px 0; border-bottom: 1px solid var(--c-on-dark-15); }
.ebmt-menu__links a.is-active, .ebmt-menu__links a:hover { color: var(--c-paper); }
.ebmt-menu__bottom { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
body.ebmt-menu-open { overflow: hidden; }

/* Naglowek podstrony ------------------------------------------------------ */
.ebmt-phead { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 96px) 0; }
.ebmt-phead--img { padding: clamp(72px, 10vw, 136px) 0 clamp(64px, 8vw, 112px); }
.ebmt-phead--full { min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; justify-content: flex-end; }
.ebmt-phead__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.7); }
.ebmt-phead__grid, .ebmt-cta__grid { position: absolute; inset: 0; background-image: var(--grid-96); background-size: 96px 96px; pointer-events: none; }
.ebmt-phead__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(30,41,51,.92) 0%, rgba(30,41,51,.7) 60%, rgba(30,41,51,.45) 100%); }
.ebmt-phead--v .ebmt-phead__shade { background: linear-gradient(180deg, rgba(30,41,51,.35) 0%, rgba(30,41,51,.9) 100%); }
.ebmt-phead--arch .ebmt-phead__shade { background: linear-gradient(90deg, rgba(30,41,51,.92) 0%, rgba(30,41,51,.7) 45%, rgba(30,41,51,.35) 100%); }
.ebmt-phead__inner { position: relative; width: 100%; }
.ebmt-phead__inner--cols { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
.ebmt-phead__crumb { margin-bottom: 24px; }
.ebmt-phead__kicker { margin-bottom: 24px; }
.ebmt-phead__title { margin-bottom: 24px; }
.ebmt-phead__lead { color: var(--c-on-dark-80); }
.ebmt-phead__meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--c-on-dark-60); }
.ebmt-phead__right { max-width: 420px; justify-self: end; width: 100%; }
.ebmt-crumb { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; display: flex; flex-wrap: wrap; gap: 8px; color: var(--c-muted); }
.ebmt-crumb a { color: var(--c-blue); }
.ebmt-dark .ebmt-crumb { color: var(--c-on-dark-60); }
.ebmt-dark .ebmt-crumb a { color: var(--c-blue-light); }
.ebmt-crumb--lg { font-size: 13px; }

/* Portret partnera -------------------------------------------------------- */
.ebmt-portrait { position: relative; aspect-ratio: 4 / 5; background: var(--c-graphite); overflow: hidden; border-bottom: 1px solid var(--c-graphite); }
.ebmt-portrait--light { background: var(--c-fill); }
.ebmt-portrait__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.6) contrast(.95); }
.ebmt-portrait__tone { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,87,214,.10) 0%, rgba(47,59,73,.18) 100%); mix-blend-mode: multiply; }
.ebmt-portrait__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: clamp(48px, 8vw, 96px); font-weight: 600; color: var(--c-paper); letter-spacing: -.02em; }

/* Karta uslugi ------------------------------------------------------------ */
.ebmt-card-service { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; background: var(--c-paper); padding: 36px 32px 32px; min-height: 300px; color: var(--c-graphite); }
.ebmt-card-service:hover { background: var(--c-white); color: var(--c-graphite); }
.ebmt-card-service__top { display: flex; justify-content: space-between; align-items: flex-start; }
.ebmt-card-service__body { display: grid; grid-template-rows: 58px 118px auto; row-gap: 16px; }
.ebmt-card-service__title { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; align-self: start; }
.ebmt-card-service__text { font-size: 15px; line-height: 1.55; align-self: start; text-wrap: pretty; overflow: hidden; }
.ebmt-card-service__body .ebmt-more { align-self: end; }

/* Karta partnera ---------------------------------------------------------- */
.ebmt-card-partner { display: block; color: var(--c-graphite); }
.ebmt-card-partner:hover { color: var(--c-graphite); }
.ebmt-card-partner__body { padding-top: 24px; }
.ebmt-card-partner__title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; height: 60px; }
.ebmt-card-partner__title h3 { font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; min-width: 0; }
.ebmt-card-partner__kicker { margin: 8px 0 20px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--c-blue); height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ebmt-card-partner__list { list-style: none; font-size: 15px; line-height: 1.5; }
.ebmt-card-partner__list li { padding: 10px 0; border-top: 1px solid var(--c-rule); height: 65px; overflow: hidden; }
.ebmt-card-partner__list li:last-child { border-bottom: 1px solid var(--c-rule); height: 66px; }
.ebmt-card-partner .ebmt-more { display: block; margin-top: 20px; }
.ebmt-card-partner:hover .ebmt-more { color: var(--c-graphite); }

/* Wiersz wpisu (home) ------------------------------------------------------ */
.ebmt-post-row { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--c-rule); color: var(--c-graphite); min-height: 0; }
.ebmt-post-row:hover { color: var(--c-blue); }
.ebmt-post-row__meta { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--c-muted); }
.ebmt-post-row__cat { color: var(--c-blue); }
.ebmt-post-row__title { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Karta wpisu (jasna) ------------------------------------------------------ */
.ebmt-card-post { display: flex; flex-direction: column; gap: 16px; padding: 24px 0; border-top: 1px solid var(--c-graphite); border-bottom: 1px solid var(--c-rule); color: var(--c-graphite); }
.ebmt-card-post:hover { color: var(--c-blue); }
.ebmt-card-post__meta { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--c-muted); }
.ebmt-card-post__cat { color: var(--c-blue); }
.ebmt-card-post__title { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ebmt-card-post__lead { font-size: 15px; line-height: 1.55; color: var(--c-muted); text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ebmt-card-post .ebmt-more { margin-top: auto; }

/* Karta case study (ciemna) ------------------------------------------------ */
.ebmt-card-case { display: flex; flex-direction: column; justify-content: space-between; background-color: var(--c-graphite); color: var(--c-paper); padding: 32px; min-height: 420px; position: relative; background-image: var(--grid-48); background-size: 48px 48px; }
.ebmt-card-case:hover { background-color: var(--c-graphite-deep); color: var(--c-paper); }
.ebmt-card-case__top { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; }
.ebmt-card-case__label { color: var(--c-blue-light); }
.ebmt-card-case__branza { color: var(--c-on-dark-55); text-align: right; }
.ebmt-card-case__stats { margin: 40px 0; }
.ebmt-case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.ebmt-stat__value { font-size: clamp(36px, 5vw, 48px); line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.ebmt-stat__label { margin-top: 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em; color: var(--c-on-dark-60); line-height: 1.5; }
.ebmt-card-case__title { font-size: 22px; line-height: 1.25; font-weight: 600; text-wrap: balance; margin-bottom: 16px; }
.ebmt-card-case .ebmt-more { margin-top: 24px; }

/* Chipy ---------------------------------------------------------------------- */
.ebmt-chips { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em; line-height: 1; }
.ebmt-chip { border: 1px solid var(--c-rule); padding: 7px 9px; color: inherit; }
a.ebmt-chip:hover { border-color: var(--c-blue); color: var(--c-blue); }
.ebmt-chips--fill .ebmt-chip { flex: 1 1 auto; text-align: center; white-space: nowrap; }
.ebmt-chips--dark { font-size: 11px; letter-spacing: .04em; color: var(--c-on-dark-75); }
.ebmt-chips--dark .ebmt-chip { border-color: var(--c-on-dark-30); padding: 4px 8px; }
.ebmt-chips--dark a.ebmt-chip:hover { border-color: var(--c-paper); color: var(--c-paper); }
.ebmt-chips--lg .ebmt-chip { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; }

/* Kroki procesu (kompaktowe) ------------------------------------------------ */
.ebmt-steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--c-on-dark-25); }
.ebmt-steps > div { padding: 32px 28px 0; border-right: 1px solid var(--c-on-dark-15); }
.ebmt-steps > div:first-child { padding-left: 0; }
.ebmt-steps > div:last-child { padding-right: 0; border-right: 0; }
.ebmt-steps h3 { margin: 48px 0 10px; font-size: 24px; line-height: 1.2; font-weight: 600; height: 58px; text-wrap: balance; }
.ebmt-steps__kicker { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--c-blue-light); height: 18px; margin-bottom: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ebmt-steps p { font-size: 15px; line-height: 1.55; color: var(--c-on-dark-75); text-wrap: pretty; }
.ebmt-steps p strong, .ebmt-steps p .ebmt-hl { color: var(--c-paper); font-weight: 400; }

.ebmt-steps__more { margin-top: 72px; }
@media (max-width: 720px) { .ebmt-steps__more { margin-top: 48px; } }

/* Pas CTA ------------------------------------------------------------------- */
.ebmt-cta { position: relative; overflow: hidden; border-top: 1px solid var(--c-on-dark-12); background-image: none; }
.ebmt-cta__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.7); }
.ebmt-cta__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(30,41,51,.92) 0%, rgba(30,41,51,.7) 60%, rgba(30,41,51,.45) 100%); }
.ebmt-cta__inner { position: relative; padding-top: clamp(72px, 11vw, 144px); padding-bottom: clamp(72px, 11vw, 144px); display: grid; grid-template-columns: 8fr 4fr; gap: 64px; align-items: end; }
.ebmt-cta__title { font-size: clamp(32px, 4.2vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; max-width: 26ch; margin-bottom: 28px; } /* dluzszy naglowek CTA (sesja 2): szersza kolumna, mniejsze pismo, 3-4 linie */
.ebmt-cta__text { font-size: 20px; line-height: 1.5; color: var(--c-on-dark-80); max-width: 560px; text-wrap: pretty; }
.ebmt-cta__col { display: flex; flex-direction: column; gap: 16px; max-width: 520px; width: 100%; }
.ebmt-cta__note { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--c-on-dark-50); line-height: 1.6; }

/* Stopka -------------------------------------------------------------------- */
.ebmt-footer { border-top: 1px solid var(--c-on-dark-12); background-image: none; padding: clamp(40px, 6.1vw, 80px) 0 clamp(20px, 3vw, 40px); }
.ebmt-footer__grid { display: grid; grid-template-columns: 4fr 2fr 3fr 3fr; gap: 48px; }
.ebmt-footer__logo { height: 44px; width: auto; margin-bottom: 28px; }
.ebmt-footer__brand p { font-size: 14px; line-height: 1.6; color: var(--c-on-dark-65); max-width: 320px; text-wrap: pretty; }
.ebmt-footer__label { margin-bottom: 20px; }
.ebmt-footer__links { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.ebmt-footer__links a { color: var(--c-paper); }
.ebmt-footer__links a:hover { color: var(--c-blue-light); }
.ebmt-footer__links-extra { color: var(--c-on-dark-65) !important; margin-top: 8px; }
.ebmt-footer__links-extra:hover { color: var(--c-blue-light) !important; }
.ebmt-footer__partners a { display: flex; justify-content: space-between; gap: 12px; }
.ebmt-footer__in { font-family: var(--f-mono); font-size: 12px; color: var(--c-on-dark-50); }
.ebmt-footer__company { font-style: normal; font-family: var(--f-mono); font-size: 13px; line-height: 1.7; color: var(--c-on-dark-75); }
.ebmt-footer__company a { color: var(--c-on-dark-75); }
.ebmt-footer__company a:hover { color: var(--c-blue-light); }
.ebmt-footer__bar { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--c-on-dark-15); display: flex; justify-content: space-between; align-items: center; gap: 24px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--c-on-dark-55); }
.ebmt-footer__bar-left { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; flex: 1 1 0; }
.ebmt-footer__credit { flex: 0 1 auto; text-align: center; }
.ebmt-footer__credit a { color: var(--c-on-dark-55); border-bottom: 1px solid var(--c-on-dark-30); }
.ebmt-footer__credit a:hover { color: var(--c-paper); border-color: var(--c-paper); }
.ebmt-footer__bar-right { display: flex; align-items: center; gap: 28px; flex: 1 1 0; justify-content: flex-end; }
.ebmt-footer__bar-right > a { color: var(--c-on-dark-55); }
.ebmt-footer__bar-right > a:hover { color: var(--c-paper); }
.ebmt-footer__lang { font-size: 12px; }

/* Sticky CTA ------------------------------------------------------------------ */
.ebmt-sticky-cta { position: fixed; right: 32px; bottom: 32px; z-index: 40; display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 20px 0 22px; background: var(--c-blue); color: var(--c-paper); font-size: 15px; font-weight: 500; opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease, background-color .2s ease; pointer-events: none; }
.ebmt-sticky-cta .ebmt-btn__arrow { font-size: 13px; }
.ebmt-sticky-cta.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.ebmt-sticky-cta:hover { background: var(--c-graphite); color: var(--c-paper); }

/* Cookies --------------------------------------------------------------------- */
.ebmt-cookies { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--c-graphite-deep); color: var(--c-paper); border-top: 1px solid var(--c-on-dark-15); }
.ebmt-cookies[hidden] { display: none; }
.ebmt-cookies__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 20px; padding-bottom: 20px; }
.ebmt-cookies__text { font-size: 14px; line-height: 1.5; color: var(--c-on-dark-80); max-width: 760px; text-wrap: pretty; }
.ebmt-cookies__text a { color: var(--c-blue-light); border-bottom: 1px solid var(--c-blue-light); }
.ebmt-cookies__btns { display: flex; gap: 12px; flex: 0 0 auto; }
.ebmt-cookies .ebmt-btn--secondary { color: var(--c-paper); border-color: var(--c-on-dark-40); }
.ebmt-cookies .ebmt-btn--secondary:hover { border-color: var(--c-paper); background: rgba(247,247,245,.06); color: var(--c-paper); }
.ebmt-cookies .ebmt-btn--primary:hover { background: var(--c-paper); color: var(--c-graphite-deep); }

/* Formularze ------------------------------------------------------------------ */
.ebmt-form { display: flex; flex-direction: column; gap: 24px; }
.ebmt-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ebmt-field { display: flex; flex-direction: column; gap: 8px; }
.ebmt-field__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--c-muted); text-transform: uppercase; }
.ebmt-input, .ebmt-select, .ebmt-textarea { width: 100%; height: 48px; border: 1px solid var(--c-rule); background: var(--c-paper); padding: 0 14px; font-family: var(--f-sans); font-size: 15px; color: var(--c-graphite); outline: none; transition: border-color .2s ease; }
.ebmt-textarea { height: auto; padding: 12px 14px; resize: vertical; min-height: 120px; }
.ebmt-select { padding-right: 40px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232F3B49' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.ebmt-input:focus, .ebmt-select:focus, .ebmt-textarea:focus { border-color: var(--c-blue); }
.ebmt-input::placeholder, .ebmt-textarea::placeholder { color: var(--c-muted); opacity: .8; }
.ebmt-field.has-error .ebmt-input, .ebmt-field.has-error .ebmt-select, .ebmt-field.has-error .ebmt-textarea { border-color: var(--c-blue); box-shadow: inset 0 -2px 0 var(--c-blue); }
.ebmt-field__error { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--c-blue); }
.ebmt-field__error:empty { display: none; }
.ebmt-check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--c-muted); cursor: pointer; }
.ebmt-check input { margin: 3px 0 0; accent-color: var(--c-blue); width: 14px; height: 14px; flex: 0 0 auto; }
.ebmt-check a { color: var(--c-blue); }
.ebmt-check.has-error { color: var(--c-blue); }
.ebmt-form-msg { font-size: 15px; line-height: 1.55; padding: 16px 20px; border: 1px solid var(--c-graphite); }
.ebmt-form-msg:empty { display: none; }
.ebmt-form-msg.is-error { border-color: var(--c-blue); color: var(--c-graphite); }
.ebmt-form.is-sent .ebmt-form__fields { display: none; }

/* Wyszukiwarka (pole duze, ciemne) ---------------------------------------------- */
.ebmt-search { display: grid; grid-template-columns: 56px 1fr auto; height: 80px; border: 1px solid var(--c-on-dark-40); background: rgba(247,247,245,.04); transition: border-color .2s ease; }
.ebmt-search:focus-within { border-color: var(--c-blue-light); }
.ebmt-search__icon { display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 32px; color: var(--c-on-dark-60); }
.ebmt-search__input { border: 0; background: transparent; font-family: var(--f-sans); font-size: clamp(18px, 2.2vw, 24px); color: var(--c-paper); padding: 0 8px; outline: none; min-width: 0; }
.ebmt-search__input::placeholder { color: var(--c-on-dark-50); }
.ebmt-search__input::-webkit-search-decoration, .ebmt-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.ebmt-search__btn { display: inline-flex; align-items: center; gap: 14px; padding: 0 28px; background: var(--c-blue); color: var(--c-paper); border: 0; border-left: 1px solid var(--c-on-dark-25); font-size: 17px; font-weight: 500; transition: background-color .2s ease, color .2s ease; }
.ebmt-search__btn:hover { background: var(--c-paper); color: var(--c-graphite-deep); }
.ebmt-search--sm { height: 72px; max-width: 720px; }
.ebmt-search--sm .ebmt-search__icon { font-size: 28px; }
.ebmt-search--sm .ebmt-search__input { font-size: clamp(17px, 2vw, 21px); }
.ebmt-search--sm .ebmt-search__btn { padding: 0 24px; font-size: 16px; }

/* Tresc z edytora (prose) ------------------------------------------------------ */
.ebmt-prose { font-size: 17px; line-height: 1.6; max-width: 760px; }
.ebmt-prose > * + * { margin-top: 20px; }
.ebmt-prose h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; margin-top: 48px; padding-bottom: 16px; border-bottom: 1px solid var(--c-graphite); }
.ebmt-prose h3 { font-size: 22px; line-height: 1.25; font-weight: 600; margin-top: 36px; }
.ebmt-prose h4 { font-size: 18px; line-height: 1.3; font-weight: 600; margin-top: 28px; }
.ebmt-prose ul, .ebmt-prose ol { padding-left: 22px; }
.ebmt-prose li + li { margin-top: 8px; }
.ebmt-prose a { border-bottom: 1px solid var(--c-blue); }
.ebmt-prose a:hover { border-color: var(--c-graphite); }
.ebmt-prose blockquote { border-left: 1px solid var(--c-graphite); padding-left: 24px; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.ebmt-prose figure { margin-top: 32px; }
.ebmt-prose figcaption, .ebmt-prose .wp-element-caption { margin-top: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--c-muted); }
.ebmt-prose img { width: 100%; }
.ebmt-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.ebmt-prose thead tr { border-top: 1px solid var(--c-graphite); border-bottom: 1px solid var(--c-graphite); }
.ebmt-prose th { text-align: left; padding: 14px 16px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; font-weight: 500; }
.ebmt-prose th:first-child { color: var(--c-muted); padding-left: 0; }
.ebmt-prose td { padding: 16px; vertical-align: top; color: var(--c-muted); border-bottom: 1px solid var(--c-rule); }
.ebmt-prose td:first-child { font-weight: 500; color: var(--c-graphite); padding-left: 0; }
.ebmt-prose .ebmt-table-wrap { overflow-x: auto; }
.ebmt-prose hr { border: 0; border-top: 1px solid var(--c-rule); margin: 40px 0; }
.ebmt-prose code { font-family: var(--f-mono); font-size: .9em; background: var(--c-fill); padding: 2px 6px; }
.ebmt-prose pre { font-family: var(--f-mono); font-size: 13px; background: var(--c-fill); padding: 20px; overflow-x: auto; }
.ebmt-dark .ebmt-prose { color: var(--c-on-dark-80); }
.ebmt-dark .ebmt-prose h2, .ebmt-dark .ebmt-prose h3, .ebmt-dark .ebmt-prose strong { color: var(--c-paper); }
.ebmt-dark .ebmt-prose h2 { border-color: var(--c-on-dark-25); }
.ebmt-doc { max-width: 760px; }

/* Ruch --------------------------------------------------------------------------- */
@keyframes ebmtHeroImg { from { transform: scale(1.06); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ebmtHeroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js.no-anim [data-reveal], .ebmt-no-anim [data-reveal], .ebmt-shot [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
.ebmt-up { animation: ebmtHeroUp 1s var(--ease) both; }
.ebmt-up--1 { animation-duration: .9s; animation-delay: .2s; }
.ebmt-up--2 { animation-delay: .35s; }
.ebmt-up--3 { animation-delay: .55s; }
.ebmt-up--4 { animation-delay: .75s; }
.ebmt-up--a { animation-duration: .9s; animation-delay: .1s; }
.ebmt-up--b { animation-delay: .2s; }
.ebmt-up--c { animation-delay: .3s; }
.ebmt-up--d { animation-delay: .45s; }
.ebmt-up--e { animation-delay: .55s; }
.ebmt-up--f { animation-delay: .6s; }
.ebmt-phead__img, .ebmt-hero__img { animation: ebmtHeroImg 2.4s var(--ease) both; }
.ebmt-no-anim .ebmt-up, .ebmt-no-anim .ebmt-phead__img, .ebmt-no-anim .ebmt-hero__img { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
	.ebmt-up, .ebmt-phead__img, .ebmt-hero__img { animation: none !important; }
	.js [data-reveal] { opacity: 1; transform: none; transition: none; }
	.ebmt-nav, .ebmt-sticky-cta { transition: none; }
}

/* Responsywnosc ------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.ebmt-nav__links, .ebmt-nav__lang { display: none; }
	.ebmt-burger { display: flex; }
	.ebmt-col1t { grid-template-columns: 1fr !important; gap: 40px !important; }
	.ebmt-col2t { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.ebmt-head--grid .ebmt-head__text { justify-self: start; max-width: 640px; }
	.ebmt-steps { grid-template-columns: repeat(2, 1fr); column-gap: 40px; }
	.ebmt-steps > div { border-right: 0; padding: 28px 0 32px; border-bottom: 1px solid var(--c-on-dark-15); }
	.ebmt-steps > div h3 { margin-top: 24px; }
	.ebmt-sticky-cta { display: none; }
	.ebmt-phead__right { justify-self: start; max-width: 560px; }
}
@media (max-width: 900px) {
	.ebmt-col1s { grid-template-columns: 1fr !important; }
	.ebmt-card-partner__list li { height: auto; }
	.ebmt-card-partner .ebmt-portrait { aspect-ratio: 4 / 3; }
	.ebmt-cookies__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 720px) {
	.ebmt-col2t, .ebmt-col1m { grid-template-columns: 1fr !important; }
	.ebmt-stack-m { flex-direction: column !important; align-items: flex-start !important; gap: 24px !important; }
	.ebmt-nav__cta { display: none; }
	.ebmt-btn { min-height: 52px; height: auto; padding: 12px 20px; font-size: 15px; gap: 14px; }
	.ebmt-btn--submit { height: auto; min-height: 56px; }
	.ebmt-steps { grid-template-columns: 1fr; }
	.ebmt-steps > div h3 { height: auto; }
	.ebmt-card-service { min-height: 0; padding: 28px 20px 24px; }
	.ebmt-card-service__body { grid-template-rows: auto auto auto; }
	.ebmt-card-service__text { overflow: visible; }
	.ebmt-case-stats { grid-template-columns: 1fr; }
	.ebmt-cta__inner { gap: 40px; }
	.ebmt-cta-btn { align-self: flex-start; }
	.ebmt-footer__grid { gap: 0; }
	.ebmt-footer__grid > div { padding: 28px 0; border-top: 1px solid var(--c-on-dark-12); }
	.ebmt-footer__grid > div:first-child { padding-top: 0; border-top: 0; }
	.ebmt-footer__grid > div:last-child { padding-bottom: 32px; }
	.ebmt-footer__label { margin-bottom: 16px; }
	.ebmt-footer__logo { height: 36px; margin-bottom: 20px; }
	.ebmt-footer__grid > div:nth-child(2) .ebmt-footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
	.ebmt-footer__links-extra { margin-top: 0; }
	.ebmt-footer__partners a { justify-content: flex-start; gap: 10px; }
	.ebmt-footer__bar { margin-top: 0; padding-top: 24px; gap: 16px; flex-direction: column-reverse; align-items: center; text-align: center; }
	.ebmt-footer__bar > * { flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
	.ebmt-form__row { grid-template-columns: 1fr; }
	.ebmt-search, .ebmt-search--sm { grid-template-columns: 48px 1fr; height: auto; }
	.ebmt-search__icon { height: 64px; font-size: 24px; }
	.ebmt-search__input { height: 64px; }
	.ebmt-search__btn { grid-column: 1 / -1; justify-content: space-between; height: 56px; border-left: 0; border-top: 1px solid var(--c-on-dark-25); padding: 0 20px; }
	.ebmt-phead--img { padding: 64px 0 48px; }
	.ebmt-cookies__btns { width: 100%; flex-direction: column; }
	.ebmt-cookies .ebmt-btn { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
	.ebmt-h1 { font-size: clamp(34px, 10vw, 44px); }
}

/* Tabele z edytora blokow: bez ramek komorek, tylko linie poziome jak w projekcie */
.ebmt-prose .wp-block-table { margin-top: 24px; }
.ebmt-prose .wp-block-table table { border-collapse: collapse; border: 0; }
.ebmt-prose .wp-block-table td, .ebmt-prose .wp-block-table th { border: 0; border-bottom: 1px solid var(--c-rule); }
.ebmt-prose .wp-block-table thead th { border-top: 1px solid var(--c-graphite); border-bottom: 1px solid var(--c-graphite); }
.ebmt-prose .wp-block-table tbody td:nth-child(2), .ebmt-prose .wp-block-table tbody td:nth-child(3) { font-family: var(--f-mono); font-size: 14px; color: var(--c-graphite); }
.ebmt-prose .wp-block-table tbody td:last-child { font-family: var(--f-sans); font-size: 15px; color: var(--c-muted); }
.ebmt-prose .wp-block-table tbody td:first-child { font-family: var(--f-sans); color: var(--c-graphite); }
.ebmt-prose .wp-block-quote { border-left: 2px solid var(--c-blue); }
