/* =========================================================
   PM Reklamy — strona /reklama
   Mobile first. Kolory z motywu z wartościami zapasowymi.
   ========================================================= */
.pmr {
	--pmr-navy: var(--pm-navy, #12395c);
	--pmr-navy-deep: var(--pm-navy-deep, #0c2a45);
	--pmr-lake: var(--pm-lake, #1f7a8c);
	--pmr-reed: var(--pm-reed, #2f8f5b);
	--pmr-reed-dark: #24724a;
	--pmr-alert: var(--pm-alert, #c8402f);
	--pmr-ink: var(--pm-ink, #1c2430);
	--pmr-muted: var(--pm-muted, #5b6673);
	--pmr-line: var(--pm-line, #dfe3e8);
	--pmr-paper: var(--pm-paper, #fbfaf7);
	--pmr-soft: #eef2f5;
	--pmr-mock: #e4e9ee;
	--pmr-radius: 12px;

	background: var(--pmr-paper);
	color: var(--pmr-ink);
	line-height: 1.55;
	padding-bottom: 56px;
}
.pmr *,
.pmr *::before,
.pmr *::after { box-sizing: border-box; }

.pmr-wrap {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding-left: 16px;
	padding-right: 16px;
}

.pmr a { color: var(--pmr-navy); }

.pmr-label {
	margin: 28px 0 12px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pmr-muted);
}

/* ---------- Przyciski ---------- */
.pmr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: 8px;
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, transform .15s;
}
.pmr .pmr-btn--green { background: var(--pmr-reed); color: #fff; }
.pmr .pmr-btn--green:hover { background: var(--pmr-reed-dark); color: #fff; }
.pmr .pmr-btn--navy { background: var(--pmr-navy); color: #fff; }
.pmr .pmr-btn--light { background: #fff; color: var(--pmr-navy); }
.pmr .pmr-btn--light:hover { background: #e9f1f7; }
.pmr-btn--block { width: 100%; }
.pmr-btn:focus-visible { outline: 3px solid var(--pmr-lake); outline-offset: 2px; }

/* ---------- Pas tytułowy ---------- */
.pmr-hero { background: var(--pmr-navy-deep); color: #fff; }
.pmr-hero .pmr-hero__inner {
	padding-top: 34px;
	padding-bottom: 40px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}
.pmr-hero__kicker { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7fc4a0; }
.pmr-hero__title { margin: 0; font-size: 31px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: #fff; max-width: 15em; }
.pmr-hero__lead { margin: 0; max-width: 620px; font-size: 16px; color: #c9d6e2; }
.pmr-hero__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; padding: 0; list-style: none; }
.pmr-hero__facts li { padding: 7px 14px; background: var(--pmr-navy); border-radius: 999px; font-size: 14px; }
.pmr-hero__facts strong { font-size: 15px; }

/* ---------- Komunikat po wysyłce ---------- */
.pmr-done {
	margin: 24px 0 0;
	padding: 22px;
	border-radius: var(--pmr-radius);
	background: #e3f0ea;
	color: #24432f;
}
.pmr-done__title { margin: 0 0 6px; font-size: 22px; color: #1f6b44; }
.pmr-done p { margin: 0 0 14px; }

/* ---------- Kroki ---------- */
.pmr-step { margin-top: 30px; }
.pmr-step__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.pmr-step__no {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--pmr-navy);
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 800;
}
.pmr-step__title { margin: 2px 0 0; font-size: 22px; line-height: 1.2; font-weight: 800; color: var(--pmr-navy); }
.pmr-step__lead { margin: 2px 0 0; color: var(--pmr-muted); }

/* ---------- Makieta ---------- */
.pmr-pick { display: flex; flex-direction: column; gap: 16px; }

.pmr-tabs { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; }
.pmr-tab {
	flex: none;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--pmr-line);
	border-radius: 999px;
	background: #fff;
	color: var(--pmr-navy);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}
.pmr-tab.is-active { background: var(--pmr-navy); border-color: var(--pmr-navy); color: #fff; }

.pmr-page-mock {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--pmr-line);
	border-radius: var(--pmr-radius);
	box-shadow: 0 10px 30px rgba(12, 42, 69, .08);
}
.pmr-view { display: flex; flex-direction: column; gap: 8px; }
.pmr-view[hidden] { display: none; }

/* Szare klocki udające treść portalu */
.pmr-m-top { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 10px; border-radius: 6px; background: var(--pmr-navy); }
.pmr-m-logo { width: 90px; height: 10px; border-radius: 3px; background: rgba(255, 255, 255, .8); }
.pmr-m-menu { width: 120px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .35); }
.pmr-m-hero { height: 86px; border-radius: 6px; background: var(--pmr-mock); display: flex; align-items: flex-end; padding: 8px 10px; }
.pmr-m-hero span,
.pmr-m-row span,
.pmr-m-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8794a1; }
.pmr-m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pmr-m-grid span { height: 44px; border-radius: 5px; background: var(--pmr-mock); }
.pmr-m-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pmr-m-row span { height: 40px; border-radius: 5px; background: var(--pmr-mock); padding: 6px 8px; }
.pmr-m-cols { display: grid; grid-template-columns: 1fr; gap: 8px; }
.pmr-m-article { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pmr-m-side { display: flex; flex-direction: column; gap: 8px; }
.pmr-m-title { height: 16px; width: 80%; border-radius: 4px; background: #c9d2db; }
.pmr-m-photo { height: 70px; border-radius: 5px; background: var(--pmr-mock); }
.pmr-m-lines { height: 44px; border-radius: 4px; background: repeating-linear-gradient(to bottom, var(--pmr-mock) 0 6px, transparent 6px 11px); }
.pmr-m-box { height: 60px; border-radius: 5px; background: var(--pmr-mock); }
.pmr-m-job { height: 34px; border-radius: 5px; background: var(--pmr-mock); }
.pmr-m-obits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pmr-m-obits span { height: 44px; border: 2px solid #c9d2db; border-radius: 3px; background: #fff; }
.pmr-m-foot { height: 30px; border-radius: 6px; background: var(--pmr-navy-deep); }

/* Klikalne miejsca reklamowe */
.pmr-spot {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	min-height: 54px;
	padding: 8px 10px;
	border: 2px dashed #7fb3c0;
	border-radius: 6px;
	background: #e6f2f5;
	color: var(--pmr-navy);
	font: inherit;
	text-align: center;
	cursor: pointer;
	transition: background .15s, border-color .15s, transform .15s;
}
.pmr-spot:hover { background: #d3e9ef; border-color: var(--pmr-lake); }
.pmr-spot:focus-visible { outline: 3px solid var(--pmr-lake); outline-offset: 2px; }
.pmr-spot__name { font-size: 13px; font-weight: 800; line-height: 1.25; }
.pmr-spot__price { font-size: 12.5px; color: #3b5568; }
.pmr-spot.is-selected { border-style: solid; border-color: var(--pmr-reed); background: var(--pmr-reed); color: #fff; }
.pmr-spot.is-selected .pmr-spot__price { color: #e3f5ea; }
.pmr-spot--tall { min-height: 120px; }
.pmr-spot--thin { min-height: 44px; }

/* Opis wybranego miejsca */
.pmr-detail {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--pmr-line);
	border-radius: var(--pmr-radius);
}
.pmr-detail__badge {
	align-self: flex-start;
	margin: 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: #fff4d6;
	color: #7a5600;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.pmr-detail__badge[hidden] { display: none; }
.pmr-detail__name { margin: 0; font-size: 21px; line-height: 1.2; font-weight: 800; color: var(--pmr-navy); }
.pmr-detail__where { margin: 0; color: #37434f; }
.pmr-detail__facts { margin: 4px 0; }
.pmr-detail__facts div { display: flex; flex-direction: column; padding: 6px 0; border-top: 1px solid #ebeef1; }
.pmr-detail__facts dt { font-size: 12.5px; color: var(--pmr-muted); }
.pmr-detail__facts dd { margin: 0; font-weight: 600; }
.pmr-detail__price { margin: 4px 0 6px; font-size: 15px; color: var(--pmr-muted); }
.pmr-detail__price strong { font-size: 30px; color: #1f6b44; letter-spacing: -.01em; }

/* ---------- Cennik ---------- */
.pmr-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pmr-price {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding: 14px;
	border: 1px solid var(--pmr-line);
	border-radius: 10px;
	background: #fff;
	color: var(--pmr-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.pmr-price:hover { border-color: #b9c6d2; box-shadow: 0 4px 14px rgba(18, 57, 92, .07); }
.pmr-price:focus-visible { outline: 3px solid var(--pmr-lake); outline-offset: 2px; }
.pmr-price.is-selected { border: 2px solid var(--pmr-reed); padding: 13px; }
.pmr-price__badge { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #7a5600; }
.pmr-price__name { font-size: 14.5px; font-weight: 800; line-height: 1.3; color: var(--pmr-navy); }
.pmr-price__size { font-size: 12.5px; color: var(--pmr-muted); }
.pmr-price__value { margin-top: 4px; font-size: 20px; font-weight: 800; color: #1f6b44; }

.pmr-discounts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 0; color: var(--pmr-muted); }
.pmr-discounts span { padding: 3px 10px; border-radius: 999px; background: #e3f0ea; color: #24432f; font-size: 14px; }

/* ---------- Formularz ---------- */
.pmr-order { margin-top: 10px; scroll-margin-top: 20px; }
.pmr-order__cols { display: flex; flex-direction: column; gap: 20px; }
.pmr-order__main { min-width: 0; }

.pmr-alert {
	margin-top: 24px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #fbecea;
	color: #8e2d1f;
}
.pmr-alert:focus { outline: 2px solid var(--pmr-alert); outline-offset: 2px; }

.pmr-periods { margin: 0 0 14px; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pmr-periods legend { margin-bottom: 8px; font-weight: 700; }
.pmr-period { position: relative; }
.pmr-period input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pmr-period__box {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 92px;
	min-height: 54px;
	justify-content: center;
	padding: 6px 12px;
	border: 1px solid var(--pmr-line);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
}
.pmr-period__box strong { font-size: 14.5px; }
.pmr-period__box em { font-style: normal; font-size: 13px; font-weight: 800; color: #1f6b44; }
.pmr-period input:checked + .pmr-period__box { border: 2px solid var(--pmr-reed); background: #f1f8f4; }
.pmr-period input:focus-visible + .pmr-period__box { outline: 3px solid var(--pmr-lake); outline-offset: 2px; }

.pmr-row { display: flex; flex-direction: column; gap: 8px; }
.pmr-avail { font-size: 14.5px; font-weight: 600; }
.pmr-avail.is-busy { color: var(--pmr-muted); }
.pmr-avail.is-free { color: #1f6b44; }
.pmr-avail.is-taken { color: #8e2d1f; }
.pmr-avail__use {
	padding: 2px 8px;
	border: 1px solid currentColor;
	border-radius: 6px;
	background: #fff;
	color: var(--pmr-navy);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.pmr-f { margin: 0 0 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pmr-f label { font-weight: 700; font-size: 14.5px; }
.pmr-f input,
.pmr-f textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #c4ced8;
	border-radius: 8px;
	background: #fff;
	color: var(--pmr-ink);
	font: inherit;
	font-size: 16px;
}
.pmr-f textarea { min-height: 90px; resize: vertical; }
.pmr-f input:focus,
.pmr-f textarea:focus { border-color: var(--pmr-lake); outline: 2px solid rgba(31, 122, 140, .2); }
.pmr-f__hint { font-size: 13px; color: var(--pmr-muted); }
.pmr-f__err { font-size: 13.5px; font-weight: 700; color: #b0321f; }
.pmr-f__err:empty { display: none; }
.has-error input,
.has-error textarea,
.has-error .pmr-drop { border-color: #c8402f; background: #fff8f7; }
.pmr-periods.has-error .pmr-period__box { border-color: #c8402f; }

.pmr-grid2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }

/* Wgrywanie banera */
.pmr-upload { position: relative; }
.pmr-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 22px 16px;
	border: 2px dashed #9fb3c4;
	border-radius: 10px;
	background: #f6f9fb;
	text-align: center;
	cursor: pointer;
}
.pmr-drop__title { font-size: 16px; font-weight: 800; color: var(--pmr-navy); }
.pmr-drop__hint { font-size: 13.5px; color: var(--pmr-muted); font-weight: 400; }
.pmr-upload input[type="file"] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.pmr-upload input[type="file"]:focus-visible + .pmr-drop { outline: 3px solid #1f7a8c; outline-offset: 2px; }
.pmr-drop:hover { border-color: #1f7a8c; background: #eef6f8; }
.pmr-upload.has-error .pmr-drop { border-color: #b0321f; background: #fdf3f1; }
.pmr-preview { margin: 6px 0 0; padding: 10px; border: 1px solid var(--pmr-line); border-radius: 10px; background: #fff; }
.pmr-preview[hidden] { display: none; }
.pmr-preview img { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.pmr-preview figcaption { margin-top: 8px; font-size: 13.5px; font-weight: 700; }
.pmr-preview .is-ok { color: #1f6b44; }
.pmr-preview .is-bad { color: #b0321f; }

.pmr-check { margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
.pmr-check label { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.pmr-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.pmr-check.has-error label { color: #8e2d1f; }

.pmr-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Podsumowanie */
.pmr-sum {
	padding: 20px;
	background: #fff;
	border: 1px solid var(--pmr-line);
	border-radius: var(--pmr-radius);
	box-shadow: 0 10px 30px rgba(12, 42, 69, .08);
}
.pmr-sum__title { margin: 0 0 10px; font-size: 18px; font-weight: 800; color: var(--pmr-navy); }
.pmr-sum__rows { margin: 0; }
.pmr-sum__rows div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #ebeef1; font-size: 14.5px; }
.pmr-sum__rows div[hidden] { display: none; }
.pmr-sum__rows dt { color: var(--pmr-muted); }
.pmr-sum__rows dd { margin: 0; font-weight: 700; text-align: right; }
.pmr-sum__save dd { color: #1f6b44; }
.pmr-sum__total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 14px; }
.pmr-sum__total span { font-weight: 700; }
.pmr-sum__total strong { font-size: 26px; color: #1f6b44; letter-spacing: -.01em; }
.pmr-sum__note { margin: 10px 0 0; font-size: 13px; color: var(--pmr-muted); }

/* Jak to działa */
.pmr-how { margin-top: 34px; }
.pmr-how__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr; gap: 10px; counter-reset: krok; }
.pmr-how__list li {
	counter-increment: krok;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 16px 16px 56px;
	position: relative;
	background: #fff;
	border: 1px solid var(--pmr-line);
	border-radius: 10px;
}
.pmr-how__list li::before {
	content: counter(krok);
	position: absolute;
	left: 16px;
	top: 16px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--pmr-soft);
	color: var(--pmr-navy);
	display: grid;
	place-items: center;
	font-weight: 800;
}
.pmr-how__list strong { color: var(--pmr-navy); }
.pmr-how__list span { font-size: 14.5px; color: #37434f; }
.pmr-how__more { margin: 14px 0 0; color: var(--pmr-muted); }

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 640px) {
	.pmr-wrap { padding-left: 24px; padding-right: 24px; }
	.pmr-hero__title { font-size: 40px; }
	.pmr-prices { grid-template-columns: repeat(3, 1fr); }
	.pmr-grid2 { grid-template-columns: 1fr 1fr; }
	.pmr-grid2--tight { grid-template-columns: 130px 1fr; }
	.pmr-m-cols { grid-template-columns: minmax(0, 1fr) 34%; }
	.pmr-how__list { grid-template-columns: 1fr 1fr; }
	.pmr-row { flex-direction: row; align-items: flex-end; gap: 16px; }
	.pmr-row .pmr-f { flex: 0 0 220px; }
	.pmr-row .pmr-avail { padding-bottom: 26px; }
}

/* =========================================================
   Komputer
   ========================================================= */
@media (min-width: 980px) {
	.pmr-wrap { padding-left: 32px; padding-right: 32px; }
	.pmr-hero .pmr-hero__inner { padding-top: 50px; padding-bottom: 54px; }
	.pmr-hero__title { font-size: 48px; }
	.pmr-hero__lead { font-size: 18px; }

	.pmr-pick { flex-direction: row; align-items: flex-start; gap: 24px; }
	.pmr-mock { flex: 1 1 auto; min-width: 0; }
	.pmr-detail { flex: 0 0 340px; position: sticky; top: 20px; }
	.pmr-prices { grid-template-columns: repeat(5, 1fr); }

	.pmr-order__cols { flex-direction: row; align-items: flex-start; gap: 28px; }
	.pmr-order__main { flex: 1 1 auto; }
	.pmr-sum { flex: 0 0 330px; position: sticky; top: 20px; margin-top: 30px; }

	.pmr-how__list { grid-template-columns: repeat(4, 1fr); }
}
