/* Naprawsprzet.pl: style strony klienta */

:root {
  --ink: #0c1116;
  --ink-2: #171e27;
  --ink-3: #2a3340;
  --paper: #f4f5f1;
  --white: #ffffff;
  --line: #e2e4dd;
  --line-strong: #c9ccc2;
  --muted: #5b6470;
  --accent: #c8f542;
  --accent-dark: #b4e02a;
  --accent-ink: #1a2400;
  --ok: #17803d;
  --ok-bg: #e7f6ec;
  --warn: #9a5b00;
  --warn-bg: #fdf1dc;
  --bad: #b3261e;
  --bad-bg: #fdecea;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(12, 17, 22, .06), 0 12px 32px rgba(12, 17, 22, .08);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .2), 0 30px 70px rgba(0, 0, 0, .35);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  /* Stopka zawsze na dole okna, także na krótkich stronach. */
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid #3b6cff; outline-offset: 2px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 40px); }

/* --- przyciski ----------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-dark); box-shadow: 0 6px 18px rgba(180, 224, 42, .35); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }

/* --- nagłówek ------------------------------------------------------------ */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 17, 22, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--white);
}
.topbar__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { font-weight: 800; font-size: 1.45rem; letter-spacing: -.03em; text-decoration: none; color: var(--white); }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: rgba(255, 255, 255, .78); }
.nav a:hover { color: var(--white); }
.account { display: flex; gap: 20px; margin-left: auto; }
.nav + .account { margin-left: 0; padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .16); }
.account a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--white); white-space: nowrap; }
.account a:hover { color: var(--accent); }

/* --- hero ---------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(200, 245, 66, .16), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(59, 108, 255, .14), transparent 60%),
    var(--ink);
  color: var(--white);
  padding: 56px 0 88px;
}
.hero__in { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; align-items: start; }
.hero__copy { padding-top: 34px; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent);
}
.hero h1 { margin-top: 18px; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; }
.hl { color: var(--accent); }
.lead { margin-top: 22px; font-size: 1.14rem; color: rgba(255, 255, 255, .76); max-width: 30em; }
.ticks { margin-top: 30px; display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: rgba(255, 255, 255, .92); }
.ticks .ico { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: rgba(200, 245, 66, .16); color: var(--accent); stroke-width: 2.6; }

/* --- kreator zlecenia ---------------------------------------------------- */

.wizard {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 22px;
}

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--paper); border-radius: 18px; }
.modes__btn {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 12px 14px; border: 0; border-radius: 13px; background: transparent; cursor: pointer;
  color: var(--muted); transition: background .15s, color .15s, box-shadow .15s;
}
.modes__btn .ico { width: 22px; height: 22px; }
.modes__btn b { display: block; font-size: 1rem; line-height: 1.2; }
.modes__btn small { display: block; font-size: .78rem; line-height: 1.3; margin-top: 2px; }
.modes__btn:hover { color: var(--ink); }
.modes__btn.is-on { background: var(--ink); color: var(--white); box-shadow: 0 4px 14px rgba(12, 17, 22, .25); }
.modes__btn.is-on .ico { color: var(--accent); }
.modes__btn.is-on small { color: rgba(255, 255, 255, .7); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 20px 2px 4px; }
.steps li {
  display: flex; align-items: center; gap: 8px; padding-top: 10px;
  border-top: 3px solid var(--line); font-size: .86rem; font-weight: 600; color: var(--muted);
}
.steps li i {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--line); color: var(--muted); font-style: normal; font-size: .76rem; font-weight: 700;
}
.steps li.is-done, .steps li.is-current { border-top-color: var(--ink); color: var(--ink); }
.steps li.is-done { cursor: pointer; }
.steps li.is-done i { background: var(--ink); color: var(--accent); }
.steps li.is-current i { background: var(--accent); color: var(--accent-ink); }

.js .step { display: none; }
.js .step.is-active { display: block; animation: stepIn .22s ease-out; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step { padding-top: 18px; }
.step h2 { font-size: 1.35rem; letter-spacing: -.02em; margin-bottom: 14px; }
.step__empty { color: var(--muted); padding: 18px; background: var(--paper); border-radius: var(--radius); }

.wizard[data-mode="quick"] .only-extended { display: none; }
.only-extended { margin-top: 16px; }

.wizard__error, .alert {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--bad-bg); color: var(--bad); font-weight: 600; font-size: .94rem;
}
.alert ul { margin-top: 6px; padding-left: 18px; list-style: disc; font-weight: 500; }

/* kafle urządzeń */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { position: relative; cursor: pointer; }
.tile input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tile__box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 112px; padding: 14px 8px; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.tile__box .ico { width: 34px; height: 34px; stroke-width: 1.5; color: var(--ink-3); }
.tile__box b { font-size: .96rem; }
.tile:hover .tile__box { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile input:checked + .tile__box { border-color: var(--ink); background: var(--ink); color: var(--white); }
.tile input:checked + .tile__box .ico { color: var(--accent); }
.tile input:focus-visible + .tile__box { outline: 3px solid #3b6cff; outline-offset: 2px; }

.js .tiles:not(.is-open) .tile--more { display: none; }
.tile__box b { line-height: 1.25; }
.tiles__more {
  display: block; width: 100%; margin-top: 10px; padding: 12px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius); background: transparent;
  font-weight: 600; font-size: .94rem; color: var(--ink-3); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.tiles__more:hover { border-color: var(--ink); color: var(--ink); }
.tiles.is-open + .tiles__more { display: none; }

/* listy opcji: usterki i kurierzy */
.opts { display: grid; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt__box {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px 12px 46px; position: relative;
  border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white);
  transition: border-color .15s, background .15s;
}
.opt__box::before {
  content: ""; position: absolute; left: 16px; top: 50%; translate: 0 -50%;
  width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--white);
}
.opt__box b { display: block; font-size: 1rem; line-height: 1.3; }
.opt__box small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.35; margin-top: 2px; }
.opt__box em { font-style: normal; font-weight: 700; font-size: .92rem; white-space: nowrap; color: var(--ink-3); }
.opt:hover .opt__box { border-color: var(--ink); }
.opt input:checked + .opt__box { border-color: var(--ink); background: #f7fbe9; }
.opt input:checked + .opt__box::before { border: 5px solid var(--ink); background: var(--accent); }
.opt input:focus-visible + .opt__box { outline: 3px solid #3b6cff; outline-offset: 2px; }

/* pola */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: block; }
.field--wide { grid-column: 1 / -1; }
.only-extended:not(.grid2) > .field + .field, .only-extended > .grid2 { margin-top: 12px; }
.field > span { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; }
.field > span em { font-style: normal; font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200, 245, 66, .55);
}
.field input.is-invalid, .field select.is-invalid { border-color: var(--bad); }

.seg { display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px; background: var(--paper); border-radius: 999px; margin-bottom: 12px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.seg input:checked + span { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(12, 17, 22, .15); }
.seg input:focus-visible + span { outline: 3px solid #3b6cff; outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: .92rem; color: var(--ink-3); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }

.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; padding: 14px 16px; background: var(--paper); border-radius: var(--radius); }
.summary dt { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.summary dd { font-weight: 700; font-size: .96rem; }

/* pakowanie */
.packing { margin-top: 16px; padding: 16px 18px; border-radius: var(--radius); background: var(--warn-bg); color: #4a3200; }
.packing h3, .packing h2 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 10px; }
.packing ol { counter-reset: pack; display: grid; gap: 8px; }
.packing li { counter-increment: pack; position: relative; padding-left: 34px; font-size: .93rem; }
.packing li::before {
  content: counter(pack); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: #4a3200; color: var(--warn-bg); font-size: .76rem; font-weight: 700;
}

/* stopka kreatora */
.wizard__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
}
.estimate { display: grid; }
.estimate__label { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.estimate strong { font-size: 1.4rem; letter-spacing: -.02em; line-height: 1.25; }
.estimate small { color: var(--muted); font-size: .84rem; }
.wizard__nav { display: flex; gap: 10px; margin-left: auto; }

/* --- szybki panel: pusta strona z samym kreatorem ------------------------ */

.mode-quick .hero__copy,
.mode-quick .section,
.mode-quick .footer,
.mode-quick .nav,
.mode-quick .topbar .btn,
.mode-quick .modes__btn small { display: none; }

.mode-quick .account { margin-left: auto; padding-left: 0; border-left: 0; }
.mode-quick .hero { min-height: calc(100vh - 69px); padding: clamp(24px, 7vh, 72px) 0 56px; }
.mode-quick .hero__in { grid-template-columns: minmax(0, 620px); justify-content: center; }
.mode-quick .modes__btn { justify-content: center; }
.mode-quick .tile__box { min-height: 128px; }
.mode-quick .tile__box .ico { width: 40px; height: 40px; }
.mode-quick .tile__box b { font-size: 1.02rem; }

/* --- sekcje -------------------------------------------------------------- */

.section { padding: 84px 0; }
.section--tint { background: var(--white); border-block: 1px solid var(--line); }
.section__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.035em; line-height: 1.1; margin-bottom: 36px; }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: how; }
.how li { counter-increment: how; position: relative; padding: 26px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.how li::after { content: "0" counter(how); position: absolute; top: 22px; right: 22px; font-weight: 800; font-size: .9rem; color: var(--line-strong); }
.how .ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--ink); color: var(--accent); }
.how b { display: block; margin-top: 18px; font-size: 1.1rem; letter-spacing: -.01em; }
.how p { margin-top: 6px; color: var(--muted); font-size: .95rem; }

.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center;
  padding: 22px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: var(--paper);
  text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cat .ico { grid-row: span 2; width: 52px; height: 52px; padding: 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); stroke-width: 1.5; }
.cat b { font-size: 1.12rem; }
.cat span { color: var(--muted); font-size: .9rem; }
.cat:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why article { padding: 4px 0; }
.why .ico { width: 30px; height: 30px; color: var(--ok); }
.why h3 { margin-top: 14px; font-size: 1.1rem; letter-spacing: -.01em; }
.why p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.demo-link { margin-top: 40px; }

.faq { display: grid; gap: 10px; }
.faq details { border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; font-weight: 500; transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details[open] { border-color: var(--ink); background: var(--white); }
.faq details p { padding: 0 20px 18px; color: var(--ink-3); }

/* --- stopka -------------------------------------------------------------- */

.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: 52px 0; font-size: .93rem; }
.footer__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.footer p { margin-top: 10px; max-width: 26em; }
.footer ul { display: grid; gap: 8px; align-content: start; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--white); }

/* --- karta naprawy ------------------------------------------------------- */

.cardhead { background: var(--ink); color: var(--white); padding: 40px 0 76px; }
.cardhead__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.cardhead h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.035em; line-height: 1.1; }
.cardhead__meta { margin-top: 10px; color: rgba(255, 255, 255, .7); }
.cardhead__meta b { color: var(--white); }

.pill { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: .86rem; font-weight: 700; background: rgba(255, 255, 255, .14); color: var(--white); }
.pill--quote_sent { background: var(--accent); color: var(--accent-ink); }
.pill--done { background: #2ea55a; }
.pill--rejected, .pill--cancelled { background: #6b7480; }

.cardgrid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: -44px; padding-bottom: 84px; }
.cardgrid__main, .cardgrid__side { display: grid; gap: 20px; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.panel h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; letter-spacing: -.015em; margin-bottom: 16px; }
.packing--card { margin-top: 0; background: var(--warn-bg); border-color: #f1ddb3; }

.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.notice--ok { background: var(--ok-bg); color: #0d4a23; border: 1px solid #bfe5cb; }
.notice .ico { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: var(--ok); color: var(--white); stroke-width: 2.6; }
.notice p { font-size: .94rem; margin-top: 2px; }

.quote { background: var(--ink-2); color: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); border: 1px solid rgba(200, 245, 66, .35); }
.quote__price { margin-top: 8px; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.quote__price small { display: block; font-size: .92rem; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, .65); margin-top: 6px; }
.quote__note { margin-top: 18px; color: rgba(255, 255, 255, .85); }
.quote__facts { margin-top: 16px; display: grid; gap: 8px; }
.quote__facts li { display: flex; align-items: center; gap: 10px; font-size: .94rem; }
.quote__facts .ico { color: var(--accent); }
.quote__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.quote .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.quote .btn--ghost:hover { border-color: var(--white); }
.quote__small { margin-top: 14px; font-size: .84rem; color: rgba(255, 255, 255, .6); }

.timeline { display: grid; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr auto; column-gap: 14px; align-items: center; padding: 9px 0; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline li:first-child::before { top: 50%; }
.timeline li:last-child::before { bottom: 50%; }
.timeline i { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--white); border: 2px solid var(--line-strong); }
.timeline i .ico { width: 14px; height: 14px; stroke-width: 3; }
.timeline b { font-weight: 600; }
.timeline time { font-size: .86rem; }
.timeline li.is-done { color: var(--ink); }
.timeline li.is-done::before { background: var(--ink); }
.timeline li.is-done i { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.timeline li.is-current { color: var(--ink); }
.timeline li.is-current b { font-weight: 800; }
.timeline li.is-current i { border-color: var(--ink); background: var(--accent); box-shadow: 0 0 0 5px rgba(200, 245, 66, .4); }

.log { display: grid; gap: 14px; }
.log li { display: grid; grid-template-columns: 140px 1fr; gap: 14px; }
.log time { font-size: .86rem; color: var(--muted); padding-top: 2px; }
.log p { color: var(--ink-3); font-size: .95rem; }

.chat { display: grid; gap: 10px; margin-bottom: 18px; }
.chat__msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; background: var(--paper); justify-self: start; }
.chat__msg--customer { justify-self: end; background: var(--ink); color: var(--white); }
.chat__msg small { display: block; margin-top: 4px; font-size: .78rem; opacity: .65; }
.chat__empty { color: var(--muted); }
.chat__form { display: grid; gap: 12px; justify-items: start; }
.chat__form .field { width: 100%; }

.facts { display: grid; gap: 14px; }
.facts dt { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 2px; }
.facts small { color: var(--muted); }

/* --- status, logowanie, moje naprawy ------------------------------------- */

.btn--block { width: 100%; }
.eyebrow a { color: inherit; }

.authpage { display: grid; place-items: start center; min-height: calc(100vh - 69px); padding: clamp(32px, 9vh, 96px) 16px 64px; }
.authbox { display: grid; gap: 16px; width: min(460px, 100%); padding: 32px; }
.authbox__ico { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--ink); color: var(--accent); }
.authbox h1 { font-size: 1.7rem; letter-spacing: -.03em; line-height: 1.15; }
.authbox__lead { color: var(--muted); margin-top: -8px; }
.authbox .alert { margin-top: 0; }
.authbox__alt { font-size: .92rem; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }
.authbox__alt a { color: var(--ink); font-weight: 600; }
.codeinput { font-size: 1.7rem !important; font-weight: 700; letter-spacing: .4em; text-align: center; }
.devnote { padding: 12px 16px; border-radius: var(--radius); background: var(--warn-bg); color: #4a3200; font-size: .92rem; }
.devnote b { font-size: 1.1rem; letter-spacing: .12em; }

.mylist { display: grid; gap: 14px; margin-top: -44px; padding-bottom: 84px; }
.myorder { display: flex; align-items: center; gap: 16px; padding: 20px 24px; text-decoration: none; transition: border-color .15s, transform .15s; }
.myorder:hover { border-color: var(--ink); transform: translateY(-2px); }
.myorder > div { display: grid; gap: 2px; margin-right: auto; min-width: 0; }
.myorder b { font-size: 1.1rem; letter-spacing: -.01em; }
.myorder span { color: var(--muted); font-size: .9rem; }
.myorder > .ico { color: var(--muted); }
.pill--light { background: var(--paper); color: var(--ink); white-space: nowrap; }
.pill--light.pill--quote_sent { background: var(--accent); color: var(--accent-ink); }
.pill--light.pill--done { background: var(--ok-bg); color: var(--ok); }
.pill--light.pill--rejected, .pill--light.pill--cancelled { background: var(--line); color: var(--muted); }
.mylist__foot { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-top: 10px; }

/* --- mniejsze ekrany ----------------------------------------------------- */

@media (max-width: 1020px) {
  .hero { padding: 36px 0 64px; }
  .hero__in { grid-template-columns: 1fr; gap: 32px; }
  .hero__copy { padding-top: 0; }
  .how, .why { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cardgrid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap, .wrap--narrow { width: calc(100% - 32px); }
  .nav, .topbar .btn { display: none; }
  .account { gap: 16px; padding-left: 0; border-left: 0; margin-left: auto; }
  .account a { font-size: .88rem; }
  .authbox { padding: 24px; }
  .myorder { flex-wrap: wrap; padding: 18px 20px; }
  .myorder > .ico { display: none; }
  .wizard { padding: 16px; border-radius: 20px; }
  .modes__btn small { display: none; }
  .modes__btn { justify-content: center; padding: 12px 8px; }
  .steps li span { display: none; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid2, .summary { grid-template-columns: 1fr; }
  .opt__box { flex-wrap: wrap; row-gap: 4px; }
  .wizard__foot { flex-direction: column; align-items: stretch; }
  .wizard__nav { margin-left: 0; }
  .wizard__nav .btn { flex: 1; }
  .section { padding: 60px 0; }
  .how, .why, .cats { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr; }
  .panel, .quote { padding: 20px; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
  .timeline li { grid-template-columns: 28px 1fr; }
  .timeline time { grid-column: 2; }
  .quote__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* --- pasek z ceną diagnozy (oba panele) ---------------------------------- */

.diagbar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 12px; padding: 11px 16px; border-radius: 14px;
  background: #f1fbcf; border: 1px solid #d4ee7e; color: var(--accent-ink);
  font-size: .98rem; text-align: center;
}
.diagbar .ico { width: 20px; height: 20px; }
.diagbar b { font-weight: 800; }
.estimate small:empty { display: none; }

/* --- panel serwisu ------------------------------------------------------- */

.topbar__tag { font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .7); padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .16); }
.account__who { font-size: .9rem; color: rgba(255, 255, 255, .7); }
.linkbtn { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--white); }
.linkbtn:hover { color: var(--accent); }
form.account { align-items: center; }

.flash { padding-top: 20px; display: grid; gap: 8px; }
.flash__msg { padding: 12px 16px; border-radius: var(--radius); font-weight: 600; font-size: .94rem; background: var(--ok-bg); color: #0d4a23; }
.flash__msg--error { background: var(--bad-bg); color: var(--bad); }

.svc { padding: 32px 0 84px; }
.svc__title { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.03em; }
.svc__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.svc__back { margin-bottom: 10px; font-size: .92rem; }
.svc__back a { color: var(--muted); text-decoration: none; }
.svc__back a:hover { color: var(--ink); }
.svc__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.svc__tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--white); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.svc__tabs a b { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--paper); font-size: .8rem; text-align: center; }
.svc__tabs a:hover { border-color: var(--ink); }
.svc__tabs a.is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.svc__tabs a.is-on b { background: var(--accent); color: var(--accent-ink); }
.svc__tablewrap { padding: 0; overflow-x: auto; }
.svc__table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.svc__table th { text-align: left; padding: 14px 18px; font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.svc__table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.svc__table tr:last-child td { border-bottom: 0; }
.svc__table small { color: var(--muted); }
.svc__empty { color: var(--muted); text-align: center; padding: 32px 18px !important; }
.svc__grid { margin-top: 0; padding-bottom: 0; }
.svc__action { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-color: var(--ink); }
.svc__action h2 { margin-bottom: 4px; }
.svc__action p { color: var(--muted); font-size: .94rem; }
.svc .panel .field + .field { margin-top: 12px; }
.svc .panel .btn { margin-top: 16px; }
.svc__action .btn { margin-top: 0 !important; }
.svc__price { max-width: 340px; }
.svc__note { margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: var(--warn-bg); color: #4a3200; font-size: .93rem; }
.pill--light.pill--quote_review { background: var(--warn-bg); color: var(--warn); }
.pill--light.pill--in_repair, .pill--light.pill--testing { background: #e6eeff; color: #1d3fae; }

/* --- reklamacja, opłata za przechowywanie, strony prawne ------------------ */

.claim__lead { color: var(--ink-3); margin-bottom: 14px; }
.quote__warn { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 196, 87, .16); color: #ffd58a; font-weight: 600; font-size: .94rem; }
.cardhead__meta a { color: inherit; }
.check a { color: var(--ink); font-weight: 600; }

.legal { padding: 48px 0 84px; }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -.035em; line-height: 1.1; }
.legal__draft { margin: 18px 0 8px; padding: 14px 18px; border-radius: var(--radius); background: var(--warn-bg); color: #4a3200; font-size: .94rem; }
.legal h2 { margin-top: 34px; font-size: 1.2rem; letter-spacing: -.015em; }
.legal ol, .legal ul { margin-top: 10px; padding-left: 22px; display: grid; gap: 8px; color: var(--ink-3); }
.legal ol { list-style: decimal; }
.legal ul { list-style: disc; }
.legal p { margin-top: 10px; color: var(--ink-3); }

/* --- nagłówek na telefonie: dłuższe logo musi się zmieścić obok linków ---- */

@media (max-width: 640px) {
  .topbar__in { gap: 12px; }
  .logo { font-size: 1.12rem; }
  .account { gap: 12px; }
  .account a, .linkbtn { font-size: .82rem; }
  .topbar__tag, .account__who { display: none; }
}
@media (max-width: 350px) {
  .logo { font-size: 1rem; }
  .account a, .linkbtn { font-size: .78rem; }
}
