/*
 * Ekran logowania (public/login.html). Uklad wzorowany na logowaniu
 * w "Dashboardach konsultantow": po lewej ciemny panel marki (zawsze ciemny),
 * po prawej formularz na tle strony z przelacznikiem motywu u gory.
 * Na waskim ekranie: najpierw formularz, pod nim panel z informacjami.
 */
:root,
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0c0c0c;
  --surface: #161616;
  --surface-2: #1f1f1f;
  --line: #2a2a2a;
  --line-firm: #3a3733;
  --text: #ece7de;
  --text-2: #b3ab9f;
  --muted: #7f786d;
  --accent: #c8973a;
  --accent-ink: #120d05;
  --accent-text: #d9ad57;
  --accent-soft: rgba(200, 151, 58, 0.14);
  --ring: 0 0 0 3px rgba(200, 151, 58, 0.22);
  --danger: #e06363;
  --danger-bg: rgba(224, 99, 99, 0.1);
  --danger-line: rgba(224, 99, 99, 0.32);
  --warn: #d9a441;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f6f1e8;
  --surface: #fffcf6;
  --surface-2: #f1e9dc;
  --line: #e2d6c3;
  --line-firm: #d3c4ad;
  --text: #1d1915;
  --text-2: #4d463d;
  --muted: #857b6d;
  --accent: #9b681d;
  --accent-ink: #fffaf0;
  --accent-text: #8a5a14;
  --accent-soft: rgba(155, 104, 29, 0.11);
  --ring: 0 0 0 3px rgba(155, 104, 29, 0.18);
  --danger: #b8233f;
  --danger-bg: rgba(184, 35, 63, 0.07);
  --danger-line: rgba(184, 35, 63, 0.28);
  --warn: #9a6a12;
  --shadow-xs: 0 1px 2px rgba(60, 40, 10, 0.08);
}

:root {
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 12px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; -webkit-font-smoothing: antialiased;
}
body { min-height: 100dvh; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
svg { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@keyframes lg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

.lg {
  min-height: 100dvh;
  display: grid; grid-template-columns: minmax(440px, 46%) minmax(0, 1fr);
}

/* ── Panel marki (zawsze ciemny) ───────────────────────── */
.lg-brand {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 28px 48px;
  background: #100f0d; color: #ece7de;
}
.lg-brand::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(200, 151, 58, 0.22), transparent 70%),
    radial-gradient(55% 45% at 100% 18%, rgba(160, 82, 45, 0.14), transparent 70%),
    radial-gradient(80% 60% at 70% 112%, rgba(200, 151, 58, 0.18), transparent 70%);
}

.lg-logo { display: inline-flex; align-items: center; gap: 11px; min-height: 36px; }
.lg-logo img { width: 34px; height: 34px; border-radius: 9px; }
.lg-logo span { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.lg-brand .lg-logo { color: #fff; }

.lg-pitch { margin: auto 0; padding: 28px 0 20px; max-width: 480px; display: grid; gap: 22px; animation: lg-in 0.6s var(--ease); }
.lg-headline {
  font-family: var(--serif); font-size: clamp(30px, 2.9vw, 40px); line-height: 1.12;
  font-weight: 700; letter-spacing: -0.02em; color: #fff; text-wrap: balance;
}
.lg-headline em { font-style: italic; color: #d9ad57; }
.lg-lead { margin-top: 14px; font-size: 15px; line-height: 1.6; color: #a9a196; }
.lg-lead strong { color: #ece7de; font-weight: 600; }

.lg-section-title {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #8a8276; margin-bottom: 12px;
}
.lg-steps { list-style: none; padding: 0; display: grid; gap: 14px; }
.lg-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; }
.lg-step-no {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(200, 151, 58, 0.45); background: rgba(200, 151, 58, 0.12);
  color: #d9ad57; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums;
}
.lg-steps strong { display: block; padding-top: 5px; font-size: 14.5px; line-height: 1.35; color: #fff; font-weight: 600; }
.lg-steps p { margin-top: 3px; font-size: 13.5px; line-height: 1.55; color: #a9a196; }
.lg-step-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.lg-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 13px;
  border-radius: 999px; border: 1px solid rgba(200, 151, 58, 0.5);
  color: #d9ad57; font-weight: 600; font-size: 12.5px; transition: background 0.15s, color 0.15s;
}
.lg-chip:hover { background: rgba(200, 151, 58, 0.14); color: #f0c672; }

.lg-note {
  padding: 11px 13px; border-radius: var(--r);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
  color: #b3ab9f; font-size: 13px; line-height: 1.5;
}

.lg-perks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lg-perks li {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border-radius: var(--r); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px; line-height: 1.45; color: #c9c1b5;
}
.lg-perks svg { color: #d9ad57; margin-top: 1px; }
.lg-perks a { color: #d9ad57; font-weight: 600; }
.lg-perks a:hover { text-decoration: underline; }

.lg-brand-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; align-items: center;
  min-height: 20px; font-size: 12.5px; line-height: 20px; color: #77706a;
}
.lg-brand-foot a { color: #a9a196; transition: color 0.15s; }
.lg-brand-foot a:hover { color: #d9ad57; }

/* ── Strona formularza ─────────────────────────────────── */
.lg-main {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  padding: 28px 40px;
}
.lg-main-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.lg-main-top .lg-logo { visibility: hidden; color: var(--text); }
.lg-theme {
  width: 36px; height: 36px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--muted);
  box-shadow: var(--shadow-xs); transition: color 0.15s, border-color 0.15s;
}
.lg-theme:hover { color: var(--text); border-color: var(--line-firm); }
:root[data-theme='dark'] .lg-theme .i-moon,
:root[data-theme='light'] .lg-theme .i-sun { display: none; }

.lg-panel { width: 100%; max-width: 400px; margin: auto; padding: 40px 0; animation: lg-in 0.5s var(--ease); }
.lg-title { font-family: var(--serif); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.lg-sub { margin: 8px 0 28px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }

.lg-alert {
  display: flex; gap: 10px; align-items: flex-start;
  margin-bottom: 20px; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--danger-line); background: var(--danger-bg); color: var(--danger);
  font-size: 13.5px; line-height: 1.45; font-weight: 500;
}
.lg-alert svg { margin-top: 1px; }

.lg-field { margin-bottom: 18px; }
.lg-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.lg-label { font-size: 13px; font-weight: 600; color: var(--text); }
.lg-label-row a { font-size: 12.5px; font-weight: 600; color: var(--accent-text); }
.lg-label-row a:hover { text-decoration: underline; }

.lg-input { position: relative; }
.lg-input > .lg-ico {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; transition: color 0.15s;
}
.lg-input input {
  width: 100%; height: 48px; padding: 0 46px 0 44px;
  border: 1px solid var(--line-firm); border-radius: 10px;
  background: var(--surface); color: var(--text); font-size: 15px;
  box-shadow: var(--shadow-xs); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.lg-input input::placeholder { color: var(--muted); }
.lg-input input:hover { border-color: var(--muted); }
.lg-input input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.lg-input input:focus-visible { outline: none; }
.lg-input:focus-within > .lg-ico { color: var(--accent-text); }
.lg-eye {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px;
  color: var(--muted); transition: color 0.15s, background 0.15s;
}
.lg-eye:hover { color: var(--text); background: var(--surface-2); }
.lg-eye:focus-visible { outline: none; box-shadow: var(--ring); }

.lg-hint { display: none; align-items: center; gap: 6px; margin-top: 7px; font-size: 12.5px; font-weight: 600; color: var(--warn); }
.lg-hint.is-visible { display: flex; }

.lg-submit {
  width: 100%; height: 48px; margin-top: 8px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 15px;
  transition: filter 0.15s, transform 0.15s, opacity 0.2s;
}
.lg-submit:hover { filter: brightness(1.07); }
.lg-submit:active { transform: scale(0.985); }
.lg-submit:disabled { opacity: 0.6; cursor: default; }
.lg-submit .lg-arrow { transition: transform 0.2s var(--ease); }
.lg-submit:hover:not(:disabled) .lg-arrow { transform: translateX(3px); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.18); border-top-color: var(--accent-ink); animation: spin 0.8s linear infinite; }

.lg-alt {
  margin-top: 28px;
  text-align: center; font-size: 13.5px; color: var(--text-2);
}
.lg-alt a { color: var(--accent-text); font-weight: 600; }
.lg-alt a:hover { text-decoration: underline; }

.lg-help { margin-top: 14px; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.lg-help a { color: var(--text-2); font-weight: 600; }
.lg-help a:hover { color: var(--accent-text); }

.lg-main-foot { display: flex; justify-content: flex-end; min-height: 20px; align-items: center; font-size: 12.5px; line-height: 20px; }
.lg-main-foot a { color: var(--muted); transition: color 0.15s; }
.lg-main-foot a:hover { color: var(--accent-text); }

/* ── Rejestracja i reset hasla: dodatkowe elementy ─────── */
.lg-panel--wide { max-width: 440px; }
.lg-alert.is-info { border-color: var(--line-firm); background: var(--accent-soft); color: var(--text-2); font-weight: 400; }
.lg-alert.is-info svg { color: var(--accent-text); }
.lg-alert.is-info strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.lg-alert.is-info a { color: var(--accent-text); font-weight: 600; }
.lg-alert.is-success { border-color: rgba(79, 163, 107, 0.35); background: rgba(79, 163, 107, 0.1); color: #6cc08a; }
:root[data-theme='light'] .lg-alert.is-success { color: #2c7446; background: rgba(44, 116, 70, 0.07); border-color: rgba(44, 116, 70, 0.28); }

.lg-optional { font-weight: 400; color: var(--muted); }
.lg-textarea {
  width: 100%; min-height: 84px; padding: 11px 14px; resize: vertical;
  border: 1px solid var(--line-firm); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 14.5px; line-height: 1.5;
  box-shadow: var(--shadow-xs); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.lg-textarea::placeholder { color: var(--muted); }
.lg-textarea:hover { border-color: var(--muted); }
.lg-textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }

.lg-choices { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.lg-choices legend { padding: 0; margin-bottom: 9px; font-size: 13px; font-weight: 600; color: var(--text); }
.lg-choice {
  display: flex; align-items: center; gap: 11px; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--line-firm); border-radius: 10px; background: var(--surface);
  font-size: 14px; line-height: 1.4; color: var(--text-2);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.lg-choice:hover { border-color: var(--muted); }
.lg-choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); flex: none; }
.lg-choice strong { color: var(--text); font-weight: 600; }
.lg-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.lg-choice:has(input:focus-visible) { box-shadow: var(--ring); }

.lg-pay {
  margin-bottom: 18px; padding: 14px; border-radius: 10px;
  border: 1px solid var(--line-firm); background: var(--surface-2);
  display: grid; gap: 8px; font-size: 13.5px; line-height: 1.5; color: var(--text-2);
}
.lg-pay strong { color: var(--text); }
.lg-pay-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lg-pay-links a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent-text); font-weight: 600; font-size: 13px;
  transition: background 0.15s;
}
.lg-pay-links a:hover { background: var(--accent-soft); }
.lg-pay-note { font-size: 12.5px; color: var(--muted); }

.lg-meter { height: 4px; margin-top: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.lg-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--danger); transition: width 0.25s var(--ease), background 0.25s; }
.lg-meter i[data-level='2'] { background: #d29a3a; }
.lg-meter i[data-level='3'], .lg-meter i[data-level='4'] { background: #4fa36b; }
.lg-field-hint { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

.lg-account {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font-size: 14px; overflow-wrap: anywhere;
}
.lg-account svg { color: var(--accent-text); }
.lg-account strong { color: var(--text); }

.lg-notice {
  display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: 28px 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-xs); animation: lg-in 0.4s var(--ease);
}
.lg-notice h2 { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.lg-notice p { color: var(--text-2); font-size: 14px; line-height: 1.55; }
.lg-notice strong { color: var(--text); overflow-wrap: anywhere; }
.lg-notice .lg-muted { color: var(--muted); font-size: 12.5px; }
.lg-notice .lg-submit { margin-top: 8px; }
.lg-notice-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.lg-notice[data-kind='bad'] .lg-notice-icon { background: var(--danger-bg); color: var(--danger); }
.lg-notice[data-kind='ok'] .lg-notice-icon { background: rgba(79, 163, 107, 0.14); color: #4fa36b; }
.spinner--accent { width: 22px; height: 22px; border-color: var(--surface-2); border-top-color: var(--accent); }
.lg-linkbtn { color: var(--accent-text); font-weight: 600; font-size: 13.5px; }
.lg-linkbtn:hover { text-decoration: underline; }

.lg-tips { list-style: none; padding: 0; display: grid; gap: 10px; }
.lg-tips li { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: #a9a196; }
.lg-tips li strong { color: #fff; font-weight: 600; }
.lg-tips svg { color: #d9ad57; margin-top: 2px; }

/* ── Waski ekran: formularz na gorze, informacje pod nim ── */
@media (max-width: 960px) {
  .lg { grid-template-columns: minmax(0, 1fr); }
  .lg-main { order: 1; min-height: 100dvh; }
  .lg-brand { order: 2; padding-left: 48px; }
  .lg-brand > .lg-logo { display: none; }
  .lg-main-top .lg-logo { visibility: visible; }
  .lg-pitch { margin: 0; padding: 12px 0 32px; max-width: 640px; }
}
@media (max-width: 560px) {
  .lg-main { padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 18px; min-height: auto; }
  .lg-panel { padding: 32px 0 36px; }
  .lg-title { font-size: 27px; }
  .lg-brand { padding: 32px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .lg-perks { grid-template-columns: minmax(0, 1fr); }
  .lg-main-foot { display: none; }
}


/* ── Rodzaje kont (rejestracja) ─────────────────────────── */
.lg-plans { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.lg-plans legend { padding: 0; margin-bottom: 9px; font-size: 13px; font-weight: 600; color: var(--text); }
.lg-plan {
  position: relative; display: grid; align-content: start; gap: 8px; padding: 14px 14px 14px 42px; cursor: pointer;
  border: 1px solid var(--line-firm); border-radius: 12px; background: var(--surface);
  font-size: 13.5px; line-height: 1.45; color: var(--text-2);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.lg-plan:hover { border-color: var(--muted); }
.lg-plan input { position: absolute; left: 14px; top: 16px; width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.lg-plan:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.lg-plan:has(input:focus-visible) { box-shadow: var(--ring); }
.lg-plan-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 10px; }
.lg-plan-head strong { color: var(--text); font-size: 15px; }
.lg-plan-head em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--accent-text); }
.lg-plan-lead { font-size: 12.5px; color: var(--muted); }
.lg-plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lg-plan-list li { display: flex; align-items: flex-start; gap: 8px; }
.lg-plan-list svg { flex: none; margin-top: 2px; color: var(--accent-text); }
@media (max-width: 640px) { .lg-plans { grid-template-columns: minmax(0, 1fr); } }

/* Panel boczny: porownanie kont */
.lg-tiers { display: grid; gap: 10px; }
.lg-tier {
  display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r);
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 13px; line-height: 1.45; color: #c9c1b5;
}
.lg-tier--accent { border-color: rgba(200, 151, 58, 0.45); background: rgba(200, 151, 58, 0.08); }
.lg-tier > strong { color: #ece7de; font-size: 14px; }
.lg-tier > strong em { display: block; font-style: normal; font-weight: 500; font-size: 12px; color: #a9a196; }
.lg-tier .lg-plan-list svg { color: #d9ad57; }

/* Paski przewijania w kolorze akcentu - jak na stronie. */
/* Standardowe scrollbar-* tylko dla Firefoksa: w Chrome/Edge/Safari wlaczaja
   systemowy pasek ze strzalkami i wylaczaja ponizsze, ciensze ::-webkit-*. */
@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--accent) 55%, transparent) transparent;
  }
}
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Uklad na komputerze (logowanie, rejestracja, reset hasla) ──────────
   Panel marki ma wysokosc ekranu (przyklejony), wiec jego blyski swiatla nie
   zaleza od dlugosci formularza. Prawa kolumna jak lewa: tresc wysrodkowana
   w pionie, dolna linia (np. "Masz juz konto?") rowno ze stopka po lewej.
   Copyright przy lewej krawedzi ekranu, kontakt lustrzanie przy prawej. */
@media (min-width: 961px) {
  .lg { align-items: start; }
  .lg .lg-brand {
    position: sticky; top: 0; height: 100dvh; overflow-y: auto;
    padding: 28px 48px;
    /* Bez paska przewijania (byl zlota pionowa kreska przy krawedzi). */
    scrollbar-width: none;
  }
  .lg .lg-brand::-webkit-scrollbar { display: none; }
  /* Logo i tresc dosuniete do prawej krawedzi kolumny (blizej formularza). */
  .lg-brand > .lg-logo, .lg-brand > .lg-pitch { margin-left: max(0px, 100% - 480px); }
  .lg-brand > .lg-pitch { width: 100%; }
  .lg .lg-foot-mail { display: none; }

  .lg .lg-main { min-height: 100dvh; }
  .lg .lg-main-top { position: absolute; top: 28px; right: 40px; }
  .lg .lg-main-foot { display: none; }
  .lg .lg-panel {
    flex: 1; display: flex; flex-direction: column;
    margin: 0 auto; padding: 44px 0 0;
  }
  /* Rowne odstepy nad i pod trescia; stopka panelu zawsze na dole. */
  .lg .lg-panel::before, .lg .lg-panel::after { content: ''; flex: 1 0 0; }
  .lg .lg-panel::after { order: 1; min-height: 28px; }
  .lg .lg-panel-foot { order: 2; }
  .lg .lg-title, .lg .lg-sub { text-align: center; }
  .lg-panel--reg .lg-reg { display: contents; }
  .lg-panel--reg .lg-reg-actions { margin-top: 0; }
  .lg .lg-panel-foot .lg-alt { margin-top: 0; line-height: 20px; }
  .lg .lg-panel-foot .lg-help { line-height: 20px; }
  .lg .lg-contact {
    display: block; position: absolute; right: 40px; bottom: 28px;
    font-size: 12.5px; line-height: 20px; color: var(--muted); transition: color 0.15s;
  }
  .lg .lg-contact:hover { color: var(--accent-text); }
}
.lg-contact { display: none; }
.lg-panel--reg { max-width: 940px; margin: 0 auto; padding: 0 0 28px; }
.lg-panel--reg .lg-sub { margin-bottom: 22px; }
.lg-reg { display: flex; flex-direction: column; }
.lg-reg-cols {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 28px; align-items: start; align-content: start;
}
/* Tytul i przycisk wysrodkowane wzgledem obu kolumn. */
.lg-reg-title { text-align: center; }
.lg-reg-actions { width: 100%; max-width: 380px; margin: 8px auto 0; }
.lg-reg-actions .lg-alt { margin-top: 16px; }
.lg-reg-side { display: grid; gap: 14px; }
.lg-reg-side .lg-plans { margin: 0; }
.lg-reg-side .lg-alert { margin: 0; }
.lg-reg-fields .lg-field { margin-bottom: 14px; }
.lg-reg-fields .lg-textarea { min-height: 70px; }
.lg-support-fields { transition: opacity 0.15s; }
.lg-support-fields .lg-choices { margin-bottom: 12px; gap: 6px; }
.lg-support-fields .lg-choice { padding-top: 9px; padding-bottom: 9px; }
@media (max-width: 1499px) {
  .lg-reg-cols { grid-template-columns: minmax(0, 1fr); }
  .lg-reg-side { margin-bottom: 18px; }
}
@media (min-width: 961px) and (max-width: 1499px) {
  .lg-panel--reg { max-width: 460px; }
}
@media (max-width: 960px) {
  .lg-panel--reg { padding-top: 26px; }
}
