/**
 * Page — Prověření bytu (ROI Rating na zakázku)
 *
 * Krátká landing page pro placenou službu (10 000 Kč).
 * Wireframe verze — striktně tokeny z design systému, prefix .pb-*.
 */

:root {
	--cream-50:  #FAF7F3;
	--cream-100: #F5F2EF;
	--cream-200: #ECE4D8;
	--section-padding-block: var(--section-space-m, 6rem);
	--section-padding-x: var(--gutter, 2.4rem);
}

.page-proverka-bytu { background: var(--white); }
.page-proverka-bytu .re-section { padding-block: var(--section-padding-block); }
.page-proverka-bytu .re-container { padding-inline: var(--section-padding-x); }

/* ============================================================
   HERO (navy)
   ============================================================ */
.pb-hero {
	position: relative;
	background: var(--base);
	color: var(--white);
	overflow: hidden;
	isolation: isolate;
	padding-block: clamp(8rem, 12vw, 14rem) clamp(6rem, 9vw, 10rem);
}
.pb-hero::before {
	content: "";
	position: absolute; inset: 0; z-index: 0;
	background-image:
		radial-gradient(ellipse at 85% 15%, rgba(206, 170, 98, 0.20) 0%, transparent 55%),
		radial-gradient(ellipse at 5% 90%, rgba(53, 100, 242, 0.18) 0%, transparent 55%);
}
.pb-hero__inner {
	position: relative; z-index: 2;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: var(--space-xxl);
	align-items: center;
}
.pb-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 1rem;
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: var(--text-xs);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--secondary);
	margin-bottom: var(--space-m);
}
.pb-hero__eyebrow::before {
	content: "";
	display: inline-block;
	width: 3rem;
	height: 1px;
	background: var(--secondary);
}
.pb-hero__title {
	font-size: clamp(3.6rem, 1.8rem + 2.8vw, 6rem);
	line-height: 1.02;
	font-weight: 300;
	letter-spacing: -0.02em;
	margin: var(--space-m) 0 var(--space-l);
	text-wrap: balance;
}
.pb-hero__title em {
	font-style: normal;
	color: var(--secondary);
	font-weight: 700;
	display: block;
}
.pb-hero__title em .pb-hero__title-dot,
.pb-hero__title-dot {
	color: var(--white);
	font-weight: 800;
}
.pb-hero__lead {
	font-size: var(--text-l);
	line-height: 1.55;
	color: color-mix(in srgb, var(--white) 82%, transparent);
	max-width: 56ch;
	margin-bottom: var(--space-xl);
}
.pb-hero__lead b { color: var(--white); font-weight: 700; }

.pb-hero__price {
	display: inline-flex;
	align-items: baseline;
	gap: var(--space-m);
	background: color-mix(in srgb, var(--white) 6%, transparent);
	border: 1px solid color-mix(in srgb, var(--secondary) 40%, transparent);
	border-radius: var(--radius);
	padding: var(--space-m) var(--space-l);
	margin-bottom: var(--space-xl);
}
.pb-hero__price-num {
	font-size: clamp(2.8rem, 4vw, 3.6rem);
	font-weight: 700;
	color: var(--secondary);
	letter-spacing: -0.02em;
	line-height: 1;
}
.pb-hero__price-unit {
	font-size: var(--text-s);
	color: color-mix(in srgb, var(--white) 75%, transparent);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.pb-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-m); align-items: center; }
.pb-hero__actions .re-btn--ghost,
.pb-hero__actions a.re-btn--ghost,
.pb-hero__actions a.re-btn--ghost:visited {
	color: var(--secondary);
}
.pb-hero__actions .re-btn--ghost:hover,
.pb-hero__actions a.re-btn--ghost:hover,
.pb-hero__actions .re-btn--ghost:focus,
.pb-hero__actions a.re-btn--ghost:focus {
	color: color-mix(in srgb, var(--secondary) 75%, var(--white));
	background: transparent;
}

/* Hero card — vzorový výstup ROI Ratingu (wireframe) */
.pb-hero__card {
	background: var(--white);
	color: var(--base);
	border-radius: var(--radius);
	padding: var(--space-xl);
	box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
	display: flex;
	flex-direction: column;
	gap: var(--space-l);
}
.pb-hero__card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: var(--space-m);
	border-bottom: 1px dashed color-mix(in srgb, var(--base) 18%, transparent);
}
.pb-hero__card-label {
	font-size: var(--text-xs);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: color-mix(in srgb, var(--base) 60%, transparent);
	font-weight: 600;
}
.pb-hero__card-score {
	font-size: 4.4rem;
	font-weight: 700;
	color: var(--primary);
	line-height: 1;
	letter-spacing: -0.02em;
}
.pb-hero__card-score small {
	font-size: 1.6rem;
	font-weight: 500;
	color: color-mix(in srgb, var(--base) 50%, transparent);
}
.pb-hero__card-bars {
	display: grid;
	gap: .9rem;
}
.pb-hero__card-bars > div {
	display: grid;
	grid-template-columns: 11rem 1fr auto;
	align-items: center;
	gap: var(--space-m);
	font-size: var(--text-s);
}
.pb-hero__card-bars span { color: color-mix(in srgb, var(--base) 75%, transparent); }
.pb-hero__card-bars i {
	display: block;
	height: .8rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--base) 8%, transparent);
	position: relative;
	overflow: hidden;
}
.pb-hero__card-bars i::after {
	content: "";
	position: absolute; inset: 0;
	width: var(--w, 0%);
	background: linear-gradient(90deg, var(--primary), var(--secondary));
	border-radius: inherit;
}
.pb-hero__card-bars b {
	font-weight: 700;
	color: var(--base);
	font-variant-numeric: tabular-nums;
}
.pb-hero__card-foot {
	background: var(--cream-50);
	border-radius: calc(var(--radius) * .75);
	padding: var(--space-m) var(--space-l);
	font-size: var(--text-s);
	line-height: 1.5;
}
.pb-hero__card-foot b {
	color: var(--base);
	font-weight: 700;
	display: block;
	margin-bottom: .2rem;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.pb-sechead {
	max-width: 70ch;
	margin: 0 auto var(--space-xxl);
	text-align: center;
}
.pb-sechead p.re-text {
	margin-top: var(--space-m);
	color: color-mix(in srgb, var(--base) 72%, transparent);
}
.pb-sechead .re-h2 em {
	font-style: normal;
	color: var(--secondary);
}

/* ============================================================
   DELIVERABLES (sekce 2)
   ============================================================ */
.pb-deliverables {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-l);
}
.pb-deliverable {
	background: var(--white);
	border: 1px solid color-mix(in srgb, var(--base) 8%, transparent);
	border-radius: var(--radius);
	padding: var(--space-xl);
	display: flex;
	flex-direction: column;
	gap: var(--space-s);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.pb-deliverable:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--secondary) 40%, transparent);
	box-shadow: 0 12px 28px -16px rgba(14, 28, 57, 0.18);
}
.pb-deliverable__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 6.4rem;
	height: 6.4rem;
	margin-bottom: var(--space-s);
	color: var(--secondary);
}
.pb-deliverable__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.pb-deliverable__title {
	font-size: var(--text-l);
	font-weight: 700;
	margin: 0;
	color: var(--base);
}
.pb-deliverable__desc {
	margin: 0;
	font-size: var(--text-s);
	line-height: 1.55;
	color: color-mix(in srgb, var(--base) 75%, transparent);
}

/* ============================================================
   STEPS (sekce 3)
   ============================================================ */
.pb-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--space-l);
	counter-reset: step;
}
.pb-step {
	position: relative;
	padding: var(--space-xl) var(--space-l);
	border-top: 2px solid var(--secondary);
	background: var(--cream-50);
	border-radius: var(--radius);
}
.pb-step__num {
	font-family: monospace;
	font-size: var(--text-xs);
	letter-spacing: 0.12em;
	color: var(--secondary);
	font-weight: 700;
	display: block;
	margin-bottom: var(--space-m);
}
.pb-step__title {
	font-size: var(--text-l);
	font-weight: 700;
	margin: 0 0 var(--space-s);
	color: var(--base);
	line-height: 1.25;
}
.pb-step__desc {
	margin: 0;
	font-size: var(--text-s);
	line-height: 1.55;
	color: color-mix(in srgb, var(--base) 75%, transparent);
}

/* ============================================================
   FORMULÁŘ (sekce 4)
   ============================================================ */
.pb-form-wrap {
	display: grid;
	grid-template-columns: .85fr 1.15fr;
	gap: var(--space-xxl);
	align-items: start;
}
.pb-form-head {
	align-self: start;
}
.pb-form-head .re-h2 { margin-top: var(--space-m); }
.pb-form-head .re-h2 em { font-style: normal; color: var(--secondary); }
.pb-form-head .re-text { margin-top: var(--space-m); }

.pb-form-points {
	list-style: none;
	padding: 0;
	margin: var(--space-xl) 0 0;
	display: grid;
	gap: var(--space-s);
}
.pb-form-points li {
	display: flex;
	gap: var(--space-s);
	align-items: flex-start;
	font-size: var(--text-m);
	color: color-mix(in srgb, var(--base) 80%, transparent);
}
.pb-form-points li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: var(--primary);
	color: var(--white);
	font-size: 1.3rem;
	font-weight: 700;
}

.pb-form {
	position: relative;
	background: var(--white);
	border-radius: calc(var(--radius) * 1.4);
	padding: clamp(var(--space-l), 3.2vw, var(--space-xxl)) clamp(var(--space-l), 3.2vw, var(--space-xl));
	display: grid;
	gap: var(--space-l);
	box-shadow:
		0 1px 0 rgba(14, 28, 57, 0.04),
		0 30px 60px -30px rgba(14, 28, 57, 0.18);
	overflow: hidden;
}
.pb-form::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--secondary) 0%, color-mix(in srgb, var(--secondary) 55%, transparent) 55%, transparent 100%);
}

.pb-form .re-field,
.pb-form .re-field--select,
.pb-form .re-field--textarea { display: grid; gap: .8rem; }

.pb-form label {
	font-size: clamp(1.5rem, calc(0.208vw + 1.433rem), 1.7rem);
	font-weight: 600;
	color: var(--base);
	letter-spacing: 0;
	text-transform: none;
}
.pb-form label span[aria-hidden] { color: var(--secondary); margin-left: .2rem; }

.pb-form input,
.pb-form select,
.pb-form textarea {
	width: 100%;
	background: var(--white);
	border: 1px solid var(--border-color-dark, rgba(14, 28, 57, 0.15));
	border-radius: var(--radius);
	color: var(--base);
	padding: 1.4rem 1.6rem;
	font: inherit;
	font-size: var(--text-m);
	transition: var(--transition, border-color .2s ease, box-shadow .2s ease);
}
.pb-form input::placeholder,
.pb-form textarea::placeholder {
	color: color-mix(in srgb, var(--base) 45%, transparent);
}
.pb-form input:focus,
.pb-form select:focus,
.pb-form textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}
.pb-form textarea { min-height: 12rem; resize: vertical; }
.pb-form select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1C39' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 1.6rem center;
	background-size: 1.6rem;
	padding-right: 4.4rem;
}

.pb-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-m);
}
.pb-form__hint {
	display: block;
	margin-top: .4rem;
	font-size: var(--text-xs);
	color: color-mix(in srgb, var(--base) 60%, transparent);
	line-height: 1.5;
}

.pb-form__check {
	display: flex;
	gap: 1.1rem;
	align-items: flex-start;
	font-size: var(--text-s);
	line-height: 1.5;
	color: color-mix(in srgb, var(--base) 75%, transparent);
	padding: 1.4rem 1.6rem;
	background: color-mix(in srgb, var(--secondary) 8%, transparent);
	border-radius: calc(var(--radius) * 0.8);
}
.pb-form__check input {
	width: auto;
	flex-shrink: 0;
	margin-top: .3rem;
	accent-color: var(--secondary);
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
}
.pb-form__check input:focus {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
	box-shadow: none;
}
.pb-form__check a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.pb-form__submit {
	display: flex;
	flex-direction: column;
	gap: var(--space-s);
	align-items: flex-start;
	margin-top: var(--space-s);
}
.pb-form__note {
	margin: 0;
	font-size: var(--text-xs);
	color: color-mix(in srgb, var(--base) 55%, transparent);
	line-height: 1.5;
}

/* ============================================================
   FAQ (sekce 5)
   ============================================================ */
.pb-faqs {
	max-width: 80ch;
	margin: 0 auto;
	display: grid;
	gap: var(--space-s);
}
.pb-faq {
	background: var(--white);
	border: 1px solid color-mix(in srgb, var(--base) 10%, transparent);
	border-radius: var(--radius);
	overflow: hidden;
}
.pb-faq[open] { border-color: color-mix(in srgb, var(--secondary) 40%, transparent); }
.pb-faq__q {
	cursor: pointer;
	padding: var(--space-l) var(--space-xl);
	font-size: var(--text-m);
	font-weight: 600;
	color: var(--base);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--space-m);
	list-style: none;
}
.pb-faq__q::-webkit-details-marker { display: none; }
.pb-faq__icon {
	flex-shrink: 0;
	width: 2.8rem;
	height: 2.8rem;
	border-radius: 50%;
	background: var(--cream-100);
	color: var(--base);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8rem;
	font-weight: 300;
	line-height: 1;
	transition: transform .25s ease, background .25s ease, color .25s ease;
}
.pb-faq[open] .pb-faq__icon {
	transform: rotate(45deg);
	background: var(--secondary);
	color: var(--white);
}
.pb-faq__a {
	padding: 0 var(--space-xl) var(--space-l);
	font-size: var(--text-m);
	line-height: 1.6;
	color: color-mix(in srgb, var(--base) 78%, transparent);
}

.pb-foot {
	text-align: center;
	margin-top: var(--space-xl);
	font-size: var(--text-m);
	color: color-mix(in srgb, var(--base) 65%, transparent);
}
.pb-foot a {
	color: var(--primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
	.pb-hero__inner { grid-template-columns: 1fr; }
	.pb-hero__card { max-width: 56rem; }
	.pb-deliverables { grid-template-columns: repeat(2, 1fr); }
	.pb-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.pb-form-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.pb-deliverables { grid-template-columns: 1fr; }
	.pb-steps { grid-template-columns: 1fr; }
	.pb-form__row { grid-template-columns: 1fr; }
	.pb-hero__card-bars > div { grid-template-columns: 9rem 1fr auto; }
	.pb-hero__price { width: 100%; flex-wrap: wrap; }
}
