/* ============================================================
   CABB — nowoczesny skin (nakładka na style.css)
   Część 1: odświeżenie istniejących klas motywu (strony, których jeszcze nie przebudowano).
   Część 2 (klasy cb-*): nowy układ nagłówka, stopki, listy i karty firmy.
   ============================================================ */

:root {
    --cabb-navy: #0B2B5C;
    --cabb-blue: #1967D2;
    --cabb-blue-dark: #0146A6;
    --cabb-yellow: #F9AB00;
    --cabb-bg: #F6F8FC;
    --cabb-border: #E6EBF3;
    --cabb-text: #1C2430;
    --cabb-muted: #5F6B7A;
    --cabb-radius: 16px;
    --cabb-shadow-sm: 0 1px 2px rgba(16, 42, 83, 0.05);
    --cabb-shadow-lg: 0 14px 28px rgba(16, 42, 83, 0.10);
}

body {
    background: var(--cabb-bg);
    color: var(--cabb-text);
    -webkit-font-smoothing: antialiased;
}

/* ---------- Nagłówek ---------- */
body .main-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--cabb-border);
    box-shadow: none;
}

body .main-header .navigation > li > a {
    font-weight: 500;
    color: #33404F;
}

body .main-header .navigation > li > a:hover,
body .main-header .navigation > li.current > a {
    color: var(--cabb-blue);
}

/* ---------- Tytuły stron / breadcrumb ---------- */
body .page-title {
    background: linear-gradient(135deg, #E8F0FC 0%, #F6F8FC 65%);
    padding: 55px 0 45px;
}

body .page-title h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--cabb-navy);
}

body .page-breadcrumb li {
    color: var(--cabb-muted);
}

/* ---------- Nagłówek karty firmy ---------- */
body .job-detail-section .upper-box {
    background: linear-gradient(135deg, #E8F0FC 0%, #F6F8FC 70%);
}

body .job-block-seven h1 {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--cabb-navy);
}

/* ---------- Karty na liście firm ---------- */
body .job-block .inner-box {
    background: #ffffff;
    border: 1px solid var(--cabb-border);
    border-radius: var(--cabb-radius);
    box-shadow: var(--cabb-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body .job-block .inner-box:hover {
    transform: translateY(-2px);
    border-color: #C9DCF8;
    box-shadow: var(--cabb-shadow-lg);
}

body .job-block h4 a {
    font-weight: 600;
    color: var(--cabb-navy);
}

body .job-block h4 a:hover {
    color: var(--cabb-blue);
}

body .job-block .job-info li {
    color: var(--cabb-muted);
}

/* ---------- Plakietki (NIP, PKD) ---------- */
body .job-other-info li {
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 14px;
}

/* ---------- Panel filtrów ---------- */
body .filters-column .inner-column {
    background: #ffffff;
    border: 1px solid var(--cabb-border);
    border-radius: var(--cabb-radius);
    box-shadow: var(--cabb-shadow-sm);
}

body .filter-block h4 {
    font-weight: 600;
    color: var(--cabb-navy);
}

/* ---------- Pola formularzy ---------- */
body .form-group input[type="text"],
body .form-group input,
body .form-group select {
    border: 1px solid #D9E1EC;
    border-radius: 10px;
    background: #FBFCFE;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body .form-group input:focus,
body .form-group select:focus {
    border-color: var(--cabb-blue);
    box-shadow: 0 0 0 3px rgba(25, 103, 210, 0.15);
    background: #ffffff;
    outline: none;
}

/* ---------- Przyciski ---------- */
body .theme-btn {
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

body .btn-style-one:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(1, 70, 166, 0.28);
}

body .btn-style-two:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(249, 171, 0, 0.35);
}

/* ---------- Widgety w sidebarze (karta firmy) ---------- */
body .sidebar-widget {
    background: #ffffff;
    border: 1px solid var(--cabb-border);
    border-radius: var(--cabb-radius);
    box-shadow: var(--cabb-shadow-sm);
}

body .sidebar-widget .widget-title {
    font-weight: 600;
    color: var(--cabb-navy);
}

/* ---------- Sekcje "O firmie" ---------- */
body .job-overview-two {
    background: #ffffff;
    border: 1px solid var(--cabb-border);
    border-radius: var(--cabb-radius);
    box-shadow: var(--cabb-shadow-sm);
}

body .job-overview-two h4,
body .job-detail h4 {
    font-weight: 600;
    color: var(--cabb-navy);
}

/* ---------- Paginacja ---------- */
body .ls-pagination .current-page {
    background: var(--cabb-blue);
    color: #ffffff;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(25, 103, 210, 0.30);
}

body .ls-pagination button,
body .ls-pagination a {
    border-radius: 999px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

body .ls-pagination button:hover,
body .ls-pagination a:hover {
    background: #E8F0FC;
    color: var(--cabb-blue);
}

/* ============================================================
   Część 2 — nowy układ (klasy cb-*)
   Lista firm: boczny panel filtrów (przyklejony) + szeroka lista wyników.
   ============================================================ */

:root {
    --cb-navy: #0B2B5C;
    --cb-blue: #1A5FD6;
    --cb-blue-dark: #1450B8;
    --cb-blue-soft: #EEF4FE;
    --cb-red: #D7191F;
    --cb-red-dark: #B8141A;
    --cb-green: #1E8E4E;
    --cb-green-soft: #E8F6EE;
    --cb-ink: #1C2430;
    --cb-text: #3F4A5A;
    --cb-muted: #6B7686;
    --cb-faint: #9AA5B4;
    --cb-line: #E3E8F0;
    --cb-line-strong: #CFD7E3;
    --cb-page: #F6F8FB;
    --cb-radius: 14px;
    --cb-radius-sm: 10px;
    --cb-shadow: 0 1px 2px rgba(16, 42, 83, 0.04), 0 2px 8px rgba(16, 42, 83, 0.04);
    --cb-shadow-hover: 0 4px 16px rgba(16, 42, 83, 0.08);
    --cb-sticky-top: 100px;
}

/* ---------- Nagłówek: przyciski ---------- */
body .main-header .outer-box .btn-box .theme-btn {
    min-height: 44px;
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
    border-radius: var(--cb-radius-sm);
}

body .main-header .btn-style-two {
    background: var(--cb-red);
    color: #ffffff;
}

body .main-header .btn-style-two:hover {
    background: var(--cb-red-dark);
    color: #ffffff;
    box-shadow: none;
    transform: none;
}

body .main-header .btn-style-three {
    background: #ffffff;
    color: var(--cb-navy);
    border: 1px solid var(--cb-line-strong);
}

body .main-header .btn-style-three:hover {
    border-color: var(--cb-navy);
    color: var(--cb-navy);
}

body .main-header .btn-style-one {
    background: var(--cb-blue);
}

body .main-header .btn-style-one:hover {
    background: var(--cb-blue-dark);
    box-shadow: none;
    transform: none;
}

body .main-header .btn-style-one .btn-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ---------- Nagłówek strony ---------- */
.cb-hero {
    background: #F0F5FC;
    border-bottom: 1px solid var(--cb-line);
    padding: 30px 0 26px;
}

.cb-hero h1 {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--cb-navy);
    margin: 0 0 6px;
}

.cb-hero__lead {
    font-size: 16px;
    line-height: 1.5;
    color: var(--cb-muted);
    margin: 0 0 12px;
}

.cb-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 13px;
    color: var(--cb-muted);
}

.cb-breadcrumb li + li::before {
    content: "/";
    margin-right: 6px;
    color: var(--cb-faint);
}

.cb-breadcrumb a {
    color: var(--cb-muted);
}

.cb-breadcrumb a:hover {
    color: var(--cb-blue);
}

/* ---------- Układ: panel + wyniki ---------- */
.cb-listing {
    background: var(--cb-page);
    padding: 28px 0 64px;
}

.cb-layout {
    display: grid;
    grid-template-columns: 284px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* motyw ustawia na .page-wrapper overflow: hidden, co wyłącza position: sticky — clip przycina tak samo, ale nie psuje przyklejania */
body .page-wrapper:has(.cb-listing),
body .page-wrapper:has(.cb-split) {
    overflow-x: clip;
    overflow-y: visible;
}

/* top ustawia skrypt listy: 100 px, a gdy panel jest wyższy od ekranu — ujemnie, żeby przykleił się dołem */
.cb-sidebar {
    position: sticky;
    top: var(--cb-sticky-top);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cb-overlay,
.cb-filters-toggle,
.cb-filters__close {
    display: none;
}

/* ---------- Panel filtrów ---------- */
.cb-filters {
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    padding: 20px;
}

.cb-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.cb-filters__head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--cb-navy);
    white-space: nowrap;
}

.cb-filters__clear {
    font-size: 13px;
    color: var(--cb-blue);
    white-space: nowrap;
}

.cb-filters__clear:hover {
    color: var(--cb-navy);
}

.cb-field {
    margin-bottom: 14px;
}

.cb-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cb-text);
}

.cb-field__control {
    position: relative;
}

.cb-field__control > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    color: var(--cb-faint);
    pointer-events: none;
}

.cb-field__control input {
    width: 100%;
    height: 42px;
    padding: 0 12px 0 36px;
    border: 1px solid var(--cb-line-strong);
    border-radius: var(--cb-radius-sm);
    background: #ffffff;
    font-size: 14px;
    color: var(--cb-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cb-field__control input::placeholder {
    color: var(--cb-faint);
}

.cb-field__control input:focus {
    outline: none;
    border-color: var(--cb-blue);
    box-shadow: 0 0 0 3px rgba(26, 95, 214, 0.12);
}

.cb-select .select2-container {
    width: 100% !important;
}

.cb-select .select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--cb-line-strong);
    border-radius: var(--cb-radius-sm);
    background: #ffffff;
}

.cb-select .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: 1.3;
    font-size: 14px;
    color: var(--cb-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-select .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 4px;
    height: 100%;
}

.cb-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 14px;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--cb-blue);
    cursor: pointer;
}

.cb-more-toggle i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.cb-more-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.cb-more {
    display: none;
    padding-top: 14px;
    margin-bottom: 14px;
    border-top: 1px solid var(--cb-line);
}

.cb-more.is-open {
    display: block;
}

.cb-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cb-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    color: var(--cb-text);
    cursor: pointer;
}

.cb-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--cb-blue);
}

.cb-apply {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: var(--cb-radius-sm);
    background: var(--cb-blue);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.cb-apply:hover {
    background: var(--cb-blue-dark);
}

/* ---------- Wyniki ---------- */
.cb-results__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.cb-results__head h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--cb-navy);
}

.cb-results__head span {
    font-size: 14px;
    color: var(--cb-muted);
}

.cb-results__head strong {
    font-weight: 600;
    color: var(--cb-ink);
}

.cb-records {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cb-record {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px 28px;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    padding: 20px 24px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cb-record:hover {
    border-color: var(--cb-line-strong);
    box-shadow: var(--cb-shadow-hover);
}

.cb-record__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
}

.cb-record__title h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
}

.cb-record__title h3 a {
    color: var(--cb-navy);
}

.cb-record__title h3 a:hover {
    color: var(--cb-blue);
}

.cb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--cb-green-soft);
    font-size: 12px;
    font-weight: 600;
    color: var(--cb-green);
}

.cb-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cb-green);
}

.cb-record__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    padding: 0;
    margin: 10px 0 0;
    list-style: none;
    font-size: 14px;
    color: var(--cb-text);
}

.cb-record__contact li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    word-break: break-word;
}

.cb-record__contact i {
    width: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--cb-faint);
}

.cb-record__contact a {
    color: var(--cb-text);
}

.cb-record__contact a:hover {
    color: var(--cb-blue);
}

.cb-record__ids {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 12px 0 0;
    list-style: none;
}

.cb-record__ids li {
    padding: 3px 10px;
    border-radius: 6px;
    background: #F2F5F9;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--cb-text);
}

.cb-record__ids span {
    margin-right: 4px;
    font-weight: 600;
    color: var(--cb-muted);
}

.cb-record__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--cb-radius-sm);
    background: var(--cb-blue-soft);
    font-size: 14px;
    font-weight: 600;
    color: var(--cb-blue);
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cb-record__link i {
    font-size: 12px;
    transition: transform 0.15s ease;
}

.cb-record__link:hover {
    background: #E1EBFC;
    color: var(--cb-blue-dark);
}

.cb-record__link:hover i {
    transform: translateX(3px);
}

.cb-empty {
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
    padding: 34px 28px;
    text-align: center;
    color: var(--cb-muted);
}

.cb-empty p {
    margin: 0 0 4px;
}

.cb-empty strong {
    color: var(--cb-ink);
}

/* ---------- Stronicowanie ---------- */
.cb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 28px 0 8px;
}

.cb-page {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--cb-line-strong);
    border-radius: var(--cb-radius-sm);
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    color: var(--cb-ink);
    cursor: pointer;
}

button.cb-page:hover {
    border-color: var(--cb-blue);
    color: var(--cb-blue);
}

.cb-page--current {
    border-color: transparent;
    background: transparent;
    color: var(--cb-muted);
    cursor: default;
}

.cb-category-description {
    margin-top: 28px;
}

/* ---------- Elementy wspólne (karta firmy) ---------- */
.cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--cb-radius-sm);
    font-weight: 600;
    font-size: 15px;
    padding: 11px 20px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.15s ease;
    white-space: nowrap;
}

.cb-btn--primary {
    background: var(--cb-blue);
    color: #ffffff;
}

.cb-btn--primary:hover {
    background: var(--cb-blue-dark);
    color: #ffffff;
}

.cb-card__info {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    padding: 0;
    margin: 0 0 12px;
    list-style: none;
    font-size: 14px;
    color: var(--cb-text);
}

.cb-card__info li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cb-card__info i {
    color: var(--cb-faint);
}

.cb-card__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.cb-pill {
    padding: 3px 10px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    font-size: 12px;
    font-weight: 600;
    color: var(--cb-text);
}

/* ---------- Karta firmy ---------- */
.cb-hero--company {
    padding: 24px 0 28px;
}

.cb-hero--company .cb-breadcrumb {
    margin-bottom: 16px;
}

.cb-company__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.cb-company__title h1 {
    font-size: 30px;
    margin-bottom: 12px;
}

.cb-company__title .company-logo img {
    max-height: 70px;
    margin-bottom: 12px;
    border-radius: 8px;
}

.cb-company__cta {
    flex-shrink: 0;
    max-width: 340px;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    padding: 18px 20px;
}

.cb-company__cta p {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--cb-muted);
}

.cb-company__cta .cb-btn {
    width: 100%;
}

body .cb-company .job-detail-outer {
    padding-top: 34px;
}

body .cb-company .job-overview-two,
body .cb-company .sidebar-widget {
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
}

body .cb-company .job-overview-two ul li > i,
body .cb-company .job-overview li > i {
    position: absolute;
    left: 0;
    top: 2px;
    width: 34px;
    text-align: center;
    color: var(--cb-blue);
    font-size: 18px;
}

body .cb-company .job-overview li {
    padding-left: 48px;
    margin-bottom: 18px;
    min-height: 40px;
}

/* moduł „Jesteś właścicielem tej firmy?” — nad opisem firmy */
body .cb-company .cb-owner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin: 24px 0 28px;
    padding: 16px 20px;
    background: #F7F9FC;
    border: 1px solid var(--cb-line);
    border-left: 3px solid #BFD3F6;
    border-radius: var(--cb-radius-sm);
}

body .cb-company .cb-owner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cb-muted);
}

body .cb-company .cb-owner p.cb-owner__title {
    margin-bottom: 2px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cb-navy);
}

.cb-owner__link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--cb-line-strong);
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    color: var(--cb-blue);
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.cb-owner__link i {
    font-size: 12px;
    transition: transform 0.15s ease;
}

.cb-owner__link:hover {
    border-color: var(--cb-blue);
    color: var(--cb-blue-dark);
}

.cb-owner__link:hover i {
    transform: translateX(3px);
}

/* Karta firmy: linki do listy branży i miejscowości (pod „Inne firmy z branży”) */
body .cb-company .cb-company__more {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

body .cb-company .cb-company__more a {
    color: var(--cb-blue);
    font-weight: 600;
}

body .cb-company .cb-company__more a:hover {
    color: var(--cb-blue-dark);
}

body .cb-company .cb-company__more i {
    font-size: 12px;
    margin-left: 4px;
}

/* Karta firmy: dane z rejestrów (PKD z nazwami, wyciąg z KRS) — panele jak „O firmie” */
body .cb-company .job-overview-two .cb-registry-note {
    margin: -8px 0 22px;
}

body .cb-company .cb-registry-note {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--cb-faint);
}

body .cb-company .cb-registry {
    margin-bottom: 30px;
    padding: 26px 30px;
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
}

body .cb-company .cb-registry h4 {
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: var(--cabb-navy);
}

body .cb-company .cb-description__text {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
    color: var(--cb-ink);
}

body .cb-company .cb-description .cb-registry-note a {
    color: inherit;
    text-decoration: underline;
}

body .cb-company .cb-registry__main {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--cb-ink);
}

body .cb-company .cb-registry__label {
    display: block;
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cb-muted);
}

body .cb-company .cb-registry__main strong {
    color: var(--cb-navy);
}

body .cb-company .cb-registry__subtitle {
    margin: 22px 0 10px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cb-muted);
}

body .cb-company .cb-pkd-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

body .cb-company .cb-pkd-list li {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--cb-line);
    font-size: 15px;
    line-height: 1.45;
    color: var(--cb-text);
}

body .cb-company .cb-pkd-list li:first-child {
    border-top: 0;
}

body .cb-company .cb-pkd-list__code {
    flex: 0 0 64px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--cb-navy);
}

body .cb-company .cb-pkd-more > .cb-pkd-list li:first-child {
    border-top: 1px solid var(--cb-line);
}

body .cb-company .cb-pkd-more summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cb-blue);
    cursor: pointer;
    list-style: none;
}

body .cb-company .cb-pkd-more summary::-webkit-details-marker {
    display: none;
}

body .cb-company .cb-pkd-more summary::after {
    content: "\25BE";
    font-size: 12px;
}

body .cb-company .cb-pkd-more[open] summary {
    margin-bottom: 4px;
}

body .cb-company .cb-pkd-more .cb-pkd-more__hide,
body .cb-company .cb-pkd-more[open] .cb-pkd-more__show {
    display: none;
}

body .cb-company .cb-pkd-more[open] .cb-pkd-more__hide {
    display: inline;
}

body .cb-company .cb-pkd-more[open] summary::after {
    content: "\25B4";
}

body .cb-company .cb-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 30px;
    margin: 0;
}

body .cb-company .cb-facts dt {
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cb-muted);
}

body .cb-company .cb-facts dd {
    margin: 0;
    font-size: 16px;
    color: var(--cb-ink);
}

@media (max-width: 767px) {
    body .cb-company .cb-owner {
        flex-direction: column;
        align-items: flex-start;
    }

    body .cb-company .cb-registry {
        padding: 22px 20px;
    }

    body .cb-company .cb-facts {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Stopka ---------- */
body .cb-footer {
    background: var(--cb-navy);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0 0;
}

.cb-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 28px 48px;
    padding-bottom: 30px;
}

.cb-footer__logo img {
    width: 160px;
    height: auto;
}

.cb-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.cb-footer__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

body .cb-footer a,
.cb-footer__contact span:not(.cb-footer__label) {
    color: rgba(255, 255, 255, 0.8);
}

body .cb-footer a:hover {
    color: #ffffff;
}

.cb-footer__contact i {
    width: 16px;
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.7);
}

.cb-footer__links {
    display: flex;
    gap: 48px;
    margin-left: auto;
    padding-left: 48px;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.cb-footer__links div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
}

.cb-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px 0 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   System stron treściowych (Kontakt, Oferta) — te same tokeny co lista firm
   ============================================================ */

.cb-section {
    background: var(--cb-page);
    padding: 28px 0 56px;
}

.cb-panel {
    background: #ffffff;
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
    padding: 28px;
}

.cb-panel__title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--cb-navy);
}

.cb-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--cb-radius-sm);
    background: var(--cb-blue-soft);
    color: var(--cb-blue);
    font-size: 16px;
}

.cb-btn--secondary {
    background: #ffffff;
    border-color: var(--cb-line-strong);
    color: var(--cb-navy);
}

.cb-btn--secondary:hover {
    border-color: var(--cb-navy);
    color: var(--cb-navy);
}

/* ---------- Kontakt ---------- */
.cb-contact {
    display: grid;
    grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
    gap: 24px;
    align-items: start;
}

.cb-contact__list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.cb-contact__list li {
    display: flex;
    gap: 14px;
}

.cb-contact__list h3 {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--cb-muted);
}

.cb-contact__list p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--cb-ink);
}

.cb-contact__list a {
    color: var(--cb-ink);
}

.cb-contact__list a:hover {
    color: var(--cb-blue);
}

.cb-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.cb-form__group {
    margin-bottom: 16px;
}

.cb-form__group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cb-text);
}

.cb-form input[type="text"],
.cb-form input:not([type]),
.cb-form textarea {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--cb-line-strong);
    border-radius: var(--cb-radius-sm);
    background: #ffffff;
    font-size: 15px;
    color: var(--cb-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cb-form textarea {
    height: 150px;
    padding: 12px 14px;
    resize: vertical;
}

.cb-form input::placeholder,
.cb-form textarea::placeholder {
    color: var(--cb-faint);
}

.cb-form input:focus,
.cb-form textarea:focus {
    outline: none;
    border-color: var(--cb-blue);
    box-shadow: 0 0 0 3px rgba(26, 95, 214, 0.12);
}

.cb-form .cb-btn {
    min-width: 200px;
    height: 46px;
    margin-top: 4px;
}

/* ---------- Oferta: tekst ---------- */
.cb-prose {
    padding: 32px 36px;
}

.cb-prose h2 {
    margin: 28px 0 10px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--cb-navy);
}

.cb-prose h2:first-child {
    margin-top: 0;
}

.cb-prose p {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--cb-text);
}

.cb-prose ul {
    margin: 0 0 14px;
    padding-left: 20px;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--cb-text);
}

.cb-prose__closing {
    margin-top: 20px !important;
    padding-top: 18px;
    border-top: 1px solid var(--cb-line);
    font-weight: 500;
    color: var(--cb-ink) !important;
}

/* ---------- Układ treść + kolumna boczna (jak lista firm) ---------- */
.cb-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

/* ---------- Sekcja CTA ---------- */
.cb-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    margin-top: 24px;
    padding: 26px 32px;
    background: #F0F5FC;
    border: 1px solid #DCE7FA;
    border-radius: var(--cb-radius);
}

.cb-cta h2 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 600;
    color: var(--cb-navy);
}

.cb-cta p {
    margin: 0;
    font-size: 15px;
    color: var(--cb-muted);
}

/* CTA w kolumnie bocznej: pionowo, przyklejone jak panel filtrów */
.cb-cta--aside {
    position: sticky;
    top: var(--cb-sticky-top);
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
    padding: 24px;
}

.cb-cta--aside .cb-cta__actions {
    flex-direction: column;
}

.cb-cta--aside .cb-btn {
    width: 100%;
}

.cb-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

/* ---------- Opinie klientów (wspólne ze stroną główną) ---------- */
body .testimonial-section {
    padding: 48px 0 56px;
    background: #ffffff;
    border-top: 1px solid var(--cb-line);
}

body .testimonial-section .sec-title {
    margin-bottom: 28px;
}

body .testimonial-section .sec-title h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--cb-navy);
}

body .testimonial-block .inner-box {
    padding: 28px 30px;
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
    box-shadow: var(--cb-shadow);
}

body .testimonial-block .text {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--cb-text);
}

body .testimonial-block .info-box {
    min-height: 0;
}

body .testimonial-block .info-box .name {
    font-weight: 600;
    color: var(--cb-navy);
}

body .testimonial-block .info-box .designation {
    font-size: 13px;
    color: var(--cb-muted);
}

@media (max-width: 991px) {
    .cb-contact,
    .cb-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .cb-cta--aside {
        position: static;
    }

    .cb-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .cb-section {
        padding: 20px 0 40px;
    }

    .cb-panel {
        padding: 20px;
    }

    .cb-prose {
        padding: 22px 20px;
    }

    .cb-form__row {
        grid-template-columns: 1fr;
    }

    .cb-form .cb-btn {
        width: 100%;
    }

    .cb-cta {
        padding: 22px 20px;
    }

    .cb-cta__actions,
    .cb-cta__actions .cb-btn {
        width: 100%;
    }
}

/* blokada przewijania strony pod otwartym panelem filtrów */
body.cb-no-scroll {
    overflow: hidden;
}

/* ---------- Tablet i telefon: panel filtrów jako wysuwana szuflada ---------- */
@media (max-width: 1199px) {
    .cb-footer__links {
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 991px) {
    .cb-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .cb-sidebar {
        position: fixed;
        top: 0 !important;
        overflow-y: auto;
        overscroll-behavior: contain;
        left: 0;
        bottom: 0;
        z-index: 1001;
        width: min(340px, 88vw);
        max-height: none;
        padding: 16px;
        background: var(--cb-page);
        box-shadow: 8px 0 30px rgba(16, 42, 83, 0.18);
        transform: translateX(-105%);
        transition: transform 0.25s ease;
    }

    .cb-sidebar.is-open {
        transform: translateX(0);
    }

    .cb-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(11, 43, 92, 0.35);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    .cb-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }

    .cb-filters__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        margin-left: 4px;
        border: 0;
        border-radius: 8px;
        background: #F2F5F9;
        color: var(--cb-text);
        cursor: pointer;
    }

    .cb-filters__head h2 {
        margin-right: auto;
    }

    .cb-filters-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 42px;
        margin-bottom: 14px;
        padding: 0 16px;
        border: 1px solid var(--cb-line-strong);
        border-radius: var(--cb-radius-sm);
        background: #ffffff;
        font-size: 14px;
        font-weight: 600;
        color: var(--cb-navy);
        cursor: pointer;
    }

    .cb-company__head {
        flex-direction: column;
        align-items: stretch;
    }

    .cb-company__cta {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .cb-hero {
        padding: 22px 0 18px;
    }

    .cb-hero h1 {
        font-size: 26px;
    }

    .cb-hero__lead {
        font-size: 15px;
    }

    .cb-listing {
        padding-top: 20px;
    }

    .cb-results__head {
        flex-direction: column;
        gap: 2px;
    }

    .cb-record {
        grid-template-columns: minmax(0, 1fr);
        padding: 18px;
    }

    .cb-record__title h3 {
        font-size: 17px;
    }

    .cb-record__link {
        justify-self: start;
    }

    .cb-company__title h1 {
        font-size: 24px;
    }

    .cb-footer__links {
        flex-wrap: wrap;
        gap: 22px 36px;
    }
}
