/* =========================================================
   IM AUTO – system wizualny
   Granat nocny + czerwień sygnałowa (z logo), papier, stal.
   Typografia: Archivo (oś szerokości) – nagłówki rozszerzone jak oznaczenia aut.
   ========================================================= */
:root {
  --navy: #0E1B33;
  --navy-2: #172A4D;
  --navy-3: #253D6E;
  --red: #E11D2A;
  --red-d: #BF1521;
  --paper: #F3F5F8;
  --white: #FFFFFF;
  --line: #E2E7EE;
  --line-2: #CBD3DF;
  --steel: #556074;
  --steel-2: #8891A1;
  --blue: #1F4FD1;
  --blue-bg: #EEF3FD;
  --green: #15803D;
  --green-bg: #EBF6EE;
  --amber: #A85A06;
  --amber-bg: #FFF5E3;
  --red-bg: #FDEEEF;

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow-1: 0 1px 2px rgba(14, 27, 51, .06), 0 4px 14px rgba(14, 27, 51, .06);
  --shadow-2: 0 10px 40px rgba(14, 27, 51, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1240px;
  --gutter: 16px;
  --header-h: 68px;
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
@media (min-width: 768px) { :root { --gutter: 28px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; background: var(--paper); color: var(--navy);
  font-family: var(--font); font-size: 16px; line-height: 1.55; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 10px 14px; z-index: 999; border-radius: 8px; }
.skip:focus { left: 8px; }
.ic { width: 20px; height: 20px; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- typografia ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
.d1 { font-size: clamp(40px, 7.4vw, 84px); font-stretch: 125%; font-weight: 850; letter-spacing: -.02em; line-height: .98; }
.h1 { font-size: clamp(30px, 4.4vw, 46px); font-stretch: 118%; }
.h2 { font-size: clamp(24px, 3vw, 34px); font-stretch: 115%; }
.h3 { font-size: 20px; font-stretch: 110%; }
.h4 { font-size: 17px; font-weight: 750; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--steel); max-width: 60ch; }
.muted { color: var(--steel); }
.small { font-size: 14px; }
.xs { font-size: 12.5px; }
.upper { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; font-weight: 700; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .92em; letter-spacing: .02em; }
p { margin: 0 0 1em; }

/* ---------- układ ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.wrap-f { flex-wrap: wrap; }
.gap { gap: 12px; } .gap-s { gap: 6px; } .gap-l { gap: 24px; }
.between { justify-content: space-between; } .end { justify-content: flex-end; } .center { justify-content: center; }
.grow { flex: 1; min-width: 0; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.grid { display: grid; gap: 20px; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); align-items: stretch; }
[hidden] { display: none !important; }
@media (max-width: 1023.98px) { .hide-m { display: none !important; } }
@media (min-width: 1024px) { .hide-d { display: none !important; } }
.flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(14, 27, 51, .12); flex: none; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
  border-radius: var(--r-sm); border: 1.5px solid transparent; font-weight: 700; font-size: 15.5px; text-decoration: none;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .12s var(--ease), color .18s;
  white-space: nowrap; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-d); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-3); }
.btn--ghost { background: var(--white); border-color: var(--line-2); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--line-w { border-color: rgba(255, 255, 255, .55); color: var(--white); background: rgba(14, 27, 51, .25); }
.btn--line-w:hover { border-color: var(--white); background: rgba(14, 27, 51, .45); }
.btn--green { background: var(--green); color: var(--white); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; padding: 0; }
.link { color: var(--blue); text-decoration: none; font-weight: 600; background: none; border: 0; padding: 0; }
.link:hover { text-decoration: underline; }

/* ---------- formularze ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label { font-size: 13.5px; font-weight: 650; color: var(--steel); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2);
  background: var(--white); font-size: 16px; transition: border-color .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(31, 79, 209, .15); }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1B33' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.input.is-err, .select.is-err, .textarea.is-err { border-color: var(--red); }
.err { color: var(--red); font-size: 13.5px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 650; font-size: 15px; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--navy); }
.switch input:checked + i::after { transform: translateX(18px); }
.switch input:focus-visible + i { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

/* ---------- powierzchnie ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); }
.panel--flat { border: 0; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); font-size: 15px; }
.note .ic { margin-top: 2px; }
.note--info { background: var(--blue-bg); color: #1A3C9C; }
.note--ok { background: var(--green-bg); color: #135F31; border: 1px solid #BFE3CB; }
.note--warn { background: var(--amber-bg); color: #7A4207; }
.note--err { background: var(--red-bg); color: #9C1019; border: 1px solid #F5C3C7; }
.note strong { display: block; color: inherit; margin-bottom: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 650; background: var(--paper); color: var(--navy); border: 1px solid var(--line); white-space: nowrap; }
.chip .ic { width: 15px; height: 15px; }
.chip--ok { background: var(--green-bg); color: var(--green); border-color: #C9E8D3; }
.chip--warn { background: var(--amber-bg); color: var(--amber); border-color: #F3DDB3; }
.chip--err { background: var(--red-bg); color: var(--red); border-color: #F6CBCE; }
.chip--navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip--live { background: var(--red); color: var(--white); border-color: var(--red); }
.chip--live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--white); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.badge-src { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 5px 10px; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; font-stretch: 115%; background: rgba(14, 27, 51, .78); color: var(--white); backdrop-filter: blur(4px); }
.badge-src--IAAI { background: rgba(225, 29, 42, .88); }
.count-badge { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--red); color: var(--white); font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }

/* ---------- nagłówek ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr__in { height: var(--header-h); display: flex; align-items: center; gap: 14px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 46px; width: auto; }
@media (min-width: 768px) { .logo img { height: 56px; } }
.nav { display: none; align-items: center; gap: 2px; margin-left: 10px; }
.nav a, .nav button.nav__btn { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 650; font-size: 15px; background: none; border: 0; display: inline-flex; align-items: center; gap: 4px; }
.nav a:hover, .nav button.nav__btn:hover, .nav a.is-active { background: var(--paper); }
.nav a.is-active { color: var(--red); }
.nav .ic { width: 16px; height: 16px; }
.hdr__search { display: none; flex: 1; max-width: 300px; margin-left: auto; position: relative; }
.hdr__search input { min-height: 42px; padding-left: 40px; border-radius: 99px; background: var(--paper); border-color: var(--line); font-size: 15px; }
.hdr__search .ic { position: absolute; left: 13px; top: 11px; color: var(--steel); }
.hdr__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr__search + .hdr__actions { margin-left: 0; }
@media (max-width: 480px) {
  .hdr__in { gap: 6px; }
  .logo img { height: 40px; }
  .hdr__actions { gap: 2px; }
  .lang-btn { padding: 8px 6px; }
  .lang-btn .ic { display: none; }
  .hdr__actions .btn--sm { padding: 0 12px; }
  .iconbtn { width: 40px; }
}
.iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 0; background: none; position: relative; text-decoration: none; }
.iconbtn:hover { background: var(--paper); }
.iconbtn .count-badge { position: absolute; top: 3px; right: 2px; }
.dep-chip { display: none; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--green-bg); color: var(--green); font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid #C9E8D3; }
.dep-chip .ic { width: 16px; height: 16px; }
@media (min-width: 1100px) {
  .nav { display: flex; }
  .hdr__search { display: block; }
  .dep-chip { display: inline-flex; }
}
.dd { position: relative; }
.dd__menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 270px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 8px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .16s, transform .16s var(--ease); z-index: 70; }
.dd.is-open .dd__menu { opacity: 1; transform: none; pointer-events: auto; }
.dd__item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; text-decoration: none; background: none; border: 0; width: 100%; text-align: left; font-size: 15px; }
.dd__item:hover { background: var(--paper); }
.dd__item .ic { margin-top: 2px; color: var(--navy-3); }
.dd__item small { display: block; color: var(--steel); font-size: 13px; }
.dd--left .dd__menu { left: 0; right: auto; }
.lang-btn { display: inline-flex; gap: 6px; align-items: center; padding: 8px 10px; border: 0; background: none; border-radius: 8px; font-weight: 700; font-size: 14.5px; }
.lang-btn:hover { background: var(--paper); }
.lang-btn .ic { width: 15px; height: 15px; }
.dd__menu--lang { min-width: 150px; }

/* menu mobilne */
.mnav { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.mnav__bg { position: absolute; inset: 0; background: rgba(14, 27, 51, .5); opacity: 0; transition: opacity .25s; }
.mnav__panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(88vw, 380px); background: var(--white); transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; overflow-y: auto; }
.mnav.is-open { pointer-events: auto; }
.mnav.is-open .mnav__bg { opacity: 1; }
.mnav.is-open .mnav__panel { transform: none; }
.mnav__top { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
.mnav__links { padding: 10px var(--gutter) 24px; display: flex; flex-direction: column; }
.mnav__links a, .mnav__links button { display: flex; align-items: center; gap: 12px; padding: 14px 4px; font-size: 18px; font-weight: 700; text-decoration: none; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-stretch: 110%; }
.mnav__links .ic { color: var(--navy-3); }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 70% 50%; transform: scale(1.04); opacity: 0; transition: opacity .9s var(--ease), transform 2.4s var(--ease); }
.hero__bg.is-in { opacity: 1; transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 27, 51, .97) 0%, rgba(14, 27, 51, .86) 38%, rgba(14, 27, 51, .35) 75%, rgba(14, 27, 51, .55) 100%), linear-gradient(0deg, rgba(14, 27, 51, .85), transparent 40%); }
.hero__in { display: grid; gap: 36px; padding-top: clamp(40px, 7vw, 92px); padding-bottom: clamp(36px, 5vw, 72px); }
@media (min-width: 1024px) { .hero__in { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; } }
.hero__sub { font-size: clamp(18px, 2vw, 22px); color: rgba(255, 255, 255, .86); margin: 20px 0 22px; max-width: 34ch; }
.hero__ticks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.hero__ticks li { display: flex; gap: 10px; align-items: center; font-size: 16.5px; color: rgba(255, 255, 255, .92); }
.hero__ticks .ic { color: var(--red); background: var(--white); border-radius: 50%; padding: 3px; width: 22px; height: 22px; stroke-width: 2.6; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pro-tile { margin-top: 28px; display: inline-flex; align-items: center; gap: 14px; padding: 12px 16px 12px 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: var(--white); text-decoration: none; font-weight: 650; font-size: 15px; max-width: 460px; transition: background .2s; }
.pro-tile:hover { background: rgba(255, 255, 255, .14); }
.pro-tile__ic { width: 44px; height: 44px; border-radius: 10px; background: var(--white); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.pro-tile__ic .ic { width: 26px; height: 26px; }

/* hero – sekwencja „trasa auta” (jedyna animacja bez udziału użytkownika) */
.route { background: rgba(255, 255, 255, .97); color: var(--navy); border-radius: var(--r-lg); padding: 22px 22px 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); position: relative; max-width: 520px; width: 100%; justify-self: end; }
.route__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.route__car { font-weight: 800; font-stretch: 112%; font-size: 18px; line-height: 1.2; }
.route__meta { font-size: 13px; color: var(--steel); margin-top: 3px; }
.route__lot { flex: none; text-align: right; font-size: 12px; color: var(--steel); }
.route__lot b { display: block; font-size: 14px; color: var(--navy); }
.route__stops { list-style: none; margin: 0; padding: 16px 0 6px; position: relative; }
.route__line { position: absolute; left: 15px; top: 30px; bottom: 32px; width: 2px; background: var(--line); }
.route__line::after { content: ''; position: absolute; inset: 0; background: var(--red); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform .55s var(--ease); }
.stop { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 7px 0; opacity: .35; transition: opacity .35s; }
.stop.is-on { opacity: 1; }
.stop__dot { width: 32px; height: 32px; border-radius: 50%; background: var(--white); border: 2px solid var(--line-2); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; transition: border-color .3s, background .3s, color .3s; color: var(--steel); }
.stop.is-on .stop__dot { border-color: var(--red); color: var(--red); }
.stop:last-child.is-on .stop__dot { background: var(--red); color: var(--white); }
.stop__dot .ic { width: 16px; height: 16px; }
.stop__t { font-weight: 700; font-size: 15px; line-height: 1.25; }
.stop__t small { display: block; font-weight: 500; color: var(--steel); font-size: 13px; }
.stop__v { font-weight: 700; font-size: 14.5px; color: var(--steel); }
.route__total { margin-top: 10px; padding: 14px 16px; border-radius: var(--r-md); background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.route__total span { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; opacity: .8; }
.route__total b { font-size: clamp(26px, 3vw, 32px); font-stretch: 118%; font-weight: 850; }
.route__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 13px; color: var(--steel); gap: 10px; }

/* ---------- wyszukiwarka na stronie głównej ---------- */
.finder { position: relative; z-index: 3; margin-top: -1px; background: var(--white); border-bottom: 1px solid var(--line); }
.finder__in { padding-top: 26px; padding-bottom: 28px; display: grid; gap: 16px; }
.finder__grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.finder__grid .f-wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .finder__grid { grid-template-columns: 1.3fr 1.3fr .8fr .8fr auto; align-items: end; }
  .finder__grid .f-wide { grid-column: auto; }
}
.combo { position: relative; }
.combo__list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-2); z-index: 40; padding: 4px; display: none; }
.combo.is-open .combo__list { display: block; }
.combo__opt { padding: 9px 12px; border-radius: 6px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.combo__opt:hover, .combo__opt.is-hi { background: var(--paper); }
.combo__opt small { color: var(--steel-2); }

/* pasek zalet */
.usps { display: grid; gap: 1px; background: var(--line); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
@media (min-width: 900px) { .usps { grid-template-columns: repeat(4, 1fr); } }
.usp { background: var(--white); padding: 20px; display: flex; gap: 14px; align-items: center; }
.usp__ic { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--paper); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.usp b { display: block; font-size: 16px; font-stretch: 108%; }
.usp span { font-size: 14px; color: var(--steel); }

/* zakładki */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 9px 16px; border-radius: 99px; border: 1.5px solid var(--line-2); background: var(--white); font-weight: 700; font-size: 14.5px; }
.tab:hover { border-color: var(--navy); }
.tab.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 4px; }
.seg button { border: 0; background: none; border-radius: 99px; min-height: 46px; font-weight: 750; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--steel); }
.seg button.is-active { background: var(--navy); color: var(--white); box-shadow: var(--shadow-1); }
.sec-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: end; justify-content: space-between; margin-bottom: 22px; }

/* ---------- karta auta ---------- */
.car { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s var(--ease), border-color .2s; height: 100%; }
.car:hover { box-shadow: var(--shadow-1); border-color: var(--line-2); }
.car__media { position: relative; aspect-ratio: 3 / 2; background: var(--line); overflow: hidden; }
.car__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.car__track::-webkit-scrollbar { display: none; }
.car__track img { width: 100%; height: 100%; object-fit: cover; flex: none; scroll-snap-align: start; cursor: zoom-in; }
.car__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; z-index: 2; }
.car__nav .ic { width: 18px; height: 18px; }
.car__nav--p { left: 10px; } .car__nav--n { right: 10px; }
.car:hover .car__nav, .car__nav:focus-visible { opacity: 1; }
@media (hover: none) { .car__nav { opacity: .9; width: 30px; height: 30px; } }
.car__dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; z-index: 2; }
.car__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.car__dots i.is-on { background: var(--white); }
.fav { position: absolute; right: 10px; top: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.fav .ic { width: 19px; height: 19px; transition: transform .25s var(--ease); }
.fav.is-on { color: var(--red); }
.fav.is-on .ic { fill: var(--red); }
.fav.pop .ic { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
.car__feature { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.car__body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car__title { font-size: 17px; font-weight: 800; font-stretch: 108%; line-height: 1.25; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.car__title:hover { color: var(--blue); }
.car__ids { font-size: 12.5px; color: var(--steel); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.car__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: 13.5px; color: var(--steel); }
.car__specs span { display: flex; gap: 6px; align-items: center; min-width: 0; }
.car__specs span em { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.car__specs .ic { width: 16px; height: 16px; color: var(--navy-3); }
.car__time { display: flex; align-items: center; gap: 8px; font-size: 13.5px; flex-wrap: wrap; }
.car__time .cd { font-weight: 800; color: var(--navy); }
.car__price { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.car__price small { display: block; font-size: 12px; color: var(--steel); font-weight: 600; }
.car__price b { font-size: 21px; font-weight: 850; font-stretch: 112%; }
.car__price .bn { color: var(--red); font-weight: 800; font-size: 14.5px; text-align: right; }
.car__est { font-size: 12.5px; color: var(--steel); }

/* szkielety ładowania */
.skel { position: relative; overflow: hidden; background: #E7EBF1; border-radius: 8px; }
.skel::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.car--skel .car__media { background: #E7EBF1; }
.skel-line { height: 12px; margin: 6px 0; }
.loader { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 80; pointer-events: none; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid rgba(14, 27, 51, .12); border-top-color: var(--red); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* marki */
.brands { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 800; font-stretch: 112%; font-size: 16px; transition: border-color .15s; }
.brand:hover { border-color: var(--navy); }
.brand small { font-weight: 600; color: var(--steel-2); font-stretch: 100%; font-size: 13px; }

/* kroki procesu – to faktycznie sekwencja, więc numeracja ma sens */
.steps { display: grid; gap: 14px; counter-reset: st; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 0; } }
.step { position: relative; padding: 0 18px 0 58px; min-height: 48px; }
@media (min-width: 900px) { .step { padding: 64px 18px 0 0; } }
.step::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); display: flex; align-items: center; justify-content: center; font-weight: 850; font-stretch: 120%; font-size: 18px; }
@media (min-width: 900px) { .step::after { content: ''; position: absolute; left: 52px; right: 8px; top: 22px; height: 2px; background: rgba(255, 255, 255, .18); } .step:last-child::after { display: none; } }
.step:last-child::before { background: var(--red); border-color: var(--red); }
.step b { display: block; font-size: 17px; font-stretch: 110%; margin-bottom: 4px; }
.step span { color: rgba(255, 255, 255, .72); font-size: 14.5px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 4px; display: flex; justify-content: space-between; gap: 16px; font-weight: 750; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .25s var(--ease); flex: none; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details > div { padding: 0 4px 20px; color: var(--steel); max-width: 72ch; }

.cta-band { display: grid; gap: 18px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: var(--navy); color: var(--white); }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- stopka ---------- */
.ftr { background: var(--navy); color: rgba(255, 255, 255, .78); padding: 56px 0 28px; }
.ftr__grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .ftr__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.ftr__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .ftr__brand { grid-column: auto; } }
.ftr h4 { color: var(--white); font-size: 15px; margin-bottom: 12px; font-stretch: 112%; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--white); }
.ftr__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: 14px; }

/* ---------- wyszukiwarka /znajdz-auto ---------- */
.search-layout { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 64px; }
@media (min-width: 1024px) { .search-layout { grid-template-columns: 300px 1fr; align-items: start; } }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; } }
@media (max-width: 1023px) {
  .filters { position: fixed; inset: 0; z-index: 95; border-radius: 0; overflow-y: auto; transform: translateY(100%); transition: transform .3s var(--ease); padding-bottom: 90px; }
  .filters.is-open { transform: none; }
}
.fgroup { border-top: 1px solid var(--line); }
.fgroup > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border: 0; background: none; font-weight: 750; font-size: 15px; }
.fgroup > button .ic { width: 18px; height: 18px; transition: transform .2s; }
.fgroup.is-collapsed > button .ic { transform: rotate(-90deg); }
.fgroup.is-collapsed > .fgroup__body { display: none; }
.fgroup__body { padding-bottom: 16px; display: grid; gap: 10px; }
.fgroup .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; margin-left: 6px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range .input { min-height: 42px; font-size: 15px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.opts .check { font-size: 14.5px; }
.filters__foot { position: sticky; bottom: 0; background: var(--white); padding-top: 12px; }
@media (max-width: 1023px) { .filters__foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px var(--gutter); border-top: 1px solid var(--line); } }
.results-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.empty { text-align: center; padding: 56px 20px; background: var(--white); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty .ic { width: 42px; height: 42px; color: var(--steel-2); margin: 0 auto 12px; }

/* ---------- oferta ---------- */
.offer-top { background: var(--white); border-bottom: 1px solid var(--line); }
.offer-head { padding-top: 18px; padding-bottom: 24px; display: grid; gap: 16px; }
@media (min-width: 1024px) { .offer-head { grid-template-columns: 1fr auto; align-items: end; } }
.offer-head__ids { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--steel); font-size: 14.5px; }
.copyable { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 2px 4px; border-radius: 6px; color: var(--steel); font-size: 14.5px; }
.copyable:hover { background: var(--paper); color: var(--navy); }
.copyable .ic { width: 16px; height: 16px; }
.pricebox { display: grid; gap: 10px; min-width: min(100%, 340px); }
.pricebox__main { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.pricebox__main b { font-size: clamp(28px, 3.4vw, 38px); font-weight: 850; font-stretch: 118%; }
.final-box { border: 2px solid var(--red); background: var(--red-bg); color: var(--red); border-radius: var(--r-md); padding: 10px 18px; display: inline-flex; flex-direction: column; align-items: flex-start; }
.final-box span { font-weight: 700; }
.final-box b { font-size: 32px; font-weight: 850; font-stretch: 115%; }
.offer-layout { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 64px; }
@media (min-width: 1100px) { .offer-layout { grid-template-columns: minmax(0, 1.35fr) minmax(360px, .9fr); align-items: start; } .offer-side { position: sticky; top: calc(var(--header-h) + 16px); } }
.gallery__main { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: var(--line); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery__main .car__nav { opacity: 1; width: 42px; height: 42px; }
.wm { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 8px; align-items: center; z-index: 2; pointer-events: none; }
.wm span { padding: 5px 10px; border-radius: 6px; background: rgba(14, 27, 51, .72); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.wm .wm__brand { font-stretch: 120%; font-weight: 850; letter-spacing: .12em; }
.gallery__tools { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; z-index: 2; flex-wrap: wrap; }
.gallery__tools button { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border: 0; border-radius: 8px; background: rgba(14, 27, 51, .78); color: var(--white); font-weight: 650; font-size: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.thumbs button.is-on { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery { position: relative; }
.warn-over { margin-bottom: 10px; }
@media (min-width: 768px) { .warn-over { position: absolute; top: 58px; left: 14px; right: 14px; z-index: 3; margin: 0; } }
@media (max-width: 640px) {
  .wm { top: 14px; bottom: auto; right: 12px; }
  .wm span:first-child { display: none; }
  .gallery__tools button { padding: 7px 10px; font-size: 13px; }
}
.pricebox .chip { white-space: normal; text-align: left; line-height: 1.3; }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.tile { padding: 14px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); }
.tile small { display: flex; align-items: center; gap: 6px; color: var(--steel); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.tile small .ic { width: 16px; height: 16px; }
.tile b { font-size: 15.5px; font-weight: 750; }
.tile--ok { background: var(--green-bg); border-color: #C9E8D3; }
.tile--warn { background: var(--amber-bg); border-color: #F3DDB3; }
.tile--err { background: var(--red-bg); border-color: #F6CBCE; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 0; }
.kv > div { display: contents; }
.kv dt, .kv dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 15px; }
.kv dt { color: var(--steel); padding-right: 16px; }
.kv dd { text-align: right; font-weight: 650; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--steel); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #FAFBFC; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.collapsible > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 750; }
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible[open] > summary .ic { transform: rotate(180deg); }
.collapsible > summary .ic { transition: transform .2s; }

/* ---------- kalkulator ---------- */
.calc { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.calc__top { padding: 20px; }
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; gap: 8px; }
.stepper button { border: 1.5px solid var(--line-2); background: var(--white); border-radius: var(--r-sm); font-size: 22px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.stepper button:hover { border-color: var(--navy); }
.stepper label { position: relative; }
.stepper label > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 20px; color: var(--steel); }
.stepper input { min-height: 56px; text-align: center; font-size: 24px; font-weight: 800; padding-left: 36px; font-stretch: 110%; }
.calc__sum { margin-top: 14px; padding: 16px; border-radius: var(--r-md); background: var(--paper); display: grid; gap: 8px; }
.calc__sum .row { gap: 10px; color: var(--steel); font-size: 15px; }
.calc__sum .ic { color: var(--navy); }
.calc__big { font-size: 32px; font-weight: 850; font-stretch: 116%; color: var(--navy); line-height: 1.1; }
.cgroup { border-top: 1px solid var(--line); }
.cgroup > button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 16px 20px; border: 0; background: none; text-align: left; }
.cgroup > button .ic { width: 18px; height: 18px; transition: transform .2s; }
.cgroup.is-collapsed > button .ic { transform: rotate(-90deg); }
.cgroup.is-collapsed > .cgroup__body { display: none; }
.cgroup__name { flex: 1; font-weight: 800; font-size: 14.5px; text-transform: uppercase; letter-spacing: .04em; font-stretch: 105%; }
.cgroup__total { font-weight: 850; font-size: 17px; }
.cgroup__body { padding: 0 20px 14px; }
.cline { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; min-height: 40px; font-size: 15px; }
.cline > .ic { width: 20px; height: 20px; color: var(--navy-3); }
.cline__l { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; color: var(--steel); }
.cline__v { font-weight: 750; text-align: right; white-space: nowrap; }
.cline--sub .cline__v { color: var(--steel); font-weight: 650; }
.cline__ctl { grid-column: 2 / -1; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.cline .select, .cline .input { min-height: 40px; font-size: 15px; color: var(--blue); font-weight: 650; }
.qmark { width: 22px; height: 22px; border-radius: 50%; border: 0; background: none; color: var(--blue); padding: 0; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.qmark .ic { width: 19px; height: 19px; }
.editbox { display: inline-flex; align-items: center; gap: 6px; border: 1.5px dashed var(--blue); border-radius: 8px; padding: 4px 10px; color: var(--blue); font-weight: 750; background: var(--blue-bg); }
.editbox input { width: 90px; border: 0; background: none; text-align: right; color: var(--blue); font-weight: 750; padding: 2px 0; font-size: 15.5px; }
.editbox input:focus { outline: none; }
.editbox .ic { width: 15px; height: 15px; }
.calc__hint { font-size: 13px; color: var(--steel); margin: -2px 0 6px 32px; }
.calc__total { padding: 20px; border-top: 1px solid var(--line); background: #FAFBFD; display: grid; gap: 14px; }
.calc__total .row b { font-size: clamp(28px, 4vw, 36px); font-weight: 850; font-stretch: 116%; }
.calc__disc { font-size: 12.5px; color: var(--steel); text-align: center; line-height: 1.5; }
.pop { position: absolute; z-index: 85; width: min(360px, calc(100vw - 32px)); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 16px 18px; font-size: 14.5px; color: var(--navy); animation: popIn .16s var(--ease); }
@keyframes popIn { from { opacity: 0; transform: translateY(4px); } }
.pop h5 { margin: 0 0 8px; font-size: 16px; display: flex; gap: 10px; align-items: center; padding-right: 26px; }
.pop .x { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border: 0; background: none; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.pop table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.pop td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.pop td:last-child { text-align: right; font-weight: 750; }

/* ---------- konto / panel ---------- */
.page-head { padding-top: 28px; padding-bottom: 8px; }
.crumbs { font-size: 14px; color: var(--steel); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--navy); }
.acct-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.acct-tile { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.acct-tile:hover { border-color: var(--navy); }
.acct-tile b { font-size: 26px; font-weight: 850; font-stretch: 115%; }
.shortcuts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
@media (max-width: 600px) { .shortcuts { grid-template-columns: repeat(3, 1fr); } }
.shortcut { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); text-decoration: none; font-weight: 650; font-size: 14px; text-align: center; }
.shortcut:hover { border-color: var(--navy); }
.shortcut .ic { width: 24px; height: 24px; color: var(--navy-3); }
.tier { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--paper); transition: border-color .2s, background .2s; }
.tier b { display: block; font-size: 24px; font-weight: 850; font-stretch: 112%; }
.tier small { color: var(--steel); font-weight: 650; font-size: 14px; }
.tier.is-on { border-color: var(--green); background: var(--green-bg); }
.tier .btn.is-on { background: var(--green); color: var(--white); border-color: var(--green); }
.bank-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bank-row__ic { width: 44px; height: 44px; border-radius: 10px; background: var(--paper); display: flex; align-items: center; justify-content: center; }
.bank-row small { display: block; color: var(--steel); font-size: 13px; }
.bank-row b { font-size: 16px; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li::before { content: ''; position: absolute; left: -26px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy-3); }
.timeline li:first-child::before { border-color: var(--red); }
.timeline .tl-photos { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.timeline .tl-photos img { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; }
.status-pill { display: inline-flex; padding: 4px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; background: var(--paper); border: 1px solid var(--line); white-space: nowrap; }
.st-received { background: var(--blue-bg); color: var(--blue); border-color: #CBD9F7; }
.st-bidding { background: var(--amber-bg); color: var(--amber); border-color: #F3DDB3; }
.st-won, .st-ready { background: var(--green-bg); color: var(--green); border-color: #C9E8D3; }
.st-lost, .st-cancelled { background: var(--red-bg); color: var(--red); border-color: #F6CBCE; }
.st-shipping, .st-customs { background: #EEF0FB; color: #3B3FA8; border-color: #D4D7F3; }

/* ---------- auth ---------- */
.auth { min-height: calc(100vh - var(--header-h)); display: grid; }
@media (min-width: 1024px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth__side { display: none; background: var(--navy) center / cover; position: relative; color: var(--white); padding: 48px; }
.auth__side::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 27, 51, .95), rgba(14, 27, 51, .3)); }
.auth__side > div { position: relative; z-index: 1; margin-top: auto; }
@media (min-width: 1024px) { .auth__side { display: flex; } }
.auth__form { display: flex; align-items: center; justify-content: center; padding: 40px var(--gutter); }
.auth__card { width: 100%; max-width: 440px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--steel-2); font-size: 14px; margin: 18px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- widżety czat / kontakt ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 75; width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(14, 27, 51, .35); transition: transform .2s var(--ease); }
.fab:hover { transform: scale(1.05); }
.fab .ic { width: 26px; height: 26px; }
.fab .count-badge { position: absolute; top: 2px; right: 2px; border: 2px solid var(--white); height: 22px; min-width: 22px; }
.totop { position: fixed; right: 26px; bottom: 90px; z-index: 74; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-1); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cw { position: fixed; right: 18px; bottom: 92px; z-index: 76; width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100vh - 120px)); background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-2); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; transform-origin: bottom right; transform: scale(.92) translateY(10px); opacity: 0; pointer-events: none; transition: transform .22s var(--ease), opacity .18s; }
.cw.is-open { transform: none; opacity: 1; pointer-events: auto; }
@media (max-width: 520px) { .cw { right: 12px; left: 12px; width: auto; bottom: 86px; height: calc(100dvh - 110px); } }
.cw__head { background: var(--navy); color: var(--white); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.cw__head b { display: block; font-stretch: 110%; }
.cw__head small { opacity: .75; font-size: 13px; }
.cw__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-weight: 850; font-stretch: 120%; flex: none; }
.cw__msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; animation: msgIn .2s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg small { display: block; font-size: 11.5px; opacity: .65; margin-top: 4px; }
.msg--me { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.msg--them { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg__sig { font-size: 12px; font-weight: 700; color: var(--red); margin-bottom: 2px; }
.typing { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--steel-2); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.cw__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--white); align-items: flex-end; }
.cw__form textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; border-radius: 12px; padding: 11px 14px; border: 1.5px solid var(--line-2); font-size: 15px; }
.cw__form textarea:focus { outline: none; border-color: var(--navy); }
.cw__body { padding: 18px; overflow-y: auto; flex: 1; }

/* ---------- okna, toasty ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(14, 27, 51, .55); opacity: 0; transition: opacity .2s; }
.modal__panel { position: relative; width: 100%; max-width: 480px; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--white); border-radius: var(--r-lg); padding: 28px; transform: translateY(14px) scale(.98); opacity: 0; transition: transform .22s var(--ease), opacity .2s; }
.modal--wide .modal__panel { max-width: 760px; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { transform: none; opacity: 1; }
.modal__x { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border: 0; background: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.modal__x:hover { background: var(--paper); }
.modal__title { font-size: 22px; font-stretch: 112%; margin-bottom: 10px; padding-right: 36px; }
.modal--full { padding: 0; }
.modal--full .modal__panel { max-width: none; height: 100dvh; max-height: none; border-radius: 0; padding: 0; background: #070C17; color: var(--white); display: flex; flex-direction: column; }
.modal--full .modal__x { color: var(--white); background: rgba(255, 255, 255, .08); }
.lightbox { flex: 1; position: relative; overflow: hidden; touch-action: none; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .2s var(--ease); user-select: none; -webkit-user-drag: none; }
.lightbox.is-dragging img { transition: none; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; }
.lb-bar button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: var(--white); display: flex; align-items: center; justify-content: center; }
.lb-bar span { min-width: 70px; text-align: center; font-weight: 700; }
#toast-root { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 12px; background: var(--navy); color: var(--white); font-weight: 600; font-size: 15px; box-shadow: var(--shadow-2); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .25s var(--ease); }
.toast.is-in { opacity: 1; transform: none; }
.toast .ic { color: #7EE2A0; }
.toast--err .ic { color: #FF9AA1; }

/* ---------- panel admina ---------- */
.admin { display: grid; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 1024px) { .admin { grid-template-columns: 250px 1fr; } }
.aside { background: var(--navy); color: rgba(255, 255, 255, .8); padding: 20px 14px; display: none; }
@media (min-width: 1024px) { .aside { display: block; } .aside__in { position: sticky; top: calc(var(--header-h) + 20px); } }
.aside a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none; font-weight: 650; font-size: 15px; }
.aside a:hover { background: rgba(255, 255, 255, .07); color: var(--white); }
.aside a.is-active { background: var(--white); color: var(--navy); }
.aside a .count-badge { margin-left: auto; }
.aside__title { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .55; padding: 8px 12px; font-weight: 700; }
.admin__main { padding: 24px var(--gutter) 64px; min-width: 0; }
.admin__mnav { display: flex; gap: 6px; overflow-x: auto; padding: 10px var(--gutter); background: var(--navy); scrollbar-width: none; }
.admin__mnav a { flex: none; color: rgba(255, 255, 255, .8); text-decoration: none; padding: 8px 12px; border-radius: 99px; font-weight: 650; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.admin__mnav a.is-active { background: var(--white); color: var(--navy); }
@media (min-width: 1024px) { .admin__mnav { display: none; } }
.stat { padding: 20px; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.stat b { display: block; font-size: 34px; font-weight: 850; font-stretch: 116%; line-height: 1.1; margin-top: 6px; }
.todo { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.todo:hover { border-color: var(--navy); }
.todo__n { width: 40px; height: 40px; border-radius: 10px; background: var(--red-bg); color: var(--red); font-weight: 850; display: flex; align-items: center; justify-content: center; flex: none; }
.todo__n.is-zero { background: var(--paper); color: var(--steel-2); }
.rate-table input { width: 92px; min-height: 38px; padding: 6px 10px; font-size: 15px; text-align: right; }
.achat { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--white); min-height: 560px; }
@media (min-width: 900px) { .achat { grid-template-columns: 320px 1fr; } }
.achat__list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 640px; }
.achat__item { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.achat__item.is-active { background: var(--blue-bg); }
.achat__item:hover { background: var(--paper); }
.achat__thread { display: flex; flex-direction: column; min-height: 520px; }
.bell-list { width: 320px; }
.popover-anchor { position: relative; }

/* drobne */
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.tag-notch { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 16px; background: var(--paper); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--steel); clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%); }
.err-page { text-align: center; padding-top: 96px; padding-bottom: 96px; }
.err-page .code { font-size: clamp(90px, 18vw, 180px); font-weight: 900; font-stretch: 125%; line-height: 1; color: var(--line-2); letter-spacing: -.04em; }
.prose { max-width: 78ch; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; font-stretch: 110%; }
.prose p, .prose li { color: #2A3448; }
