/* ==========================================================================
   PINMS - publiczny portal zgloszen serwisowych (white-label)
   Akcent operatora przychodzi z ustawien jako --accent (inline w <head>),
   pozostale odcienie akcentu sa z niego wyliczane przez color-mix().
   ========================================================================== */

:root {
  --accent: #2A5BD7;
  --accent-ink: color-mix(in srgb, var(--accent) 82%, #000);
  --accent-50: color-mix(in srgb, var(--accent) 7%, #fff);
  --accent-100: color-mix(in srgb, var(--accent) 15%, #fff);
  --accent-300: color-mix(in srgb, var(--accent) 45%, #fff);
  --ring: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);

  --night: #0B1626;
  --night-2: #13213A;
  --ink: #0E1B2C;
  --ink-2: #26364D;
  --muted: #5B6676;
  --line: #E1E7EE;
  --line-2: #D2DAE4;
  --bg: #F3F6F9;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;

  --led-green: #3EE07F;
  --led-red: #FF4B4B;
  --led-off: #26364D;

  --success: #15803D;
  --success-50: #E7F6EC;
  --warning: #B45309;
  --warning-50: #FEF4E2;
  --info: #1D4ED8;
  --info-50: #E9F0FE;
  --danger: #C2312B;
  --danger-50: #FDEDEC;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 44, .05);
  --shadow: 0 1px 2px rgba(14, 27, 44, .04), 0 10px 30px rgba(14, 27, 44, .07);
  --shadow-lg: 0 28px 70px rgba(4, 10, 20, .45);

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.mono { font-family: var(--mono); letter-spacing: .01em; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.icon { width: 22px; height: 22px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 14px; height: 14px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow--light { color: color-mix(in srgb, var(--accent) 45%, #fff); }

/* ---------- LED ---------- */
.led {
  display: inline-block; width: 12px; height: 12px; flex: none; border-radius: 50%;
  background: var(--led-off);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .55);
}
.led--on { background: var(--led-green); box-shadow: 0 0 0 3px rgba(62, 224, 127, .16), 0 0 14px rgba(62, 224, 127, .75); }
.led--blink { background: var(--led-green); box-shadow: 0 0 12px rgba(62, 224, 127, .7); animation: ledBlink 1s steps(2, jump-none) infinite; }
.led--slow { animation-duration: 2.2s; }
.led--red { background: var(--led-red); box-shadow: 0 0 0 3px rgba(255, 75, 75, .18), 0 0 16px rgba(255, 75, 75, .85); animation: ledPulse 2.4s ease-in-out infinite; }
.led--off { background: #3A4A61; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.led--unknown { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
@keyframes ledBlink { 0% { opacity: 1; } 100% { opacity: .18; } }
@keyframes ledPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 75, 75, .18), 0 0 16px rgba(255, 75, 75, .85); } 50% { box-shadow: 0 0 0 6px rgba(255, 75, 75, .08), 0 0 24px rgba(255, 75, 75, 1); } }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; text-decoration: none !important; color: var(--ink); }
.brand__logo { max-height: 40px; width: auto; max-width: 180px; }
.brand__name { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__tag { padding-left: 14px; border-left: 1px solid var(--line-2); font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.topbar__nav { display: flex; gap: 2px; margin-left: auto; }
.nav-link { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.nav-link:hover { background: var(--accent-50); color: var(--accent-ink); text-decoration: none; }
.topbar__call {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 5px 16px 5px 5px; border-radius: 999px;
  background: var(--night); color: #fff; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.topbar__call:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11, 22, 38, .25); }
.topbar__call-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); }
.topbar__call-icon .icon { width: 17px; height: 17px; }
.topbar__call small { display: block; font-size: 10px; line-height: 1.2; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }
.topbar__call strong { display: block; font-size: 15px; line-height: 1.3; font-weight: 600; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 12px;
  font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn--primary:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn--primary:active { transform: none; }
.btn--dark { background: var(--night); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn--ghost-light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .22); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); }
.btn[disabled] { opacity: .75; cursor: progress; transform: none; }
.btn__spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn.is-loading .btn__label { visibility: hidden; }
.btn.is-loading .btn__spinner { display: block; position: absolute; }
.link { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 600; font-size: 13px; cursor: pointer; }
.link:hover { text-decoration: underline; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff;
  background:
    radial-gradient(800px 420px at 82% 18%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  padding: 64px 0 128px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%, #000 100%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero__title { margin: 14px 0 18px; font-family: var(--display); font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero__title-accent { color: color-mix(in srgb, var(--accent) 40%, #fff); }
.hero__lead { max-width: 540px; font-size: 17px; color: #B9C5D6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 32px 0 0; padding: 0; list-style: none; font-size: 14px; color: #C9D3E1; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts .icon { color: color-mix(in srgb, var(--accent) 45%, #fff); }

/* Panel diod - element charakterystyczny strony */
.device { margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.device__body {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px 26px 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #1D2A3E 0%, #111B2B 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -10px 24px rgba(0, 0, 0, .35), var(--shadow-lg);
  transform: perspective(900px) rotateX(8deg);
  transform-origin: bottom center;
}
.device__body::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: -14px; height: 14px;
  border-radius: 0 0 14px 14px; background: #0A121E; z-index: -1;
}
.device__leds { display: flex; gap: 18px; }
.device__led { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.device__led b { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; color: #8C9AAF; }
.device__ports { display: flex; align-items: center; gap: 6px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .06); }
.device__port { width: 16px; height: 13px; border-radius: 2px; background: #070D16; box-shadow: inset 0 0 0 1.5px #2C3A50; }
.device__fiber { width: 13px; height: 18px; border-radius: 3px; background: #1FA463; box-shadow: inset 0 0 0 2px #138A50; }
.device__caption {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 34px; padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  font-size: 13.5px; line-height: 1.5; color: #B9C5D6;
}
.device__caption strong { color: #fff; }
.device__caption-led { padding-top: 4px; }
.device--mini { justify-self: center; max-width: 260px; }
.device--mini .device__body { transform: none; padding: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.device--mini .device__body::after { display: none; }
.device--mini .device__leds { gap: 14px; }

.subhero { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #fff; padding: 46px 0 100px; }
.subhero__title { margin-top: 12px; font-family: var(--display); font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.03em; overflow-wrap: anywhere; }
.subhero__number { font-family: var(--mono); font-weight: 600; letter-spacing: 0; color: color-mix(in srgb, var(--accent) 40%, #fff); }

/* ---------- Layout ---------- */
.dashboard { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; margin-top: -84px; position: relative; padding-bottom: 72px; }
.dashboard__side { display: flex; flex-direction: column; gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ---------- Form card ---------- */
.form-card { padding: 32px; scroll-margin-top: 90px; }
.form-card__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.form-card__title { margin-top: 6px; font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -.02em; }

.stepper { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.stepper__item { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); transition: all .25s ease; }
.stepper__dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; font-weight: 600; transition: all .25s ease; }
.stepper__item.is-active { background: var(--accent-50); color: var(--accent-ink); }
.stepper__item.is-active .stepper__dot { background: var(--accent); border-color: transparent; color: #fff; }
.stepper__item.is-done { color: var(--ink-2); }
.stepper__item.is-done .stepper__dot { background: var(--ink); border-color: var(--ink); color: #fff; }

.progress { height: 4px; margin: 24px 0 28px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.progress__bar { display: block; width: 33.3%; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s cubic-bezier(.4, 0, .2, 1); }

.step { border: 0; padding: 0; margin: 0; min-width: 0; display: none; }
.step.is-active { display: block; animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step__title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 16px; font-weight: 600; }
.step__title .icon { color: var(--accent); }
.step__title ~ .step__title { margin-top: 12px; }
.step__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.step__actions .btn--primary { margin-left: auto; }
.step__note { font-size: 13px; color: var(--muted); }
.step__note em, .field__label em, .consent em { color: var(--danger); font-style: normal; }

/* ---------- Fields ---------- */
.field { margin-bottom: 24px; }
.field__label { display: block; margin-bottom: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.optional { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.field__help { margin: -2px 0 10px; font-size: 13px; color: var(--muted); }
.field input + .field__help, .input-group + .field__help { margin: 7px 0 0; }
.field__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.field__meta [data-counter] { white-space: nowrap; font-family: var(--mono); font-size: 12px; }
.field__error { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--danger); }
.field__error::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; flex: none; }

input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--surface-2); border: 1.5px solid var(--line-2); border-radius: 12px;
  font-size: 15.5px; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  appearance: none;
}
textarea { resize: vertical; min-height: 132px; line-height: 1.55; }
select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235B6676' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
input::placeholder, textarea::placeholder { color: #98A3B3; }
input:hover, select:hover, textarea:hover { border-color: #B9C4D2; }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: var(--ring); }
.is-invalid input, .is-invalid textarea, .is-invalid .input-group { border-color: var(--danger); }
.is-invalid input:focus, .is-invalid textarea:focus { box-shadow: 0 0 0 4px rgba(194, 49, 43, .14); }

.input-group { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface-2); transition: border-color .15s, box-shadow .15s; }
.input-group:focus-within { border-color: var(--accent); box-shadow: var(--ring); background: #fff; }
.input-group__addon { display: grid; place-items: center; padding: 0 14px; border-right: 1.5px solid var(--line-2); color: var(--muted); font-family: var(--mono); font-size: 14px; }
.input-group input { border: 0; background: transparent; box-shadow: none !important; }
.is-invalid .input-group input { border: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 18px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }

/* Kafelki kategorii */
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.category-tile { position: relative; cursor: pointer; }
.category-tile input { position: absolute; opacity: 0; pointer-events: none; }
.category-tile__body {
  position: relative; display: flex; flex-direction: column; gap: 3px; height: 100%;
  padding: 16px; border: 1.5px solid var(--line-2); border-radius: var(--radius);
  background: var(--surface); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.category-tile:hover .category-tile__body { border-color: var(--accent-300); transform: translateY(-2px); box-shadow: var(--shadow); }
.category-tile__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 12px; background: var(--accent-50); color: var(--accent); transition: all .18s ease; }
.category-tile__title { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.category-tile__hint { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.category-tile__check { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; opacity: 0; transform: scale(.5); transition: all .2s cubic-bezier(.34, 1.56, .64, 1); }
.category-tile input:checked + .category-tile__body { border-color: var(--accent); background: var(--accent-50); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.category-tile input:checked + .category-tile__body .category-tile__icon { background: var(--accent); color: #fff; }
.category-tile input:checked + .category-tile__body .category-tile__check { opacity: 1; transform: none; }
.category-tile input:focus-visible + .category-tile__body { box-shadow: var(--ring); }
.is-invalid .category-tile__body { border-color: #F0B7B4; }

/* Chipy */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 16px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all .15s ease; }
.chip:hover span { border-color: var(--accent-300); }
.chip input:checked + span { border-color: var(--accent); background: var(--accent-50); color: var(--accent-ink); }
.chip input:focus-visible + span { box-shadow: var(--ring); }

/* Wybor diod - ten sam motyw co w hero, tylko jasny */
.led-picker {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  padding: 14px; border-radius: var(--radius);
  background: linear-gradient(180deg, #1D2A3E 0%, #111B2B 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.led-picker__item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.led-picker__btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%;
  padding: 14px 6px 10px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px;
  background: rgba(255, 255, 255, .03); color: #fff; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.led-picker__btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.led-picker__btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 50%, #fff); outline-offset: 2px; }
.led-picker__btn .led { width: 16px; height: 16px; }
.led-picker__btn .led--unknown { box-shadow: inset 0 0 0 1.5px #4A5B74; }
.led-picker__code { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: #DDE5F0; }
.led-picker__name { font-size: 11.5px; color: #8C9AAF; line-height: 1.2; text-align: center; }
.led-picker__state { font-size: 12px; font-weight: 500; color: #B9C5D6; text-align: center; line-height: 1.25; min-height: 30px; }
.led-picker__item.is-set .led-picker__state { color: #fff; }
.led-picker__fallback { display: none; width: 100%; }
.led-picker__fallback select { min-height: 40px; font-size: 13px; padding: 8px 32px 8px 10px; }

/* Karty "co sprawdzono" */
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; transition: all .15s ease; }
.check-card:hover { border-color: var(--accent-300); }
.check-card input { position: absolute; opacity: 0; pointer-events: none; }
.check-card__box, .consent__box { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border: 1.5px solid #B9C4D2; border-radius: 7px; color: transparent; background: #fff; transition: all .15s ease; }
.check-card__icon { color: var(--muted); display: flex; }
.check-card__label { font-size: 14px; font-weight: 500; line-height: 1.35; }
.check-card input:checked ~ .check-card__box, .consent input:checked ~ .consent__box { background: var(--accent); border-color: transparent; color: #fff; }
.check-card:has(input:checked) { border-color: var(--accent); background: var(--accent-50); }
.check-card:has(input:checked) .check-card__icon { color: var(--accent); }
.check-card input:focus-visible ~ .check-card__box, .consent input:focus-visible ~ .consent__box { box-shadow: var(--ring); }

.consent { position: relative; display: flex; gap: 12px; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1.5px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.is-invalid .consent { border-color: #F0B7B4; background: var(--danger-50); }
.consent__note { margin: 10px 2px 0; font-size: 12.5px; }

/* Podsumowanie */
.summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.summary__block { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.summary__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.summary dl, .details { display: grid; grid-template-columns: 104px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.summary dt, .details dt { color: var(--muted); }
.summary dd, .details dd { margin: 0; font-weight: 500; word-break: break-word; }
.summary__desc { white-space: pre-line; max-height: 140px; overflow: auto; font-weight: 400 !important; }

/* Komunikaty */
.alert { position: relative; padding: 14px 16px 14px 46px; margin-bottom: 20px; border-radius: 12px; font-size: 14px; font-weight: 500; }
.alert .icon { position: absolute; left: 16px; top: 15px; }
.alert--error { background: var(--danger-50); color: #8E1F1A; border: 1px solid #F5CDCA; }
.alert--success { background: var(--success-50); color: #14532D; border: 1px solid #C2E8CF; }

/* ---------- Sukces ---------- */
.success { text-align: center; padding: 16px 8px 8px; animation: stepIn .4s ease; outline: none; }
.success__badge { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; background: var(--success-50); display: grid; place-items: center; }
.success__badge svg { width: 56px; height: 56px; fill: none; stroke: var(--success); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success__badge circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: dash .6s ease forwards; }
.success__badge path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: dash .4s .5s ease forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.success__title { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.success__lead { margin-top: 8px; color: var(--muted); }
.ticket-number { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin: 26px auto 14px; padding: 20px 32px; border: 1.5px dashed var(--accent-300); border-radius: var(--radius); background: var(--accent-50); }
.ticket-number > span { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ticket-number strong { font-family: var(--mono); font-size: 28px; font-weight: 600; letter-spacing: .02em; color: var(--accent-ink); }
.success__mail { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.success__mail .icon { color: var(--success); }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0; padding: 0; list-style: none; text-align: left; }
.next-steps li { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.next-steps li > span { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.next-steps strong { font-size: 14.5px; }
.next-steps p { margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.success__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---------- Panel boczny ---------- */
.side-card { padding: 26px; }
.side-card__title { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.side-card > p { margin: 6px 0 18px; font-size: 14px; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.tips { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.tips li { display: flex; gap: 14px; }
.tips__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--accent-50); color: var(--accent); }
.tips__icon .icon { width: 19px; height: 19px; }
.tips strong { font-size: 14px; font-weight: 600; }
.tips p { font-size: 13px; color: var(--muted); line-height: 1.45; }
/* "Zanim zgloszysz problem" - wyeksponowane kolorem akcentu operatora, delikatnie pulsuje
   (przy prefers-reduced-motion zostaje sama ramka - globalna regula na dole pliku) */
.side-card--tips {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-50) 0%, var(--surface) 55%);
  animation: tipsPulse 2.8s ease-in-out infinite;
}
.side-card__badge {
  display: inline-block; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
@keyframes tipsPulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 38%, transparent), var(--shadow); }
  60%      { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent), var(--shadow); }
}

.side-card--contact { background: linear-gradient(160deg, var(--night-2) 0%, var(--night) 100%); border-color: transparent; color: #fff; }
.side-card--contact > p { color: #B9C5D6; }
.contact-big { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--display); font-size: 25px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.contact-big .icon, .contact-line .icon { color: color-mix(in srgb, var(--accent) 45%, #fff); }
.contact-line { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; color: #CFD8E4; }
a.contact-line:hover { color: #fff; }

/* ---------- Status ---------- */
.status-page { margin-top: -60px; padding-bottom: 72px; position: relative; }
.lookup-card { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: center; max-width: 840px; margin: 0 auto; padding: 36px; }
.lookup-card--single { grid-template-columns: 1fr; max-width: 640px; }
.lookup-card__art { display: grid; place-items: center; height: 100%; min-height: 220px; border-radius: var(--radius); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 25%, var(--night-2)), var(--night) 75%); padding: 20px; }
.lookup-card__title { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.lookup-card .muted { margin: 8px 0 20px; font-size: 14px; }
.lookup-card .btn { margin: 4px 0 16px; }

.status-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.status-card { padding: 32px; }
.status-card__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.status-card__cat { display: flex; align-items: center; gap: 14px; }
.status-card__cat .category-tile__icon { margin: 0; }
.status-card__cat small { display: block; font-size: 12.5px; color: var(--muted); }
.status-card__cat strong { font-size: 17px; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--info { background: var(--info-50); color: var(--info); }
.badge--warning { background: var(--warning-50); color: var(--warning); }
.badge--accent { background: var(--accent-50); color: var(--accent-ink); }
.badge--success { background: var(--success-50); color: var(--success); }
.badge--muted { background: #EDF1F5; color: var(--muted); }

.track { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 36px 0 40px; padding: 0; list-style: none; }
.track::before, .track::after { content: ""; position: absolute; top: 17px; left: 16.66%; height: 3px; border-radius: 3px; }
.track::before { right: 16.66%; background: var(--line); }
.track::after { width: calc(var(--stage) * 33.33%); background: var(--accent); transition: width .6s ease; }
.track__step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.track__dot { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); font-family: var(--mono); font-size: 14px; font-weight: 600; }
.track__step.is-current .track__dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 14%, transparent); }
.track__step.is-current { color: var(--ink); font-weight: 600; }
.track__step.is-done .track__dot { background: var(--accent); border-color: transparent; color: #fff; box-shadow: none; }
.track__step.is-done { color: var(--ink); }

.section-title { margin: 8px 0 18px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline__item { position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
.timeline__item:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline__dot { width: 14px; height: 14px; flex: none; margin-top: 4px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.timeline__item--info .timeline__dot { background: var(--info); }
.timeline__item--warning .timeline__dot { background: var(--warning); }
.timeline__item--accent .timeline__dot { background: var(--accent); }
.timeline__item--success .timeline__dot { background: var(--success); }
.timeline__item > div { flex: 1; min-width: 0; }
.timeline__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.timeline__head strong { font-size: 14.5px; }
.timeline__head time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.timeline p { margin-top: 4px; font-size: 14px; color: var(--ink-2); }

.details { grid-template-columns: 116px 1fr; margin-top: 14px; font-size: 13.5px; }
.details__sub { margin: 22px 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.quote { padding: 14px 16px; border-left: 3px solid var(--accent); border-radius: 8px; background: var(--surface-2); font-size: 14px; line-height: 1.6; color: var(--ink-2); word-break: break-word; }
.led-report { margin: 0; padding: 12px 14px; list-style: none; display: grid; gap: 8px; border-radius: 12px; background: var(--night-2); color: #DDE5F0; font-size: 13.5px; }
.led-report li { display: flex; align-items: center; gap: 10px; }
.led-report .mono { min-width: 44px; font-size: 12px; color: #8C9AAF; }

/* ---------- Stopka ---------- */
.footer { background: var(--night); color: #AEBACB; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; padding-top: 48px; padding-bottom: 36px; flex-wrap: wrap; }
.footer__name { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.footer__brand p { max-width: 340px; margin-top: 10px; }
.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__heading { margin-bottom: 12px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.footer__cols a, .footer__cols span { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #CFD8E4; }
.footer__cols .icon { color: color-mix(in srgb, var(--accent) 45%, #fff); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: #7F8DA2; }
.footer__links { display: flex; gap: 18px; }
.footer__bottom a { color: #CFD8E4; }

/* ---------- Responsywnosc ---------- */
@media (max-width: 1080px) {
  .status-grid { grid-template-columns: 1fr; }
  /* W jednej kolumnie "Zanim zgloszysz problem" trafia PRZED formularz (zgodnie z nazwa),
     pozostale karty panelu bocznego - pod formularz */
  .dashboard { display: flex; flex-direction: column; }
  .dashboard__side { display: contents; }
  .side-card--tips { order: -1; }
  .topbar__nav { display: none; }
  .topbar__call { margin-left: auto; }
}
@media (max-width: 900px) {
  .hero { padding: 40px 0 112px; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .device { justify-self: start; max-width: 420px; }
  .device__body { transform: none; }
  .device__caption { margin-top: 26px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .next-steps { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr; }
  .lookup-card { grid-template-columns: 1fr; }
  .lookup-card__art { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .topbar__inner { height: 62px; gap: 12px; }
  .brand__tag { display: none; }
  .brand__name { font-size: 18px; }
  .topbar__call { padding: 4px; }
  .topbar__call-text { display: none; }
  .hero { padding: 32px 0 100px; }
  .hero__lead { font-size: 16px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .device { display: none; }
  .form-card, .status-card, .lookup-card { padding: 22px 18px; }
  .form-card__title { font-size: 24px; }
  .stepper { width: 100%; justify-content: space-between; }
  .stepper__label { display: none; }
  .stepper__item.is-active .stepper__label { display: inline; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .category-tile__hint { display: none; }
  .category-tile__body { padding: 14px; }
  .check-grid { grid-template-columns: 1fr; }
  .led-picker { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 10px 8px; }
  .led-picker__btn { padding: 12px 2px 8px; }
  .led-picker__name { display: none; }
  .led-picker__state { font-size: 11px; }
  .step__actions .btn { flex: 1; }
  .step__note { display: none; }
  .ticket-number { padding: 16px 20px; }
  .ticket-number strong { font-size: 22px; }
  .summary dl, .details { grid-template-columns: 92px 1fr; }
  .track__step { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
