/*
 * Landing Dig.IT – Multiprojekt – projekt v2 (16.10.2026).
 * Styl 1:1 z multiprojekt.pl: Inter, białe sekcje na tle #F7F7F8, żółty #ECD053 tylko jako akcent.
 * Wszystkie reguły są w zakresie .mpd, żeby nie kolidowały z motywem i Elementorem.
 */
.mpd {
	--mp-page-bg: #F7F7F8;
	--mp-surface: #FFFFFF;
	--mp-heading: #312F2F;
	--mp-text: #212529;
	--mp-ink: #000000;
	--mp-muted: #69727D;
	--mp-border: #E9EAEC;
	--mp-input-border: #C3C4C7;
	--mp-accent: #ECD053;
	--mp-error: #DC3232;
	--radius-input: 8px;
	--radius-card: 14px;
	--radius-section: 24px; /* jak biały kontener szablonu wpisu na multiprojekt.pl */
	--radius-pill: 50px;
	/* Szerokość jak kontener Elementora na multiprojekt.pl (Ustawienia witryny → Układ: 1360 px). */
	--container: 1360px;
}
body.mpd-page { background: #F7F7F8; }

.mpd, .mpd * { box-sizing: border-box; }
.mpd { font-family: Inter, sans-serif; font-size: 16px; line-height: 24px; color: var(--mp-text); }
.mpd h1, .mpd h2, .mpd h3, .mpd p { margin: 0; font-family: Inter, sans-serif; letter-spacing: normal; text-transform: none; }
.mpd a { color: var(--mp-ink); }
.mpd :focus-visible { outline: 2px solid var(--mp-ink); outline-offset: 3px; }
.mpd [hidden] { display: none !important; }

.mpd.lp { max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 24px 24px 64px; display: flex; flex-direction: column; gap: 24px; }
.mpd .lp-section { background: var(--mp-surface); border-radius: var(--radius-section); padding: 56px 54px; scroll-margin-top: 24px; }
.mpd .lp-h2 { font-size: 32px; line-height: 40px; font-weight: 400; color: var(--mp-heading); }
.mpd .lp-h3 { font-size: 19.2px; line-height: 26px; font-weight: 700; color: var(--mp-heading); }
.mpd .ring { border-radius: var(--radius-pill); background: var(--mp-surface); border: 1px solid var(--mp-accent); display: flex; align-items: center; justify-content: center; color: var(--mp-ink); }

.mpd .btn-primary { display: inline-block; background: var(--mp-accent); color: var(--mp-ink); text-decoration: none; border: 0; border-radius: var(--radius-pill); padding: 14px 36px; font: 500 16px/24px Inter, sans-serif; cursor: pointer; min-height: 48px; text-align: center; }
.mpd .btn-secondary { display: inline-block; background: var(--mp-surface); color: var(--mp-ink); text-decoration: none; border: 1px solid var(--mp-ink); border-radius: var(--radius-pill); padding: 12px 28px; font: 500 16px/24px Inter, sans-serif; cursor: pointer; }
.mpd .btn-primary:hover, .mpd .btn-secondary:hover { color: var(--mp-ink); filter: brightness(0.97); }
.mpd button[disabled] { opacity: 0.6; cursor: progress; }

/* Hero */
.mpd .hero { padding: 64px 54px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.mpd .badge { display: inline-flex; align-items: center; gap: 8px; background: var(--mp-surface); border: 1px solid var(--mp-accent); border-radius: var(--radius-pill); padding: 6px 18px; font-size: 14px; font-weight: 500; color: var(--mp-ink); }
.mpd .hero__title { font-size: 40px; line-height: 48px; font-weight: 400; color: var(--mp-heading); max-width: 820px; }
.mpd .hero__lead { max-width: 680px; font-size: 18px; line-height: 28px; }
.mpd .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; width: 100%; max-width: 860px; margin-top: 16px; }
.mpd .stat { background: var(--mp-surface); border: 1px solid var(--mp-border); border-radius: var(--radius-card); padding: 24px; }
.mpd .stat__value { font-size: 32px; line-height: 40px; color: var(--mp-heading); }
.mpd .stat__label { font-size: 14px; color: var(--mp-muted); }

/* Dla kogo */
.mpd .fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; align-items: center; }
.mpd .fit__col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.mpd .fit__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.mpd .fit__item { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 26px; color: var(--mp-ink); margin: 0; }
.mpd .fit__item .ring { flex: 0 0 28px; height: 28px; }
.mpd .fit__box { background: var(--mp-page-bg); border: 1px solid var(--mp-border); border-radius: var(--radius-card); padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mpd .fit__box-title { font-size: 28px; line-height: 36px; font-weight: 400; color: var(--mp-heading); }
.mpd .fit__box-text { color: var(--mp-ink); line-height: 26px; }
.mpd .fit__box-note { color: var(--mp-heading); font-weight: 500; font-size: 16px; line-height: 24px; margin-top: 4px; }
.mpd .fit__box .btn-primary { align-self: flex-start; margin-top: 8px; }

/* Współpraca */
.mpd .coop { display: flex; flex-direction: column; gap: 32px; }
.mpd .coop__intro { display: flex; flex-direction: column; gap: 12px; }
.mpd .coop__intro p { color: var(--mp-ink); max-width: none; font-size: 18px; line-height: 28px; }
.mpd .services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.mpd .service { background: var(--mp-page-bg); border: 1px solid var(--mp-border); border-radius: var(--radius-card); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.mpd .service .ring { width: 48px; height: 48px; }
.mpd .service p { color: var(--mp-ink); }
.mpd .service__tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mpd .service__tags li { margin: 0; font-size: 13px; line-height: 18px; color: var(--mp-muted); background: var(--mp-surface); border: 1px solid var(--mp-border); border-radius: var(--radius-pill); padding: 5px 12px; }
.mpd .service__tags strong { color: var(--mp-ink); font-weight: 700; }
.mpd .service__tags li:has(a) { padding: 0; }
.mpd .service__tags a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 5px 12px; color: var(--mp-muted); text-decoration: none; border-radius: var(--radius-pill); }
.mpd .service__tags a::after { content: "↗"; color: var(--mp-ink); font-size: 12px; }
.mpd .service__tags a:hover { background: var(--mp-page-bg); }
.mpd .service__tags a:hover strong { text-decoration: underline; }
.mpd .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Kroki (oś po formularzu) */
.mpd .timeline { display: flex; flex-direction: column; gap: 32px; }
.mpd .timeline__intro { display: flex; flex-direction: column; gap: 8px; }
.mpd .timeline__intro p { color: var(--mp-ink); font-size: 18px; line-height: 28px; }
.mpd .timeline__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: none; }
.mpd .timeline__item { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mpd .timeline__head { display: flex; align-items: center; gap: 12px; }
.mpd .timeline__item:not(:last-child) .timeline__head::after { content: ""; flex: 1; height: 1px; background: var(--mp-input-border); }
.mpd .timeline__ring { flex: 0 0 44px; height: 44px; font-size: 17px; font-weight: 500; }
.mpd .timeline__meta { font-size: 13px; color: var(--mp-muted); white-space: nowrap; }
.mpd .timeline__item p { color: var(--mp-ink); }
.mpd .timeline__check { display: none; line-height: 0; }
.mpd .timeline__item.is-done .timeline__num { display: none; }
.mpd .timeline__item.is-done .timeline__check { display: block; }
.mpd .timeline__item .timeline__ring { transition: background-color 0.4s ease; }
.mpd .timeline__item.is-done .timeline__ring { background: var(--mp-accent); }
@media (prefers-reduced-motion: reduce) { .mpd .timeline__item .timeline__ring { transition: none; } }
.mpd .timeline__item.is-done .lp-h3 { color: var(--mp-muted); }
.mpd .urgency { background: #FFF8DB; border: 2px solid var(--mp-accent); border-radius: var(--radius-card); padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.mpd .urgency__icon { flex: 0 0 52px; height: 52px; }
.mpd .urgency p { color: var(--mp-ink); flex: 1 1 380px; min-width: 0; font-size: 17px; line-height: 26px; }
.mpd .urgency strong { display: block; font-size: 22px; line-height: 30px; font-weight: 700; color: var(--mp-heading); margin-bottom: 4px; }

/* Formularz */
.mpd .form-section { display: flex; flex-direction: column; align-items: center; }
.mpd .lead-form, .mpd .thanks { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 20px; }
.mpd .lead-form__intro { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.mpd .lead-form__intro p { color: var(--mp-ink); }
.mpd .q-group { border: 1px solid var(--mp-border); border-radius: var(--radius-card); overflow: hidden; }
.mpd .q { border: 0; border-radius: 0; padding: 14px 20px; margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.mpd .q + .q { border-top: 1px solid var(--mp-border); }
.mpd .q legend { float: left; flex: 1 1 300px; padding: 0; margin: 0; font-weight: 500; color: var(--mp-heading); font-size: 16px; border: 0; width: auto; }
.mpd .q__options { display: flex; gap: 8px; }
.mpd .q__options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mpd .q__options label { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; min-height: 44px; padding: 8px 20px; margin: 0; border: 1px solid var(--mp-ink); border-radius: var(--radius-pill); background: var(--mp-surface); color: var(--mp-ink); cursor: pointer; font-weight: 400; }
.mpd .q__options input:checked + label { background: var(--mp-ink); color: #FFFFFF; }
.mpd .q__options input:focus-visible + label { outline: 2px solid var(--mp-ink); outline-offset: 3px; }
.mpd .field { display: flex; flex-direction: column; gap: 8px; }
.mpd .field label { font-weight: 500; color: var(--mp-heading); }
.mpd .field input { font: 16px Inter, sans-serif; padding: 14px 18px; border: 1px solid var(--mp-input-border); border-radius: var(--radius-input); color: var(--mp-text); background: var(--mp-surface); width: 100%; height: auto; }
.mpd .captcha input { width: 140px; }
.mpd .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 20px; color: var(--mp-muted); cursor: pointer; font-weight: 400; }
.mpd .consent input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 16px; }
.mpd .form-error { color: var(--mp-error); font-size: 14px; }
.mpd .form-error:empty { display: none; }
.mpd .lead-form__submit { display: flex; justify-content: center; }
.mpd .lead-form__submit .btn-primary { padding: 14px 48px; }
.mpd .thanks { align-items: center; gap: 16px; text-align: center; padding: 24px 0; }
.mpd .thanks:focus { outline: none; }
.mpd .thanks__result { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mpd .thanks .ring { width: 64px; height: 64px; }
.mpd .thanks p { color: var(--mp-ink); max-width: 560px; }
.mpd .thanks__result--ok .ring { background: var(--mp-accent); }
.mpd .thanks__result--no .ring { border-color: var(--mp-input-border); color: var(--mp-muted); }
.mpd .mpd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.mpd .mpd-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }

/* Laptop: odstępy wewnątrz białych bloków jak na landingach multiprojekt.pl (np. wózki AMR iRAYPLE). */
@media (min-width: 1200px) {
	.mpd .lp-section { padding: 72px 80px; }
	.mpd .hero { padding: 84px 80px; }
}

@media (max-width: 640px) {
	.mpd.lp { padding: 16px 10px 48px; } /* telefon: biały blok 10 px od krawędzi, jak multiprojekt.pl */
	.mpd .lp-section, .mpd .hero { padding: 40px 35px; } /* tekst 45 px od krawędzi ekranu */
	.mpd .hero__title { font-size: 30px; line-height: 38px; }
	.mpd .lp-h2 { font-size: 26px; line-height: 34px; }
	.mpd .fit { grid-template-columns: 1fr; }
	.mpd .fit__box { padding: 32px 24px; }
	.mpd .urgency { padding: 22px 20px; }
	.mpd .timeline__item .timeline__head::after { display: none; }
}

/* Podgląd modułów ACF – widoczny tylko dla redaktorów */
.mpd-acf-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 9999; background: #1F2124; color: #FFFFFF; border: 0; border-radius: 50px; padding: 10px 20px; font: 500 14px/20px Inter, sans-serif; cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); }
.mpd-acf-toggle[aria-pressed="true"] { background: #ECD053; color: #000000; }
.mpd-show-acf .mpd [data-acf] { position: relative; outline: 2px dashed #ECD053; outline-offset: -2px; }
.mpd-show-acf .mpd [data-acf]::before { content: attr(data-acf); position: absolute; top: 0; left: 24px; transform: translateY(-50%); background: #1F2124; color: #FFFFFF; font: 500 12px/18px Inter, sans-serif; padding: 4px 12px; border-radius: 50px; z-index: 2; }
.mpd-show-acf .mpd [data-acf]::after { content: "Pola: " attr(data-acf-fields); position: absolute; right: 16px; bottom: 12px; max-width: 60%; background: #FFFBEA; border: 1px solid #ECD053; color: #312F2F; font: 12px/16px ui-monospace, Consolas, monospace; padding: 6px 10px; border-radius: 8px; z-index: 2; }
