/* Wystrzał — style publicznej części serwisu. Bez kompilacji: zwykły CSS. */

:root {
    --ink: #16181b;
    --ink-2: #2a2d31;
    --paper: #f5f3ee;
    --surface: #ffffff;
    --surface-2: #faf9f6;
    --line: #e2ded4;
    --text: #1d1f22;
    --muted: #64625d;
    --brass: #c28f2e;
    --brass-light: #e2b558;
    --brass-dark: #8a6316;
    --brass-tint: #f6ecd6;
    --green: #2f6b45;
    --green-tint: #e3efe6;
    --red: #9b2c22;
    --red-tint: #f6e3e0;
    --blue: #2d5480;
    --blue-tint: #e2eaf3;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgb(22 24 27 / 6%), 0 4px 16px rgb(22 24 27 / 6%);
    --shadow-lg: 0 12px 40px rgb(22 24 27 / 18%);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --header-h: 64px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --paper: #121315;
        --surface: #1b1d20;
        --surface-2: #202327;
        --line: #2f3236;
        --text: #ecebe7;
        --muted: #a4a29c;
        --brass-dark: #e2b558;
        --brass-tint: #33291a;
        --green: #7cc596;
        --green-tint: #1d2c22;
        --red: #ef9a8f;
        --red-tint: #35201d;
        --blue: #9dbce0;
        --blue-tint: #1c2633;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 4px 16px rgb(0 0 0 / 25%);
        color-scheme: dark;
    }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--paper);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; padding-bottom: 48px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 0.75em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Przyciski ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px;
    border: 1px solid transparent; border-radius: 10px;
    font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn--brass { background: var(--brass); color: #1a1408; }
.btn--brass:hover:not(:disabled) { background: var(--brass-light); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--muted); }
.btn--sm { min-height: 38px; padding: 6px 14px; font-size: 15px; }
.btn--lg { min-height: 52px; padding: 12px 22px; font-size: 17px; }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }

/* ---------- Nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--ink); color: #f2efe8; border-bottom: 1px solid #000; }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo__mark { width: 34px; height: 34px; color: var(--ink-2); }
.logo__text { color: #f6f2e8; }
.logo--footer .logo__text { color: var(--text); }
.logo--footer .logo__mark { color: var(--ink); }
.header-search { flex: 1; display: flex; max-width: 560px; background: #fff; border-radius: 10px; overflow: hidden; }
.header-search input[type=search] { flex: 1; min-width: 0; min-height: 44px; border: 0; border-radius: 0; padding: 10px 14px; background: transparent; color: #1d1f22; box-shadow: none; }
.header-search input:focus { outline: none; }
.header-search:focus-within { outline: 3px solid var(--brass); }
.header-search button { border: 0; background: var(--brass); color: #1a1408; width: 48px; cursor: pointer; display: grid; place-items: center; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.site-nav > a:not(.btn) { color: #d9d5cb; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.site-nav > a:not(.btn):hover, .site-nav > a.is-active { color: #fff; background: var(--ink-2); }

@media (max-width: 760px) {
    .site-header__inner { flex-wrap: wrap; gap: 10px; padding: 10px 0; }
    .header-search { order: 3; flex-basis: 100%; max-width: none; }
    .site-nav > a:not(.btn) { display: none; }
    .site-nav .btn span { display: none; }
    .site-nav .btn { width: 44px; padding: 0; }
    .hide-sm { display: none; }
}

/* ---------- Strona główna ---------- */
.hero {
    background:
        radial-gradient(1200px 400px at 85% -10%, rgb(194 143 46 / 22%), transparent 60%),
        linear-gradient(180deg, var(--ink) 0%, #1e2125 100%);
    color: #f2efe8;
    padding: 48px 0 56px;
}
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brass-light); font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.hero__title { font-size: clamp(28px, 5vw, 46px); font-weight: 800; margin: 10px 0 28px; max-width: 24ch; }
.hero__stats { margin-top: 18px; color: #bdb8ad; }
.hero__stats strong { color: #fff; }
.hero-search {
    display: grid; grid-template-columns: 2fr 1.2fr 1fr auto; gap: 10px; align-items: end;
    background: var(--surface); color: var(--text); padding: 14px; border-radius: 16px; box-shadow: var(--shadow-lg);
}
.hero-search__field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 4px 2px; }
.hero-search input, .hero-search select { width: 100%; }
@media (max-width: 860px) {
    .hero { padding: 32px 0 36px; }
    .hero-search { grid-template-columns: 1fr 1fr; }
    .hero-search__field--q { grid-column: 1 / -1; }
    .hero-search .btn { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .hero-search { grid-template-columns: 1fr; }
}

/* ---------- Formularze ---------- */
input[type=search], input[type=text], input[type=number], select, textarea {
    min-height: 44px; padding: 9px 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgb(194 143 46 / 25%); }
select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364625d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
.field { margin-bottom: 18px; }
.field label, .field__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input:not([type=checkbox]):not([type=radio]), .field select { width: 100%; }
.field__row { display: flex; align-items: center; gap: 8px; }
.field__row input { min-width: 0; }
.check { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brass); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; cursor: pointer; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }

/* ---------- Sekcje ---------- */
.section { padding-top: 40px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section__title { font-size: 22px; font-weight: 750; }
.section__more { display: inline-flex; align-items: center; gap: 4px; color: var(--brass-dark); font-weight: 600; text-decoration: none; }
.section__more:hover { text-decoration: underline; }
.lead { font-size: 18px; color: var(--muted); }

.categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.category { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.category__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 17px; }
.category__head:hover .category__name { color: var(--brass-dark); }
.category__count { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.category__children { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
.category__children a { color: var(--muted); text-decoration: none; }
.category__children a:hover { color: var(--text); text-decoration: underline; }
.category__permit { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--red); background: var(--red-tint); padding: 2px 8px; border-radius: 6px; }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.trust__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.trust__item .icon { width: 28px; height: 28px; color: var(--brass); margin-bottom: 10px; }
.trust__item h3 { font-size: 17px; margin-bottom: 6px; }
.trust__item p { color: var(--muted); margin: 0; font-size: 15px; }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px 20px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 8px; }

/* ---------- Karty ogłoszeń ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.card__placeholder .icon { width: 28px; height: 28px; opacity: .6; }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__title { font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__price { font-size: 18px; font-weight: 800; margin: 2px 0 0; }
.card__nego { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: auto 0 0; padding-top: 6px; font-size: 13px; color: var(--muted); }
.card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.card__cat { font-size: 12px; color: var(--muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) {
    .card__body { padding: 10px; }
    .card__title { font-size: 14px; }
    .card__price { font-size: 16px; }
}

.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.tag--overlay { position: absolute; top: 10px; left: 10px; border: 0; box-shadow: var(--shadow); }
.tag--sell { background: var(--green-tint); color: var(--green); border-color: transparent; }
.tag--buy { background: var(--blue-tint); color: var(--blue); border-color: transparent; }
.tag--swap { background: var(--brass-tint); color: var(--brass-dark); border-color: transparent; }
.tag--permit { background: var(--red-tint); color: var(--red); border-color: transparent; }
.badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--brass); color: #1a1408; font-size: 12px; font-weight: 700; }

/* ---------- Lista ogłoszeń ---------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); padding: 18px 0 8px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.page-title { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; }
.page-sub { color: var(--muted); margin: 4px 0 0; }
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--brass-tint); border: 1px solid rgb(194 143 46 / 35%); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; font-size: 15px; }
.notice p { margin: 0; }
.notice .icon { margin-top: 3px; color: var(--brass-dark); }
.notice--muted { background: var(--surface-2); border-color: var(--line); }
.notice--warning { background: var(--red-tint); border-color: transparent; }
.notice a { font-weight: 600; }

.listing-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 24px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; }
.filters__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.filters__top h2 { font-size: 18px; }
.filters__top .icon-btn { display: none; }
.filters__actions { display: grid; gap: 8px; }
.filters-toggle { display: none; }
.cat-tree, .cat-tree ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.cat-tree ul { padding-left: 14px; border-left: 2px solid var(--line); margin: 4px 0 6px 6px; }
.cat-tree a { display: block; padding: 4px 6px; border-radius: 6px; text-decoration: none; color: var(--muted); }
.cat-tree a:hover { color: var(--text); background: var(--surface-2); }
.cat-tree a.is-active { color: var(--text); font-weight: 700; background: var(--brass-tint); }
.sortbar { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.sortbar select { min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.scrim { display: none; }

@media (max-width: 900px) {
    .listing-layout { grid-template-columns: 1fr; }
    .filters-toggle { display: inline-flex; }
    .filters {
        position: fixed; inset: 0 0 0 auto; top: 0; z-index: 50; width: min(380px, 92vw); max-height: none; height: 100%;
        border-radius: 0; border-width: 0 0 0 1px; transform: translateX(100%); transition: transform .2s ease; box-shadow: var(--shadow-lg);
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }
    .filters.is-open { transform: none; }
    .filters__top .icon-btn { display: inline-grid; }
    .scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / 45%); }
    .sortbar { justify-content: flex-start; }
}

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.pagination__pages { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination__item { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; font-weight: 600; }
.pagination a.pagination__item:hover { border-color: var(--muted); }
.pagination__item.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination__item.is-disabled { color: var(--muted); opacity: .6; }
@media (max-width: 520px) { .pagination__pages { display: none; } }

/* ---------- Szczegóły ogłoszenia ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; margin-top: 8px; }

.detail__main { display: grid; gap: 18px; }
.detail__side { display: grid; gap: 14px; }
@media (max-width: 960px) {
    /* Na telefonie: zdjęcia, potem cena i kontakt, dopiero niżej parametry i opis. */
    .detail { grid-template-columns: 1fr; gap: 14px; }
    .detail__main, .detail__side { display: contents; }
    .gallery { order: 1; }
    .panel--sticky { order: 2; }
    .detail__section { order: 3; }
    .detail__side > :not(.panel--sticky) { order: 4; }
}
@media (min-width: 961px) { .panel--sticky { position: sticky; top: calc(var(--header-h) + 16px); } }

.gallery { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery__main { position: relative; aspect-ratio: 4 / 3; background: #0d0e10; display: grid; place-items: center; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__main--empty { background: var(--surface-2); color: var(--muted); gap: 8px; place-content: center; }
.gallery__main--empty .icon { width: 40px; height: 40px; opacity: .5; }
.gallery__counter { position: absolute; right: 12px; bottom: 12px; background: rgb(0 0 0 / 60%); color: #fff; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgb(255 255 255 / 88%); color: #111; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.gallery__thumb { flex: none; width: 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--surface-2); cursor: pointer; opacity: .75; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--brass); opacity: 1; }

.detail__section, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.detail__section h2 { font-size: 19px; margin-bottom: 14px; }
.detail__subhead { font-size: 16px; margin: 18px 0 8px; }
.params { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; margin: 0; }
.params > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.params dt { color: var(--muted); }
.params dd { margin: 0; font-weight: 600; text-align: right; }
.prose { overflow-wrap: anywhere; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; }
.ticks .icon { color: var(--green); margin-top: 3px; }

.detail__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.detail__title { font-size: 22px; font-weight: 750; margin-bottom: 10px; overflow-wrap: anywhere; }
.detail__price { font-size: 30px; font-weight: 850; margin: 0; letter-spacing: -0.02em; }
.detail__oldprice { color: var(--muted); margin: 2px 0 0; font-size: 14px; }
.detail__nego { color: var(--green); font-weight: 600; margin: 4px 0 0; font-size: 14px; }
.detail__facts { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.detail__facts li { display: flex; align-items: center; gap: 8px; }
.panel .btn + .btn, .panel .hint + .btn { margin-top: 10px; }
.panel__title { font-size: 16px; margin-bottom: 12px; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.seller { display: flex; gap: 12px; align-items: center; }
.seller__avatar { width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; background: var(--ink); color: var(--brass-light); font-weight: 800; font-size: 18px; flex: none; }
.seller__name { font-weight: 700; margin: 0; }
.seller__meta { font-size: 13px; color: var(--muted); margin: 0; }
.report { font-size: 13px; color: var(--muted); padding: 0 4px; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 36px 0 calc(20px + env(safe-area-inset-bottom)); font-size: 15px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 28px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; gap: 20px; } }
.site-footer__lead, .site-footer__small { color: var(--muted); margin-top: 10px; }
.site-footer__small { font-size: 14px; }
.site-footer__title { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

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

/* ---------- Konta, formularze, wiadomości ---------- */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; font-size: 15px; }
.flash p { margin: 0; }
.flash .icon { margin-top: 3px; }
.flash--ok { background: var(--green-tint); color: var(--green); }
.flash--warn { background: var(--brass-tint); color: var(--brass-dark); }
.flash--error { background: var(--red-tint); color: var(--red); }
.field__error { color: var(--red); font-size: 14px; margin: 6px 0 0; }
.field__hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.field__labelrow { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field__labelrow label { margin-bottom: 6px; }
.small-link { font-size: 13px; color: var(--brass-dark); }
.optional { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=email], input[type=password], input[type=tel], input[type=date] {
    min-height: 44px; padding: 9px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; width: 100%;
}
textarea { width: 100%; resize: vertical; line-height: 1.5; }
[aria-invalid=true] { border-color: var(--red) !important; }
.check--top { align-items: flex-start; }
.check--top input { margin-top: 2px; flex: none; }
.check a { color: var(--brass-dark); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 16px; }
.checks .check { margin-bottom: 10px; }
.check.is-disabled { opacity: .45; cursor: not-allowed; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.linklike { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.static { margin: 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn--danger { color: var(--red); }

.auth { display: grid; place-items: start center; padding-top: 32px; }
.auth__card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 520px) { .auth { padding-top: 12px; } .auth__card { padding: 20px 16px; border-radius: 12px; } }
.auth__title { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth__lead { color: var(--muted); margin-bottom: 20px; }
.auth__lead a, .auth__back a, .auth__card p a { color: var(--brass-dark); font-weight: 600; }
.auth__back { margin-top: 16px; text-align: center; }
.auth__note { text-align: center; margin-top: 12px; }

.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.steps li { flex: 1; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; background: var(--surface-2); }
.steps span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 999px; background: var(--line); color: var(--text); font-weight: 700; font-size: 12px; }
.steps .is-current { color: var(--text); font-weight: 600; background: var(--brass-tint); }
.steps .is-current span { background: var(--brass); color: #1a1408; }
.steps .is-done span { background: var(--green); color: #fff; }

.phone-input { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.phone-input:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px rgb(194 143 46 / 25%); }
.phone-input span { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); border-right: 1px solid var(--line); font-weight: 600; }
.phone-input input { border: 0; border-radius: 0; box-shadow: none !important; }
.code-form { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.code-input { font-size: 28px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.testmode { background: var(--brass-tint); color: var(--brass-dark); padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.verified { display: flex; gap: 12px; align-items: flex-start; background: var(--green-tint); padding: 14px; border-radius: 10px; margin-bottom: 16px; }
.verified .icon { color: var(--green); width: 24px; height: 24px; }
.verified p { margin: 0; }
.change { margin-top: 16px; }
.change summary { cursor: pointer; color: var(--muted); margin-bottom: 12px; }

/* Nagłówek: konto */
.nav-icon { position: relative; display: inline-grid !important; place-items: center; width: 42px; height: 42px; padding: 0 !important; }
.nav-icon .icon { width: 22px; height: 22px; }
.badge--dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; font-size: 11px; padding: 0 4px; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; padding: 4px; border-radius: 999px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--brass); color: #1a1408; font-weight: 800; }
.user-menu__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; display: grid; }
.user-menu__panel a, .user-menu__panel button { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; font-size: 15px; }
.user-menu__panel a:hover, .user-menu__panel button:hover { background: var(--surface-2); }
.user-menu__panel form { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; display: grid; }
.user-menu__name { font-weight: 700; padding: 6px 10px 8px; margin: 0; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
@media (max-width: 760px) {
    .site-nav > a.nav-icon { display: inline-grid !important; color: #d9d5cb; }
    .site-nav > a[href*="logowanie"] { display: inline-block; font-size: 14px; }
}

/* Konto */
.account { padding-top: 16px; }
.account-nav { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 8px; scrollbar-width: none; }
.account-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.account-nav a:hover { color: var(--text); }
.account-nav a.is-active { color: var(--text); border-bottom-color: var(--brass); }
.account .page-title { margin: 16px 0; }
.account .page-head { align-items: center; }
.account .page-head .page-title { margin: 16px 0 0; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.my-listings { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.my-listing { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.my-listing__media { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.my-listing__media img { width: 100%; height: 100%; object-fit: cover; }
.my-listing__top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.my-listing__title { font-size: 16px; font-weight: 650; margin: 4px 0 2px; }
.my-listing__title a { text-decoration: none; }
.my-listing__title a:hover { text-decoration: underline; }
.my-listing__price { font-weight: 800; margin: 0; }
.my-listing__meta { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.my-listing__reason { font-size: 14px; background: var(--red-tint); color: var(--red); padding: 6px 10px; border-radius: 8px; margin: 8px 0 0; }
.my-listing__actions { display: flex; flex-direction: column; gap: 6px; }
.my-listing__actions form { display: grid; }
@media (max-width: 640px) {
    .my-listing { grid-template-columns: 88px minmax(0, 1fr); }
    .my-listing__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
.status { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--surface-2); }
.status--active { background: var(--green-tint); color: var(--green); }
.status--pending { background: var(--brass-tint); color: var(--brass-dark); }
.status--rejected { background: var(--red-tint); color: var(--red); }
.status--sold, .status--expired { background: var(--surface-2); color: var(--muted); }

/* Formularz ogłoszenia */
.listing-form { display: grid; gap: 16px; max-width: 900px; }
.form-section__title { display: flex; align-items: center; gap: 10px; font-size: 19px; margin-bottom: 16px; }
.form-section__title span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--ink); color: var(--brass-light); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.field--check { display: flex; align-items: flex-end; padding-bottom: 4px; }
.chips--lg .chip span { padding: 9px 18px; font-size: 15px; font-weight: 600; }
.input-suffix { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.input-suffix:focus-within { border-color: var(--brass); box-shadow: 0 0 0 3px rgb(194 143 46 / 25%); }
.input-suffix input { border: 0; border-radius: 0; box-shadow: none !important; font-size: 18px; font-weight: 700; }
.input-suffix span { display: grid; place-items: center; padding: 0 14px; color: var(--muted); font-weight: 600; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); color: var(--muted); cursor: pointer; text-align: center; margin-top: 12px; }
.dropzone:hover { border-color: var(--brass); }
.dropzone .icon { width: 32px; height: 32px; color: var(--brass); }
.dropzone input { width: 100%; max-width: 320px; font-size: 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.photo-grid:empty { display: none; }
.photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo__remove { position: absolute; left: 6px; bottom: 6px; background: rgb(0 0 0 / 65%); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 6px; display: flex; gap: 4px; align-items: center; cursor: pointer; }
.photo:has(input:checked) img { opacity: .3; }
.photo__first { position: absolute; top: 6px; left: 6px; background: var(--brass); color: #1a1408; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Wiadomości */
.inbox { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.inbox li + li { border-top: 1px solid var(--line); }
.inbox__item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; }
.inbox__item:hover { background: var(--surface-2); }
.inbox__item.is-unread { background: var(--brass-tint); }
.inbox__media { flex: none; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.inbox__media img { width: 100%; height: 100%; object-fit: cover; }
.inbox__body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.inbox__top { display: flex; gap: 8px; align-items: baseline; }
.inbox__name { font-weight: 700; }
.inbox__role { font-size: 12px; color: var(--muted); }
.inbox__time { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.inbox__listing { font-size: 13px; color: var(--brass-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox__preview { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-unread .inbox__preview { color: var(--text); font-weight: 600; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 999px; background: var(--brass); }

.chat { max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 12px; display: flex; flex-direction: column; }
.chat__head { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.chat__head .icon-btn { font-size: 24px; text-decoration: none; }
.chat__who { display: grid; min-width: 0; }
.chat__listing { font-size: 13px; color: var(--brass-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__safety { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); background: var(--surface-2); padding: 10px 14px; }
.chat__safety p { margin: 0; }
.chat__safety .icon { color: var(--brass); margin-top: 2px; }
.chat__messages { list-style: none; margin: 0; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 80%; }
.msg--mine { align-self: flex-end; align-items: flex-end; }
.msg__bubble { padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--surface-2); border: 1px solid var(--line); overflow-wrap: anywhere; }
.msg--mine .msg__bubble { background: var(--ink); color: #f2efe8; border-color: var(--ink); border-radius: 14px 14px 4px 14px; }
.msg__time { font-size: 11px; color: var(--muted); margin-top: 3px; }
.chat__form { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.chat__form textarea { min-height: 44px; max-height: 200px; }
.contact-form { display: grid; gap: 8px; }

.prose-page h2 { font-size: 20px; margin: 24px 0 10px; }
.prose-page li { margin-bottom: 8px; }
.error-page { text-align: center; padding-top: 64px; padding-bottom: 64px; }
.error-page__code { font-size: 64px; font-weight: 850; color: var(--brass); margin: 0; line-height: 1; }
.error-page .btn { margin: 4px; }
.account .page-head { flex-wrap: wrap; }
.account .page-head .btn { white-space: nowrap; }
@media (prefers-color-scheme: dark) {
    .msg--mine .msg__bubble { background: #3a2f1a; border-color: #4d3d1f; color: #f6ecd6; }
    .chip input:checked + span, .tab.is-active, .pagination__item.is-current { background: var(--brass); border-color: var(--brass); color: #1a1408; }
}
.phone-reveal { margin-top: 14px; }
.phone-reveal .btn { justify-content: flex-start; gap: 10px; font-variant-numeric: tabular-nums; }
.phone-reveal .btn strong { margin-left: auto; color: var(--brass-dark); font-size: 14px; }
.phone-reveal__number { font-size: 18px; font-weight: 800; }

/* ---------- Generator umowy ---------- */
.contract-page { padding-top: 24px; }
.contract-eyebrow { color: var(--brass-dark); }
.contract-intro { max-width: 820px; margin-bottom: 20px; }
.contract-intro .page-title { margin: 6px 0 10px; }
.contract-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .contract-layout { grid-template-columns: 1fr; } }
.contract-form { display: grid; gap: 14px; }
.contract-form .form-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.field--wide { grid-column: 1 / -1; }
.contract-form input[type=date] { width: 100%; }
.party-tag { font-style: normal; font-size: 14px; font-weight: 500; color: var(--muted); }
[data-party].is-mine { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
[data-party].is-mine .party-tag { color: var(--brass-dark); font-weight: 700; }
.remember { margin-top: 14px; margin-bottom: 4px; }
.contract-actions { display: flex; flex-wrap: wrap; gap: 10px; position: sticky; bottom: 0; z-index: 5; padding: 12px; background: var(--paper); border-top: 1px solid var(--line); margin: 0 -4px; }
.contract-help summary { cursor: pointer; }
.contract-help ul { padding-left: 20px; margin: 12px 0; }
.contract-help li { margin-bottom: 8px; font-size: 15px; }
.contract-preview { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 1100px) { .contract-preview { position: static; } }
.contract-preview__label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.paper { background: #fff; color: #111; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); max-height: calc(100vh - var(--header-h) - 80px); overflow: auto; }
@media (max-width: 1100px) { .paper { max-height: none; } }
.paper .doc:not(:first-child):not(.doc--notice) { display: none; }

/* Dokument (podgląd i wydruk) */
.doc { font-family: "Times New Roman", Georgia, serif; font-size: 13.5px; line-height: 1.55; padding: 36px 40px; color: #111; }
.doc + .doc { border-top: 2px dashed #ccc; }
.doc h3 { font-size: 13.5px; text-align: center; margin: 14px 0 6px; font-weight: 700; }
.doc p { margin: 0 0 6px; text-align: justify; }
.doc ol { margin: 0 0 6px; padding-left: 20px; }
.doc li { margin-bottom: 3px; text-align: justify; }
.doc-title { text-align: center; font-size: 17px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; font-weight: 700; }
.doc-center { text-align: center !important; }
.doc-right { text-align: right !important; }
.doc-copy { text-align: right !important; font-size: 11px; color: #666; font-style: italic; }
.doc-party { margin-bottom: 4px; text-align: left !important; }
.doc .fill { font-weight: 600; }
.doc .blank { display: inline-block; border-bottom: 1px dotted #444; height: 1em; vertical-align: baseline; }
.blank--sm { width: 70px; } .blank--md { width: 150px; } .blank--lg { width: 220px; } .blank--xl { width: 300px; max-width: 100%; }
.doc-table { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: 13px; }
.doc-table th, .doc-table td { border: 1px solid #999; padding: 4px 6px; text-align: left; vertical-align: top; }
.doc-table th { background: #f3f3f3; font-weight: 600; width: 17%; white-space: nowrap; }
.doc-table .blank { width: 100%; }
.doc-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; text-align: center; font-size: 12px; }
.doc-signatures--single { grid-template-columns: 1fr 1fr; }
.doc-signatures--single div { grid-column: 2; }
.sig-line { display: block; border-bottom: 1px dotted #444; height: 32px; margin-bottom: 4px; }
.doc-sender { margin: 18px 0; }
.doc-addressee { margin: 0 0 24px 50%; }
@media (max-width: 600px) { .doc { padding: 20px 16px; font-size: 13px; } .doc-addressee { margin-left: 30%; } }

@media print {
    @page { size: A4; margin: 14mm 15mm 14mm; }
    body { background: #fff; display: block; }
    .site-header, .site-footer, .no-print, .skip-link { display: none !important; }
    main { padding: 0; }
    .wrap { max-width: none; padding: 0; }
    .contract-layout { display: block; }
    .contract-preview { position: static; }
    .paper { border: 0; box-shadow: none; max-height: none; overflow: visible; border-radius: 0; }
    .paper .doc { display: block !important; padding: 0; font-size: 10.5pt; line-height: 1.42; }
    .doc h3 { margin: 9px 0 4px; }
    .doc-signatures { break-inside: avoid; margin-top: 34px; }
    .doc + .doc { border-top: 0; break-before: page; }
    .doc-table th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.contract-link { margin-top: 12px; }
.chat__contract { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--brass-dark); font-weight: 600; text-decoration: none; font-size: 14px; }
.chat__contract:hover { background: var(--surface-2); }
@media (max-width: 900px) and (min-width: 761px) { .site-nav > a:not(.btn) { padding: 8px 6px; } }
.trust__item .install-hint { margin-top: 10px; font-size: 14px; color: var(--text); }
.ios-share { display: inline-block; width: 14px; height: 16px; vertical-align: -2px; margin: 0 2px;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 28' fill='none' stroke='%23c28f2e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v15M7 7l5-5 5 5M5 12H3v14h18V12h-2'/%3E%3C/svg%3E"); }
.install-btn { margin-top: 12px; }

/* ---------- Konta firmowe, pakiety, wyróżnienia ---------- */
.type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 16px; }
.type-switch__tab { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--muted); background: var(--surface-2); }
.type-switch__tab .icon { width: 24px; height: 24px; flex: none; }
.type-switch__tab span { display: grid; line-height: 1.25; }
.type-switch__tab strong { color: var(--text); font-size: 15px; }
.type-switch__tab small { font-size: 12px; }
.type-switch__tab.is-active { border-color: var(--brass); background: var(--brass-tint); box-shadow: 0 0 0 1px var(--brass); }
.type-switch__tab.is-active .icon { color: var(--brass-dark); }
@media (max-width: 380px) { .type-switch__tab .icon { display: none; } }
.plan-box { border: 1px solid var(--brass); background: var(--brass-tint); border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; }
.plan-box p { margin: 0 0 4px; font-size: 14px; }
.plan-box__name { font-weight: 700; font-size: 15px !important; }
.plan-box__price { font-size: 15px !important; }
.plan-box__price strong { font-size: 24px; letter-spacing: -0.02em; }
.plan-box .ticks { margin: 10px 0 14px; font-size: 14px; }
.account .plan-box { margin-top: 16px; }
.fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 2px; margin: 0 0 16px; }
.fieldset legend { font-weight: 700; padding: 0 6px; font-size: 15px; }
.input-action { display: flex; gap: 8px; }
.input-action input { flex: 1; min-width: 0; }
.input-action .btn { white-space: nowrap; }
[data-nip-status].is-ok { color: var(--green); }
[data-nip-status].is-error { color: var(--red); }
.form-grid--tight { grid-template-columns: 120px 1fr; gap: 0 10px; }
.usage { font-size: 14px; color: var(--muted); margin: -6px 0 14px; }
.usage a { color: var(--brass-dark); font-weight: 600; }
.meter { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 4px 0 14px; border: 1px solid var(--line); }
.meter span { display: block; height: 100%; background: var(--brass); }
.panel--accent { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
.account-col { display: grid; gap: 16px; }
.params--single { grid-template-columns: 1fr; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.history li { display: flex; justify-content: space-between; gap: 8px; }
.tag--business { background: var(--blue-tint); color: var(--blue); border-color: transparent; font-size: 11px; padding: 1px 6px; vertical-align: 1px; }
.tag--featured { display: inline-flex; align-items: center; gap: 4px; background: var(--brass); color: #1a1408; border-color: transparent; }
.tag--featured .icon { width: 12px; height: 12px; }
.card__tags { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.card__tags .tag { box-shadow: var(--shadow); border: 0; }
.card--featured { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
.title-icon { color: var(--brass); vertical-align: -2px; }
.seller__avatar--business { background: var(--blue); color: #fff; }
.seller__badge { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--green); font-weight: 600; margin: 6px 0 0; }
.my-listing__actions .tag--featured { justify-content: center; padding: 6px 10px; }
.company-box { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.company-box p { margin: 0 0 4px; }
.lead--sm { font-size: 15px; }
.plan-box small { font-size: 12px; color: var(--muted); font-weight: 400; }
.user-menu__avatar--business { background: var(--blue); color: #fff; }
.user-menu__name small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

/* ---------- Cennik ---------- */
.table-wrap { position: relative; overflow-x: auto; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.price-table th, .price-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.price-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody th { font-weight: 700; }
.price-table tbody th .tag { margin-left: 6px; }
.price-table tr.is-recommended { background: var(--brass-tint); }
.price-table tr.is-current { background: var(--green-tint); }
.price-table form { margin: 0; }
.muted { color: var(--muted); }
.subhead { font-size: 16px; margin: 18px 0 6px; }
.cancel-order { margin-top: -6px; }
.pricing-page .lead { max-width: 720px; }
.pricing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 20px 0; }
.pricing-card h2 { font-size: 18px; display: flex; gap: 8px; align-items: center; }
.pricing-card h2 .icon { color: var(--brass); }
.pricing-card__big { font-size: 40px; font-weight: 850; letter-spacing: -0.03em; margin: 8px 0 0; }
.pricing-card hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.pricing-card--feature { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
.pricing-page > .panel { margin-bottom: 16px; }
.tiers { margin-top: 16px; }

/* ---------- Weryfikacja i zaliczki ---------- */
.tag--verified { display: inline-flex; align-items: center; gap: 4px; background: var(--green); color: #fff; border-color: transparent; font-size: 11px; padding: 1px 7px; vertical-align: 1px; }
.tag--verified .icon { width: 12px; height: 12px; }
.levels { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.levels li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.levels li .icon { width: 22px; height: 22px; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.levels li.is-done { color: var(--text); }
.levels li.is-done .icon { background: var(--green); color: #fff; border-color: var(--green); }
.steps-list { padding-left: 20px; margin: 0 0 14px; font-size: 15px; }
.steps-list li { margin-bottom: 4px; }
.escrow { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.escrow .panel__title { display: flex; gap: 8px; align-items: center; }
.escrow .panel__title .icon { color: var(--green); }
.escrow form { margin-top: 10px; }
.status--lg { font-size: 14px; padding: 6px 12px; }
.status--deposit-awaiting_payment { background: var(--brass-tint); color: var(--brass-dark); }
.status--deposit-held, .status--deposit-completed { background: var(--blue-tint); color: var(--blue); }
.status--deposit-paid_out { background: var(--green-tint); color: var(--green); }
.status--deposit-disputed { background: var(--red-tint); color: var(--red); }
.status--deposit-refunded, .status--deposit-cancelled { background: var(--surface-2); color: var(--muted); }
.timeline { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 0; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; padding: 0 0 14px 0; position: relative; color: var(--muted); }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.timeline__dot { flex: none; width: 14px; height: 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--surface); margin-top: 4px; position: relative; z-index: 1; }
.timeline li.is-done { color: var(--text); }
.timeline li.is-done .timeline__dot { background: var(--green); border-color: var(--green); }
.timeline li.is-done:not(:last-child)::before { background: var(--green); }
.timeline small { display: block; color: var(--muted); font-size: 13px; }
.confirm-state { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.confirm-state li { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.confirm-state li.is-done { color: var(--green); font-weight: 600; }
.dispute summary { cursor: pointer; font-weight: 600; color: var(--red); }
.dispute form { margin-top: 12px; }

/* Kolejność zdjęć */
.photo[draggable="true"] { cursor: grab; }
.photo.is-dragging { opacity: .4; outline: 2px dashed var(--brass); }
.photo .photo__first { display: none; }
.photo.is-first .photo__first { display: block; }
.photo.is-first:has(.photo__first) { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
.photo__tools { position: absolute; bottom: 6px; right: 6px; display: flex; gap: 4px; }
.photo__move { width: 30px; height: 30px; border: 0; border-radius: 6px; background: rgb(0 0 0 / 65%); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.photo__move:hover, .photo__move:focus-visible { background: var(--brass); color: #1a1408; }
.photo-grid [data-sort-item]:first-child .photo__move[data-move="-1"],
.photo-grid [data-sort-item]:last-child .photo__move[data-move="1"] { opacity: .35; pointer-events: none; }

.photo-grid[data-sortable] { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
