/* =============================================================================
   landing-apple.css - strona startowa MeczRealu.com dla niezalogowanych (templates/_landing_block.tpl).
   Grafit jak reszta portalu; kolory w zmiennych dla ciemnego i jasnego motywu, górna część z grafiką
   jest ciemna w obu. Przebudowa: MR-20261118-LANDA1..5.
   Okno kodu 2FA leży poza #mrModal: reguły #modal działają tylko przy klasie html.mrl-a, którą szablon
   zdejmuje po zamknięciu strony startowej, żeby nie zmieniać okien w reszcie portalu.
   ========================================================================== */
:root {
	--mrl-bg: #000;
	--mrl-card: #1c1c1e;
	--mrl-card2: #232325;
	--mrl-fill: rgba(118, 118, 128, .24);
	--mrl-auto: #3a3a3c;
	--mrl-t1: #fff;
	--mrl-t2: rgba(235, 235, 245, .62);
	--mrl-t3: rgba(235, 235, 245, .5);
	--mrl-t4: rgba(235, 235, 245, .46);
	--mrl-blue: #0a84ff;
	--mrl-blue2: #2a94ff;
	--mrl-link: #409cff;
	--mrl-warn: #ffb340;
	--mrl-err: #ff6961;
	--mrl-close: invert(1);
	--mrl-line: rgba(255, 255, 255, .1);
	--mrl-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
:root[data-mr-theme="light"] {
	--mrl-bg: #f5f5f7;
	--mrl-card: #fff;
	--mrl-card2: #fafafc;
	--mrl-fill: rgba(118, 118, 128, .12);
	--mrl-auto: #e8e8ed;
	--mrl-t1: #1d1d1f;
	--mrl-t2: rgba(60, 60, 67, .72);
	--mrl-t3: rgba(60, 60, 67, .62);
	--mrl-t4: rgba(60, 60, 67, .55);
	--mrl-blue: #0071e3;
	--mrl-blue2: #0077ed;
	--mrl-link: #0066cc;
	--mrl-warn: #b25000;
	--mrl-err: #d70015;
	--mrl-close: none;
	--mrl-line: rgba(0, 0, 0, .1);
}

/* układ */
#mrModal {
	position: fixed;
	inset: 0;
	z-index: 2147482000;
	width: 100vw;
	height: 100dvh;
	background: var(--mrl-bg);
	color: var(--mrl-t1);
	font-family: var(--mrl-font);
	font-size: 15px;
	line-height: 1.5;
	letter-spacing: -.01em;
	-webkit-font-smoothing: antialiased;
	isolation: isolate;
}
#mrModal *, #mrModal *::before, #mrModal *::after { box-sizing: border-box; }
#mrModal svg { transform: none !important; }
#mrModal .x-hidden { display: none !important; }
#mrModal .mrm-scroll {
	position: relative;
	z-index: 1;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 1;
	transition: opacity .15s ease;
}
#mrModal .mrm-wrap { display: flex; flex-direction: column; gap: 16px; min-height: 100%; max-width: 1720px; margin: 0 auto; padding: 16px 16px 28px; }
#mrModal .mrm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: stretch; }

/* górna część: grafika po prawej, wygaszona w stronę tekstu; tekst na czystym tle */
#mrModal .mrm-hero { position: relative; overflow: hidden; min-height: min(780px, calc(100dvh - 32px)); border-radius: 32px; background: #0b0b0d; }
#mrModal .mrm-hero-img {
	position: absolute;
	inset: 0 0 0 auto;
	width: 56%;
	height: 100%;
	object-fit: cover;
	object-position: 70% 50%;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48%);
	mask-image: linear-gradient(90deg, transparent 0, #000 48%);
}
#mrModal .mrm-hero-body { position: relative; z-index: 1; display: flex; align-items: flex-end; height: 100%; min-height: 100%; padding: clamp(32px, 4vw, 64px); }
#mrModal .mrm-hero-copy { width: 100%; max-width: min(560px, 58%); }
#mrModal .mrm-title {
	margin: 0 0 18px;
	font-size: clamp(44px, 3.7vw, 72px);
	line-height: 1.04;
	font-weight: 700;
	letter-spacing: -.038em;
	color: #fff;
	text-wrap: balance;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}
#mrModal .mrm-lead { max-width: 450px; margin: 0 0 28px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.4; font-weight: 400; color: rgba(245, 245, 247, .76); }
#mrModal .mrm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
#mrModal .mrm-actions-sec { margin-top: 10px; }
#mrModal .mrm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 50px;
	padding: 0 24px;
	border: 0 !important;
	border-radius: 999px;
	background: rgba(118, 118, 128, .32) !important;
	color: #fff !important;
	font-size: 16px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: -.01em;
	text-decoration: none;
	cursor: pointer;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: background-color .15s, color .15s;
}
#mrModal .mrm-btn:hover { background: rgba(118, 118, 128, .46) !important; text-decoration: none; }
#mrModal .mrm-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#mrModal .mrm-btn-main { background: #fff !important; color: #000 !important; }
#mrModal .mrm-btn-main:hover { background: #e8e8ed !important; color: #000 !important; }
#mrModal .mrm-btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; font-weight: 500; background: rgba(118, 118, 128, .22) !important; color: rgba(245, 245, 247, .86) !important; }

/* karta logowania */
#mrModal .mrm-auth { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 36px 32px; border-radius: 32px; background: var(--mrl-card); }
#mrModal .mrm-logo { display: inline-block; align-self: flex-start; margin-bottom: 26px; }
#mrModal .mrm-logo img { display: block; width: auto; height: 58px; }
#mrModal .mrm-auth-title { margin: 0 0 8px; font-size: 30px; line-height: 1.12; font-weight: 700; letter-spacing: -.028em; color: var(--mrl-t1); }
#mrModal .mrm-auth-sub { margin: 0 0 24px; font-size: 15px; line-height: 1.4; color: var(--mrl-t2); }
#mrModal .mrm-form { margin: 0; }

/* pola */
#mrModal .mrm-field { position: relative; margin-bottom: 10px; }
#mrModal .mrm-field-ico {
	position: absolute !important;
	top: 0;
	bottom: 0;
	left: 14px;
	z-index: 2;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 20px;
	color: var(--mrl-t2);
	pointer-events: none;
}
#mrModal .mrm-field-ico svg, #mrModal .mrm-eye svg { display: block; width: 18px; height: 18px; }
#mrModal .mrm-field input {
	width: 100% !important;
	height: auto !important;
	margin: 0 !important;
	padding: 16px 46px !important;
	border: 0 !important;
	border-radius: 14px !important;
	outline: none;
	background: var(--mrl-fill) !important;
	color: var(--mrl-t1) !important;
	font: inherit;
	font-size: 16px !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
	transition: box-shadow .15s;
}
#mrModal .mrm-field input::placeholder { color: var(--mrl-t2); opacity: 1; }
#mrModal .mrm-field input:focus { box-shadow: 0 0 0 3px rgba(10, 132, 255, .5) !important; }
#mrModal .mrm-field input:-webkit-autofill { -webkit-text-fill-color: var(--mrl-t1); caret-color: var(--mrl-t1); box-shadow: 0 0 0 1000px var(--mrl-auto) inset !important; }
#mrModal .mrm-field input:-webkit-autofill:focus { box-shadow: 0 0 0 1000px var(--mrl-auto) inset, 0 0 0 3px rgba(10, 132, 255, .5) !important; }
#mrModal .mrm-eye {
	position: absolute !important;
	top: 0;
	right: 10px;
	bottom: 0;
	z-index: 2;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: auto 0;
	padding: 0;
	border: 0 !important;
	border-radius: 999px;
	background: transparent !important;
	color: var(--mrl-t2);
	cursor: pointer;
}
#mrModal .mrm-eye:hover { color: var(--mrl-t1) !important; }
#mrModal .mrm-eye:focus-visible { outline: 2px solid var(--mrl-blue); outline-offset: 1px; }
#mrModal .mrm-eye [hidden] { display: none; }

/* zapamiętaj, linki */
#mrModal .mrm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 20px; }
#mrModal .mrm-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--mrl-t2); cursor: pointer; user-select: none; }
#mrModal .mrm-check input {
	position: relative;
	flex: 0 0 18px;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 5px !important;
	background: var(--mrl-fill) !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	cursor: pointer;
}
#mrModal .mrm-check input:checked { background: var(--mrl-blue) !important; }
#mrModal .mrm-check input:checked::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 6px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
#mrModal .mrm-check input:focus-visible { outline: 2px solid var(--mrl-blue); outline-offset: 2px; }
#mrModal .mrm-auth .mrm-link, #mrModal .mrm-switch a, #mrModal .mrm-note a { color: var(--mrl-link) !important; font-weight: 400; text-decoration: none; }
#mrModal .mrm-auth .mrm-link { font-size: 14px; }
#mrModal .mrm-auth .mrm-link:hover, #mrModal .mrm-switch a:hover, #mrModal .mrm-note a:hover { text-decoration: underline; }
#mrModal .mrm-auth a:focus-visible { outline: 2px solid var(--mrl-blue); outline-offset: 2px; border-radius: 4px; }

/* przycisk */
#mrModal .mrm-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 52px;
	padding: 14px 20px;
	border: 0 !important;
	border-radius: 14px;
	background: var(--mrl-blue) !important;
	color: #fff !important;
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -.01em;
	cursor: pointer;
	transition: background-color .15s, opacity .15s;
}
#mrModal .mrm-submit:hover { background: var(--mrl-blue2) !important; }
#mrModal .mrm-submit:focus-visible { outline: 2px solid var(--mrl-t1); outline-offset: 2px; }
#mrModal .mrm-submit.is-busy { cursor: wait; opacity: .88; }
#mrModal .mrm-submit-loader {
	display: none;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, .36);
	border-top-color: #fff;
	border-radius: 999px;
	animation: mrm-login-spin .72s linear infinite;
}
#mrModal .mrm-submit.is-busy .mrm-submit-loader { display: block; }
#mrModal .mrm-submit.is-busy .mrm-submit-label { opacity: .82; }
@keyframes mrm-login-spin { to { transform: rotate(360deg); } }

/* komunikaty */
#mrModal .mrm-alert { padding: 12px 14px; border: 0; border-radius: 14px; font-size: 14px; line-height: 1.35; }
#mrModal .mrm-alert-warn { margin-bottom: 14px; background: rgba(255, 159, 10, .16); color: var(--mrl-warn); }
#mrModal .mrm-alert-err { margin-top: 12px; background: rgba(255, 69, 58, .14); color: var(--mrl-err); }
#mrModal .mrm-alert-err:not(.x-hidden) { display: block !important; }

/* rejestracja */
#mrModal .mrm-switch { margin: 20px 0 0; text-align: center; font-size: 15px; color: var(--mrl-t2); }
#mrModal .mrm-switch a { font-size: 15px; }
#mrModal .mrm-note { margin: 14px 0 0; text-align: center; font-size: 12.5px; line-height: 1.45; color: var(--mrl-t3); }
#mrModal .mrm-note a { font-size: inherit; white-space: nowrap; }

/* karty funkcji */
#mrModal .mrm-sec { margin: 28px 6px 6px; font-size: clamp(24px, 2.1vw, 34px); line-height: 1.12; font-weight: 700; letter-spacing: -.032em; color: var(--mrl-t1); }
#mrModal .mrm-sec span { color: var(--mrl-t4); }
#mrModal .mrm-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#mrModal .mrm-feat {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	column-gap: 14px;
	align-content: start;
	min-width: 0;
	padding: 16px 18px;
	border-radius: 20px;
	background: var(--mrl-card);
	transition: background-color .18s;
}
#mrModal .mrm-feat:hover { background: var(--mrl-card2); }
#mrModal .mrm-fic { grid-row: 1 / span 2; align-self: start; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--c); color: #fff; }
#mrModal .mrm-fic svg { width: 22px; height: 22px; }
#mrModal .mrm-feat h3 { grid-column: 2; margin: 0 0 2px; font-size: 16px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; color: var(--mrl-t1); }
#mrModal .mrm-feat p { grid-column: 2; margin: 0; font-size: 13.5px; line-height: 1.38; color: var(--mrl-t2); }

/* stopka: prawa autorskie po lewej, linki po prawej, nad nimi cienka linia */
#mrModal .mrm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 20px; margin: 14px 6px 0; padding: 14px 0 0; border-top: 1px solid var(--mrl-line); font-size: 12px; color: var(--mrl-t3); }
#mrModal .mrm-foot span { order: -1; margin-right: auto; }
#mrModal .mrm-foot a { color: var(--mrl-t3) !important; font-size: 12px; text-decoration: none; }
#mrModal .mrm-foot a:hover { color: var(--mrl-t1) !important; text-decoration: none; }
#mrModal .mrm-foot a:focus-visible { outline: 2px solid var(--mrl-blue); outline-offset: 2px; border-radius: 4px; }

/* potwierdzenie wieku */
#mrModal .mrm-age { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 16px; background: rgba(0, 0, 0, .5); }
#mrModal .mrm-age[hidden], #mrModal .mrm-age-err[hidden] { display: none !important; }
#mrModal .mrm-age-box { width: 100%; max-width: 460px; margin: auto; padding: 32px; border-radius: 28px; background: var(--mrl-card); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); text-align: center; }
#mrModal .mrm-age-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 15px; background: var(--mrl-blue); color: #fff; }
#mrModal .mrm-age-ico svg { width: 26px; height: 26px; }
#mrModal .mrm-age-title { margin: 0 0 8px; font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; color: var(--mrl-t1); }
#mrModal .mrm-age-lead { margin: 0 0 24px; font-size: 15px; line-height: 1.4; color: var(--mrl-t2); }
#mrModal .mrm-age-row { display: grid; grid-template-columns: .8fr 1.4fr 1fr; gap: 8px; margin-bottom: 16px; text-align: left; }
#mrModal .mrm-age-sel { display: block; }
#mrModal .mrm-age-sel > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--mrl-t2); }
#mrModal .mrm-age-sel select {
	width: 100% !important;
	height: 50px !important;
	margin: 0 !important;
	padding: 0 30px 0 12px !important;
	border: 0 !important;
	border-radius: 14px !important;
	background: var(--mrl-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238e8e93' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center !important;
	color: var(--mrl-t1) !important;
	font: inherit;
	font-size: 16px !important;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
#mrModal .mrm-age-sel select:focus { outline: none; box-shadow: 0 0 0 3px rgba(10, 132, 255, .5); }
#mrModal .mrm-age-sel option { background: var(--mrl-card); color: var(--mrl-t1); }
#mrModal .mrm-age-err { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 69, 58, .14); color: var(--mrl-err); font-size: 14px; text-align: left; }
#mrModal .mrm-age-back { width: 100%; margin-top: 8px; padding: 12px; border: 0 !important; border-radius: 14px; background: transparent !important; color: var(--mrl-t2) !important; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
#mrModal .mrm-age-back:hover { color: var(--mrl-t1) !important; }
#mrModal .mrm-age-back:focus-visible { outline: 2px solid var(--mrl-blue); outline-offset: 2px; }

/* jasny motyw: logo w ciemnym kolorze (filtr SVG z szablonu) */
:root[data-mr-theme="light"] #mrModal .mrm-logo img { filter: url(#mrmLogoInk); }

/* okno kodu 2FA po zalogowaniu */
html.mrl-a #modal .modal-content { border: 0; border-radius: 28px; background: var(--mrl-card); color: var(--mrl-t1); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); font-family: var(--mrl-font); letter-spacing: -.01em; }
html.mrl-a #modal .modal-header { padding: 22px 24px 6px; border: 0; }
html.mrl-a #modal .modal-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--mrl-t1); }
html.mrl-a #modal .btn-close { filter: var(--mrl-close); opacity: .6; }
html.mrl-a #modal .modal-body { padding: 8px 24px; font-size: 15px; line-height: 1.4; color: var(--mrl-t2); }
html.mrl-a #modal .modal-body strong { color: var(--mrl-t1); font-weight: 600; }
html.mrl-a #modal .modal-body .form-control { height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--mrl-fill); color: var(--mrl-t1); font-size: 18px; letter-spacing: .12em; text-align: center; box-shadow: none; }
html.mrl-a #modal .modal-body .form-control::placeholder { color: var(--mrl-t3); }
html.mrl-a #modal .modal-body .form-control:focus { box-shadow: 0 0 0 3px rgba(10, 132, 255, .5); }
html.mrl-a #modal .modal-body .alert-danger { border: 0; border-radius: 14px; background: rgba(255, 69, 58, .14); color: var(--mrl-err); }
html.mrl-a #modal .modal-footer { padding: 12px 24px 24px; border: 0; }
html.mrl-a #modal .modal-footer .btn-primary { width: 100%; min-height: 50px; margin: 0; border: 0; border-radius: 14px; background: var(--mrl-blue); color: #fff; font-size: 17px; font-weight: 600; }
html.mrl-a #modal .modal-footer .btn-primary:hover { background: var(--mrl-blue2); }

@media (max-width: 1180px) {
	#mrModal .mrm-grid { grid-template-columns: minmax(0, 1fr); }
	#mrModal .mrm-hero, #mrModal .mrm-hero-body { min-height: 560px; }
	#mrModal .mrm-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* wąsko: grafika nad tekstem */
@media (max-width: 860px) {
	#mrModal .mrm-hero, #mrModal .mrm-hero-body { min-height: 0; }
	#mrModal .mrm-hero-img {
		inset: 0 0 auto 0;
		width: 100%;
		height: 250px;
		object-position: 62% 30%;
		-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
	}
	#mrModal .mrm-hero-body { padding: 216px 28px 28px; }
	#mrModal .mrm-hero-copy { max-width: none; }
}
@media (max-width: 640px) {
	#mrModal .mrm-wrap { gap: 10px; padding: 10px 10px 24px; }
	#mrModal .mrm-grid { gap: 10px; }
	#mrModal .mrm-hero { border-radius: 26px; }
	#mrModal .mrm-hero-body { padding: 216px 20px 22px; }
	#mrModal .mrm-title { margin-bottom: 12px; font-size: 40px; letter-spacing: -.034em; }
	#mrModal .mrm-lead { margin-bottom: 20px; font-size: 16px; }
	#mrModal .mrm-actions .mrm-btn { flex: 1 1 100%; }
	#mrModal .mrm-actions-sec .mrm-btn { flex: 1 1 0; padding: 0 8px; font-size: 12.5px; white-space: nowrap; }
	#mrModal .mrm-sec { margin: 22px 6px 4px; font-size: 24px; }
	#mrModal .mrm-feats { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	#mrModal .mrm-feat { padding: 14px 16px; border-radius: 18px; }
	#mrModal .mrm-auth { padding: 26px 20px; border-radius: 26px; }
	#mrModal .mrm-logo { margin-bottom: 20px; }
	#mrModal .mrm-logo img { height: 50px; }
	#mrModal .mrm-auth-title { font-size: 28px; }
	#mrModal .mrm-foot { justify-content: center; gap: 8px 18px; }
	#mrModal .mrm-foot span { order: 1; flex: 1 0 100%; margin: 0; text-align: center; }
	#mrModal .mrm-age { padding: 10px; }
	#mrModal .mrm-age-box { padding: 24px 20px; border-radius: 26px; }
	#mrModal .mrm-age-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	#mrModal * { transition: none !important; animation: none !important; }
}
