/**
 * Strona usługi: środek strony (własne układy ze zdjęciami) w nowoczesnej rodzinie stron miast i landingu PPC.
 * Ładowany po landing-ppc.css i strona-miasta.css; tokeny --lp-* stamtąd (granat, zieleń CTA, #f3f6fb, promień 16px,
 * nagłówki Montserrat 800 kursywa). Hero, pasek zaufania, opinie, formularz, FAQ, CTA i stopka są wspólne.
 */
.ps-svc {
	--sv-ease: cubic-bezier(.23, 1, .32, 1);
	--sv-shadow-up: 0 1px 0 rgba(17, 28, 66, .04), 0 30px 60px -30px rgba(17, 28, 66, .38);
}
.ps-svc ::selection { background: var(--lp-blue); color: #fff; }
.sv figure { margin: 0; }
.sv img { display: block; max-width: 100%; height: auto; }

/* ---------- Hero: dwa zdjęcia (główne + mniejsze nachodzące) ---------- */
.sv-hero__media { position: relative; }
.sv-hero__main img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--lp-radius); box-shadow: var(--lp-shadow-lg); }
.sv-hero__second { display: none; }
@media (min-width: 1024px) {
	.sv-hero__media { padding: 0 0 64px 0; }
	.sv-hero__main img { aspect-ratio: 4 / 4.2; max-height: 520px; }
	.sv-hero__second { display: block; position: absolute; left: -48px; bottom: 0; width: 46%; }
	.sv-hero__second img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--lp-radius); border: 6px solid var(--lp-navy); box-shadow: var(--lp-shadow-lg); }
}
.sv-hero__main img { animation: sv-in 1s var(--sv-ease) both; }
.sv-hero__second { animation: sv-in 1s .18s var(--sv-ease) both; }
@keyframes sv-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Nagłówki sekcji (jak .lp-heading h2: 800 kursywa, granat) ---------- */
.ps-landing .sv-h2 { max-width: 820px; margin: 0 auto 32px; font-size: clamp(26px, 4.6vw, 38px); font-weight: 800; font-style: italic; line-height: 1.15; letter-spacing: -.01em; color: var(--lp-navy); text-align: center; text-wrap: balance; }
.ps-landing .sv-h2 span { color: var(--lp-blue); }
.ps-landing .sv-h2--left { margin-left: 0; text-align: left; }
.ps-landing .sv-h2--light, .ps-landing .sv-h2--light span { color: #fff; }
.ps-landing .sv-h2--light span { background: linear-gradient(transparent 72%, rgba(68, 176, 83, .75) 72%); }

/* ---------- Sekcje ---------- */
.sv-sec { padding: 56px 0; }
@media (min-width: 1024px) { .sv-sec { padding: 96px 0; } }
.sv-sec + .sv-sec:not(.sv-band):not(.sv-why) { padding-top: 0; }
.sv-sec p { margin: 0 0 14px; }
.sv-sec p:last-child { margin-bottom: 0; }
.sv-prose p, .sv-body > p { color: var(--lp-muted); }
.ps-landing .sv-sec p a { color: var(--lp-blue); text-decoration: underline; text-underline-offset: 3px; }
.sv-body { max-width: 1100px; margin: 0 auto; }
.sv-body > p { max-width: 820px; margin-left: auto; margin-right: auto; }

/* Lista z ptaszkami w zielonym kółku (jak punkty w hero). */
.sv-list { display: grid; gap: 0; margin: 10px 0 20px; }
.sv-list li { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--lp-line); font-size: 17px; line-height: 1.45; font-weight: 600; color: var(--lp-navy); }
.sv-list li:last-child { border-bottom: 0; }
.sv-arrow { flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -1px; border-radius: 50%; background: var(--lp-green); color: #fff; font-size: 12px; }
.sv-arrow .lp-icon { width: 14px; height: 14px; stroke-width: 3; }
.sv-body--list .sv-list { column-gap: 40px; }
@media (min-width: 768px) { .sv-body--list .sv-list { grid-template-columns: 1fr 1fr; } }

/* Tekst + zdjęcie: zdjęcie z akcentem gradientu marki za rogiem. */
.sv-split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) {
	.sv-split { grid-template-columns: 1fr 1fr; gap: 80px; }
	.sv-split--rev .sv-split__media { order: 2; }
}
.sv-split__media { position: relative; }
.sv-split__media::before { content: ""; position: absolute; width: 46%; height: 46%; right: -18px; bottom: -18px; border-radius: var(--lp-radius); background: var(--lp-gradient); opacity: .9; }
.sv-split--rev .sv-split__media::before { right: auto; left: -18px; }
.sv-split__media img { position: relative; width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; border-radius: var(--lp-radius); box-shadow: var(--sv-shadow-up); }
@media (max-width: 1023px) { .sv-split__media img { aspect-ratio: 4 / 3; } .sv-split__media::before { right: -8px; bottom: -8px; } .sv-split--rev .sv-split__media::before { left: -8px; } }

/* Szerokie zdjęcie + panel z tekstem nachodzący na zdjęcie. */
.sv-feature__media img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--lp-radius); }
.sv-feature__panel { position: relative; max-width: 1060px; margin: -120px auto 0; padding: 44px 52px 40px; background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); box-shadow: var(--sv-shadow-up); }
.sv-feature__panel .sv-h2 { max-width: 760px; }
.sv-feature__cols { columns: 2; column-gap: 48px; color: var(--lp-muted); }
.sv-feature__cols p { break-inside: avoid; }
@media (max-width: 1023px) {
	.sv-feature__media img { aspect-ratio: 16 / 9; }
	.sv-feature__panel { margin: -40px 10px 0; padding: 28px 22px 24px; }
	.sv-feature__cols { columns: 1; }
}

/* Układ redakcyjny: nagłówek po lewej (sticky), akapity z pogrubionym 1. zdaniem po prawej, na miękkim tle. */
.sv-sec--editorial { background: var(--lp-soft); padding-top: 56px !important; }
@media (min-width: 1024px) { .sv-sec--editorial { padding-top: 96px !important; } }
.sv-sec--editorial + .sv-sec { padding-top: 56px; }
@media (min-width: 1024px) { .sv-sec--editorial + .sv-sec { padding-top: 96px; } }
.sv-editorial { display: grid; gap: 24px; }
@media (min-width: 1024px) {
	.sv-editorial { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
	.sv-editorial .sv-h2 { position: sticky; top: calc(var(--lp-header-h) + 32px); }
}
.sv-editorial .sv-h2 { margin-bottom: 0; }
.sv-editorial .sv-h2::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 22px; border-radius: 2px; background: var(--lp-gradient); }
.sv-editorial__body { display: grid; gap: 14px; }
.sv-editorial__body p { margin: 0; padding: 22px 26px; border-radius: var(--lp-radius); background: #fff; border: 1px solid var(--lp-line); color: var(--lp-muted); }
.sv-editorial__body strong { display: block; margin-bottom: 4px; color: var(--lp-navy); font-weight: 700; }

/* Granatowy pas (ze zdjęciem przechodzącym w granat albo z poświatą jak hero). */
.sv-band, .sv-why { position: relative; overflow: hidden; background: var(--lp-navy); color: #fff; isolation: isolate; }
.sv-band::before, .sv-why::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 92% 100%, rgba(68, 176, 83, .25), transparent 42%), radial-gradient(circle at 70% -10%, rgba(18, 129, 255, .28), transparent 45%); }
.sv-band__media, .sv-why__media { position: absolute; inset: 0 48% 0 0; }
.sv-band__media img, .sv-why__media img { width: 100%; height: 100%; object-fit: cover; }
.sv-band__media::after, .sv-why__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 28, 66, .15) 0%, rgba(17, 28, 66, .6) 55%, #111c42 100%); }
.sv-band__inner, .sv-why__inner { position: relative; }
.sv-band--photo .sv-band__inner > *, .sv-why--photo .sv-why__inner > * { margin-left: auto; max-width: 600px; }
.sv-band:not(.sv-band--photo) .sv-band__inner { display: grid; gap: 22px; }
@media (min-width: 1024px) { .sv-band:not(.sv-band--photo) .sv-band__inner { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; } }
.sv-band .sv-h2 { margin-bottom: 24px; }
.sv-band:not(.sv-band--photo) .sv-h2 { margin-bottom: 0; }
.sv-band__text p, .sv-why p { color: rgba(255, 255, 255, .86); }
.sv-why .sv-list li { border-color: rgba(255, 255, 255, .14); color: #fff; font-weight: 500; font-size: 16px; }
.sv-why:not(.sv-why--photo) .sv-why__inner > * { max-width: 900px; margin: 0 auto; }
@media (max-width: 1023px) {
	.sv-band__media, .sv-why__media { position: relative; inset: auto; height: 240px; margin: -56px 0 36px; }
	.sv-band__media::after, .sv-why__media::after { background: linear-gradient(180deg, rgba(17, 28, 66, 0) 35%, #111c42 100%); }
	.sv-band--photo .sv-band__inner > *, .sv-why--photo .sv-why__inner > * { max-width: none; }
}

/* Kroki: zdjęcie (sticky) + oś z numerami w zielonych kółkach. */
.sv-process { display: grid; gap: 36px; max-width: 1140px; margin: 0 auto; }
@media (min-width: 1024px) {
	.sv-process { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
	.sv-process__media { position: sticky; top: calc(var(--lp-header-h) + 32px); }
	.sv-process--rev { grid-template-columns: 7fr 5fr; }
	.sv-process--rev .sv-process__media { order: 2; }
}
.sv-process--solo { max-width: 760px; grid-template-columns: 1fr; }
.sv-process__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--lp-radius); box-shadow: var(--sv-shadow-up); }
@media (max-width: 1023px) { .sv-process__media img { aspect-ratio: 16 / 10; } }
.sv-steps { position: relative; }
.sv-steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(to bottom, #44b053, #1281ff); opacity: .35; }
.sv-steps__item { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 0 0 26px; }
.sv-steps__item:last-child { padding-bottom: 0; }
.sv-steps__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lp-green); font-size: 17px; font-weight: 800; color: #fff; box-shadow: 0 0 0 6px #fff, 0 8px 20px rgba(68, 176, 83, .35); }
.ps-landing .sv-steps h3 { margin: 9px 0 4px; font-size: 18px; line-height: 1.35; font-weight: 700; color: var(--lp-navy); }
.sv-steps p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--lp-muted); }

/* Przypadki (h3 + akapity). */
.sv-cases { display: grid; gap: 20px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 768px) { .sv-cases { grid-template-columns: 1fr 1fr; } }
.sv-case { position: relative; padding: 32px 30px 30px; border-radius: var(--lp-radius); background: #fff; border: 1px solid var(--lp-line); box-shadow: var(--lp-shadow); overflow: hidden; transition: transform .25s var(--sv-ease), box-shadow .25s var(--sv-ease); }
.sv-case::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--lp-gradient); }
@media (hover: hover) { .sv-case:hover { transform: translateY(-4px); box-shadow: var(--sv-shadow-up); } }
.ps-landing .sv-case h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; color: var(--lp-navy); }
.sv-case p { font-size: 16px; line-height: 1.55; color: var(--lp-muted); }
.sv-case p + p { margin-top: 10px; }

/* Tabela. */
.sv-table { margin: 8px 0 24px; overflow-x: auto; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: #fff; box-shadow: var(--lp-shadow); }
.sv-table table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.sv-table th { padding: 18px 20px; background: var(--lp-navy); color: #fff; font-weight: 700; text-align: left; }
.sv-table td { padding: 16px 20px; border-top: 1px solid var(--lp-line); vertical-align: top; color: var(--lp-muted); }
.sv-table td:first-child { font-weight: 600; color: var(--lp-navy); }
.sv-table--labels td:first-child { font-weight: 400; color: var(--lp-muted); }
.sv-table--labels td strong { color: var(--lp-navy); }
@media (max-width: 639px) {
	.sv-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.sv-table tr { display: block; border-top: 1px solid var(--lp-line); padding: 8px 0; }
	.sv-table tr:first-child { border-top: 0; }
	.sv-table td { display: block; border: 0; padding: 6px 18px; }
	.sv-table td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lp-blue); }
}

/* Galeria z realizacji. */
.sv-gallery { padding: 0 0 56px; }
@media (min-width: 1024px) { .sv-gallery { padding-bottom: 96px; } }
.sv-gallery__grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) {
	.sv-gallery__grid--3 { grid-template-columns: 1.4fr 1fr 1fr; }
	.sv-gallery__grid--4 { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
}
.sv-gallery__grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--lp-radius); }
@media (min-width: 1024px) { .sv-gallery__grid img { aspect-ratio: auto; height: 300px; } }
@media (max-width: 767px) { .sv-gallery__grid--3 figure:first-child { grid-column: 1 / -1; } }

/* ---------- Wejście przy przewijaniu (tylko z JS i bez ograniczenia ruchu) ---------- */
.sv-js .sv-rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--sv-ease), transform .9s var(--sv-ease); }
.sv-js .sv-rv.is-in { opacity: 1; transform: none; }
.sv-js .sv-gallery figure:nth-child(2) { transition-delay: .08s; }
.sv-js .sv-gallery figure:nth-child(3) { transition-delay: .16s; }
.sv-js .sv-gallery figure:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .sv-hero__main img, .sv-hero__second { animation: none; } }
