:root {
    --ink: #002f34;
    --navy: #061425;
    --navy-2: #0b1f36;
    --aqua: #18c8c7;
    --aqua-soft: #e3f7f5;
    --orange: #ff6b00;
    --paper: #ffffff;
    --surface: #f2f4f5;
    --line: #d8dfe1;
    --muted: #607178;
    --danger: #b42318;
    --success: #087a5b;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(0, 47, 52, .08);
    --content: 1180px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.topbar { background: #020b16; color: #aab8c4; font-size: 12px; }
.topbar__inner { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-header { background: var(--navy); color: white; border-bottom: 1px solid #1d3857; }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: white; font-size: 29px; font-weight: 900; letter-spacing: -1px; }
.brand__mark { width: 31px; height: 31px; display: inline-block; border: 8px solid var(--aqua); border-right-color: #54edf0; border-radius: 50%; }
.nav__links { display: flex; align-items: center; gap: 28px; font-weight: 700; }
.nav__links a:not(.button), .link-button { color: #dbe6ef; }
.nav__links a:hover, .link-button:hover { color: var(--aqua); }
.nav__links form { margin: 0; }
.link-button { background: none; border: 0; cursor: pointer; font-weight: 700; padding: 0; }

/* Globalne, boczne menu dział → kategoria → podkategoria. */
.category-mega { position: relative; z-index: 80; color: white; background: #08182d; border-top: 1px solid #1c3551; }
.category-mega__bar { min-height: 52px; display: flex; align-items: stretch; gap: 18px; }
.category-mega__trigger { min-width: 218px; display: flex; align-items: center; gap: 12px; padding: 0 18px; color: white; background: #102844; border: 0; border-inline: 1px solid #27425f; font-weight: 850; cursor: pointer; }
.category-mega__trigger:hover, .category-mega__trigger[aria-expanded="true"] { background: #173653; }
.category-mega__hamburger { width: 20px; display: grid; gap: 4px; }
.category-mega__hamburger i { height: 2px; display: block; background: white; border-radius: 2px; }
.category-mega__chevron { margin-left: auto; color: var(--aqua); }
.category-mega__quick { min-width: 0; display: flex; align-items: center; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.category-mega__quick::-webkit-scrollbar { display: none; }
.category-mega__quick a { flex: 0 0 auto; color: #dce7f1; font-size: 14px; font-weight: 800; white-space: nowrap; }
.category-mega__quick a:hover { color: var(--aqua); }
.category-mega__overlay { position: fixed; inset: 0; z-index: 78; background: rgba(1, 9, 18, .62); }
.category-mega__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 79; color: var(--ink); background: white; border-top: 3px solid var(--aqua); box-shadow: 0 24px 60px rgba(0, 17, 26, .28); }
.category-mega__shell { padding-block: 18px 24px; }
.category-mega__mobile-head { display: none; }
.category-mega__crumbs { min-height: 34px; display: flex; align-items: center; gap: 8px; padding-bottom: 12px; color: #527077; border-bottom: 1px solid var(--line); font-size: 13px; }
.category-mega__crumbs button { padding: 0; color: inherit; background: none; border: 0; font: inherit; font-weight: 750; cursor: pointer; }
.category-mega__crumbs button:hover { color: #007d7e; }
.category-mega__columns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(245px, 1fr); align-items: stretch; max-width: 100%; min-height: 390px; overflow-x: auto; }
.category-mega__column { min-width: 0; padding: 18px 18px 8px; border-right: 1px solid var(--line); }
.category-mega__column:first-child { padding-left: 0; }
.category-mega__column:last-child { border-right: 0; }
.category-mega__column-title { display: block; margin-bottom: 10px; font-size: 19px; }
.category-mega__all { display: block; margin-bottom: 8px; padding: 10px 12px; color: #007d7e; background: var(--aqua-soft); border-radius: 5px; font-size: 14px; font-weight: 850; }
.category-mega__row { border-bottom: 1px solid #e9eeef; }
.category-mega__item { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; color: #173b41; background: transparent; border: 0; font: inherit; font-weight: 720; text-align: left; cursor: pointer; }
.category-mega__item:hover, .category-mega__item:focus, .category-mega__row.is-current .category-mega__item { outline: 0; color: #006c69; background: #e4f7f5; }
.category-mega__arrow { color: #009b98; font-size: 13px; font-weight: 900; }
.category-mega__noscript { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 18px; }
.category-mega__noscript a { color: #007d7e; font-weight: 800; }
.category-mega__overview { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; padding: 18px 0 2px; }
.category-mega__overview-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.category-mega__overview-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; color: var(--ink); background: #edf8f7; font-size: 18px; font-weight: 900; }
.category-mega__overview-title b { color: #007d7e; font-size: 12px; white-space: nowrap; }
.category-mega__overview-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; }
.category-mega__overview-item { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; color: #173b41; background: #fff; border: 0; border-bottom: 1px solid #edf1f2; font: inherit; font-size: 14px; font-weight: 720; text-align: left; cursor: pointer; }
.category-mega__overview-item:hover, .category-mega__overview-item:focus { color: #006c69; background: #eaf8f7; outline: 0; }
.category-mega__overview-item b { color: #009b98; }
body.category-menu-open { overflow: hidden; }

.hero { color: white; background:
    radial-gradient(circle at 72% 25%, rgba(24, 200, 199, .18), transparent 28rem),
    linear-gradient(135deg, #03101d 0%, #0a1f38 64%, #071422 100%);
    padding: 78px 0;
}
.hero__grid { display: grid; grid-template-columns: 1.18fr .82fr; align-items: center; gap: 76px; }
.eyebrow { color: var(--aqua); font-size: 12px; font-weight: 900; letter-spacing: .18em; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(42px, 5vw, 72px); margin: 14px 0 18px; }
h2 { font-size: clamp(28px, 3vw, 42px); margin: 12px 0 24px; }
h3 { font-size: 22px; margin: 18px 0 10px; }
.lead { max-width: 720px; color: #c9d7e4; font-size: 21px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 5px; padding: 0 24px; font-weight: 850; cursor: pointer; }
.button--small { min-height: 42px; padding-inline: 18px; }
.button--orange { color: white; background: var(--orange); }
.button--orange:hover { background: #e65f00; }
.button--outline-light { color: white; border-color: #61758d; }
.button--outline { color: var(--ink); background: white; border-color: var(--ink); }
.button--dark { color: white; background: var(--ink); }
.button--dark:hover { background: #00464d; }
.button--outline-dark { color: var(--ink); background: white; border-color: var(--ink); }
.button--danger { color: var(--danger); background: white; border-color: #e3a29d; }
.button--full { width: 100%; }
.hero__panel { display: grid; gap: 10px; }
.hero__panel div { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 14px; min-height: 70px; padding: 12px 18px; background: rgba(255, 255, 255, .055); border: 1px solid rgba(118, 220, 222, .22); border-radius: var(--radius); }
.hero__panel span { color: var(--aqua); font-weight: 900; }
.hero__panel strong { font-size: 18px; }

.section { padding: 64px 0; }
.section--light { background: var(--surface); min-height: 62vh; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .panel-card, .auth-card, .account-tabs { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-card { padding: 28px; }
.feature-card p, .muted { color: var(--muted); }
.feature-card__icon { display: grid; place-items: center; width: 48px; height: 48px; color: var(--ink); background: var(--aqua-soft); border-radius: 50%; font-weight: 900; }

.auth-wrap { display: grid; place-items: start center; }
.auth-card { width: min(100%, 720px); padding: clamp(26px, 5vw, 52px); }
.auth-card h1 { font-size: clamp(36px, 5vw, 54px); }
.form-grid { display: grid; gap: 18px; margin-top: 28px; }
.form-grid label, fieldset { font-weight: 750; }
.form-grid input:not([type="radio"]):not([type="checkbox"]), .form-grid select, .form-grid textarea { width: 100%; min-height: 49px; display: block; margin-top: 7px; padding: 10px 13px; color: var(--ink); background: white; border: 1px solid #9aacb3; border-radius: 4px; }
.form-grid textarea { resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 3px solid rgba(24, 200, 199, .25); border-color: var(--aqua); }
.form-grid input:disabled { color: #66757c; background: #eef1f2; }
.form-grid small { display: block; color: var(--muted); font-weight: 500; margin-top: 4px; }
.form-grid .field-error { display: block; margin-top: 6px; color: var(--danger); font-size: 14px; font-weight: 750; }
.form-grid .has-error input:not([type="radio"]):not([type="checkbox"]), .form-grid .has-error select, .form-grid .has-error textarea, .form-grid fieldset.has-error { border-color: var(--danger); }
.account-types { display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 5px; }
.account-types legend { padding-inline: 4px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-weight: 600 !important; }
.check input { margin-top: 5px; }
.auth-card .check { gap: 7px; font-size: 13px; line-height: 1.35; }
.auth-card .check input { flex: 0 0 auto; margin-top: 2px; }
.form-foot { margin: 24px 0 0; }
.form-foot a { color: #007d7e; font-weight: 800; }
.form-foot--split { display: flex; justify-content: space-between; gap: 20px; }

.flash { margin-top: 18px; padding: 15px 18px; background: white; border: 1px solid var(--line); border-left: 5px solid; border-radius: 5px; }
.flash--success { border-left-color: var(--success); }
.flash--error { border-left-color: var(--danger); color: var(--danger); }
.flash ul { margin: 8px 0 0; }

.account-shell { max-width: 1120px; }
.account-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.account-heading h1 { color: var(--ink); font-size: 46px; margin-bottom: 0; }
.identity { display: flex; align-items: center; gap: 12px; }
.identity small, .identity strong { display: block; }
.avatar { width: 48px; height: 48px; display: grid; place-items: center; color: var(--ink); background: var(--aqua-soft); border: 1px solid #9ddfde; border-radius: 50%; font-weight: 900; }
.account-tabs { display: flex; align-items: center; gap: 6px; padding: 10px; margin-bottom: 18px; overflow-x: auto; }
.account-tabs a { padding: 11px 15px; font-weight: 800; white-space: nowrap; border-radius: 4px; }
.account-tabs a.is-active { background: var(--aqua-soft); border-bottom: 3px solid var(--aqua); }
.account-grid { display: grid; grid-template-columns: 1.7fr .8fr; gap: 18px; }
.panel-card { padding: 32px; }
.panel-card h2 { font-size: 28px; }
.profile-list { margin: 28px 0 0; }
.profile-list div { display: grid; grid-template-columns: minmax(110px, .5fr) 1.5fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.profile-list dt { color: var(--muted); }
.profile-list dd { margin: 0; font-weight: 800; }
.status { display: inline-flex; padding: 5px 10px; border-radius: 99px; }
.status--success { color: var(--success); background: #ddf8ed; }
.form-panel { max-width: 820px; margin-inline: auto; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.metric-grid .panel-card { display: grid; gap: 5px; padding: 24px; }
.metric-grid strong { font-size: 34px; }
.metric-grid span { color: var(--muted); font-weight: 750; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.page-heading h1 { color: var(--ink); font-size: clamp(40px, 5vw, 58px); margin-bottom: 8px; }
.page-heading p { color: var(--muted); margin: 0; }
.search-panel { display: grid; grid-template-columns: 1.35fr 1fr 1fr auto; align-items: end; gap: 12px; padding: 20px; margin-bottom: 24px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.search-panel label, .portal-form label { display: grid; gap: 7px; color: var(--ink); font-weight: 750; }
.search-panel input, .search-panel select, .portal-form input, .portal-form select, .portal-form textarea { width: 100%; min-height: 48px; padding: 10px 13px; color: var(--ink); background: white; border: 1px solid #9aacb3; border-radius: 4px; }
.search-panel input:focus, .search-panel select:focus, .portal-form input:focus, .portal-form select:focus, .portal-form textarea:focus { outline: 3px solid rgba(24, 200, 199, .2); border-color: var(--aqua); }
.listing-stack { display: grid; gap: 12px; }
.listing-card, .owner-card, .empty-state, .detail-card, .detail-visual, .portal-form { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.listing-card__body { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; min-height: 145px; padding: 12px; }
.listing-card__placeholder { display: grid; place-items: center; color: var(--ink); background: var(--aqua-soft); border-radius: 6px; font-size: 42px; font-weight: 900; }
.listing-card__content { min-width: 0; }
.listing-card__content h2 { font-size: 24px; margin: 7px 0 9px; }
.listing-card__content p { color: var(--muted); margin: 0 0 13px; }
.listing-card__content small { color: var(--muted); }
.listing-card__category { color: #007d7e; font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.listing-card__price { align-self: start; padding: 9px; white-space: nowrap; }
.empty-state { padding: 48px; text-align: center; }
.empty-state h2 { font-size: 28px; margin-bottom: 10px; }
.empty-state p { color: var(--muted); }
.owner-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; }
.owner-card h2 { font-size: 24px; margin: 8px 0; }
.owner-card p { color: var(--muted); margin: 0; }
.owner-card .actions { margin: 0; }
.owner-card form { margin: 0; }
.form-page { max-width: 980px; }
.portal-form { display: grid; gap: 20px; padding: clamp(24px, 4vw, 42px); }
.portal-form textarea { resize: vertical; }
.portal-form .form-grid { grid-template-columns: 1fr 1fr; margin: 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; padding-top: 8px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: #007d7e; font-weight: 750; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr); gap: 18px; align-items: start; }
.detail-grid > div { display: grid; gap: 18px; }
.detail-visual { min-height: 430px; overflow: hidden; }
.detail-visual img { width: 100%; height: 100%; min-height: 430px; display: block; object-fit: cover; }
.detail-visual__placeholder { min-height: 430px; display: grid; place-content: center; gap: 10px; text-align: center; background: linear-gradient(135deg, #e9f6f5, #f7fbfb); }
.detail-visual__placeholder strong { font-size: 32px; }
.detail-visual__placeholder span { color: var(--muted); }
.detail-card { padding: 28px; }
.detail-card h1 { color: var(--ink); font-size: clamp(30px, 4vw, 42px); margin: 12px 0; }
.detail-card h2 { font-size: 28px; margin: 0 0 20px; }
.detail-card--sticky { position: sticky; top: 18px; }
.detail-price { padding: 13px 0 20px; font-size: 28px; font-weight: 900; border-bottom: 1px solid var(--line); }
.status-badge { display: inline-flex; padding: 5px 9px; color: var(--success); background: #ddf8ed; border-radius: 99px; font-size: 13px; font-weight: 850; }
.seller { display: flex; align-items: center; gap: 12px; padding: 20px 0; }
.seller small, .seller strong { display: block; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.detail-list div:nth-child(odd) { margin-right: 20px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 800; text-align: right; }
.prose { color: #243e43; }

.site-footer { color: #c8d4df; background: #020b16; padding: 45px 0; border-top: 1px solid #1c3450; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.brand--footer { font-size: 24px; }
.footer-grid strong, .footer-grid a { display: block; }
.footer-grid strong { color: white; margin-bottom: 11px; }
.footer-grid a { margin-block: 8px; }

@media (max-width: 820px) {
    .topbar { display: none; }
    .nav { min-height: 68px; }
    .nav__links { gap: 14px; }
    .nav__links > a:first-child { display: none; }
    .hero { padding: 54px 0; }
    .hero__grid, .account-grid { grid-template-columns: 1fr; gap: 30px; }
    .feature-grid { grid-template-columns: 1fr; }
    .account-heading { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .search-panel { grid-template-columns: 1fr 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-card--sticky { position: static; }
    .category-mega__quick { gap: 18px; }
}
@media (max-width: 760px) {
    .category-mega__bar { width: 100%; min-height: 48px; }
    .category-mega__trigger { width: 100%; min-width: 0; justify-content: flex-start; border-inline: 0; }
    .category-mega__quick { display: none; }
    .category-mega__panel { position: fixed; inset: 0; z-index: 100; overflow-y: auto; border-top: 0; }
    .category-mega__shell { width: 100%; min-height: 100%; padding: 0 16px 24px; }
    .category-mega__mobile-head { min-height: 64px; display: grid; grid-template-columns: 90px 1fr 44px; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
    .category-mega__mobile-head strong { text-align: center; }
    .category-mega__mobile-head button { min-height: 42px; color: var(--ink); background: none; border: 0; font-weight: 800; cursor: pointer; }
    .category-mega__mobile-head [data-category-mega-close] { font-size: 27px; }
    .category-mega__crumbs { overflow-x: auto; white-space: nowrap; }
    .category-mega__columns { display: block; min-height: 0; overflow: visible; }
    .category-mega__column { padding: 16px 0 0; border-right: 0; }
    .category-mega__item { min-height: 54px; font-size: 16px; }
    .category-mega__overview { display: block; padding-top: 12px; }
}
@media (max-width: 520px) {
    .container { width: min(calc(100% - 24px), var(--content)); }
    .brand { font-size: 23px; }
    .brand__mark { width: 26px; height: 26px; border-width: 7px; }
    .nav__links > a:not(.button), .nav__links form { display: none; }
    .hero { padding: 44px 0; }
    h1 { font-size: 42px; }
    .lead { font-size: 18px; }
    .actions, .actions .button { width: 100%; }
    .section { padding: 42px 0; }
    .auth-card, .panel-card { padding: 24px 18px; }
    .form-foot--split { flex-direction: column; }
    .account-heading h1 { font-size: 38px; }
    .identity { width: 100%; padding: 12px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
    .profile-list div { grid-template-columns: 1fr; gap: 4px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:first-child { grid-column: auto; }
    .metric-grid { grid-template-columns: 1fr; }
    .search-panel, .portal-form .form-grid, .detail-list { grid-template-columns: 1fr; }
    .listing-card__body { grid-template-columns: 88px 1fr; gap: 12px; }
    .listing-card__price { grid-column: 2; padding: 0; }
    .listing-card__content h2 { font-size: 20px; }
    .owner-card { align-items: stretch; flex-direction: column; }
    .owner-card .actions { width: 100%; }
    .owner-card .actions > * { flex: 1; }
    .form-actions { flex-direction: column-reverse; }
    .form-actions .button { width: 100%; }
    .detail-visual, .detail-visual img, .detail-visual__placeholder { min-height: 280px; }
    .detail-list div, .detail-list div:nth-child(odd) { margin-right: 0; }
}
