/* ===========================================================
	AXORIA / Modular House Configurator — v1.5 compact studio
   =========================================================== */
.mhc-app {
	--ink: #0f0f12;
	--ink-2: #565a63;
	--muted: #9b9ea7;
	--line: #ececea;
	--line-2: #f3f3f0;
	--bg: #f5f5f2;
	--card: #ffffff;
	--accent: #0f0f12;
	--ok: #16a34a;
	--r: 16px;
	--r-sm: 12px;
	--r-xs: 9px;
	--sh: 0 18px 44px -26px rgba(15,15,18,.32);
	--sh-sm: 0 8px 24px -16px rgba(15,15,18,.26);
	--ff: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ink);
	font-family: var(--ff);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.mhc-app *, .mhc-modal *, .mhc-lightbox * { box-sizing: border-box; }
.mhc-app button { font-family: inherit; }
.mhc-empty { color: var(--muted); padding: 48px; text-align: center; }
.mhc-view[hidden] { display: none !important; }

/* ---------- SHELL ---------- */
.mhc-shell {
	display: grid;
	grid-template-columns: 248px 1fr;
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: clip;
	align-items: start;
	box-shadow: var(--sh);
}

/* ===========================================================
   RAIL
   =========================================================== */
.mhc-rail { background: var(--card); border-right: 1px solid var(--line); padding: 22px 18px 18px; display: flex; flex-direction: column; position: sticky; top: var(--mhc-rail-top, 16px); align-self: start; max-height: calc(100vh - 24px); overflow-y: auto; scrollbar-width: thin; }
.mhc-rail.is-stuck { position: fixed; top: 16px; align-self: auto; z-index: 50; max-height: calc(100vh - 24px); }
.mhc-rail.is-stuck-bottom { align-self: end; }
.mhc-rail::-webkit-scrollbar { width: 6px; }
.mhc-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.mhc-brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 22px; }
.mhc-brand-logo { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; color: var(--ink); }
.mhc-brand-logo svg { width: 24px; height: 24px; }
.mhc-rail-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--ink); }
.mhc-rail-sub { font-size: 12.5px; color: var(--muted); margin: 3px 0 18px; }
.mhc-rail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; }
.mhc-rail-step { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 11px; cursor: pointer; transition: background .15s; }
.mhc-rail-step:hover { background: #f6f6f3; }
.mhc-rail-step.is-active { background: var(--ink); }
.mhc-rail-step.is-locked { cursor: default; opacity: .45; }
.mhc-rail-step.is-locked:hover { background: transparent; }
.mhc-rail-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); display: grid; place-items: center; font-size: 11.5px; font-weight: 700; transition: .15s; }
.mhc-rail-step.is-active .mhc-rail-num { background: #fff; color: var(--ink); border-color: #fff; }
.mhc-rail-step.is-done .mhc-rail-num { background: var(--ink); color: #fff; border-color: var(--ink); }
.mhc-rail-step.is-done .mhc-rail-num svg { width: 13px; height: 13px; }
.mhc-rail-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mhc-rail-tt { font-size: 13.5px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.mhc-rail-ds { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.mhc-rail-step.is-active .mhc-rail-tt { color: #fff; }
.mhc-rail-step.is-active .mhc-rail-ds { color: rgba(255,255,255,.55); }
.mhc-rail-chevron { color: var(--muted); font-size: 13px; margin-left: auto; flex-shrink: 0; }
.mhc-rail-step.is-active .mhc-rail-chevron { display: none; }

.mhc-advisor { margin-top: 16px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; display: flex; align-items: center; gap: 10px; background: #fcfcfb; }
.mhc-advisor-photo { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; background: var(--line-2) center/cover no-repeat; }
.mhc-advisor-body { min-width: 0; flex: 1; }
.mhc-advisor-title { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.mhc-advisor-sub { font-size: 11.5px; color: var(--muted); }
.mhc-advisor-btn { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--ink); padding-bottom: 1px; }

/* ===========================================================
   MAIN
   =========================================================== */
.mhc-main { padding: 26px 30px 30px; min-width: 0; }
.mhc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.mhc-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.mhc-h2 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 800; margin: 5px 0 0; letter-spacing: -.02em; line-height: 1.12; }
.mhc-lead, .mhc-sub { color: var(--ink-2); margin: 6px 0 0; max-width: 54ch; font-size: 14px; }

.mhc-help { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 10px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.mhc-help:hover { border-color: var(--ink); box-shadow: var(--sh-sm); }
.mhc-help-q { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 800; }

/* ---------- SELECT (krok 1) ---------- */
.mhc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(204px, 1fr)); gap: 16px; }
.mhc-house { position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .15s; }
.mhc-house:hover { box-shadow: var(--sh-sm); transform: translateY(-3px); border-color: #dad9d4; }
.mhc-house.is-active { border-color: var(--ink); border-width: 2px; box-shadow: 0 0 0 4px rgba(15,15,18,.06); }
.mhc-house-img { width: 100%; aspect-ratio: 4/3; background: var(--line-2) center/cover no-repeat; }
.mhc-house-b { padding: 13px 15px 16px; display: flex; flex-direction: column; gap: 2px; }
.mhc-house-t { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.mhc-house-m { color: var(--muted); font-size: 13px; }
.mhc-house-p { font-weight: 800; font-size: 15.5px; margin-top: 8px; }
.mhc-from { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.mhc-house-check { position: absolute; top: 11px; right: 11px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.5); transition: .18s; }
.mhc-house-check svg { width: 15px; height: 15px; }
.mhc-house.is-active .mhc-house-check { opacity: 1; transform: scale(1); }

.mhc-usp { list-style: none; margin: 24px 0 0; padding: 20px 2px 2px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mhc-usp li { display: flex; align-items: flex-start; gap: 11px; }
.mhc-usp-i { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.mhc-usp-i svg { width: 19px; height: 19px; }
.mhc-usp-x { display: flex; flex-direction: column; min-width: 0; }
.mhc-usp-tt { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.mhc-usp-ds { display: block; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.mhc-foot { margin-top: 22px; display: flex; }

/* ===========================================================
   PREVIEW (zdieľaný)
   =========================================================== */
.mhc-preview { position: relative; width: 100%; min-width: 0; }
.mhc-pv-main { position: relative; width: 100%; height: clamp(240px, 28vw, 360px); overflow: hidden; border-radius: var(--r); background: var(--line-2) center/cover no-repeat; border: 1px solid var(--line); }
.mhc-toggle { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; gap: 3px; padding: 4px; background: rgba(255,255,255,.94); border-radius: 999px; box-shadow: var(--sh-sm); }
.mhc-toggle button { border: 0; background: transparent; cursor: pointer; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; }
.mhc-toggle button svg { width: 13px; height: 13px; }
.mhc-toggle button.is-active { background: var(--ink); color: #fff; }
.mhc-pv-expand { position: absolute; top: 12px; right: 12px; z-index: 3; width: 36px; height: 36px; border: 0; cursor: pointer; background: rgba(255,255,255,.94); border-radius: 10px; box-shadow: var(--sh-sm); display: grid; place-items: center; color: var(--ink); }
.mhc-pv-expand svg { width: 17px; height: 17px; }
.mhc-floor { position: absolute; inset: 0; display: none; place-items: center; background: #fafafa center/contain no-repeat; color: var(--muted); font-size: 13px; text-align: center; padding: 22px; }
.mhc-preview.is-floor .mhc-floor { display: grid; }
.mhc-preview.is-floor .mhc-pv-main { background-image: none !important; }
.mhc-thumbs { display: block; margin-top: 10px; }
.mhc-thumbs-tr { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.mhc-thumb { width: 100%; height: 54px; border-radius: 9px; cursor: pointer; background: #fff center/cover no-repeat; border: 2px solid transparent; transition: border-color .15s; }
.mhc-thumb.is-active { border-color: var(--ink); }

/* ===========================================================
   CONFIG (kroky 2–5) — kompaktný dvojstĺpec
   =========================================================== */
.mhc-cols { display: grid; grid-template-columns: minmax(320px, 50%) minmax(0, 1fr); gap: 22px; align-items: start; }
.mhc-cols-left { position: sticky; top: 16px; min-width: 0; }
.mhc-cols-right { min-width: 0; display: flex; flex-direction: column; }

.mhc-group { margin-bottom: 20px; }
.mhc-group:last-child { margin-bottom: 0; }
.mhc-group-t { font-size: 14px; font-weight: 800; margin: 0 0 11px; display: flex; align-items: center; gap: 6px; letter-spacing: -.01em; }
.mhc-group-req { color: var(--ink); }
.mhc-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; }
.mhc-opt { position: relative; display: flex; flex-direction: column; gap: 9px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 12px; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s, transform .12s; }
.mhc-opt:hover { border-color: #cfcec8; transform: translateY(-2px); box-shadow: var(--sh-sm); }
.mhc-opt.is-selected { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15,15,18,.06); }
.mhc-opt.is-disabled { opacity: .4; pointer-events: none; }
.mhc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.mhc-opt-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mhc-swatch { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; border: 1px solid rgba(0,0,0,.08); background: var(--line-2) center/cover no-repeat; }
.mhc-opt-name { font-weight: 700; font-size: 13.5px; line-height: 1.2; min-width: 0; }
.mhc-opt-bot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; gap: 8px; padding: 0 12px 6px; }
.mhc-opt-price { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.mhc-opt-price.is-free { color: var(--muted); font-weight: 600; }
.mhc-i { display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; height: 22px; min-height: 0; line-height: 1; border: 0; border-radius: 5px; background: var(--ink); color: #fff; cursor: pointer; font: 700 10px/1 inherit; text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; transition: background .15s, color .15s; }
.mhc-i svg { width: 11px; height: 11px; }
.mhc-i:hover { background: #000; }
.mhc-tick { position: absolute; top: 8px; right: 8px; left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: none; place-items: center; box-shadow: 0 4px 10px -2px rgba(15,15,18,.4); z-index: 2; }
.mhc-tick svg { width: 13px; height: 13px; }
.mhc-opt.is-selected .mhc-tick { display: grid; }
.mhc-opt.is-selected { background: linear-gradient(180deg, rgba(15,15,18,.04), #fff 60%); }
.mhc-none { color: var(--muted); padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13.5px; }

.mhc-nav { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.mhc-nav-price { margin-right: auto; display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.mhc-nav-price span { font-size: 11px; color: var(--muted); font-weight: 600; }
.mhc-nav-price b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }

/* ===========================================================
   SUMMARY (krok 6) — preview + karta
   =========================================================== */
.mhc-sum { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 24px; align-items: start; }
.mhc-sum > div { min-width: 0; }
.mhc-card { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 22px; box-shadow: var(--sh-sm); min-width: 0; }
.mhc-card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mhc-card-h h3 { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mhc-recap { list-style: none; margin: 0; padding: 0; }
.mhc-recap li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.mhc-recap li:last-child { border-bottom: 0; }
.mhc-recap li span:first-child { color: var(--muted); flex-shrink: 0; }
.mhc-recap li b { font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.mhc-prices { margin: 14px 0 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.mhc-pr { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; color: var(--ink-2); }
.mhc-pr-total { margin-top: 9px; padding-top: 13px; border-top: 1px solid var(--line); align-items: baseline; }
.mhc-pr-total span { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.mhc-pr-total b { font-size: 25px; font-weight: 800; letter-spacing: -.02em; }
.mhc-card-act { display: flex; flex-direction: column; gap: 10px; }
.mhc-card-note { font-size: 11.5px; color: var(--ink-2); margin: 16px 0 0; display: flex; gap: 8px; align-items: flex-start; }
.mhc-card-note b { display: block; color: var(--ink); font-weight: 700; }
.mhc-shield { color: var(--ink); flex-shrink: 0; margin-top: 1px; }
.mhc-shield svg { width: 15px; height: 15px; }

/* ---------- tlačidlá ---------- */
.mhc-btn { border: 0; border-radius: var(--r-sm); padding: 13px 20px; font-size: 14px; font-weight: 700; cursor: pointer; transition: .15s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; line-height: 1; }
.mhc-btn svg { width: 16px; height: 16px; }
.mhc-btn-pri { background: var(--ink); color: #fff; }
.mhc-btn-pri:hover { background: #000; }
.mhc-btn-out { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.mhc-btn-out:hover { border-color: var(--ink); }
.mhc-btn-ghost { background: transparent; color: var(--ink-2); border: 1.5px solid var(--line); }
.mhc-btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.mhc-btn-block { width: 100%; }
.mhc-btn-lg { padding: 14px 26px; }
.mhc-btn:disabled { opacity: .5; cursor: default; }
.mhc-link { background: none; border: 0; color: var(--ink); cursor: pointer; font-size: 12.5px; font-weight: 700; border-bottom: 1.5px solid transparent; padding: 0; }
.mhc-link:hover { border-color: var(--ink); }

/* ===========================================================
   MODÁL — robustný (flex centrovanie, žiadny backdrop-filter)
   =========================================================== */
.mhc-modal { position: fixed; inset: 0; z-index: 2147483640; display: flex; align-items: center; justify-content: center; padding: 18px; }
.mhc-modal[hidden] { display: none !important; }
.mhc-modal-bd { position: absolute; inset: 0; background: rgba(12,12,14,.62); cursor: pointer; }
.mhc-modal-box { position: relative; z-index: 1; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: #fff; border-radius: var(--r); box-shadow: 0 40px 100px -28px rgba(0,0,0,.55); pointer-events: auto; animation: mhc-pop .2s ease; }
@keyframes mhc-pop { from { transform: translateY(8px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.mhc-modal-x { position: absolute; top: 13px; right: 13px; z-index: 4; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f3f3f0; font-size: 21px; cursor: pointer; line-height: 1; color: var(--ink); }
.mhc-modal-x:hover { background: var(--ink); color: #fff; }
.mhc-modal-media { width: 100%; aspect-ratio: 16/10; background: var(--line-2) center/cover no-repeat; }
.mhc-modal-media.is-empty { display: none; }
.mhc-modal-b { padding: 22px 24px 26px; }
.mhc-modal-b h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.mhc-modal-price { font-weight: 800; margin: 0 0 12px; font-size: 15px; }
.mhc-modal-desc { color: var(--ink-2); margin: 0 0 18px; font-size: 14px; }

.mhc-how { list-style: none; margin: 2px 0 20px; padding: 0; }
.mhc-how li { display: flex; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.mhc-how li:last-child { border-bottom: 0; }
.mhc-how-n { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; }
.mhc-how-t { font-weight: 700; font-size: 14px; }
.mhc-how-d { font-size: 13px; color: var(--ink-2); }

.mhc-fg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2px 0 16px; }
.mhc-f { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.mhc-f-full { grid-column: 1 / -1; }
.mhc-f input, .mhc-f select, .mhc-f textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; font-weight: 500; color: var(--ink); background: #fff; }
.mhc-f input:focus, .mhc-f select:focus, .mhc-f textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15,15,18,.07); }
.mhc-gdpr { flex-direction: row; align-items: flex-start; gap: 9px; font-weight: 500; color: var(--ink-2); }
.mhc-gdpr input { width: auto; margin-top: 3px; }
.mhc-err { background: #fdecec; color: #9b1c1c; border-radius: 10px; padding: 11px 13px; font-size: 13.5px; margin-bottom: 13px; }
.mhc-ok { text-align: center; padding: 24px 6px; }
.mhc-ok-i { width: 54px; height: 54px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 13px; }
.mhc-ok-i svg { width: 26px; height: 26px; }
.mhc-ok h3 { margin: 0 0 7px; }
.mhc-ok p { color: var(--ink-2); margin: 0 0 16px; }
.mhc-fr { background: #f6f6f3; border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mhc-fr span { font-size: 12.5px; color: var(--muted); }
.mhc-fr b { font-size: 17px; font-weight: 800; }

/* ===========================================================
   MODAL-MODE
   =========================================================== */
.mhc-launch { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; border: 0; cursor: pointer; border-radius: var(--r-sm); padding: 14px 24px; font-size: 14px; font-weight: 700; font-family: var(--ff); }
.mhc-launch:hover { background: #000; }
.mhc-launch svg { width: 17px; height: 17px; }
.mhc-overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 22px; }
.mhc-overlay[hidden] { display: none !important; }
.mhc-overlay-bd { position: absolute; inset: 0; background: rgba(12,12,14,.6); cursor: pointer; }
.mhc-overlay-fr { position: relative; z-index: 1; width: min(1060px, 100%); height: 94vh; max-height: 94vh; overflow: hidden; background: #0b0b0d; border-radius: var(--r); box-shadow: 0 50px 120px -30px rgba(0,0,0,.6); }
.mhc-overlay-fr .mhc-shell { height: 100%; min-height: 0; border-radius: var(--r); border: 0; box-shadow: none; background: transparent; }
.mhc-overlay-fr .mhc-main { height: 100%; overflow-y: auto; }
.mhc-overlay-x { position: absolute; top: 14px; right: 14px; z-index: 20; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); font-size: 21px; cursor: pointer; color: var(--ink); box-shadow: var(--sh-sm); }
body.mhc-noscroll { overflow: hidden; }

.mhc-lightbox { position: fixed; inset: 0; z-index: 2147483645; display: flex; align-items: center; justify-content: center; padding: 28px; background: rgba(8,8,10,.93); }
.mhc-lightbox[hidden] { display: none !important; }
.mhc-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }
.mhc-lightbox-x { position: absolute; top: 20px; right: 24px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 23px; cursor: pointer; }

/* ===========================================================
   RESPONZÍVNE
   =========================================================== */
@media (max-width: 1040px) {
	.mhc-cols, .mhc-sum { grid-template-columns: 1fr; }
	.mhc-cols-left { position: static; }
}
@media (max-width: 840px) {
	.mhc-shell { grid-template-columns: 1fr; }
	.mhc-rail { border-right: 0; border-bottom: 1px solid var(--line); align-self: auto; }
	.mhc-rail-inner { position: static; max-height: none; padding: 18px 16px; }
	.mhc-rail-list { flex-direction: row; overflow-x: auto; gap: 7px; }
	.mhc-rail-step { flex-shrink: 0; }
	.mhc-rail-ds, .mhc-rail-chevron { display: none; }
	.mhc-advisor { display: none; }
	.mhc-main { padding: 20px 16px 24px; }
	.mhc-usp { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
	.mhc-fg { grid-template-columns: 1fr; }
	.mhc-usp { grid-template-columns: 1fr; }
	.mhc-head { flex-direction: column; }
}

/* ===========================================================
   AXORIA — Premium NOIR (biela / zlatá / čierna) v2.0
   =========================================================== */
.mhc-app {
	--ink: #0b0b0d;            /* hlboká čierna */
	--ink-2: #4a4a52;
	--muted: #8c8a82;
	--line: #ece6d8;           /* teplý béžový hairline */
	--line-2: #f4efe3;
	--bg: #faf8f3;             /* slonová biela */
	--card: #ffffff;
	--gold: #c9a35c;           /* žiarivá zlatá */
	--gold-2: #a8853f;         /* tmavá zlatá */
	--gold-soft: #f6ecd4;
	--accent: var(--gold);
	--accent-2: var(--gold-2);
	--ok: #1f7a4e;
	--r: 4px;
	--r-sm: 4px;
	--r-xs: 3px;
	--sh: 0 24px 60px -38px rgba(11,11,13,.55);
	--sh-sm: 0 12px 32px -22px rgba(11,11,13,.5);
	--sh-gold: 0 0 0 1px rgba(201,163,92,.55), 0 14px 32px -20px rgba(201,163,92,.45);
	font-size: 14px;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mhc-shell {
	background:
		radial-gradient(900px 480px at 0% 0%, rgba(201,163,92,.07), transparent 60%),
		radial-gradient(800px 480px at 100% 100%, rgba(11,11,13,.04), transparent 60%),
		var(--bg);
	border: 1px solid rgba(11,11,13,.08);
	border-radius: 6px;
	max-width: 1240px;
	min-height: calc(100vh - 32px);
	margin: 0 auto;
	box-shadow: var(--sh);
	overflow: visible;
	position: relative;
}

/* zlatá horná linka cez celý shell, nahrádza overflow:hidden detail */
.mhc-shell::before {
	content: "";
	position: absolute; top: 0; left: 0; right: 0; height: 2px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
	z-index: 5;
	border-top-left-radius: inherit;
	border-top-right-radius: inherit;
}

/* CSS premenné dostupné aj pre modaly (presunuté na <body> JS-om) */
:root {
	--mhc-ink: #0b0b0d;
	--mhc-ink-2: #4a4a52;
	--mhc-muted: #8c8a82;
	--mhc-line: #ece6d8;
	--mhc-line-2: #f4efe3;
	--mhc-gold: #c9a35c;
	--mhc-gold-2: #a8853f;
	--mhc-gold-soft: #f6ecd4;
	--mhc-card: #fff;
	--mhc-bg: #faf8f3;
	--mhc-ok: #1f7a4e;
}
.mhc-modal, .mhc-lightbox, .mhc-overlay {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	color: var(--mhc-ink);
}
.mhc-modal *, .mhc-lightbox *, .mhc-overlay * { box-sizing: border-box; }

/* ===========================================================
   SIDEBAR — čierny luxusný panel so zlatým akcentom
   =========================================================== */
.mhc-rail {
	padding: 0;
	background:
		linear-gradient(180deg, #0b0b0d 0%, #131316 100%);
	color: #f7f3e8;
	border-right: 1px solid rgba(201,163,92,.18);
	position: relative;
	align-self: stretch;
	min-height: calc(100vh - 32px);
	overflow: hidden;
}
.mhc-rail-inner {
	position: sticky;
	top: 0;
	height: 100vh;
	max-height: 100vh;
	min-height: 0;
	padding: 26px 22px 22px;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: rgba(201,163,92,.4) transparent;
}
.mhc-rail-inner::-webkit-scrollbar { width: 5px; }
.mhc-rail-inner::-webkit-scrollbar-thumb { background: rgba(201,163,92,.35); border-radius: 4px; }
.mhc-overlay-fr .mhc-rail { height: 100%; min-height: 0; }
.mhc-overlay-fr .mhc-rail-inner { position: static; height: 100%; max-height: none; }
.mhc-rail::-webkit-scrollbar { width: 5px; }
.mhc-rail::-webkit-scrollbar-thumb { background: rgba(201,163,92,.35); border-radius: 4px; }
.mhc-rail::before {
	content: "";
	position: absolute; left: 0; right: 0; top: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(201,163,92,.7), transparent);
}
.mhc-brand { margin-bottom: 26px; gap: 10px; font-size: 16px; letter-spacing: .01em; color: #fff; font-weight: 800; text-decoration: none; display: flex; align-items: center; padding: 4px 0; }
.mhc-brand:hover { color: #fff; text-decoration: none; }
.mhc-brand-logo-img { display: block; max-width: 100%; height: auto; max-height: 56px; width: auto; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(201,163,92,.18)); }
.mhc-brand-logo { width: 30px; height: 30px; color: var(--gold); display: grid; place-items: center; border: 1px solid rgba(201,163,92,.45); border-radius: 4px; }
.mhc-brand-logo svg { width: 18px; height: 18px; }
.mhc-brand-name { white-space: nowrap; }
.mhc-rail-eyebrow { color: var(--gold); font-size: 10.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
.mhc-rail-sub { color: rgba(247,243,232,.55); font-size: 12px; margin: 4px 0 18px; }
.mhc-rail-list { gap: 2px; flex: 0 0 auto; }
.mhc-advisor { margin-top: auto; }
.mhc-rail-step {
	position: relative;
	padding: 11px 12px 11px 14px;
	border-radius: 4px;
	border: 1px solid transparent;
	transition: background .2s, border-color .2s;
}
.mhc-rail-step::before {
	content: "";
	position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
	background: transparent;
	transition: background .2s;
}
.mhc-rail-step:hover { background: rgba(255,255,255,.04); }
.mhc-rail-step:hover::before { background: rgba(201,163,92,.4); }
.mhc-rail-step.is-active {
	background: linear-gradient(90deg, rgba(201,163,92,.12), rgba(201,163,92,.02));
	border-color: rgba(201,163,92,.35);
}
.mhc-rail-step.is-active::before { background: var(--gold); }
.mhc-rail-step.is-locked { opacity: .35; }
.mhc-rail-step.is-locked:hover::before { background: transparent; }
.mhc-rail-num {
	width: 28px; height: 28px;
	font-size: 11px; font-weight: 800;
	line-height: 1;
	border-radius: 4px;
	border: 1px solid rgba(247,243,232,.18);
	background: rgba(255,255,255,.03);
	color: rgba(247,243,232,.7);
	display: inline-flex; align-items: center; justify-content: center;
}
.mhc-rail-step.is-active .mhc-rail-num {
	background: var(--gold);
	border-color: var(--gold);
	color: #0b0b0d;
	box-shadow: 0 4px 14px -4px rgba(201,163,92,.6);
}
.mhc-rail-step.is-done .mhc-rail-num {
	background: transparent;
	border-color: rgba(201,163,92,.6);
	color: var(--gold);
}
.mhc-rail-tt { font-size: 13.5px; font-weight: 700; letter-spacing: 0; color: rgba(247,243,232,.95); }
.mhc-rail-ds { font-size: 11.5px; color: rgba(247,243,232,.45); }
.mhc-rail-step.is-active .mhc-rail-tt { color: #fff; }
.mhc-rail-step.is-active .mhc-rail-ds { color: var(--gold); }
.mhc-rail-chevron { color: rgba(247,243,232,.3); font-size: 14px; }
.mhc-rail-step.is-active .mhc-rail-chevron { color: var(--gold); display: inline; }

.mhc-advisor {
	margin-top: 22px;
	padding: 14px;
	border-radius: 4px;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(201,163,92,.2);
	flex-direction: row;
	align-items: center;
	gap: 10px;
}
.mhc-advisor-photo {
	width: 42px; height: 42px;
	background-color: rgba(201,163,92,.15);
	border: 1px solid rgba(201,163,92,.4);
}
.mhc-advisor-title { font-size: 12.5px; color: #fff; font-weight: 700; }
.mhc-advisor-sub { font-size: 11.5px; color: rgba(247,243,232,.55); }
.mhc-advisor-btn {
	font-size: 11.5px; font-weight: 800;
	color: var(--gold);
	border-bottom: 1px solid rgba(201,163,92,.55);
	letter-spacing: .03em; text-transform: uppercase;
}
.mhc-advisor-btn:hover { color: #fff; border-color: #fff; }

.mhc-rail-note {
	display: flex; flex-direction: column; gap: 3px;
	padding-top: 16px; margin-top: 16px;
	border-top: 1px solid rgba(201,163,92,.18);
}
.mhc-rail-note span { font-size: 10px; color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.mhc-rail-note b { font-size: 13px; color: #fff; }

/* ===========================================================
   MAIN
   =========================================================== */
.mhc-main { padding: 28px 30px 0; background: var(--bg); min-width: 0; overflow: visible; display: flex; flex-direction: column; }
.mhc-view { flex: 1 1 auto; display: flex; flex-direction: column; }
.mhc-view > .mhc-cols,
.mhc-view > .mhc-grid,
.mhc-view > .mhc-sum { flex: 1 1 auto; }
.mhc-head { margin-bottom: 22px; align-items: center; }
.mhc-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--gold-2); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800;
}
.mhc-eyebrow::after {
	content: ""; width: 28px; height: 1px; background: var(--gold);
}
.mhc-h2 {
	font-size: clamp(22px, 2.4vw, 32px);
	letter-spacing: -.01em; font-weight: 800;
	font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
	margin-top: 8px;
	line-height: 1.1;
}
.mhc-lead, .mhc-sub { max-width: 64ch; font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.mhc-help {
	border-radius: 999px;
	padding: 9px 16px 9px 12px;
	background: #fff;
	border: 1px solid var(--line);
	font-size: 12.5px; font-weight: 700;
	color: var(--ink); letter-spacing: .03em;
}
.mhc-help:hover { border-color: var(--gold); color: var(--gold-2); box-shadow: 0 8px 20px -14px rgba(201,163,92,.6); }
.mhc-help-q { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--gold); border: 0; }

/* ===========================================================
   STEP 1 — HOUSES (premium karty s fotkou)
   =========================================================== */
.mhc-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.mhc-house {
	min-height: 0;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 4px 16px -12px rgba(11,11,13,.25);
	transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .2s;
}
.mhc-house::after {
	content: "";
	position: absolute; inset: 0; pointer-events: none;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px transparent;
	transition: box-shadow .25s;
}
.mhc-house:hover {
	transform: translateY(-4px);
	border-color: rgba(201,163,92,.45);
	box-shadow: 0 24px 48px -28px rgba(11,11,13,.45);
}
.mhc-house.is-active {
	border-color: var(--gold);
	box-shadow: 0 24px 50px -26px rgba(201,163,92,.55), 0 0 0 1px var(--gold);
}
.mhc-house-img {
	position: relative;
	width: 100%;
	aspect-ratio: 16/10;
	min-height: 0;
	height: auto;
	background-size: cover;
	background-position: center;
	background-color: #efeadd;
}
.mhc-house-img::after {
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(11,11,13,.55) 100%);
}
.mhc-house-b { padding: 14px 16px 16px; gap: 4px; display: flex; flex-direction: column; }
.mhc-house-t {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 17px; font-weight: 700; letter-spacing: 0; color: var(--ink); line-height: 1.2;
}
.mhc-house-m { color: var(--gold-2); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; margin-top: 2px; }
.mhc-house-d { color: var(--ink-2); font-size: 12.5px; line-height: 1.45; margin-top: 6px; }
.mhc-house-p {
	font-size: 15px; margin-top: 10px;
	padding-top: 10px; border-top: 1px dashed var(--line);
	color: var(--ink); font-weight: 800;
}
/* prebije WooCommerce zelenú cenu */
.mhc-house-p .woocommerce-Price-amount,
.mhc-house-p .woocommerce-Price-currencySymbol,
.mhc-house-p bdi,
.mhc-pr b .woocommerce-Price-amount,
.mhc-pr b bdi,
.mhc-pr-total b .woocommerce-Price-amount,
.mhc-pr-total b bdi { color: inherit !important; font-weight: inherit !important; text-decoration: none !important; }
.mhc-from { font-size: 10.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-right: 4px; }
.mhc-house-check {
	top: 10px; right: 10px; width: 28px; height: 28px;
	border-radius: 50%;
	background: var(--gold); color: #0b0b0d;
	box-shadow: 0 6px 14px -4px rgba(201,163,92,.65);
}
.mhc-house-check svg { width: 14px; height: 14px; }

.mhc-usp {
	margin-top: 22px;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: #fff;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
	position: relative;
}
.mhc-usp::before {
	content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.mhc-usp li { gap: 10px; }
.mhc-usp-i {
	width: 36px; height: 36px;
	border-radius: 50%;
	color: var(--gold-2);
	background: var(--gold-soft);
	border: 1px solid rgba(201,163,92,.35);
}
.mhc-usp-i svg { width: 17px; height: 17px; }
.mhc-usp-tt { font-size: 12.5px; font-weight: 800; }
.mhc-usp-ds { font-size: 11px; color: var(--muted); }
.mhc-foot { display: none; }            /* legacy spodok zo select-view; nahrádza ho globálna .mhc-nav */

/* ===========================================================
   PREVIEW (sticky)
   =========================================================== */
.mhc-cols { grid-template-columns: minmax(320px, 50%) minmax(0, 1fr); gap: 22px; align-items: start; }
.mhc-cols-left {
	position: sticky;
	top: 16px;
	align-self: start;
	max-height: calc(100vh - 32px);
}
.mhc-pv-main {
	height: clamp(260px, 28vw, 380px);
	border-radius: 6px;
	border: 1px solid var(--line);
	box-shadow: var(--sh-sm);
}
.mhc-toggle {
	top: 12px; left: 12px;
	border-radius: 999px;
	padding: 4px;
	gap: 2px;
	background: rgba(255,255,255,.96);
	border: 1px solid var(--line);
}
.mhc-toggle button { border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
.mhc-toggle button.is-active { background: var(--ink); color: var(--gold); }
.mhc-pv-expand {
	top: 12px; right: 12px;
	width: 36px; height: 36px;
	border-radius: 999px;
	background: rgba(255,255,255,.96);
	color: var(--ink);
	border: 1px solid var(--line);
}
.mhc-pv-expand:hover { background: var(--ink); color: var(--gold); }
.mhc-thumbs { margin-top: 10px; gap: 8px; }
.mhc-thumb {
	width: 100%; height: 54px;
	border-radius: 4px;
	border: 2px solid transparent;
	box-shadow: 0 4px 10px -8px rgba(11,11,13,.5);
}
.mhc-thumb.is-active { border-color: var(--gold); }

/* ===========================================================
   STEPS 2-5 — OPTIONS (premium swatch karty)
   =========================================================== */
.mhc-groups { display: flex; flex-direction: column; gap: 14px; }
.mhc-group {
	margin: 0;
	padding: 16px 16px 14px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 6px;
	box-shadow: 0 4px 12px -10px rgba(11,11,13,.2);
}
.mhc-group-t {
	margin-bottom: 12px;
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-weight: 800;
	color: var(--ink);
	padding-bottom: 9px;
	border-bottom: 1px solid var(--line-2);
	display: flex; align-items: center; gap: 8px;
}
.mhc-group-t::before {
	content: ""; width: 14px; height: 1px; background: var(--gold);
}
.mhc-group-req { color: var(--gold-2); font-weight: 800; }

.mhc-opts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mhc-opt {
	min-height: 0;
	border: 1px solid var(--line);
	border-radius: 5px;
	padding: 0;
	gap: 0;
	background: #fff;
	overflow: hidden;
	transition: transform .2s, border-color .2s, box-shadow .2s;
}
.mhc-opt:hover { transform: translateY(-2px); border-color: rgba(201,163,92,.55); box-shadow: 0 12px 24px -18px rgba(201,163,92,.55); }
.mhc-opt.is-selected {
	border-color: var(--gold);
	box-shadow: var(--sh-gold);
}
.mhc-opt-top {
	gap: 0;
	flex-direction: column;
	align-items: stretch;
	position: relative;
}
.mhc-swatch {
	width: 100%;
	height: 78px;
	border-radius: 0;
	border: 0;
	border-bottom: 1px solid var(--line-2);
	background-color: var(--line-2);
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
}
.mhc-opt-name {
	font-size: 13px;
	line-height: 1.25;
	font-weight: 700;
	padding: 10px 12px 0;
	color: var(--ink);
}
.mhc-opt-bot {
	padding: 0 12px 6px;
	margin-top: 4px;
}
.mhc-opt-price { font-size: 12px; color: var(--gold-2); font-weight: 800; }
.mhc-opt-price.is-free { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.mhc-i {
	width: auto; height: 22px;
	min-height: 0;
	line-height: 1;
	padding: 0 8px;
	border-radius: 5px;
	background: var(--ink);
	border: 0;
	color: var(--gold);
	font-family: inherit;
	font-style: normal;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.mhc-i svg { width: 11px; height: 11px; }
.mhc-i:hover { background: #000; color: #fff; }
.mhc-tick {
	top: 10px; right: 10px;
	left: auto;
	width: 30px; height: 30px;
	padding: 0;
	border-radius: 50%;
	background: var(--gold);
	color: #0b0b0d;
	font-size: 0;
	letter-spacing: 0;
	text-transform: none;
	display: none;
	place-items: center;
	gap: 0;
	box-shadow: 0 6px 14px -4px rgba(201,163,92,.55);
	z-index: 2;
}
.mhc-tick svg { width: 14px; height: 14px; }
.mhc-opt.is-selected .mhc-tick { display: grid; }
.mhc-opt.is-selected { background: linear-gradient(180deg, rgba(201,163,92,.12), #fff 70%); }
.mhc-opt.is-selected .mhc-opt-name { color: var(--gold-2); }
.mhc-none { border-radius: 6px; padding: 18px; background: #fff; border: 1px dashed var(--line); }

.mhc-nav {
	position: sticky;
	bottom: 0;
	z-index: 4;
	margin: 18px -30px 0;              /* utiahne k okrajom .mhc-main, padne na spodok */
	padding: 14px 30px;
	border-top: 1px solid var(--line);
	border-radius: 0 0 6px 6px;
	background: rgba(255,255,255,.97);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 -18px 36px -28px rgba(11,11,13,.5);
	display: flex;
	align-items: center;
	gap: 12px;
}
.mhc-nav::before {
	content: "";
	position: absolute; left: 0; right: 0; top: 0; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(201,163,92,.6), transparent);
}
.mhc-nav-price span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 800; }
.mhc-nav-price b { font-size: 22px; color: var(--ink); font-weight: 800; }
.mhc-nav-price b .woocommerce-Price-amount,
.mhc-nav-price b bdi { color: inherit !important; }

/* ===========================================================
   SUMMARY
   =========================================================== */
.mhc-sum { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: 22px; }
.mhc-card {
	border: 1px solid var(--line);
	border-radius: 6px;
	padding: 24px;
	background:
		linear-gradient(180deg, #fff 0%, #fdfaf2 100%);
	box-shadow: var(--sh);
	position: relative;
}
.mhc-card::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.mhc-card-h { margin-bottom: 16px; }
.mhc-card-h h3 { font-size: 11px; letter-spacing: .2em; color: var(--gold-2); }
.mhc-recap li { padding: 10px 0; font-size: 13px; border-color: var(--line-2); }
.mhc-pr-total b {
	font-size: 28px;
	color: var(--ink);
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 800;
}
.mhc-pr-total span { color: var(--gold-2); }
.mhc-card-note b { color: var(--gold-2); }
.mhc-shield { color: var(--gold); }

/* ===========================================================
   TLAČIDLÁ — čierne s zlatým akcentom
   =========================================================== */
.mhc-btn {
	border-radius: 4px;
	padding: 13px 22px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	transition: all .2s;
}
.mhc-btn-pri {
	background: var(--ink);
	color: #fff;
	border: 1px solid var(--ink);
	position: relative; overflow: hidden;
}
.mhc-btn-pri::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(120deg, transparent 30%, rgba(201,163,92,.35) 50%, transparent 70%);
	transform: translateX(-100%);
	transition: transform .55s;
}
.mhc-btn-pri:hover { background: #000; color: var(--gold); border-color: var(--gold); }
.mhc-btn-pri:hover::before { transform: translateX(100%); }
.mhc-btn-out { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.mhc-btn-out:hover { border-color: var(--gold); color: var(--gold-2); }
.mhc-btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.mhc-btn-lg { padding: 15px 28px; font-size: 12.5px; }
.mhc-link { letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
.mhc-link:hover { border-color: var(--gold); color: var(--gold-2); }

/* ===========================================================
   MODÁLY / FORM (CSS vars cez --mhc-*, lebo modaly sú na <body>)
   =========================================================== */
.mhc-modal-box {
	border-radius: 6px;
	border: 1px solid rgba(201,163,92,.3);
	background: #fff;
	box-shadow: 0 40px 100px -28px rgba(11,11,13,.55);
	position: relative;
}
.mhc-modal-box::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
	background: linear-gradient(90deg, transparent, var(--mhc-gold), transparent);
	border-radius: inherit;
}
.mhc-modal-x { border-radius: 50%; background: #f4efe3; color: var(--mhc-ink); }
.mhc-modal-x:hover { background: var(--mhc-ink); color: var(--mhc-gold); }
.mhc-modal-b { padding: 28px 26px 26px; color: var(--mhc-ink); }
.mhc-modal-b h3 {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 24px;
	letter-spacing: -.01em;
	color: var(--mhc-ink);
	margin: 0 0 8px;
}
.mhc-modal-price { color: var(--mhc-gold-2); font-size: 16px; font-weight: 800; }
.mhc-modal-desc { color: var(--mhc-ink-2); font-size: 13.5px; line-height: 1.55; }

/* "Ako to funguje" zoznam */
.mhc-how { padding: 4px 0 18px; }
.mhc-how li {
	display: flex; gap: 14px; align-items: flex-start;
	padding: 12px 0; border-bottom: 1px solid var(--mhc-line-2);
}
.mhc-how li:last-child { border-bottom: 0; }
.mhc-how-n {
	flex-shrink: 0;
	width: 30px; height: 30px;
	border-radius: 50%;
	background: var(--mhc-ink);
	color: var(--mhc-gold);
	display: grid; place-items: center;
	font-size: 12.5px; font-weight: 800;
	border: 1px solid var(--mhc-gold);
	box-shadow: 0 6px 14px -8px rgba(201,163,92,.6);
}
.mhc-how-t { font-weight: 800; font-size: 14px; color: var(--mhc-ink); display: block; }
.mhc-how-d { font-size: 13px; color: var(--mhc-ink-2); }

.mhc-f { color: var(--mhc-ink-2); }
.mhc-f input, .mhc-f select, .mhc-f textarea {
	border-radius: 4px;
	border: 1px solid var(--mhc-line);
	background: #fff;
	color: var(--mhc-ink);
}
.mhc-f input:focus, .mhc-f select:focus, .mhc-f textarea:focus { border-color: var(--mhc-gold); box-shadow: 0 0 0 3px rgba(201,163,92,.18); }
.mhc-fr { border-radius: 4px; background: #fdfaf2; border-color: rgba(201,163,92,.3); }
.mhc-fr b { color: var(--mhc-gold-2); font-family: "Playfair Display", Georgia, serif; font-size: 18px; }
.mhc-ok-i { border-radius: 50%; background: var(--mhc-ok); }
.mhc-err { background: #fdecec; color: #9b1c1c; border-radius: 4px; }

/* tlačidlá v modaloch (CSS vars cez --mhc-*) */
.mhc-modal .mhc-btn-pri,
.mhc-overlay .mhc-btn-pri {
	background: var(--mhc-ink);
	color: #fff;
	border: 1px solid var(--mhc-ink);
	border-radius: 4px;
	padding: 13px 22px;
	font-size: 13px; font-weight: 800;
	letter-spacing: .08em; text-transform: uppercase;
}
.mhc-modal .mhc-btn-pri:hover,
.mhc-overlay .mhc-btn-pri:hover { background: #000; color: var(--mhc-gold); border-color: var(--mhc-gold); }

/* ===========================================================
   LAUNCH (modal mode)
   =========================================================== */
.mhc-launch {
	border-radius: 4px;
	background: var(--ink);
	color: var(--gold);
	border: 1px solid var(--gold);
	padding: 14px 26px;
	font-size: 12.5px; font-weight: 800;
	letter-spacing: .12em; text-transform: uppercase;
	box-shadow: 0 12px 30px -16px rgba(201,163,92,.45);
}
.mhc-launch:hover { background: var(--gold); color: var(--ink); }
.mhc-overlay-fr { width: min(1240px, 100%); border-radius: var(--r); }
.mhc-overlay-fr .mhc-shell { border-radius: var(--r); border: 0; }
.mhc-overlay-fr .mhc-shell::before { display: none; }
.mhc-overlay-x, .mhc-lightbox-x { border-radius: 50%; background: rgba(255,255,255,.95); }
.mhc-overlay-x:hover { background: var(--ink); color: var(--gold); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 1080px) {
	.mhc-cols, .mhc-sum { grid-template-columns: 1fr; }
	.mhc-cols-left { position: static; max-height: none; top: auto; }
	.mhc-pv-main { height: clamp(220px, 42vw, 340px); }
}

@media (max-width: 920px) {
	.mhc-shell {
		grid-template-columns: 1fr;
		border-radius: 0;
		border-left: 0; border-right: 0;
		max-width: 100%;
		min-height: 0;
	}
	.mhc-rail {
		position: sticky;
		top: 0;
		max-height: none;
		min-height: 0;
		overflow: visible;
		z-index: 20;
		border-right: 0;
		border-bottom: 1px solid rgba(201,163,92,.25);
		padding: 8px 10px;
		display: block;
		background: linear-gradient(180deg, #0b0b0d 0%, #131316 100%);
	}
	.mhc-rail-inner {
		position: static;
		height: auto;
		max-height: none;
		padding: 0;
		overflow: visible;
	}
	.mhc-brand, .mhc-rail-eyebrow, .mhc-rail-sub { display: none; }
	.mhc-rail-list {
		flex-direction: row;
		overflow-x: auto;
		padding: 2px;
		gap: 4px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.mhc-rail-list::-webkit-scrollbar { display: none; }
	.mhc-rail-step {
		flex-shrink: 0;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		min-width: 0;
		padding: 6px 9px;
		gap: 6px;
		border-radius: 999px;
		background: rgba(255,255,255,.04);
		border: 1px solid transparent;
	}
	.mhc-rail-step::before { display: none; }
	.mhc-rail-step.is-active {
		background: var(--gold);
		border-color: var(--gold);
		box-shadow: 0 6px 14px -4px rgba(201,163,92,.5);
	}
	.mhc-rail-step.is-active .mhc-rail-tt { color: #0b0b0d; }
	.mhc-rail-step.is-done { background: rgba(201,163,92,.12); border-color: rgba(201,163,92,.32); }
	.mhc-rail-num {
		width: 22px; height: 22px;
		font-size: 10px;
		line-height: 1;
		border-radius: 50%;
		background: rgba(255,255,255,.08);
		border-color: transparent;
		display: inline-flex; align-items: center; justify-content: center;
		padding: 0;
	}
	.mhc-rail-step.is-active .mhc-rail-num { background: #0b0b0d; color: var(--gold); border-color: #0b0b0d; box-shadow: none; }
	.mhc-rail-step.is-done .mhc-rail-num { background: var(--gold); color: #0b0b0d; border-color: var(--gold); }
	.mhc-rail-text { display: flex; }
	.mhc-rail-tt {
		font-size: 11px; font-weight: 700; line-height: 1;
		color: rgba(247,243,232,.85); white-space: nowrap;
	}
	.mhc-rail-ds, .mhc-rail-chevron { display: none; }
	.mhc-rail-step:not(.is-active) .mhc-rail-tt { display: none; }
	.mhc-advisor, .mhc-rail-note { display: none; }

	.mhc-main { padding: 14px 12px 0; }
	.mhc-head { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 12px; }
	.mhc-help { align-self: flex-start; padding: 6px 11px 6px 7px; font-size: 11px; letter-spacing: .04em; text-transform: none; gap: 6px; }
	.mhc-help-q { width: 17px; height: 17px; font-size: 10.5px; }
	.mhc-h2 { font-size: clamp(18px, 5.4vw, 22px); }
	.mhc-eyebrow { font-size: 10px; }
	.mhc-lead, .mhc-sub { font-size: 12.5px; max-width: none; line-height: 1.45; }

	/* HOUSE GRID — 3 vedľa seba, ultra-kompakt */
	.mhc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
	.mhc-house { border-radius: 5px; }
	.mhc-house-img { aspect-ratio: 4/3; }
	.mhc-house-img::after { padding: 4px 6px; font-size: 8px; letter-spacing: .08em; }
	.mhc-house-b { padding: 7px 7px 8px; }
	.mhc-house-m { font-size: 8.5px; letter-spacing: .08em; margin-bottom: 2px; }
	.mhc-house-t { font-size: 12px; line-height: 1.15; margin-bottom: 4px; }
	.mhc-house-d { display: none; }
	.mhc-house-meta { gap: 4px; flex-wrap: wrap; }
	.mhc-house-meta span { font-size: 9.5px; padding: 2px 5px; }
	.mhc-house-p { font-size: 11px; padding-top: 5px; margin-top: 5px; line-height: 1.2; }
	.mhc-from { font-size: 8.5px; display: block; }
	.mhc-house-check { width: 20px; height: 20px; top: 5px; right: 5px; }
	.mhc-house-check svg { width: 11px; height: 11px; }

	.mhc-usp { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 10px; gap: 8px; }
	.mhc-usp li { gap: 6px; flex-direction: column; align-items: flex-start; }
	.mhc-usp-i { width: 26px; height: 26px; }
	.mhc-usp-tt { font-size: 11px; line-height: 1.1; }
	.mhc-usp-ds { font-size: 10px; line-height: 1.25; }

	.mhc-cols { gap: 10px; }
	.mhc-pv-main { height: 220px; }
	.mhc-thumb { height: 44px; }
	.mhc-pv-toggles { padding: 4px; gap: 2px; }
	.mhc-pv-toggle { padding: 6px 9px; font-size: 10.5px; }
	.mhc-pv-fs { width: 32px; height: 32px; }

	.mhc-group { padding: 10px 10px 8px; border-radius: 5px; }
	.mhc-group-t { font-size: 10px; letter-spacing: .12em; padding-bottom: 7px; margin-bottom: 9px; }

	/* OPTIONS — 3 vedľa seba */
	.mhc-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
	.mhc-opt { border-radius: 4px; }
	.mhc-swatch { height: 56px; }
	.mhc-opt-name { padding: 6px 7px 0; font-size: 11px; line-height: 1.15; }
	.mhc-opt-bot { padding: 3px 7px 7px; margin-top: 2px; }
	.mhc-opt-price { font-size: 10px; }
	.mhc-opt-price.is-free { font-size: 9px; }
	.mhc-i { width: 18px; height: 18px; font-size: 10px; }
	.mhc-tick { width: 18px; height: 18px; top: 4px; right: 4px; }
	.mhc-tick svg { width: 10px; height: 10px; }

	/* sticky nav na spodku — `sticky` funguje aj v overlay-fr aj na bežnej stránke
	   bez problémov s ancestor transformom (na rozdiel od position:fixed). */
	.mhc-nav {
		position: sticky;
		left: auto; right: auto; bottom: 0;
		margin: 12px -12px 0;
		padding: 9px 12px calc(9px + env(safe-area-inset-bottom)) 12px;
		border-radius: 0;
		border-top: 1px solid var(--line);
		background: rgba(255,255,255,.98);
		z-index: 30;
		flex-wrap: wrap;
		gap: 6px 8px;
	}
	.mhc-nav-price { flex: 1 1 auto; margin-right: 0; line-height: 1.1; min-width: 0; }
	.mhc-nav-price span { font-size: 8.5px; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.mhc-nav-price b { font-size: 16px; white-space: nowrap; }
	.mhc-nav .mhc-btn { padding: 9px 12px; font-size: 10.5px; letter-spacing: .05em; flex: 0 0 auto; }
	.mhc-nav .mhc-btn-ghost { padding: 9px 11px; }
	.mhc-nav .mhc-btn svg { width: 13px; height: 13px; }
	/* sticky nav už neprekrýva obsah, ale necháme malú spodnú medzeru pre vzdušnosť */
	.mhc-view[data-view="config"] { padding-bottom: 12px; }
	.mhc-view[data-view="select"], .mhc-view[data-view="summary"] { padding-bottom: 12px; }

	.mhc-sum { grid-template-columns: 1fr; gap: 10px; }
	.mhc-card { padding: 14px 14px; border-radius: 5px; }
	.mhc-pr-total b { font-size: 20px; }
	.mhc-pr { font-size: 12.5px; padding: 6px 0; }

	.mhc-modal { padding: 10px; }
	.mhc-modal-box { width: 100%; max-height: 92vh; border-radius: 6px; }
	.mhc-modal-b { padding: 20px 16px 18px; }
	.mhc-modal-b h3 { font-size: 18px; }
	.mhc-modal-b p { font-size: 13px; }
	.mhc-fg { grid-template-columns: 1fr; gap: 8px; }
	.mhc-overlay { padding: 0; }
	.mhc-overlay-fr { width: 100%; max-height: 100vh; height: 100vh; border-radius: 0; }
	.mhc-overlay-x { top: 8px; right: 8px; width: 34px; height: 34px; }
	.mhc-how-list { gap: 12px; }
	.mhc-how-n { width: 30px; height: 30px; font-size: 13px; }
}

@media (max-width: 480px) {
	.mhc-rail-step { padding: 6px 8px; }
	.mhc-rail-num { width: 20px; height: 20px; font-size: 9.5px; line-height: 1; }
	.mhc-rail-tt { font-size: 10.5px; }

	/* 2 vedľa seba pre úzke obrazovky */
	.mhc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.mhc-house-t { font-size: 13px; }
	.mhc-house-p { font-size: 12px; }

	.mhc-usp { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.mhc-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mhc-swatch { height: 70px; }
	.mhc-opt-name { font-size: 11.5px; }

	.mhc-pv-main { height: 200px; }
	.mhc-pv-toggle span { display: none; }
}

@media (max-width: 360px) {
	.mhc-grid, .mhc-opts, .mhc-usp { grid-template-columns: 1fr 1fr; }
	.mhc-house-img { aspect-ratio: 16/11; }
	.mhc-swatch { height: 60px; }
}
