/* GearLot – arkusz stylów
   Jasna strona z ciemną belką i stopką, jeden akcent (żółć riggingowa).
   Krój techniczny DIN/Bahnschrift z systemu – bez pobierania czcionek. */

:root {
    --page: #F3F4F6;          /* tło strony */
    --surface: #FFFFFF;       /* karty, panele, pola formularzy */
    --surface-2: #EEF0F3;     /* pasek testowy, plakietki */
    --sunken: #F7F8FA;        /* miejsce na zdjęcie */
    --rule: #D9DDE3;
    --rule-strong: #B9C0CA;
    --text: #16191E;
    --muted: #5D6672;

    --accent: #F2B705;        /* przyciski */
    --accent-hover: #FFC929;
    --accent-ink: #16191E;    /* tekst na żółtym */
    --accent-text: #8A6200;   /* akcent w tekście na jasnym tle */

    --ink: #0E2238;           /* granat sceniczny: belka, stopka, plakietki */
    --ink-text: #FFFFFF;
    --ink-muted: #AFC0D4;
    --ink-rule: #26405F;

    --ok: #1F9D61;
    --warn: #C26A1B;
    --danger: #C8372B;

    --font-display: "Bahnschrift SemiCondensed", "Bahnschrift", "DIN Condensed", "DIN Alternate", "Roboto Condensed", "Arial Narrow", sans-serif;
    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius-small: 4px;
    --radius: 6px;
    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { margin: 0; font-weight: 600; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

:focus-visible {
    outline: 2px solid var(--accent-text);
    outline-offset: 2px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 12px; top: -48px; z-index: 50;
    background: var(--accent); color: var(--accent-ink);
    padding: 8px 14px; border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.muted { color: var(--muted); }
.small { font-size: .875rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Przyciski i linki ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px;
    border: 1px solid transparent; border-radius: var(--radius);
    font: 600 .95rem/1 var(--font-body);
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--rule-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn-large { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
.btn.is-disabled { opacity: .4; pointer-events: none; }

.text-link {
    color: var(--accent-text);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 500;
}
.text-link:hover { color: var(--text); }

.chip {
    display: inline-flex; align-items: center;
    min-height: 34px; padding: 0 12px;
    border: 1px solid var(--rule); border-radius: 999px;
    color: var(--text); text-decoration: none; font-size: .9rem;
    background: var(--surface);
}
.chip:hover { border-color: var(--accent); background: #FFF9E6; }

.chip-row {
    list-style: none;
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 24px;
}

/* ---------- Pasek testowy, nagłówek ---------- */

.beta-bar {
    background: var(--surface-2);
    color: var(--muted);
    text-align: center;
    font-size: .85rem;
    padding: 6px var(--gutter);
    border-bottom: 1px solid var(--rule);
}

.site-header {
    background: var(--ink);
    border-bottom: 1px solid var(--ink);
    position: sticky; top: 0; z-index: 20;
}

.header-row {
    display: flex; align-items: center; gap: 24px;
    min-height: 68px;
}

.logo {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--ink-text);
}
.logo-full { display: block; height: 30px; width: auto; flex: none; }
.logo-rivet { fill: var(--ink); }

.main-nav { display: none; gap: 20px; }
.main-nav a {
    color: var(--ink-muted); text-decoration: none; font-weight: 500;
    padding: 6px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.is-current { color: var(--ink-text); border-bottom-color: var(--accent); }

.header-search {
    display: none;
    flex: 1; max-width: 420px;
    align-items: center; gap: 8px;
    padding: 0 12px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--ink-rule);
    border-radius: var(--radius);
    color: var(--ink-muted);
}
.header-search:focus-within { border-color: var(--accent); }
.header-search input {
    flex: 1; min-width: 0; height: 40px;
    border: 0; background: transparent; color: var(--ink-text);
    font: inherit;
}
.header-search input:focus { outline: none; }
.header-search input::placeholder { color: var(--ink-muted); }

.header-actions {
    margin-left: auto;
    display: flex; align-items: center; gap: 16px;
}
.header-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--ink-text); text-decoration: none; font-weight: 500;
}
.header-link span { display: none; }
.header-link span.filters-badge { display: inline-grid; }
.header-link:hover { color: var(--accent); }

@media (min-width: 720px) {
    .header-link span { display: inline; }
}
@media (min-width: 960px) {
    .main-nav { display: flex; }
    .header-search { display: flex; }
}

/* ---------- Strona główna: hero z wyszukiwarką ---------- */

.hero {
    position: relative;
    border-bottom: 1px solid var(--rule);
    background: var(--surface);
}
/* Siatka pikseli jak w ekranie LED, wygaszana ku lewej */
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(178, 128, 0, .30) 1.2px, transparent 1.6px);
    background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 95%);
            mask-image: linear-gradient(100deg, transparent 35%, #000 95%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    padding-top: clamp(48px, 9vw, 112px);
    padding-bottom: clamp(40px, 7vw, 88px);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.4rem, 6.4vw, 5.2rem);
    line-height: .98;
    letter-spacing: -.01em;
    max-width: 15ch;
}

.hero-lead {
    margin-top: 20px;
    max-width: 58ch;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.hero-search {
    margin-top: 32px;
    display: grid;
    gap: 8px;
    max-width: 880px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--rule-strong);
    border-radius: calc(var(--radius) + 4px);
}
.hero-search:focus-within { border-color: var(--accent-text); }

.hero-search-field {
    display: flex; align-items: center; gap: 10px;
    padding: 0 12px;
    color: var(--muted);
}
.hero-search-field input {
    flex: 1; min-width: 0; height: 52px;
    border: 0; background: transparent;
    color: var(--text);
    font: 500 1.1rem var(--font-body);
}
.hero-search-field input:focus { outline: none; }
.hero-search-field input::placeholder { color: #7A828E; }

.hero-search-select select {
    width: 100%; height: 52px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}

@media (min-width: 760px) {
    .hero-search { grid-template-columns: 1fr 220px auto; align-items: center; }
    .hero-search-field { border-right: 1px solid var(--rule); }
    .hero-search .hero-search-select select { border: 0; background-color: transparent; }
}

.hero-models {
    margin-top: 18px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: .9rem;
}
.hero-models .muted { margin-right: 4px; }

/* ---------- Sekcje ---------- */

.section { padding-top: clamp(40px, 6vw, 72px); }
.section-last { padding-bottom: clamp(48px, 7vw, 88px); }

.section-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
    margin-bottom: 20px;
}

.section-title, .page-title, .info-title, .sell-title, .block-title, .listing-title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* ---------- Kategorie ---------- */

.category-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
.category-grid li { display: flex; }

.category {
    flex: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon name"
        "icon subs"
        "icon count";
    column-gap: 16px; row-gap: 4px;
    padding: 22px 20px;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    text-decoration: none;
    background: var(--surface);
    transition: background-color .15s ease;
}
.category:hover { background: #FFF9E6; }
.category:hover .category-icon { color: var(--accent-text); }

.category-all .category-name { color: var(--accent-text); }
.category-icon { grid-area: icon; color: var(--muted); padding-top: 2px; }
.category-icon .icon { width: 34px; height: 34px; }
.category-name {
    grid-area: name;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.1;
}
.category-subs { grid-area: subs; color: var(--muted); font-size: .88rem; }
.category-count {
    grid-area: count;
    margin-top: 6px;
    font-size: .88rem;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

/* ---------- Karty ogłoszeń ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
@media (min-width: 640px) {
    .card-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
}

.card {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
}
.card:hover { border-color: var(--rule-strong); }

.card-link {
    display: flex; flex-direction: column; height: 100%;
    text-decoration: none;
}

.card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--sunken);
    border-bottom: 1px solid var(--rule);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-placeholder {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    color: #B5BCC6;
    background-image: radial-gradient(circle, rgba(22, 25, 30, .07) 1px, transparent 1.4px);
    background-size: 10px 10px;
}
.card-placeholder .icon { width: 56px; height: 56px; }

.offer {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-small);
    font-size: .78rem; font-weight: 600; line-height: 1.3;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--rule);
}
.card-media .offer { position: absolute; left: 10px; top: 10px; }
.offer-new { background: var(--ok); color: #FFFFFF; border-color: transparent; }
.offer-b_stock, .offer-demo { background: #34425A; color: #FFFFFF; border-color: transparent; }

.card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 640px) { .card-body { padding: 14px 16px 16px; } }

.card-brand {
    color: var(--muted);
    font-size: .85rem;
}
.card-title {
    margin-top: 2px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    line-height: 1.1;
    overflow-wrap: anywhere;
}
.card-meta {
    margin-top: 8px;
    display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 2px;
    color: var(--muted);
    font-size: .85rem;
}
.card-price {
    margin-top: auto;
    padding-top: 14px;
    display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px;
}
.card-price strong {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.6vw, 1.4rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.card-price small { color: var(--muted); font-size: .8rem; }

/* ---------- Firmy ---------- */

.company-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0 32px;
}
.company {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "badge name count" "badge meta count";
    column-gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
}
.company-badge { grid-area: badge; color: var(--ok); }
.company-badge .icon { width: 26px; height: 26px; }
.company-name { grid-area: name; font-weight: 600; }
.company-meta { grid-area: meta; color: var(--muted); font-size: .85rem; }
.company-count { grid-area: count; color: var(--muted); font-size: .85rem; white-space: nowrap; }

/* ---------- Sprzedaj za darmo ---------- */

.sell-band {
    display: grid;
    gap: 32px;
    padding: clamp(24px, 5vw, 48px);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
}
.sell-title { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18ch; }
.sell-copy p { margin: 12px 0 24px; color: var(--muted); max-width: 44ch; }

.steps {
    list-style: none;
    counter-reset: step;
    display: grid; gap: 18px;
    align-content: center;
}
.steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
}
.steps li::before {
    content: counter(step);
    grid-row: 1 / 3;
    display: grid; place-items: center;
    width: 44px; height: 44px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.2rem;
    color: var(--accent-text);
}
.steps strong { font-weight: 600; }
.steps span { color: var(--muted); font-size: .92rem; }

@media (min-width: 900px) {
    .sell-band { grid-template-columns: 1.1fr 1fr; }
}

/* ---------- Bloki informacyjne, newsletter ---------- */

.two-col { display: grid; gap: 40px; }
@media (min-width: 860px) {
    .two-col { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.info-title { font-size: 1.6rem; margin-bottom: 14px; }
.info-block > .muted { margin-bottom: 14px; max-width: 52ch; }

.info-list { list-style: none; display: grid; gap: 10px; }
.info-list li {
    padding-left: 22px;
    position: relative;
    max-width: 56ch;
}
.info-list li::before {
    content: "";
    position: absolute; left: 0; top: .62em;
    width: 10px; height: 2px;
    background: var(--accent);
}

.newsletter { display: grid; gap: 12px; max-width: 520px; }
.newsletter-row { display: flex; gap: 8px; }
.newsletter-row input { flex: 1; min-width: 0; }

/* ---------- Formularze ---------- */

input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], select, textarea {
    height: 46px;
    width: 100%;
    padding: 0 12px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    font: inherit;
}
.hero-search .hero-search-field input,
.header-search input[type="search"] {
    width: auto; padding: 0;
    border: 0; border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.hero-search .hero-search-field input { height: 52px; font: 500 1.1rem var(--font-body); }
.header-search input[type="search"] { height: 40px; }
textarea { height: auto; min-height: 120px; padding: 10px 12px; }
select {
    appearance: none;
    padding-right: 36px;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-text); }
input:focus-visible, select:focus-visible { box-shadow: 0 0 0 1px var(--accent-text); }

.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .9rem; font-weight: 500; padding: 0; }
.field-hint { color: var(--muted); font-size: .82rem; }
.field-error { color: var(--danger); font-size: .88rem; }
.field-pair { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-pair { grid-template-columns: 1fr 1fr; } }

.check {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: .9rem; color: var(--muted);
    cursor: pointer;
}
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-text); flex: none; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
    display: grid; place-items: center;
    min-height: 46px;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    background: var(--surface);
    font-weight: 600;
}
.segmented input:checked + span { border-color: var(--accent); color: var(--text); background: #FFF4CC; box-shadow: inset 0 0 0 1px var(--accent); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* Pole firmy znika dla osoby prywatnej */
.register-form:has(input[name="account_type"][value="private"]:checked) .company-field { display: none; }

.form-panel {
    display: grid; gap: 18px;
    padding: clamp(20px, 4vw, 32px);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.form-panel .btn { justify-self: start; }
.form-panel .btn-block { justify-self: stretch; }
.form-aside { margin-top: 18px; color: var(--muted); }

.flash {
    margin-top: 20px;
    padding: 12px 16px;
    border: 1px solid var(--rule);
    border-left: 4px solid var(--ok);
    border-radius: var(--radius);
    background: var(--surface);
}
.flash-warn { border-left-color: var(--warn); margin: 0 0 20px; }

/* ---------- Podstrony ---------- */

.page { padding-top: 32px; padding-bottom: 72px; }
.page-narrow { max-width: 620px; }
.page-narrow .page-title { margin-bottom: 8px; }
.page-lead { margin-bottom: 24px; }
.page-narrow .form-panel { margin-top: 16px; }

.crumbs {
    display: flex; flex-wrap: wrap; gap: 6px 10px;
    margin-bottom: 18px;
    font-size: .88rem; color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs > * + *::before { content: "/"; margin-right: 10px; color: var(--rule-strong); }

.results-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 20px; }

.filter-bar {
    display: grid; gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
@media (min-width: 860px) {
    .filter-bar { grid-template-columns: 1fr 220px 220px auto; align-items: end; }
    .filter-bar:not(:has(#filter-category)) { grid-template-columns: 1fr 220px auto; }
}

.empty {
    display: grid; justify-items: start; gap: 16px;
    padding: 32px;
    border: 1px dashed var(--rule);
    border-radius: var(--radius);
    color: var(--muted);
}

.pager {
    margin-top: 32px;
    display: flex; align-items: center; justify-content: center; gap: 16px;
}
.pager-info { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }

/* ---------- Ogłoszenie ---------- */

.listing-layout { display: grid; gap: 32px; }
@media (min-width: 980px) {
    .listing-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
}

.gallery {
    aspect-ratio: 4 / 3;
    background: var(--sunken);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
}
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.gallery-placeholder {
    height: 100%;
    display: grid; place-content: center; justify-items: center; gap: 12px;
    color: #B5BCC6;
    background-image: radial-gradient(circle, rgba(22, 25, 30, .07) 1px, transparent 1.4px);
    background-size: 12px 12px;
}
.gallery-placeholder .icon { width: 96px; height: 96px; }
.gallery-placeholder span { color: var(--muted); font-size: .9rem; }

.thumbs { list-style: none; display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-small); border: 1px solid var(--rule); }

.block { margin-top: 36px; }
.block-title { font-size: 1.5rem; margin-bottom: 14px; }
.prose { max-width: 70ch; }

.spec-table { margin: 0; border-top: 1px solid var(--rule); }
.spec-table > div {
    display: grid;
    grid-template-columns: minmax(130px, 38%) 1fr;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--rule);
}
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-variant-numeric: tabular-nums; }

.price-box {
    display: grid; gap: 6px;
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.listing-title { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.price {
    margin-top: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.4rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.price-note { color: var(--muted); font-size: .9rem; }
.negotiable { color: var(--accent-text); font-size: .9rem; font-weight: 500; }

.facts {
    list-style: none;
    display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
    margin: 14px 0 18px;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
    font-size: .92rem;
}
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .icon { color: var(--muted); width: 18px; height: 18px; }

.seller-box {
    margin-top: 16px;
    padding: 20px 24px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.seller-label { font-size: .85rem; }
.seller-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.1rem; margin: 2px 0; }
.verified { color: var(--ok); display: inline-flex; }

.listing-side > .small { margin-top: 14px; }

/* ---------- Konto ---------- */

.account-head {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--rule);
}
.account-head .muted { margin-top: 8px; }
.account-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Stopka ---------- */

.site-footer {
    background: var(--ink);
    color: var(--ink-text);
    padding-top: 48px;
}
.site-footer .muted { color: var(--ink-muted); }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 860px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-about p { margin-top: 14px; color: var(--ink-muted); max-width: 36ch; font-size: .92rem; }
.footer-title { font-size: .95rem; font-weight: 600; margin-bottom: 12px; }
.footer-list { list-style: none; display: grid; gap: 8px; font-size: .92rem; }
.footer-list a { color: var(--ink-muted); text-decoration: none; }
.footer-list a:hover { color: var(--ink-text); }
.footer-bottom {
    margin-top: 40px;
    padding-top: 18px; padding-bottom: 28px;
    border-top: 1px solid var(--ink-rule);
    color: var(--ink-muted); font-size: .85rem;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* ==========================================================================
   Etap 2: wyszukiwarka z filtrami, podpowiedzi, strona ogłoszenia
   ========================================================================== */

/* ---------- Podpowiedzi pod polem wyszukiwania ---------- */

.suggest-wrap { position: relative; }

.suggest {
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: min(420px, 70vh);
    overflow-y: auto;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(22, 25, 30, .14);
    text-align: left;
}
.suggest-item {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-small);
    cursor: pointer;
}
.suggest-item[aria-selected="true"] { background: #FFF4CC; }
.suggest-label { font-weight: 500; }
.suggest-model .suggest-label { font-weight: 700; }
.suggest-meta { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.suggest-empty { padding: 10px 12px; color: var(--muted); font-size: .9rem; }

.hero-search-field.suggest-wrap .suggest { left: -8px; right: -8px; top: calc(100% + 14px); }
.header-search .suggest { min-width: 360px; }

/* ---------- Pasek wyszukiwania nad wynikami ---------- */

.results-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 20px;
}
.results-bar-search {
    grid-column: 1 / -1;
    display: flex; align-items: center; gap: 10px;
    padding: 0 12px;
    background: var(--surface);
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    color: var(--muted);
}
.results-bar-search:focus-within { border-color: var(--accent-text); }
.results-bar-search input[type="search"] {
    flex: 1; min-width: 0; width: auto;
    height: 46px; padding: 0;
    border: 0; background: transparent; box-shadow: none;
    color: var(--text);
}
.results-bar .btn { min-height: 46px; }

@media (min-width: 720px) {
    .results-bar { grid-template-columns: 1fr 230px auto; }
    .results-bar-search { grid-column: auto; }
}

/* ---------- Układ: filtry + wyniki ---------- */

.results-layout { display: grid; gap: 20px; }

@media (min-width: 960px) {
    .results-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
    .filters-col { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }
    .filters-col::-webkit-scrollbar { width: 6px; }
    .filters-col::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 3px; }
    .results-col .card-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

.filters {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.filters-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.filters-toggle::-webkit-details-marker { display: none; }
.filters-toggle::after {
    content: "";
    flex: none;
    width: 8px; height: 8px;
    margin: -4px 4px 0 auto;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .15s ease;
}
.filters[open] > .filters-toggle::after { transform: rotate(-135deg); margin-top: 4px; }
.filters-badge {
    display: inline-grid; place-items: center;
    min-width: 24px; height: 24px; padding: 0 7px;
    border-radius: 999px;
    background: var(--accent); color: var(--accent-ink);
    font-size: .8rem; font-weight: 700;
}
.filters-body { padding: 0 16px 16px; }

@media (min-width: 960px) {
    .filters-toggle { display: none; }
    .filters-body { padding-top: 4px; }
}

.facet {
    border: 0;
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid var(--rule);
    min-width: 0;
}
.filters-body > .facet:first-child { border-top: 0; }
.facet-title {
    display: block;
    padding: 0;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: .95rem;
}
/* legend w fieldsecie nie może przecinać linii nad grupą */
.facet > legend.facet-title { float: left; width: 100%; }
.facet > legend.facet-title + * { clear: both; }
.facet-list { list-style: none; display: grid; gap: 2px; }
.facet-option {
    display: flex; align-items: center; gap: 10px;
    min-height: 34px;
    cursor: pointer;
    font-size: .92rem;
}
.facet-option input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent-text); }
.facet-label { flex: 1; min-width: 0; }
.facet-count {
    color: var(--muted);
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
}
.facet-option.is-empty { color: var(--muted); }
.facet-option.is-empty .facet-count { opacity: .6; }

.facet-more summary {
    margin-top: 6px;
    color: var(--accent-text);
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
}
.facet-more[open] summary { margin-bottom: 4px; }

.facet-links { list-style: none; display: grid; gap: 2px; }
.facet-links a {
    display: flex; justify-content: space-between; gap: 10px;
    padding: 6px 8px;
    margin: 0 -8px;
    border-radius: var(--radius-small);
    text-decoration: none;
    font-size: .92rem;
}
.facet-links a:hover { background: var(--sunken); }
.facet-links a.is-current { font-weight: 600; background: #FFF4CC; }

.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.price-range select { grid-column: 1 / -1; }
.price-range input, .price-range select, .facet input[type="text"] { height: 40px; }
.facet .field-hint { margin-top: 8px; }

.field-pair-tight { grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.field-pair-tight label { font-size: .85rem; }

.filters-actions {
    display: grid; gap: 10px; justify-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
}
@media (max-width: 959px) {
    .filters-actions {
        position: sticky; bottom: 0;
        background: var(--surface);
        padding-bottom: 4px;
    }
}

/* ---------- Aktywne filtry ---------- */

.active-filters { margin-bottom: 16px; }
.chip-remove { gap: 6px; }
.chip-remove svg { color: var(--muted); }
.chip-remove:hover svg { color: var(--text); }

/* ---------- Strona ogłoszenia ---------- */

.price-approx { color: var(--muted); font-size: .88rem; }
.share-btn { width: 100%; margin-top: 14px; }

.thumb {
    display: block;
    padding: 0; border: 0; background: none;
    cursor: pointer;
    border-radius: var(--radius-small);
}

/* ==========================================================================
   Etap 3: konto sprzedającego, formularz ogłoszenia, wiadomości, profile firm
   ========================================================================== */

.section-tight { padding-top: 24px; }

.btn-danger { color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); }

.flash-error { border-left-color: var(--danger); margin: 0 0 20px; }

/* ---------- Menu konta ---------- */

.account-nav {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px;
    margin: 20px 0 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
}
.account-nav a:not(.btn) {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 0;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}
.account-nav a:not(.btn):hover { color: var(--text); }
.account-nav a.is-current { color: var(--text); border-bottom-color: var(--accent); }
.account-nav-cta { margin-left: auto; }
.account-head + .account-nav { margin-top: 0; border-top: 0; }
.account-head { border-bottom: 0; padding-bottom: 8px; }

/* ---------- Lista ogłoszeń do zarządzania ---------- */

.manage-list { list-style: none; display: grid; gap: 10px; }
.manage-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px 16px;
    align-items: center;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.manage-thumb {
    position: relative;
    display: block;
    width: 96px; aspect-ratio: 4 / 3;
    border-radius: var(--radius-small);
    overflow: hidden;
    background: var(--sunken);
}
.manage-thumb img { width: 100%; height: 100%; object-fit: cover; }
.manage-thumb .icon { width: 32px; height: 32px; }
.manage-title { font-weight: 600; }
.manage-title a { text-decoration: none; }
.manage-title a:hover { text-decoration: underline; }
.manage-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
    margin-top: 4px;
    color: var(--muted); font-size: .85rem;
}
.manage-actions {
    grid-column: 1 / -1;
    display: flex; flex-wrap: wrap; gap: 8px;
}
@media (min-width: 860px) {
    .manage-item { grid-template-columns: 120px minmax(0, 1fr) auto; }
    .manage-thumb { width: 120px; }
    .manage-actions { grid-column: auto; justify-content: flex-end; }
}

.status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .78rem; font-weight: 600;
    background: var(--surface-2);
    color: var(--text);
}
.status-active { background: #DDF3E7; color: #13643C; }
.status-draft { background: var(--surface-2); color: var(--muted); }
.status-sold { background: #E3E8F2; color: #34425A; }
.status-reserved { background: #FFF1D6; color: #8A5300; }
.status-archived { background: #FBE3E0; color: #9A2C21; }

/* ---------- Formularz ogłoszenia i profilu ---------- */

.form-head { margin-bottom: 8px; }
.form-head .page-lead { max-width: 70ch; }

.listing-form { display: grid; gap: 16px; max-width: 900px; }
.form-section {
    display: grid; gap: 18px;
    padding: clamp(18px, 3vw, 28px);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.form-section[hidden] { display: none; }
.form-section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.1;
}

.field-trio { display: grid; gap: 16px; }
@media (min-width: 640px) { .field-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.field[hidden] { display: none; }

.segmented-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .segmented-4 { grid-template-columns: repeat(4, 1fr); } }

.specs-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .specs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; } }
.spec-check { align-self: center; }

input[type="date"], input[type="file"] { font: inherit; }
input[type="date"] {
    height: 46px; width: 100%; padding: 0 12px;
    background: var(--surface); color: var(--text);
    border: 1px solid var(--rule-strong); border-radius: var(--radius);
}
input[type="file"] { padding: 10px 0; }
textarea { line-height: 1.5; }

.photo-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.photo-item {
    display: grid; gap: 6px;
    padding: 8px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--sunken);
}
.photo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-small); }
.photo-option { display: flex; align-items: center; gap: 8px; font-size: .85rem; cursor: pointer; }
.photo-option input { accent-color: var(--accent-text); }

.form-actions {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
    padding-top: 4px;
}
.listing-form.is-sending .form-actions .btn { opacity: .6; pointer-events: none; }

.logo-field { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ---------- Wiadomości ---------- */

.message-list { list-style: none; display: grid; gap: 12px; margin-top: 16px; max-width: 860px; }
.message {
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--rule-strong);
    border-radius: var(--radius);
    display: grid; gap: 8px;
}
.message-in { border-left-color: var(--accent); }
.message.is-unread { background: #FFFBEB; }
.message-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.message-who { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.message-listing { font-size: .9rem; }
.message-body { max-width: 70ch; }
.message-reply summary { cursor: pointer; display: inline-block; }
.message-reply form { display: grid; gap: 10px; margin-top: 10px; }
.message-reply .btn { justify-self: start; }

/* ---------- Kontakt na stronie ogłoszenia ---------- */

.contact-block { scroll-margin-top: 96px; }
.contact-form { display: grid; gap: 10px; max-width: 70ch; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.seller-name a { text-decoration: none; }
.seller-name a:hover { text-decoration: underline; }
.seller-box .text-link { display: inline-block; margin-top: 8px; }

/* ---------- Profil firmy ---------- */

.company-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px 20px;
    align-items: center;
    padding: clamp(18px, 3vw, 28px);
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.company-header .page-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.company-header .verified .icon { width: 28px; height: 28px; }
.verified-note { color: var(--ok); font-size: .88rem; font-weight: 600; margin-top: 4px; }
.company-logo {
    display: block;
    width: 88px; height: 88px;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--rule);
    background: #fff;
}
.company-logo-initials {
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 700; font-size: 2rem;
    color: var(--accent-ink);
    background: var(--accent);
    border-color: transparent;
}
.company-contact {
    grid-column: 1 / -1;
    list-style: none;
    display: flex; flex-wrap: wrap; gap: 6px 20px;
    font-size: .92rem;
}
@media (min-width: 860px) {
    .company-header { grid-template-columns: auto minmax(0, 1fr) auto; }
    .company-contact { grid-column: auto; flex-direction: column; align-items: flex-end; }
    .company-logo { width: 112px; height: 112px; }
}
a.company-name { text-decoration: none; }
a.company-name:hover { text-decoration: underline; }

/* ---------- Etap 4: język i waluta w nagłówku ---------- */

.prefs { position: relative; }
.prefs-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 10px;
    border: 1px solid var(--ink-rule);
    border-radius: var(--radius);
    color: var(--ink-text);
    font-size: .88rem; font-weight: 500; font-variant-numeric: tabular-nums;
    cursor: pointer; list-style: none;
    white-space: nowrap;
}
.prefs-toggle::-webkit-details-marker { display: none; }
.prefs-toggle:hover, .prefs[open] .prefs-toggle { border-color: var(--accent); }
.prefs-toggle .icon { color: var(--ink-muted); flex: none; }
.prefs-panel {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 40;
    width: min(280px, calc(100vw - 32px));
    padding: 14px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(22, 25, 30, .18);
}
.prefs-title { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.prefs-title + .prefs-list { margin-bottom: 14px; }
.prefs-list { list-style: none; display: grid; gap: 2px; }
.prefs-list:last-child { margin-bottom: 0; }
.prefs-list a {
    display: block; padding: 6px 8px;
    border-radius: var(--radius-small);
    text-decoration: none;
}
.prefs-list a:hover { background: var(--surface-2); }
.prefs-list a.is-current { font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); background: var(--sunken); }
.prefs-currencies { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.prefs-currencies a { text-align: center; font-variant-numeric: tabular-nums; }
.prefs-currencies a.is-current { box-shadow: inset 0 -3px 0 var(--accent); }

/* Telefon: w przycisku tylko kod języka, panel na całą szerokość pod belką */
@media (max-width: 719px) {
    .header-row { gap: 16px; }
    .header-actions { gap: 10px; }
    .prefs { position: static; }
    .prefs-toggle { padding: 0 8px; height: 34px; }
    .prefs-cur { display: none; }
    .prefs-panel {
        left: var(--gutter); right: var(--gutter); top: calc(100% - 6px);
        width: auto;
    }
}
@media (max-width: 419px) {
    .prefs-toggle .icon { display: none; }
    .logo-full { height: 26px; }
}

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-langs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-langs a { color: var(--ink-muted); text-decoration: none; }
.footer-langs a:hover { color: var(--ink-text); }
.footer-langs a.is-current { color: var(--ink-text); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- Etap 4: cena orientacyjna w walucie wyświetlania ---------- */

.card-approx { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.card-price + .card-approx { margin-top: 2px; }

/* ---------- Etap 4: kafelki / lista ---------- */

.view-toggle {
    margin-left: auto;
    display: inline-flex;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    align-self: center;
}
.view-toggle a {
    display: grid; place-items: center;
    width: 38px; height: 34px;
    color: var(--muted);
}
.view-toggle a + a { border-left: 1px solid var(--rule); }
.view-toggle a:hover { color: var(--text); background: var(--sunken); }
.view-toggle a.is-current { color: var(--accent-ink); background: var(--accent); }
.view-toggle .icon { width: 18px; height: 18px; }
.section-head-tools { display: flex; align-items: center; gap: 14px; }

.row-list { display: grid; gap: 10px; }
.row-item {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
}
.row-item:hover { border-color: var(--rule-strong); }
.row-link {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-areas: "media main" "media price";
    text-decoration: none;
}
.row-media {
    grid-area: media;
    position: relative;
    background: var(--sunken);
    border-right: 1px solid var(--rule);
    min-height: 100%;
}
.row-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.row-media .card-placeholder .icon { width: 36px; height: 36px; }
.row-main { grid-area: main; padding: 10px 12px 0; min-width: 0; }
.row-title {
    margin-top: 1px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.12rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}
.row-meta {
    margin-top: 6px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
    color: var(--muted); font-size: .85rem;
}
.row-meta .offer { font-size: .74rem; padding: 2px 6px; }
.row-location {
    margin-top: 4px;
    display: flex; align-items: center; gap: 4px;
    color: var(--muted); font-size: .85rem;
}
.row-location .icon { width: 15px; height: 15px; flex: none; }
.row-price {
    grid-area: price;
    padding: 8px 12px 12px;
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px;
}
.row-price strong {
    font-family: var(--font-display);
    font-size: 1.2rem; font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.row-price small { color: var(--muted); font-size: .8rem; }
.row-price .card-approx, .row-price .negotiable { flex-basis: 100%; font-size: .82rem; }

@media (min-width: 640px) {
    .row-link {
        grid-template-columns: 200px minmax(0, 1fr) minmax(170px, auto);
        grid-template-areas: "media main price";
        min-height: 150px;
    }
    .row-main { padding: 16px 18px; }
    .row-title { font-size: 1.35rem; }
    .row-meta { margin-top: 10px; }
    .row-location { margin-top: 8px; }
    .row-price {
        padding: 16px 18px;
        flex-direction: column; align-items: flex-end; justify-content: flex-start;
        text-align: right;
        border-left: 1px solid var(--rule);
    }
    .row-price strong { font-size: 1.45rem; }
    .row-price .card-approx, .row-price .negotiable { flex-basis: auto; }
}

/* ---------- Etap 5: licytacje ---------- */

.auction-flag {
    position: absolute; right: 10px; top: 10px;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 8px 3px 6px;
    border-radius: var(--radius-small);
    background: var(--ink); color: var(--ink-text);
    font-size: .78rem; font-weight: 600; line-height: 1.3;
}
.auction-flag .icon { width: 15px; height: 15px; color: var(--accent); }
.auction-flag.is-inline { position: static; }

.card-price .card-price-caption, .row-price .card-price-caption {
    flex-basis: 100%;
    color: var(--muted); font-size: .78rem;
}
.auction-meta {
    margin-top: 4px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px;
    color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums;
}
.auction-left { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 500; }
.auction-left .icon { width: 15px; height: 15px; }
.row-price .auction-meta { justify-content: flex-end; flex-basis: 100%; }
@media (max-width: 639px) { .row-price .auction-meta { justify-content: flex-start; } }

/* Ramka licytacji na stronie ogłoszenia */
.auction { display: grid; gap: 6px; margin-top: 10px; }
.auction-badge {
    justify-self: start;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px 4px 8px;
    border-radius: var(--radius-small);
    background: var(--ink); color: var(--ink-text);
    font-size: .85rem; font-weight: 600;
}
.auction-badge .icon { width: 17px; height: 17px; color: var(--accent); }
.price-caption { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.auction .price { margin-top: 0; }
.auction-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.auction-reserve {
    justify-self: start;
    padding: 2px 8px;
    border-radius: var(--radius-small);
    background: #FFF1D6; color: #8A5300;
    font-size: .85rem; font-weight: 500;
}
.auction-reserve.is-met { background: #DDF3E7; color: #13643C; }
.auction-ends {
    margin-top: 6px; padding: 10px 12px;
    display: flex; align-items: center; gap: 12px;
    background: var(--sunken);
    border: 1px solid var(--rule);
    border-radius: var(--radius-small);
    font-size: .92rem; line-height: 1.4;
}
.auction-ends > .icon { width: 26px; height: 26px; color: var(--muted); flex: none; }
.auction-ends > span { display: grid; }
.auction-countdown {
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.auction-countdown.is-ending { color: var(--danger); }
.auction-ended {
    margin-top: 6px; padding: 10px 12px;
    background: var(--sunken);
    border-left: 3px solid var(--rule-strong);
    font-size: .92rem;
}
.auction-me {
    padding: 8px 12px;
    border-radius: var(--radius-small);
    background: var(--sunken);
    font-size: .92rem; font-weight: 500;
}
.auction-me.is-leading { background: #DDF3E7; color: #13643C; }
.auction-me.is-outbid { background: #FBE3E0; color: #9A2C21; }
.auction .flash { margin: 0; }

.bid-form { display: grid; gap: 8px; margin: 8px 0 4px; }
.bid-label { font-weight: 600; font-size: .92rem; }
.bid-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.bid-field {
    display: inline-flex; align-items: stretch;
    border: 1px solid var(--rule-strong);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}
.bid-field:focus-within { border-color: var(--accent-text); box-shadow: 0 0 0 3px rgba(242, 183, 5, .28); }
.bid-field input {
    width: 9.5ch; min-width: 0; height: 48px;
    padding: 0 10px;
    border: 0; border-radius: 0; background: transparent;
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.bid-field input:focus { outline: none; }
.bid-currency {
    display: inline-flex; align-items: center;
    padding: 0 12px;
    border-left: 1px solid var(--rule);
    background: var(--sunken);
    color: var(--text);
    font-weight: 600; font-size: .95rem;
}
select.bid-currency {
    height: 48px; width: auto;
    border: 0; border-left: 1px solid var(--rule); border-radius: 0;
    padding: 0 28px 0 10px;
    background-color: var(--sunken);
}
.bid-row .btn { flex: 1 1 110px; min-height: 48px; }
.bid-rate { font-size: .82rem; }
.bid-rate strong { display: block; color: var(--text); font-size: .9rem; }
.bid-confirmed { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ok); }
.bid-confirmed .icon { width: 16px; height: 16px; flex: none; }
.check-small { font-size: .85rem; line-height: 1.45; }
.check-small input { width: 16px; height: 16px; }

/* Historia ofert */
.bid-table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.bid-table th {
    text-align: left; font-weight: 600; color: var(--muted); font-size: .82rem;
    padding: 0 10px 8px 0; border-bottom: 1px solid var(--rule-strong);
}
.bid-table td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.bid-table .num { font-weight: 600; white-space: nowrap; }
.bid-table tr.is-top td { font-weight: 600; }
.bid-table tr.is-me td:first-child { box-shadow: inset 3px 0 0 var(--accent); padding-left: 8px; }
.bid-table + .small { margin-top: 10px; }

/* Sprzedający: status prawny i kontakt */
.seller-legal { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); display: grid; gap: 6px; }
.seller-contact { margin-top: 10px; display: grid; gap: 4px; }
.seller-contact a { word-break: break-all; }
.report-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px;
    color: var(--muted); text-decoration: none;
}
.report-link:hover { color: var(--danger); text-decoration: underline; }
.report-link .icon { width: 15px; height: 15px; }

/* Formularz ogłoszenia: licytacja */
.note {
    display: grid; gap: 6px;
    padding: 12px 14px;
    background: var(--sunken);
    border-left: 3px solid var(--accent);
    font-size: .9rem; color: var(--text);
}
[data-format-panel] { display: grid; gap: 16px; }
[data-format-panel][hidden] { display: none; }
.locked-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.locked-group:disabled .form-section { opacity: .6; }

/* Konto */
.manage-note { margin-top: 4px; font-size: .88rem; }
.manage-note.is-warn { color: var(--danger); }
.status-ended { background: var(--surface-2); color: var(--muted); }
.bid-status { display: inline-block; padding: 2px 8px; border-radius: var(--radius-small); font-size: .8rem; font-weight: 600; }
.bid-leading, .bid-won { background: #DDF3E7; color: #13643C; }
.bid-outbid { background: #FBE3E0; color: #9A2C21; }
.bid-lost { background: var(--surface-2); color: var(--muted); }

.settings-layout { display: grid; gap: 24px; margin-top: 20px; align-items: start; }
@media (min-width: 960px) { .settings-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.settings-layout .form-section-title { margin-top: 8px; }
.danger-zone { border-color: #E9B9B3; }
.check .field-hint { display: block; margin-top: 2px; }

/* ---------- Etap 5: dokumenty prawne ---------- */

.legal-meta { color: var(--muted); }
.legal-toc { margin: 20px 0 8px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.legal-toc ol { margin: 0; padding-left: 1.4em; columns: 2 220px; column-gap: 28px; }
.legal-toc li { margin: 2px 0; break-inside: avoid; }
.legal-body { max-width: 75ch; }
.legal-body h2 { font-size: 1.35rem; margin: 32px 0 10px; scroll-margin-top: 90px; }
.legal-body ol, .legal-body ul { padding-left: 1.4em; display: grid; gap: 6px; }
.legal-body ol ol { margin-top: 6px; }
.legal-body p + p { margin-top: 10px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: .9rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
.legal-table th { color: var(--muted); font-weight: 600; border-bottom-color: var(--rule-strong); }
@media (max-width: 639px) {
    .legal-table thead { display: none; }
    .legal-table tr { display: grid; padding: 8px 0; border-bottom: 1px solid var(--rule); }
    .legal-table td { border: 0; padding: 2px 0; }
    .legal-table td:first-child { font-weight: 600; }
}
mark.todo { background: #FFE58A; color: var(--text); padding: 0 3px; border-radius: 2px; }
.legal-info { font-size: .85rem; }
.field-label { font-weight: 600; font-size: .92rem; }

/* ---------- Etap 6: film ---------- */

.media-flag {
    position: absolute; left: 10px; bottom: 10px;
    display: inline-grid; place-items: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(22, 25, 30, .78); color: #fff;
}
.media-flag .icon { width: 16px; height: 16px; }
.video-block .block-title { display: flex; align-items: center; gap: 8px; }
.video-block .block-title .icon { width: 22px; height: 22px; color: var(--muted); }
.listing-video {
    display: block; width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--ink);
    border-radius: var(--radius);
}
.video-field > label { display: flex; align-items: center; gap: 8px; }
.video-field > label .icon { width: 20px; height: 20px; color: var(--muted); }
.video-current { display: grid; gap: 6px; max-width: 360px; margin-bottom: 8px; }
.video-current video { width: 100%; aspect-ratio: 16 / 9; background: var(--ink); border-radius: var(--radius-small); }

/* ---------- Etap 6: strona główna ---------- */

/* Niższy hero: hasło, wyszukiwarka i znaczki */
.hero-inner {
    padding-top: clamp(28px, 4.5vw, 56px);
    padding-bottom: clamp(24px, 3.5vw, 40px);
}
.hero-title {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.02;
    max-width: 22ch;
}
.hero-lead { margin-top: 12px; font-size: clamp(.98rem, 1.3vw, 1.08rem); max-width: 64ch; }
.hero-search { margin-top: 22px; }

.hero-badges {
    list-style: none;
    margin-top: 20px;
    display: flex; flex-wrap: wrap; gap: 10px 22px;
}
.hero-badges li {
    display: inline-flex; align-items: center; gap: 9px;
    font-size: .92rem; font-weight: 500;
}
.hero-badges .icon {
    width: 32px; height: 32px; padding: 6px;
    flex: none;
    border-radius: var(--radius);
    background: #FFF4CC;
    color: var(--accent-text);
}

/* Nagłówki sekcji: mniejsze, z ikoną */
.section-title { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.section-first { padding-top: clamp(28px, 4vw, 44px); }
.section-title-icon { display: inline-flex; align-items: center; gap: 10px; }
.section-title-icon .icon {
    width: 30px; height: 30px; padding: 5px;
    border-radius: var(--radius);
    background: var(--ink); color: var(--accent);
    flex: none;
}
.link-arrow { display: inline-flex; align-items: center; gap: 6px; }
.link-arrow .icon { width: 17px; height: 17px; }

/* Miniaturki nowych ogłoszeń */
.mini-grid {
    list-style: none;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(150px, 42%);
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    scrollbar-width: thin;
}
.mini-grid > li { scroll-snap-align: start; display: flex; }
@media (min-width: 640px) {
    .mini-grid { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
}
@media (min-width: 1000px) {
    .mini-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
}
.mini {
    flex: 1;
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.mini:hover { border-color: var(--rule-strong); box-shadow: 0 6px 18px rgba(22, 25, 30, .08); }
.mini-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--sunken);
    border-bottom: 1px solid var(--rule);
}
.mini-media img { width: 100%; height: 100%; object-fit: cover; }
.mini-media .card-placeholder .icon { width: 34px; height: 34px; }
.mini-flag {
    position: absolute; right: 8px; top: 8px;
    display: inline-grid; place-items: center;
    width: 26px; height: 26px;
    border-radius: var(--radius-small);
    background: var(--ink); color: var(--accent);
}
.mini-flag .icon { width: 15px; height: 15px; }
.mini .media-flag { left: 8px; bottom: 8px; width: 24px; height: 24px; }
.mini .media-flag .icon { width: 14px; height: 14px; }
.mini-body { display: grid; gap: 1px; padding: 8px 10px 10px; min-width: 0; }
.mini-brand { color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-title {
    font-family: var(--font-display);
    font-weight: 700; font-size: 1.02rem; line-height: 1.15;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-price { margin-top: 3px; font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }
.mini-meta { color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cztery karty w rzędzie na stronie głównej */
@media (min-width: 1000px) {
    .card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Kategorie: ikona na kafelku */
.category-icon .icon {
    width: 44px; height: 44px; padding: 8px;
    border-radius: var(--radius);
    background: var(--sunken);
    border: 1px solid var(--rule);
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.category:hover .category-icon .icon { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Listy zalet z ikonami */
.feature-list { list-style: none; display: grid; gap: 12px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; max-width: 58ch; }
.feature-list .icon {
    width: 30px; height: 30px; padding: 5px; flex: none;
    border-radius: var(--radius-small);
    background: #FFF4CC; color: var(--accent-text);
}
.feature-list span { padding-top: 4px; }

.sell-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sell-actions .icon { width: 18px; height: 18px; }

/* ---------- Etap 6: banery ---------- */

.ad { position: relative; }
.ad img { display: block; width: 100%; height: auto; border-radius: var(--radius-small); }
.ad-label {
    position: absolute; right: 6px; top: 6px; z-index: 1;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .88);
    color: var(--muted);
    font-size: .68rem; letter-spacing: .02em;
}
.ad-link { display: block; }
.ad-top { margin-top: 14px; }
.ad-home { margin-top: clamp(28px, 4vw, 44px); }
.ad-results { margin-bottom: 16px; }
.ad-listing { margin-top: 16px; max-width: 300px; }

/* Boczne banery tylko na bardzo szerokich ekranach, poza treścią strony */
.ad-left, .ad-right { display: none; }
@media (min-width: 1660px) {
    .ad-left, .ad-right {
        display: block;
        position: fixed; top: 120px; z-index: 5;
        width: 160px;
    }
    .ad-left { left: calc(50% - 620px - 160px - 24px); }
    .ad-right { right: calc(50% - 620px - 160px - 24px); }
}

/* ---------- Etap 7 ---------- */

/* Ceny przeliczone: pogrubione, jak waluta główna */
.card-approx { font-weight: 700; color: var(--text); }
.price-approx strong { color: var(--text); font-weight: 700; }

/* Dane sprzedającego w formularzu ogłoszenia */
.contact-choices { display: grid; gap: 8px; margin-top: 4px; }
.contact-choices strong { font-weight: 600; word-break: break-all; }
.consent-check {
    padding: 12px 14px;
    background: #FFF9E6;
    border: 1px solid #F0D58A;
    border-radius: var(--radius);
    font-size: .92rem;
    color: var(--text);
}

/* Filtry: ciaśniej, bez dużych przerw */
.filters-body { padding: 0 14px 12px; }
.facet { padding: 10px 0; }
.facet-title { margin-bottom: 6px; font-size: .88rem; }
.facet-list { gap: 0; }
.facet-option { min-height: 28px; gap: 8px; font-size: .88rem; }
.facet-option input { width: 16px; height: 16px; }
.facet-count { font-size: .76rem; }
.facet-more summary { margin-top: 4px; font-size: .84rem; }
.facet-links a { padding: 4px 8px; font-size: .88rem; }
.price-range { gap: 5px; }
.price-range input, .price-range select, .facet input[type="text"] { height: 34px; font-size: .9rem; }
.facet .field-hint { margin-top: 5px; font-size: .78rem; }
.filters-actions { padding-top: 12px; gap: 8px; }
@media (min-width: 960px) {
    .results-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; }
    .filters-body { padding-top: 2px; }
}

/* Aplikacje mobilne w stopce (zapowiedź) */
.app-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.app-badge {
    display: inline-flex; align-items: center; gap: 10px;
    min-width: 150px;
    padding: 8px 14px 8px 10px;
    border: 1px solid var(--ink-rule);
    border-radius: 10px;
    background: #0E1013;
    color: var(--ink-text);
    font-weight: 600; font-size: .98rem; line-height: 1.1;
    cursor: default;
}
.app-badge .icon { width: 26px; height: 26px; color: var(--accent); flex: none; }
.app-badge small { display: block; font-size: .68rem; font-weight: 400; color: var(--ink-muted); margin-bottom: 2px; }
.mini-approx { font-weight: 700; font-size: .76rem; font-variant-numeric: tabular-nums; }
.row-price .card-approx { font-weight: 700; color: var(--text); }

/* ---------- Etap 8: zaproszenia do licytacji ---------- */
.invite-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 8px; }
.field .invite-file { position: relative; overflow: hidden; cursor: pointer; padding: 0 14px; font-weight: 600; }
.field .invite-file .icon { width: 18px; height: 18px; }
.invite-file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.invite-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.invite-count { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.invite-count.is-over { color: var(--danger); font-weight: 700; }
.invite-form textarea[name="emails"] { font-family: inherit; font-size: .92rem; line-height: 1.5; }
.invite-aside { gap: 22px; }
.invite-listing { display: flex; gap: 14px; align-items: flex-start; }
.invite-listing img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; flex: none; background: var(--page); }
.invite-title { font-weight: 700; display: inline-block; margin: 2px 0 4px; }
.invite-preview { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 0; font-size: .92rem; }
.invite-preview dt { color: var(--muted); }
.invite-preview dd { margin: 0; word-break: break-word; }
.invite-stats { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; }
.invite-stats li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.invite-stats strong { font-variant-numeric: tabular-nums; }
.btn .icon { width: 18px; height: 18px; flex: none; }
.invite-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Etap 9: jakość ogłoszeń, propozycje ceny, katalogi ---------- */
.completeness { padding: 14px 16px; margin-bottom: 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.completeness.is-complete { border-color: #9FD3B0; background: #F2FBF5; }
.completeness-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.completeness-bar { flex: 1; min-width: 140px; max-width: 320px; height: 8px; border-radius: 4px; background: var(--page); overflow: hidden; }
.completeness-bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.completeness.is-complete .completeness-bar span { background: #2E8B57; }
.completeness p { margin: 8px 0 0; }
.quality-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; text-decoration: none; background: var(--page); color: var(--text); border: 1px solid var(--rule); }
.quality-pill.is-low { background: #FFF4E5; border-color: #F0C988; color: #7A4B00; }
.quality-pill.is-complete { background: #F2FBF5; border-color: #9FD3B0; color: #1E6B3E; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.form-more { border-top: 1px solid var(--rule); padding-top: 12px; }
.form-more summary { cursor: pointer; font-weight: 600; }
.form-more[open] summary { margin-bottom: 8px; }
.offer-box { margin-top: 12px; border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 14px; background: var(--surface); }
.offer-box summary { cursor: pointer; font-weight: 600; }
.offer-box[open] summary { margin-bottom: 10px; }
.offer-fields { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; }
.offer-fields input[type="number"] { width: 110px; }
.offer-card { margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--accent); background: #FFF9E6; border-radius: 0 var(--radius) var(--radius) 0; }
.offer-card p { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.offer-card strong { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.offer-card-label { color: var(--muted); font-size: .85rem; }
.offer-status { margin-left: auto; font-size: .82rem; font-weight: 600; }
.offer-card.is-accepted { border-left-color: var(--ok); background: #F2FBF5; }
.offer-card.is-declined { border-left-color: var(--rule-strong); background: var(--sunken); }
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.seller-response { display: flex; align-items: center; gap: 6px; margin: 6px 0; font-size: .88rem; color: var(--ok); font-weight: 600; }
.seller-response .icon { width: 16px; height: 16px; }
a.verified { text-decoration: none; }

/* Menu na telefonie: przewijany pasek pod nagłówkiem */
.mobile-nav { border-top: 1px solid var(--ink-rule); }
.mobile-nav-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mobile-nav-row::-webkit-scrollbar { display: none; }
.mobile-nav a {
    flex: none; padding: 10px 10px; color: var(--ink-muted); text-decoration: none;
    font-weight: 500; font-size: .92rem; border-bottom: 2px solid transparent; white-space: nowrap;
}
.mobile-nav a.is-current { color: var(--ink-text); border-bottom-color: var(--accent); }
@media (min-width: 960px) { .mobile-nav { display: none; } }
.main-nav { gap: 18px; }
.main-nav a { white-space: nowrap; }

/* Producenci */
.brand-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; }
.brand-chips a:hover { border-color: var(--accent); }
.brand-letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 28px 0 8px; position: sticky; top: 0; z-index: 2; padding: 8px 0; background: var(--page); }
.brand-letters a { min-width: 32px; padding: 4px 8px; text-align: center; border-radius: var(--radius-small); color: var(--text); text-decoration: none; font-weight: 600; }
.brand-letters a:hover { background: var(--surface); }
.brand-groups { columns: 4 200px; column-gap: 32px; }
.brand-group { break-inside: avoid; margin-bottom: 22px; scroll-margin-top: 60px; }
.brand-letter { font-family: var(--font-display); font-size: 1.4rem; margin: 0 0 6px; border-bottom: 2px solid var(--accent); display: inline-block; }
.brand-group ul { list-style: none; margin: 0; padding: 0; }
.brand-group li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.brand-group a { color: var(--text); text-decoration: none; }
.brand-group a:hover { color: var(--accent-text); text-decoration: underline; }

/* Firmy */
.company-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 4px 0 20px; }
.company-filters select { min-width: 200px; }
.company-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.company-card { display: flex; gap: 14px; align-items: center; height: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.company-card:hover { border-color: var(--rule-strong); }
.company-card-logo { width: 56px; height: 56px; flex: none; border-radius: var(--radius-small); object-fit: contain; background: var(--page); }
.company-card .company-logo-initials { display: grid; place-items: center; font-size: 1.1rem; }
.company-card-main { display: grid; gap: 2px; min-width: 0; }
.company-card-name { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* Jak to działa */
.how-head { max-width: 760px; }
.how-section { margin-top: 40px; }
.how-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.how-card { padding: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.how-card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 1.1rem; }
.how-card h3 .icon { width: 22px; height: 22px; color: var(--accent-text); }
.how-card p { margin: 0; }
.how-steps { margin: 0 0 18px; padding-left: 1.4em; display: grid; gap: 10px; max-width: 760px; }
.how-steps li strong { display: block; }
.how-steps li span { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.how-table { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); }
.how-table th, .how-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.how-table thead th { font-size: .85rem; color: var(--muted); font-weight: 600; background: var(--sunken); }
.how-table tbody th { font-weight: 700; white-space: nowrap; }
.how-table .verified { vertical-align: -3px; }
.how-note { margin-top: 14px; max-width: 760px; color: var(--muted); }
.how-list { max-width: 760px; padding-left: 1.2em; display: grid; gap: 8px; }
.how-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.how p { max-width: 760px; }
/* Pięć pozycji menu + wyszukiwarka: wyszukiwarka w nagłówku dopiero na szerokim ekranie */
@media (min-width: 960px) and (max-width: 1099px) {
    .main-nav { display: none; }
    .mobile-nav { display: block; }
}
@media (min-width: 960px) and (max-width: 1279px) {
    .header-search { display: none; }
}
.how-head .page-title { margin-bottom: 12px; }
.offer-fields input[type="number"] {
    width: 110px; min-height: 46px; padding: 0 12px;
    border: 1px solid var(--rule-strong); border-radius: var(--radius-small);
    background: var(--surface); font: inherit; font-variant-numeric: tabular-nums;
}
.contact-form .offer-box + .contact-actions, .contact-form .offer-box + .field-error + .contact-actions { margin-top: 14px; }

/* ======================= Etap 10: logo sprzedawcy, Pro, statystyki, import, obserwowanie ======================= */

/* Logo sprzedawcy przy ogłoszeniu */
.card-seller-logo {
    position: absolute; right: 8px; bottom: 8px;
    display: flex; align-items: center;
    max-width: 42%; height: 34px; padding: 4px 6px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--rule);
    border-radius: var(--radius-small);
}
.card-media .card-seller-logo img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }

.gallery { position: relative; }
.gallery-seller-logo {
    position: absolute; right: 12px; bottom: 12px; z-index: 1;
    display: flex; align-items: center;
    height: 48px; max-width: 34%; padding: 6px 8px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--rule);
    border-radius: var(--radius-small);
}
.gallery .gallery-seller-logo img { width: auto; height: 100%; max-width: 100%; object-fit: contain; }

.seller-box-logo { display: inline-flex; margin-bottom: 10px; }
.seller-box-logo img { max-height: 56px; width: auto; max-width: 180px; object-fit: contain; }

/* Plakietka PRO */
.pro-badge {
    display: inline-flex; align-items: center;
    padding: 1px 6px;
    background: var(--ink); color: var(--accent);
    border-radius: var(--radius-small);
    font-family: var(--font-display); font-size: .72rem; font-weight: 700; letter-spacing: .04em;
    line-height: 1.5; vertical-align: middle;
}
.page-title .pro-badge { font-size: .9rem; vertical-align: 4px; }

/* Obserwowanie */
.follow-form { margin-top: 12px; }
.follow-btn .icon { width: 18px; height: 18px; }
.follow-btn.is-on { border-color: var(--ok); color: var(--ok); }
.follow-hint { margin-top: 6px; }
.company-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; }
.company-follow .follow-form { margin-top: 0; }
.company-follow .follow-hint { flex-basis: 100%; }
.follow-list { list-style: none; display: grid; gap: 8px; margin-bottom: 12px; }
.follow-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }

/* Strona firmy Pro */
.company-banner {
    margin-bottom: 18px;
    aspect-ratio: 4 / 1;
    border-radius: var(--radius); overflow: hidden;
    background: var(--sunken);
}
.company-banner img { width: 100%; height: 100%; object-fit: cover; }
.company-tagline { font-size: 1.05rem; margin-top: 2px; }
.company-banner-preview { width: 100%; max-width: 640px; height: auto; aspect-ratio: 4 / 1; object-fit: cover; border-radius: var(--radius-small); margin-bottom: 8px; }

/* Moje ogłoszenia: narzędzia Pro i działania seryjne */
.pro-tools, .pro-teaser {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
    margin-bottom: 14px;
}
.pro-tools .icon { width: 18px; height: 18px; }
.pro-teaser { padding: 10px 12px; background: var(--surface); border: 1px dashed var(--rule-strong); border-radius: var(--radius); }
.bulk-bar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    margin-bottom: 12px; padding: 10px 12px;
    background: var(--surface-2); border-radius: var(--radius);
}
.bulk-bar select { min-height: 38px; }
.bulk-bar .check { margin: 0; }
.bulk-consent { flex: 1 1 260px; font-size: .85rem; }
.bulk-bar .field-error { flex-basis: 100%; margin: 0; }
.manage-item { position: relative; }
.manage-select { position: absolute; top: 8px; left: 8px; z-index: 2; width: 20px; height: 20px; accent-color: var(--accent-text); }
.pin-flag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; color: var(--accent-text); font-size: .8rem; font-weight: 600; }
.pin-flag .icon { width: 14px; height: 14px; }

/* Profil Pro */
.pro-head { margin: 8px 0 18px; }
.pro-status.is-on { color: var(--ok); font-weight: 600; }
.pro-features {
    list-style: none;
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 20px;
}
.pro-features li { padding: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.pro-features h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-family: var(--font-display); font-size: 1.15rem; }
.pro-features h2 .icon { width: 22px; height: 22px; color: var(--accent-text); }
.pro-features p { margin-bottom: 8px; }
.pro-cta { max-width: 720px; }

/* Statystyki */
.period-switch { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--radius-small); overflow: hidden; }
.period-switch a { padding: 6px 12px; text-decoration: none; font-size: .9rem; }
.period-switch a + a { border-left: 1px solid var(--rule-strong); }
.period-switch a.is-current { background: var(--ink); color: var(--ink-text); }
.stat-tiles {
    list-style: none;
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin: 12px 0 20px;
}
.stat-tiles li { display: flex; flex-direction: column; gap: 2px; padding: 14px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); }
.stat-value { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.stat-label { color: var(--muted); font-size: .85rem; }
.day-chart {
    display: flex; align-items: flex-end; gap: 2px;
    height: 180px; padding-top: 8px;
    border-bottom: 1px solid var(--rule-strong);
}
.day-col { position: relative; flex: 1 1 0; height: 100%; min-width: 3px; }
.day-bar { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 2px 2px 0 0; }
.day-bar.is-impressions { background: var(--rule); }
.day-bar.is-views { left: 20%; right: 20%; background: var(--accent); }
.day-legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; }
.legend-dot.is-views { background: var(--accent); }
.legend-dot.is-impressions { background: var(--rule); }
.table-scroll { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.stats-table th, .stats-table td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.stats-table th { font-weight: 600; color: var(--muted); white-space: nowrap; }
.stats-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Import */
.import-layout { display: grid; gap: 16px; align-items: start; }
@media (min-width: 960px) { .import-layout { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.import-layout .btn { margin: 0 8px 8px 0; }
.import-summary { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 10px; }
.import-summary .is-warn { color: var(--danger); }
.import-table tr.is-error td { background: #FDF1EF; }
.import-errors { list-style: none; color: var(--danger); font-size: .85rem; }
.import-columns { display: grid; gap: 2px 12px; font-size: .88rem; }
.import-columns dt { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; margin-top: 6px; }
.import-columns dd { margin: 0; color: var(--muted); }
.import-categories ul { list-style: none; padding-left: 0; font-size: .88rem; }
.import-categories ul ul { padding-left: 12px; margin-bottom: 6px; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Wiadomość do obserwujących */
.announce-listings { display: grid; gap: 4px; max-height: 280px; overflow-y: auto; padding: 6px 0; }
.announce-history { list-style: none; display: grid; gap: 10px; }
.announce-history li { display: flex; flex-direction: column; }

/* Demo profilu Pro */
.demo-banner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
    margin: 16px 0 12px; padding: 12px 14px;
    background: var(--ink); color: var(--ink-text);
    border-radius: var(--radius);
}
.demo-banner p { margin: 0; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.demo-tabs a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px;
    background: var(--surface); border: 1px solid var(--rule); border-radius: 999px;
    text-decoration: none; font-size: .9rem;
}
.demo-tabs a .icon { width: 18px; height: 18px; }
.demo-tabs a.is-current { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.demo-hint { max-width: 820px; margin-bottom: 14px; color: var(--muted); }
.demo-cta { margin-top: 12px; }
.demo-steps { display: grid; gap: 6px; margin: 0 0 18px 20px; }
.demo-result { flex-basis: 100%; margin: 6px 0 0; color: var(--ok); font-weight: 600; }
.btn.is-disabled { opacity: .55; cursor: not-allowed; }
.stats-table td.is-low { color: var(--warn); font-weight: 600; }
.demo-frame { padding: 14px; border: 2px dashed var(--rule-strong); border-radius: var(--radius); background: var(--page); }
.demo-banner-image {
    display: grid; place-items: center;
    background: linear-gradient(120deg, #0E2238 0%, #1C3554 55%, #8A6200 100%);
    color: var(--ink-muted); font-size: .95rem;
}
.demo-logo {
    font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--ink);
    padding: 4px 10px;
}
.demo-mail { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.demo-mail-head { margin: 0; padding: 10px 14px; background: var(--surface-2); font-size: .88rem; }
.demo-mail-body { padding: 14px 16px; }
.demo-mail-body ul { margin: 0 0 12px 18px; }
.demo-mail-button { display: inline-block; padding: 9px 16px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-small); font-weight: 600; }

/* Etap 11: 12 języków – lista języków w dwóch kolumnach */
.prefs-list:not(.prefs-currencies) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prefs-panel { width: min(320px, calc(100vw - 32px)); }

/* Asystent AI: ogłoszenie ze zdjęć (etap 14) */
.ai-card { display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; margin: 0 0 24px; padding: 18px 20px; border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 6px; background: var(--surface); }
.ai-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.15rem; }
.ai-card p { margin: 0 0 6px; }
.ai-card-form { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
.ai-card-form input[type=file] { max-width: 100%; }
.ai-card-form .btn[disabled] { opacity: .7; cursor: progress; }
.ai-notice p { margin: 0 0 4px; }
.original-text { margin-top: 10px; }
.original-text summary { cursor: pointer; }
.original-text .prose { margin-top: 8px; opacity: .85; }
@media (max-width: 720px) { .ai-card { grid-template-columns: 1fr; } }

/* Dodawanie ogłoszenia krok po kroku (etap 16) */
.sell-steps { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0 0 24px; padding: 0; counter-reset: none; }
.sell-steps li { display: flex; align-items: center; color: var(--muted); }
.sell-steps a { color: inherit; text-decoration: none; }
.sell-steps a:hover { text-decoration: underline; }
.sell-step-number { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border: 1px solid var(--rule-strong); border-radius: 50%; font-weight: 600; font-size: .9rem; }
.sell-steps .is-current { color: inherit; font-weight: 600; }
.sell-steps .is-current .sell-step-number { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sell-steps .is-done .sell-step-number { background: var(--surface-2); }
.photo-step { margin-bottom: 32px; }
.photo-step-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; list-style: none; margin: 0 0 20px; padding: 0; }
.photo-step-grid li { position: relative; }
.photo-step-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; border: 1px solid var(--rule); }
.photo-step-remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(14, 34, 56, .8); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.photo-step-drop { display: flex; flex-direction: column; gap: 6px; padding: 24px; margin-bottom: 10px; border: 2px dashed var(--rule-strong); border-radius: 8px; background: var(--surface); cursor: pointer; }
.photo-step-drop > span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.1rem; }
.photo-step-actions { flex-wrap: wrap; }
.photo-tip { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 14px; border-left: 4px solid var(--accent); border-radius: 4px; background: var(--surface); font-size: .95rem; }
.photo-tip svg { flex: none; margin-top: 2px; }
.photo-pick { margin: 0 0 12px; }
.photo-pick p { margin: 0 0 8px; }
.photo-pick-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo-pick-list li { position: relative; aspect-ratio: 1; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--surface); }
.photo-pick-list img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-pick-remove { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 18px; line-height: 26px; padding: 0; cursor: pointer; }
.photo-pick-remove:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ai-describe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; }
.ai-describe .field-hint { margin: 0; flex: 1 1 260px; }
.preview-bar { margin: 0 0 24px; padding: 18px 20px; border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 6px; background: var(--surface); }
.preview-bar h2 { margin: 0 0 6px; font-size: 1.15rem; }
.preview-bar .consent-check { margin: 8px 0; }
.preview-bar .form-actions { margin-top: 12px; }
.ai-complete { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); }

/* Galeria: strzałki, licznik, powiększenie */
.gallery-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(22, 25, 30, .6); color: #fff; font-size: 30px; line-height: 40px; padding: 0; cursor: pointer; }
.gallery-nav:hover { background: rgba(22, 25, 30, .85); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-count { position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 3px 9px; border-radius: 12px; background: rgba(22, 25, 30, .6); color: #fff; font-size: .85rem; }
.gallery-nav:focus-visible, .gallery-open:focus-visible, .lightbox button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.thumb.is-active img { outline: 2px solid var(--accent); outline-offset: 1px; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: rgba(10, 12, 15, .94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); object-fit: contain; user-select: none; }
.lightbox-nav, .lightbox-close { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; padding: 0; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; font-size: 36px; line-height: 48px; }
.lightbox-nav:hover, .lightbox-close:hover { background: rgba(255, 255, 255, .28); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-close { top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; font-size: 30px; line-height: 42px; }
.lightbox-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: #fff; font-size: .95rem; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 640px) {
    .lightbox img { max-width: 100vw; max-height: calc(100vh - 120px); }
    .lightbox-nav { width: 44px; height: 44px; font-size: 30px; line-height: 40px; background: rgba(0, 0, 0, .45); }
    .lightbox-prev { left: 6px; }
    .lightbox-next { right: 6px; }
}

/* ==========================================================================
   Etap 27: ogłoszenia z aplikacji na telefon
   ========================================================================== */
.app-promo {
    display: flex; gap: 10px; align-items: flex-start;
    margin: 0 0 16px; padding: 12px 14px;
    background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius);
    font-size: .95rem;
}
.app-promo .icon { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.app-inbox {
    margin: 0 0 28px; padding: 18px;
    background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent);
    border-radius: var(--radius);
}
.app-inbox-head h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1.3rem; }
.app-inbox-head h2 .icon { width: 22px; height: 22px; }
.app-inbox-head > p { margin: 0 0 12px; }
.app-inbox-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.app-inbox-all { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font-weight: 600; }
.app-inbox-progress { margin: 10px 0 0; font-weight: 600; }
.app-rows { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.app-row { padding: 14px; background: var(--sunken); border: 1px solid var(--rule); border-radius: var(--radius); }
.app-row.is-busy { border-color: var(--accent); }
.app-row-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px; }
.app-row-check { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.app-row-check input { width: 20px; height: 20px; }
.app-row-status { flex: 1 1 220px; }
.app-ok { color: #1E7A45; font-weight: 600; }
.app-fail { color: #B42318; }
.app-busy { color: var(--text); font-weight: 600; }
.app-busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: app-spin .8s linear infinite; }
@keyframes app-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .app-busy::before { animation: none; } }
.app-row-photos { margin-bottom: 10px; }
.app-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.app-row-actions form { margin: 0; }
.app-add { position: relative; cursor: pointer; }
.app-add .icon { width: 18px; height: 18px; }
.app-add input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.app-add:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.app-delete { min-height: 38px; padding: 0 8px; border: 0; background: none; color: #B42318; text-decoration: underline; cursor: pointer; font-size: .9rem; }
.app-inbox-new { margin: 0 0 12px; font-size: 1.15rem; }
.app-next {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
    margin: 0 0 18px; padding: 10px 14px;
    background: #FFF6D6; border: 1px solid #F0DC92; border-radius: var(--radius);
    font-size: .95rem;
}
.app-next .icon { width: 20px; height: 20px; }
.app-next > span { font-weight: 600; }
.account-nav-app .icon { width: 16px; height: 16px; vertical-align: -3px; }

/* ==========================================================================
   Etap 27: układ na telefonie
   ========================================================================== */
@media (max-width: 959px) {
    /* Pola mniejsze niż 16px powodują powiększanie strony na iPhonie */
    .price-range input, .price-range select, .facet input[type="text"] { font-size: 16px; }
}
@media (max-width: 639px) {
    /* Długie napisy na przyciskach łamią się zamiast wychodzić poza ekran */
    .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
    .form-actions { flex-direction: column; align-items: stretch; }
    .form-actions > .btn, .form-actions > form, .form-actions > form .btn { width: 100%; }
    .form-actions > .text-link { align-self: center; padding: 6px 0; }

    /* Menu konta: jeden przewijany pasek zamiast kilku wierszy */
    .account-nav {
        flex-wrap: nowrap; gap: 0 18px;
        margin: 12px calc(var(--gutter) * -1) 18px; padding: 0 var(--gutter) 2px;
        overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .account-nav::-webkit-scrollbar { display: none; }
    .account-nav a:not(.btn) { flex: none; white-space: nowrap; padding: 10px 0; }
    .account-nav-cta { display: none; }

    .page-title { font-size: 1.75rem; }
    .form-head { margin-bottom: 12px; }
    .sell-steps { gap: 6px 14px; margin-bottom: 16px; font-size: .9rem; }

    /* Zdjęcia: 3 w rzędzie, przyciski na całą szerokość */
    .photo-step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .photo-step-actions .btn { width: 100%; }
    .photo-step-drop { padding: 18px 14px; }
    .photo-tip { font-size: .9rem; }

    /* Lista z aplikacji */
    .app-inbox { padding: 14px 12px; margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); }
    .app-inbox-head h2 { font-size: 1.15rem; }
    .app-inbox-bar .btn { flex: 1 1 100%; }
    .app-inbox-all { flex: 1 1 100%; }
    .app-row { padding: 12px 10px; }
    .app-row-actions > * { flex: 1 1 calc(50% - 8px); }
    .app-row-actions .btn, .app-row-actions form .btn { width: 100%; }
    .app-next { font-size: .9rem; }

    /* Ogłoszenie */
    .listing-layout { gap: 20px; }
    .gallery-nav { width: 38px; height: 38px; font-size: 26px; line-height: 34px; }
    .gallery-prev { left: 6px; }
    .gallery-next { right: 6px; }
    .thumbs img { width: 72px; height: 54px; }

    /* Tabele przewijane w poziomie zamiast rozpychać stronę */
    .stats-table, .legal-table, .bid-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 379px) {
    .header-actions .btn-small { padding: 0 10px; font-size: .85rem; }
    .logo-full { height: 23px; }
}

/* ==========================================================================
   Etap 28: sklep sprzedawcy Pro (pasek z banerem pod nagłówkiem)
   ========================================================================== */
.storefront { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-bottom: 3px solid var(--accent); }
.storefront-banner { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.storefront.has-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 34, 56, .88) 0%, rgba(14, 34, 56, .55) 55%, rgba(14, 34, 56, .25) 100%); }
.storefront-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; padding-top: 16px; padding-bottom: 16px; }
.storefront.has-banner .storefront-row { min-height: 150px; }
.storefront-id { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; min-width: 0; }
.storefront-logo { flex: none; width: 56px; height: 56px; border-radius: 8px; background: #fff; object-fit: contain; }
.storefront-initials { display: grid; place-items: center; color: var(--ink); font-weight: 700; font-size: 1.2rem; }
.storefront-name { display: grid; gap: 2px; min-width: 0; }
.storefront-name strong { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; }
.storefront-name > span { color: #D6DEE8; font-size: .92rem; }
.storefront-name .pro-badge { vertical-align: 3px; }
.storefront-search { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-left: auto; flex: 1 1 360px; max-width: 560px; }
.storefront-search > .icon { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.storefront-search input[type="search"] { flex: 1 1 220px; height: 44px; padding-left: 38px; border: 0; }
.storefront-all { padding: 6px 0; border: 0; background: none; color: #fff; font: 600 .92rem var(--font-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.storefront-search .storefront-all { flex-basis: 100%; text-align: left; }
.storefront-row > .storefront-all { margin-left: auto; }
.storefront-all:hover { color: var(--accent); }
.storefront a:focus-visible, .storefront button:focus-visible, .storefront input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 639px) {
    .storefront.has-banner .storefront-row { min-height: 110px; }
    .storefront-logo { width: 44px; height: 44px; }
    .storefront-name strong { font-size: 1.15rem; }
    .storefront-search { flex-basis: 100%; margin-left: 0; }
    .storefront-search input[type="search"] { font-size: 16px; }
}

/* Kreator przycisku na stronę sprzedawcy */
.btn-builder { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .btn-builder { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); } }
.btn-builder-controls fieldset { border: 0; margin: 0; padding: 0; }
.btn-builder-controls legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.btn-builder-out { display: grid; gap: 20px; }
.bb-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bb-chip { padding: 6px 10px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface); font: inherit; font-size: .85rem; cursor: pointer; }
.bb-chip:hover { border-color: var(--text); }
.bb-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.bb-swatch { width: 44px; height: 36px; border: 1px solid var(--rule-strong); border-radius: 6px; font: 700 .85rem var(--font-body); cursor: pointer; }
.bb-pickers { display: flex; flex-wrap: wrap; gap: 16px; }
.bb-pickers label { display: inline-flex; align-items: center; gap: 8px; }
.bb-pickers input[type="color"] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--surface); cursor: pointer; }
.bb-options { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.bb-options label { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.bb-preview-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.bb-stage { display: grid; place-items: center; min-height: 140px; margin: 12px 0; padding: 24px; border: 1px dashed var(--rule-strong); border-radius: var(--radius); background: #fff; }
.bb-stage.is-dark { background: #1B1E23; border-color: #1B1E23; }
.bb-code { width: 100%; min-height: 150px; font: .82rem/1.45 ui-monospace, Consolas, monospace; }
.bb-copy { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.bb-howto-title { margin: 20px 0 8px; font-size: 1.05rem; }
.bb-howto { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.bb-swatch:focus-visible, .bb-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Etap 29: GearLot w mediach społecznościowych (stopka) */
.footer-social { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; padding: 0; }
.footer-social a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; color: inherit; font-size: .88rem; font-weight: 600; text-decoration: none; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.photo-new-list { margin-top: 10px; max-width: 640px; }

/* Etap 34: kwoty licytacji do kliknięcia */
.bid-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bid-chip { min-height: 36px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 999px; background: var(--surface); font: 600 .9rem var(--font-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.bid-chip:hover, .bid-chip.is-active { border-color: var(--accent); background: #FFF6D6; }
.bid-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Etap 34: kafelki ogłoszeń niższe i jednakowe (zdjęcie zawsze przycięte do tego samego kształtu) */
.card-media, .mini-media { overflow: hidden; min-height: 0; }
.card-media > img, .mini-media > img { position: absolute; inset: 0; }
.card-media { aspect-ratio: 3 / 2; }
.card-body { padding: 10px 12px 12px; }
@media (min-width: 640px) { .card-body { padding: 10px 14px 12px; } }
.card-title { font-size: clamp(1.02rem, 2vw, 1.18rem); }
.card-meta { margin-top: 4px; }
.card-price { padding-top: 8px; }
.card-price strong { font-size: clamp(1.05rem, 2.2vw, 1.25rem); }

/* Etap 35: etykiety promocyjne (Pro) */
.promo-tag { display: inline-block; padding: 3px 9px; border-radius: var(--radius-small); font-size: .78rem; font-weight: 700; line-height: 1.3; letter-spacing: .01em; color: #fff; background: #C8102E; }
.promo-price_drop { background: #C8102E; }
.promo-promo { background: #E0560B; }
.promo-super_deal { background: #6B2FB3; }
.promo-clearance { background: #0E2238; }
.promo-last_items { background: #B8860B; }
.promo-just_serviced { background: #1E7A45; }
.card-promo { position: absolute; left: 10px; bottom: 10px; z-index: 1; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.promo-choices { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0; }
.promo-choice { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; cursor: pointer; }
.promo-choice input:disabled + span { opacity: .55; }
.price-omnibus { margin-top: 4px; color: var(--muted); }
.contact-public { margin-top: 10px; }

/* Etap 35: baner – kolaż zdjęć z najnowszych ogłoszeń */
.hero-collage { display: none; }
@media (min-width: 1000px) {
    .hero-has-collage .hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
    .hero-has-collage .hero-title { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
    .hero-collage {
        display: grid; gap: 8px;
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 104px;
        transform: rotate(-2deg);
    }
    .hero-tile { position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--sunken); box-shadow: 0 6px 18px rgba(14, 34, 56, .18); outline: 3px solid var(--surface); }
    .hero-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
    .hero-tile:hover img { transform: scale(1.06); }
    .hero-tile:focus-visible { outline: 3px solid var(--accent); }
    /* Mozaika: pierwsze zdjęcie duże, reszta wokół (4–6 zdjęć, bez dziur) */
    .hero-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .hero-tile:nth-child(2) { grid-column: span 2; }
    .hero-tile:nth-child(5), .hero-tile:nth-child(6) { grid-column: span 2; }
    .hero-collage-5 .hero-tile:nth-child(5) { grid-column: span 4; }
}
@media (min-width: 1000px) and (prefers-reduced-motion: reduce) {
    .hero-tile img { transition: none; }
}
.hero-has-collage::before { -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 60%); mask-image: linear-gradient(100deg, transparent 20%, #000 60%); }

/* Etap 35: 4 ogłoszenia w rzędzie, zdjęcie niższe o ok. 15% (3:2 → 16:9) */
.card-media { aspect-ratio: 16 / 9; }
@media (min-width: 1000px) {
    .card-grid, .results-col .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 640px) and (max-width: 999px) {
    .card-grid, .results-col .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1000px) and (max-width: 1199px) {
    .results-col .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Etap 35: pokaż hasło */
.password-wrap { position: relative; display: block; }
.password-wrap input { width: 100%; padding-right: 48px; }
.password-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: var(--radius-small); }
.password-toggle:hover { color: var(--text); }
.password-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.password-toggle .pw-slash { display: none; }
.password-toggle.is-shown .pw-slash { display: inline; }
.flash.flash-toast { position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: min(92vw, 520px); margin: 0; box-shadow: 0 8px 24px rgba(14, 34, 56, .25); transition: opacity .4s ease; }
.flash.flash-toast-out { opacity: 0; pointer-events: none; }

/* Etap 36: telefon – tytuł, cena i licytacja zaraz pod zdjęciami (wcześniej dopiero pod opisem i szczegółami) */
@media (max-width: 979px) {
    .listing-main { display: contents; }
    .listing-main > * { order: 3; min-width: 0; }
    .listing-main > .gallery { order: 1; }
    .listing-main > .thumbs { order: 1; margin-top: -12px; }
    .listing-side { order: 2; }
}
/* Nagłówek: „Moje konto” w jednej linii */
.site-header a, .header-account, .header-actions a { white-space: nowrap; }
.header-search { min-width: 150px; flex: 1 1 180px; }
.main-nav { flex-shrink: 0; }
@media (min-width: 960px) and (max-width: 1399px) {
    .header-row { gap: 16px; }
    .main-nav { gap: 14px; }
    .header-actions { gap: 10px; }
}
@media (min-width: 960px) and (max-width: 1199px) {
    .header-search { display: none; }
}
a.app-badge { text-decoration: none; cursor: pointer; }
a.app-badge:hover { border-color: var(--accent); }

/* Etap 36: na telefonie i tablecie kolaż jako pasek zdjęć pod wyszukiwarką */
@media (max-width: 999px) {
    .hero-collage { display: flex; gap: 8px; margin-top: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
    .hero-collage::-webkit-scrollbar { display: none; }
    .hero-tile { position: relative; flex: 0 0 auto; width: 132px; height: 92px; overflow: hidden; border-radius: 6px; background: var(--sunken); scroll-snap-align: start; }
    .hero-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
}
/* Karty w 2 kolumnach na telefonie: etykiety nie nachodzą na siebie */
@media (max-width: 639px) {
    .card-media .offer { left: 6px; top: 6px; font-size: .72rem; padding: 2px 6px; }
    .card-media .auction-flag { right: 6px; top: auto; bottom: 6px; font-size: .72rem; padding: 2px 6px; }
}
/* Etap 36: skrzynka zdjęć z telefonu – mniejsze miniatury, więcej ogłoszeń na ekranie */
.app-row-photos.photo-step-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
@media (min-width: 640px) { .app-row-photos.photo-step-grid { grid-template-columns: repeat(auto-fill, 120px); } }

/* Etap 37: widok listy niższy o ok. 20% */
.row-main { padding: 8px 12px 0; }
.row-price { padding: 6px 12px 9px; }
.row-meta { margin-top: 4px; }
.row-location { margin-top: 2px; }
@media (min-width: 640px) {
    .row-link { grid-template-columns: 170px minmax(0, 1fr) minmax(170px, auto); min-height: 120px; }
    .row-main { padding: 11px 16px; }
    .row-title { font-size: 1.22rem; }
    .row-meta { margin-top: 6px; }
    .row-location { margin-top: 4px; }
    .row-price { padding: 11px 16px; }
    .row-price strong { font-size: 1.32rem; }
}
/* Etap 37: na laptopach (do 1500 px) „Moje konto / Zaloguj się” jako ikona – więcej miejsca na wyszukiwarkę */
@media (min-width: 960px) and (max-width: 1499px) {
    .header-link span:not(.filters-badge) { display: none; }
    .header-search { min-width: 210px; }
}

/* Etap 42: baner główny – zdjęcie konsolety w kolorach GearLot (granat → żółty), tekst na granacie po lewej */
.hero-photo {
    --hero-photo: url("../images/hero-gearlot.webp");
    background:
        linear-gradient(90deg, #0E2238 0, #0E2238 calc(50% - 300px), rgba(14, 34, 56, .82) calc(50% - 40px), rgba(14, 34, 56, 0) calc(50% + 260px)),
        #0E2238 var(--hero-photo) right center / cover no-repeat;
    border-bottom: 0;
    color: #fff;
}
.hero-photo::before { display: none; }
.hero-photo .hero-title { color: #fff; }
.hero-photo .hero-lead { color: #C9D3E0; }
.hero-photo .hero-badges li { color: #E6ECF3; }
.hero-photo .hero-badges .icon { background: rgba(242, 183, 5, .16); color: #F2B705; }
.hero-photo .hero-search { border-color: transparent; box-shadow: 0 18px 44px rgba(0, 0, 0, .35); }
.hero-photo .hero-inner { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(36px, 5vw, 72px); }
@media (max-width: 1400px) {
    .hero-photo { --hero-photo: url("../images/hero-gearlot-1280.webp"); }
}
/* Telefon i tablet: zdjęcie jako pasek u góry, tekst na granacie pod nim */
@media (max-width: 760px) {
    .hero-photo {
        background:
            linear-gradient(180deg, rgba(14, 34, 56, 0) 0, rgba(14, 34, 56, 0) 36vw, #0E2238 66vw) center top / 100% auto no-repeat,
            #0E2238 url("../images/hero-gearlot-mobile.webp") center top / 100% auto no-repeat;
    }
    .hero-photo .hero-inner { padding-top: calc(66.7vw - 64px); }
    .hero-photo .hero-title { text-shadow: 0 2px 12px rgba(7, 18, 31, .6); }
}

/* Etap 43: przycisk „Zainstaluj aplikację na telefon” na stronie Dodaj ogłoszenie */
.app-install-box {
    margin: 0 0 20px; padding: 14px 16px;
    background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent);
    border-radius: var(--radius);
}
.app-install-box > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; list-style: none; cursor: pointer; }
.app-install-box > summary::-webkit-details-marker { display: none; }
.app-install-box > summary:focus-visible { outline: none; }
.app-install-box > summary:focus-visible .app-install-btn { outline: 3px solid var(--ink); outline-offset: 2px; }
.app-install-btn .icon { width: 22px; height: 22px; }
.app-install-btn::after { content: ""; width: 8px; height: 8px; margin-left: 4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.app-install-box[open] .app-install-btn::after { transform: translateY(2px) rotate(-135deg); }
.app-install-lead { flex: 1 1 260px; font-size: .95rem; }
.app-install-body { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); }
.app-install-body h2 { margin: 0 0 12px; font-size: 1.2rem; }
.app-install-steps { margin: 0; padding-left: 1.4em; display: grid; gap: 14px; }
.app-install-steps li::marker { font-weight: 700; }
.app-install-steps strong { display: block; font-size: 1.05rem; }
.app-install-link { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 10px; }
.app-install-link .qr { width: 156px; height: 156px; border: 1px solid var(--rule); border-radius: 6px; }
.app-install-link > span { display: grid; gap: 8px; justify-items: start; }
.app-install-link code { font-size: 1.05rem; font-weight: 700; word-break: break-all; }
.app-install-done { margin: 16px 0 12px; font-weight: 600; }
@media (min-width: 761px) { .app-install-now { display: none; } }
@media (max-width: 760px) { .app-install-link .qr { display: none; } .app-install-btn { width: 100%; } }

/* Etap 44: własne okno potwierdzenia, przycisk dodawania w kategorii, siatka kategorii 3×3 */
.confirm-dialog { width: min(92vw, 420px); padding: 22px 24px 20px; border: 0; border-top: 4px solid var(--accent); border-radius: var(--radius); box-shadow: 0 16px 48px rgba(7, 18, 31, .35); color: var(--text); background: var(--surface); }
.confirm-dialog::backdrop { background: rgba(7, 18, 31, .55); }
.confirm-dialog-brand { margin: 0 0 14px; color: var(--ink); }
.confirm-dialog-logo { display: block; height: 24px; width: auto; }
.confirm-dialog-text { margin: 0 0 20px; font-size: 1.05rem; font-weight: 600; }
.confirm-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; }
.results-add { margin-left: auto; }
.sell-parts-link { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; }
.sell-parts-link .icon { width: 18px; height: 18px; }
@media (min-width: 900px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
.results-add + .view-toggle { margin-left: 0; }

/* Etap 45: strona aplikacji otwarta na komputerze */
.app-desktop { max-width: 760px; border-left: 4px solid var(--accent); }
.app-desktop .page-title { display: flex; align-items: center; gap: 10px; }
.app-desktop .page-title .icon { width: 30px; height: 30px; }
.app-desktop-lead { margin: 0 0 4px; font-size: 1.05rem; }
.app-desktop-steps { margin-top: 12px; }
.pro-request-form { display: grid; gap: 4px; max-width: 520px; margin-top: 12px; }
.pro-request-form .btn { justify-self: start; margin-top: 6px; }

/* Etap 45: osobny przycisk panelu – tylko administratorzy */
.account-nav .account-nav-admin { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; }
.account-nav .account-nav-admin:hover { background: #1B3554; color: #fff; }
.account-nav .account-nav-admin .icon { width: 16px; height: 16px; color: #F2B705; }

/* Etap 46: zdjęcia z telefonu przy ręcznym wypełnianiu */
.phone-drafts { margin: 0 0 20px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: var(--radius); }
.phone-drafts h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1.15rem; }
.phone-drafts h2 .icon { width: 22px; height: 22px; }
.phone-drafts-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 10px; }
.phone-draft { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px; border: 1px solid var(--rule); border-radius: var(--radius); color: inherit; text-decoration: none; }
.phone-draft:hover, .phone-draft:focus-visible { border-color: var(--accent); }
.phone-draft-photos { display: flex; gap: 6px; }
.phone-draft-photos img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; background: var(--rule); }
.phone-draft-text { display: grid; flex: 1 1 160px; }
.app-inbox-manual { margin: 4px 0 0; font-weight: 600; }
@media (max-width: 560px) { .phone-draft .btn { width: 100%; } }

/* Etap 46: „Pokazuj także niezalogowanym” w wyraźnej ramce */
.contact-public {
    margin-top: 16px; padding: 14px 16px;
    background: #FFF8E1; border: 2px solid var(--accent); border-radius: var(--radius);
    cursor: pointer;
}
.contact-public strong { font-weight: 700; color: var(--text); }
.contact-public-note { display: block; margin-top: 4px; color: #6B5300; }
.contact-public:has(input:not(:checked)) { background: var(--surface); border-color: var(--rule); border-style: dashed; }
.contact-public:has(input:not(:checked)) .contact-public-note { color: var(--muted, #667085); }
.contact-public:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Etap 48: strona „Zostań partnerem” */
.partners-hero { max-width: 820px; margin-bottom: 28px; }
.partners-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.partners-mail, .partners-mail-bottom { font-size: 1.05rem; }
.partners-mail a, .partners-mail-bottom a { font-weight: 700; color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.partners-cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.partners-who { margin: 18px 0 6px; }
.partners-now { margin: 0; padding: 12px 14px; background: #FFF8E1; border-left: 4px solid var(--accent); border-radius: 4px; font-weight: 600; }
.partners-form-wrap { max-width: 820px; margin-top: 32px; border-top: 4px solid var(--accent); }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.partners-form .btn { margin: 6px 0 10px; }
.partners-mail-bottom { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.partners-form .field { margin-bottom: 12px; }

/* Etap 50: równa wysokość ogłoszeń na listach (wiersze i karty) + delikatne wyróżnienie licytacji */
.row-link { height: 150px; overflow: hidden; }
.row-main > *, .row-price-main, .row-extra { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-meta { flex-wrap: nowrap; }
.row-meta > * { flex: none; }
.row-location { min-width: 0; }
.row-price { display: block; padding: 4px 12px 8px; }
.row-price-main { display: flex; align-items: baseline; gap: 0 8px; min-width: 0; }
.row-price-main small { overflow: hidden; text-overflow: ellipsis; }
.row-extra { display: flex; align-items: baseline; gap: 0 10px; margin-top: 1px; min-height: 1.3em; font-size: .82rem; line-height: 1.3; }
.row-extra > * { flex: none; }
.row-extra .auction-meta { display: inline-flex; flex-wrap: nowrap; margin: 0; flex-basis: auto; }
.row-extra .card-price-caption { color: var(--muted); font-size: .78rem; }
.row-price .card-approx, .row-price .negotiable { flex-basis: auto; font-size: .82rem; }
@media (min-width: 640px) {
    .row-link { height: 128px; min-height: 0; }
    .row-price { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; padding: 10px 16px; }
    .row-price-main { flex-direction: column; align-items: flex-end; gap: 0; }
    .row-extra { flex-direction: column; align-items: flex-end; gap: 0; min-height: 0; }
    .row-extra .auction-meta { justify-content: flex-end; }
}

/* Karty: tytuł max 2 linie, cechy i cena w jednej linii, 2 linie na dodatki – wszystkie karty równe */
.card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.2em; }
.card-brand, .card-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { flex-wrap: nowrap; }
.card-meta > span { overflow: hidden; text-overflow: ellipsis; }
.card-price { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
.card-price small { overflow: hidden; text-overflow: ellipsis; }
.card-extra { min-height: 2.7em; font-size: .82rem; line-height: 1.35; }
.card-extra .card-approx { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-auction-line { display: flex; align-items: baseline; gap: 0 8px; white-space: nowrap; overflow: hidden; }
.card-auction-line .card-price-caption { flex: none; font-size: .78rem; color: var(--muted); }
.card-auction-line .auction-meta { margin: 0; flex-wrap: nowrap; font-size: .8rem; }

/* Licytacje – delikatnie: złoty pasek z boku i bardzo jasne tło */
.row-item.is-auction { border-color: rgba(242, 183, 5, .55); background: #FFFCF3; }
.row-item.is-auction .row-media { border-left: 3px solid var(--accent); }
.card.is-auction { border-color: rgba(242, 183, 5, .55); background: #FFFCF3; }
.card.is-auction .card-media::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); z-index: 1; }
.row-price .row-extra .card-price-caption, .row-price .row-extra .auction-meta { flex-basis: auto; }
.row-link { height: 156px; }
@media (min-width: 640px) { .row-link { height: 128px; } }
@media (max-width: 639px) { .card-auction-line .card-price-caption { display: none; } }
/* Cechy w jednej linii: element, który się nie mieści, chowa się w całości (bez ucinania „Qty 24” do „Qty 2”) */
.row-meta { flex-wrap: wrap; max-height: 24px; overflow: hidden; white-space: normal; }

/* Etap 51: kontakt przez WhatsApp */
.footer-whatsapp a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.footer-whatsapp .icon { width: 18px; height: 18px; color: #25D366; }
.footer-whatsapp small { display: block; opacity: .7; font-size: .78rem; }
.partners-wa { border-top: 0; padding-top: 0; margin-top: 6px; }
.partners-wa a { display: inline-flex; align-items: center; gap: 6px; }
.partners-wa .icon { width: 20px; height: 20px; color: #1DA851; }
