/* Strona główna: sekcje z edytora bloków (klasy w polu Dodatkowe klasy CSS) */
.lit-home { background: #F1F4F5; color: #1F4E73; font-size: 17px; line-height: 1.5; }
.lit-home p { margin: 0; }
.lit-home > * { margin-top: 0; margin-bottom: 0; }

.lit-section { padding: clamp(52px, 6.5vw, 88px) var(--lit-gutter); color: #1F4E73; }
.lit-section--white { background: #FFF; }
.lit-section--blue { background: var(--lit-blue); color: #FFF; }
.lit-section h2 { margin: 0 0 32px; color: inherit; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.06; letter-spacing: -.03em; font-weight: 800; }

/* Baner */
.lit-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); padding: clamp(44px, 6vw, 84px) var(--lit-gutter) clamp(30px, 3.6vw, 46px); background: var(--lit-blue); color: #FFF; }
.lit-hero::before { content: ""; position: absolute; right: -4%; top: -6%; width: 44%; min-width: 420px; height: 112%; background: url(../img/emblem.svg) no-repeat right center / contain; pointer-events: none; }
.lit-hero > *, .lit-hero .wp-block-group { position: relative; }
.lit-eyebrow { margin: 0 0 22px !important; color: #FFF !important; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px !important; font-weight: 400 !important; line-height: 1.4 !important; letter-spacing: 0 !important; }
.lit-slide { margin-bottom: 26px; }
.lit-home .lit-slide { grid-area: 2 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.lit-home .lit-slide:first-of-type, .lit-home .lit-slide.is-active { opacity: 1; visibility: visible; }
.lit-js .lit-home .lit-slide:not(.is-active) { opacity: 0; visibility: hidden; }
.lit-slide__title { max-width: 14em; margin: 0; color: #FFF; font-size: clamp(38px, 5.4vw, 74px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.lit-slide__lead { max-width: 34em; margin: 22px 0 28px !important; color: #FFF; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; }
.lit-slide .wp-block-button__link { padding: 15px 26px; background: var(--lit-accent); color: #1F4E73; font-size: 17px; }
.lit-slide .wp-block-button__link:hover { background: #5CCF39; color: #1F4E73; }
/* Grafika podkładowa slajdu: blok Obrazek z klasą lit-slide__bg w grupie slajdu. Podmiana w edytorze przyciskiem Zastąp. */
.lit-hero:has(.lit-slide__bg) { min-height: clamp(400px, 36vw, 540px); align-content: center; }
.lit-hero:has(.lit-slide__bg) .lit-slide__title { max-width: 11em; font-size: clamp(36px, 4.6vw, 64px); }
.lit-hero:has(.lit-slide__bg) .lit-slide__lead { max-width: 30em; }
.lit-hero:has(.lit-slide__bg)::before { display: none; }
.lit-hero:has(.lit-slide__bg) .lit-slide, .lit-hero:has(.lit-slide__bg) .lit-slide .wp-block-group__inner-container { position: static; }
.lit-hero:has(.lit-slide__bg) .lit-slide :is(.lit-slide__title, .lit-slide__lead, .wp-block-buttons, p, h2, h3), .lit-hero:has(.lit-slide__bg) .lit-eyebrow, .lit-hero:has(.lit-slide__bg) .lit-dots { position: relative; z-index: 2; }
.lit-slide__bg { position: absolute; inset: 0; z-index: 0; margin: 0 !important; overflow: hidden; pointer-events: none; }
.lit-slide__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.lit-slide__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #2E6E9D 0%, #2E6E9D 30%, rgba(46, 110, 157, .75) 50%, rgba(46, 110, 157, 0) 75%); }
.lit-js .lit-home .lit-slide .lit-slide__bg img { transform: scale(1.04); transition: transform 7s ease-out; }
.lit-js .lit-home .lit-slide.is-active .lit-slide__bg img { transform: scale(1); }
.lit-dots { position: relative; grid-area: 3 / 1; display: flex; gap: 2px; margin: 24px 0 0 -8px; }
.lit-dot { position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.lit-dot::before { content: ""; position: absolute; left: 8px; right: 8px; top: 21px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .45); transition: background .15s; }
.lit-dot:hover::before { background: rgba(255, 255, 255, .8); }
.lit-dot.is-active::before { background: #FFF; }

/* Fakty */
.lit-stats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding: 18px var(--lit-gutter); background: #FFF; border-bottom: 1px solid #DFE6EA; color: #46596A; font-size: 15px; }
.lit-stats p { margin: 0; }
.lit-stats strong { color: #1F4E73; font-size: 17px; font-weight: 800; }

.lit-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; padding: 18px var(--lit-gutter); background: var(--lit-accent); color: #1F4E73; font-size: 18px; line-height: 1.3; }
.lit-promo p { margin: 0; }
.lit-promo__text { flex: 1 1 420px; font-weight: 600; }
.lit-promo__text strong { margin-right: 8px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.03em; vertical-align: -2px; }
.lit-promo__link a { display: inline-block; padding: 12px 22px; background: #1F4E73; border-radius: 10px; color: #FFF; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .12s; }
.lit-promo__link a::after { content: " →"; }
.lit-promo__link a:hover { background: #17405F; color: #FFF; }

/* Film */
.lit-film { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: 22px 56px; padding-top: 44px; padding-bottom: 44px; }
.lit-film h2 { margin: 0; font-size: clamp(26px, 2.8vw, 34px); }
.lit-film .wp-block-embed { margin: 0; }
@media (max-width: 860px) { .lit-film { grid-template-columns: minmax(0, 1fr); } }

/* Moduły */
.lit-heads { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; margin-bottom: 28px; }
.lit-heads h2 { margin: 0; }
.lit-more { margin: 0; font-weight: 600; }
.lit-more a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.lit-more a::after { content: "→"; }
.lit-modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lit-module { position: relative; padding: 22px 24px; background: #FFF; border-radius: 14px; transition: box-shadow .15s, transform .15s; }
.lit-module:hover { box-shadow: 0 14px 40px rgba(31, 78, 115, .14); transform: translateY(-2px); }
.lit-module h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.lit-module h3 a { color: #1F4E73; text-decoration: none; }
.lit-module h3 a::after { content: ""; position: absolute; inset: 0; }
.lit-module p { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: #46596A; }

/* Kroki: numery dodają się same */
.lit-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: lit-step; }
.lit-step { padding-top: 14px; border-top: 2px solid #1F4E73; counter-increment: lit-step; }
.lit-step::before { content: counter(lit-step); display: block; margin-bottom: 6px; color: var(--lit-blue); font-size: 30px; font-weight: 800; line-height: 1; }
.lit-step h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.lit-step p { margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: #46596A; }

/* Zespół na stronie głównej */
.lit-home .lit-people { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 24px 12px; margin: 0; }
.lit-home .lit-person { text-align: center; }
.lit-home .lit-person .wp-block-image { margin: 0 0 8px; }
.lit-home .lit-person .wp-block-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #DCEBF6; }
.lit-home .lit-person p { font-size: 12px; line-height: 1.25; color: #46596A; }
.lit-home .lit-person p strong { font-size: 15px; font-weight: 800; color: #1F4E73; }
.lit-home .lit-person p:has(> a[href^="mailto:"]) a { border-radius: 50%; }

/* IT */
.lit-it { padding-top: 48px; padding-bottom: 48px; }
.lit-it h2 { margin-bottom: 22px; font-size: clamp(26px, 2.8vw, 34px); }
.lit-itlinks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lit-itlinks p { margin: 0; }
.lit-itlinks a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: #27608B; border-radius: 12px; color: #FFF; font-weight: 600; text-decoration: none; transition: background .12s; }
.lit-itlinks a::after { content: "→"; }
.lit-itlinks a:hover { background: #1F4E73; }

/* Partnerzy */
.lit-partners { padding-top: 40px; padding-bottom: 40px; }
.lit-label { margin: 0 0 18px; color: #33475A; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }

/* Kontakt */
.lit-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px clamp(32px, 5vw, 72px); }
.lit-contact h2 { margin-bottom: 14px; }
.lit-contact__text p { margin: 0 0 14px; max-width: 26em; color: #33475A; font-size: 18px; }
.lit-phone a { color: #1F4E73; font-size: 26px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }

/* Więcej o firmie */
.lit-about { padding-top: 22px; padding-bottom: 22px; color: #33475A; font-size: 16px; }
.lit-about summary { padding: 8px 0; color: #1F4E73; font-weight: 600; cursor: pointer; }
.lit-about details > :not(summary) { max-width: 860px; }
.lit-about details p { margin: 0 0 12px; }
.lit-about details h2 { margin: 1.5em 0 .4em; color: #1F4E73; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.lit-about details a { color: #1F4E73; text-decoration: underline; }
.lit-about details ul { margin: 12px 0; padding-left: 20px; }

@media (max-width: 1100px) {
	.lit-home .lit-people { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.lit-steps, .lit-itlinks, .lit-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.lit-hero::before { right: -30%; top: 4%; width: 70%; min-width: 0; height: 70%; }
	.lit-modules, .lit-steps { grid-template-columns: minmax(0, 1fr); }
	.lit-home .lit-people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lit-stats { justify-content: flex-start; }
	.lit-stats p { flex-basis: 45%; }
}
@media (max-width: 900px) {
	.lit-slide__bg img { object-position: 70% center; }
	.lit-slide__bg::after { background: linear-gradient(90deg, rgba(46, 110, 157, .94) 0%, rgba(46, 110, 157, .82) 60%, rgba(46, 110, 157, .55) 100%); }
}
@media (prefers-reduced-motion: reduce) { .lit-slide, .lit-js .lit-home .lit-slide .lit-slide__bg img { transition: none !important; transform: none !important; } }
@media (min-width: 641px) and (max-width: 1100px) {
	.lit-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
}
