/* =========================================================
   CzyJestPraca.pl — styl serwisu
   Pomysł: nazwa to pytanie, wyszukiwarka to zdanie,
   a wyniki odpowiadają „Jest…”. Żółty = zakreślacz na odpowiedzi.
   ========================================================= */

:root {
    --ink: #16204A;          /* granat atramentowy: tekst, nagłówek strony */
    --ink-2: #4A5375;        /* tekst drugoplanowy */
    --ink-3: #737B97;        /* metadane */
    --brand: #2B3FD1;        /* ultramaryna: linki, przyciski */
    --brand-dark: #1F2FA6;
    --mark: #FFD60A;         /* zakreślacz */
    --mark-soft: #FFF3B0;
    --money: #11724A;        /* wynagrodzenie */
    --bg: #F2F4F7;
    --surface: #FFFFFF;
    --line: #DCE1EA;
    --line-strong: #C3CAD8;
    --danger: #B42318;

    --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;

    /* Bootstrap — żeby strony logowania/rejestracji wyglądały spójnie */
    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--bg);
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 43, 63, 209;
    --bs-link-hover-color: var(--brand-dark);
    --bs-border-color: var(--line);
    --bs-primary: var(--brand);
    --bs-primary-rgb: 43, 63, 209;
}

/* ---------- podstawy ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--ink);
}
h1 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.125rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.skip-link {
    position: absolute; left: 1rem; top: -3rem; z-index: 100;
    background: var(--mark); color: var(--ink); padding: .5rem 1rem; border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.page { padding-top: 2rem; padding-bottom: 4rem; }

/* ---------- przyciski ---------- */
.btn { font-weight: 600; border-radius: var(--r-sm); padding: .55rem 1.1rem; }
.btn-sm { padding: .3rem .7rem; }
.btn-brand, .btn-primary {
    --bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-focus-shadow-rgb: 43, 63, 209;
}
.btn-ink {
    --bs-btn-color: #fff; --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink);
    --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--mark); --bs-btn-hover-border-color: var(--mark);
    --bs-btn-active-bg: var(--mark); --bs-btn-active-color: var(--ink);
}
.btn-outline-ink {
    --bs-btn-color: var(--ink); --bs-btn-border-color: var(--line-strong); --bs-btn-bg: var(--surface);
    --bs-btn-hover-color: var(--ink); --bs-btn-hover-bg: var(--bg); --bs-btn-hover-border-color: var(--ink);
}

/* ---------- nagłówek ---------- */
.site-header { background: var(--ink); }
.site-header .navbar { padding: .7rem 0; }
.site-header .nav-link,
.site-header .btn-link { color: rgba(255,255,255,.82); font-weight: 600; }
.site-header .nav-link:hover,
.site-header .btn-link:hover { color: #fff; text-decoration: none; }
.site-header .navbar-toggler { border-color: rgba(255,255,255,.3); }
.site-header .navbar-toggler-icon { filter: invert(1); }
.site-header .btn-brand { --bs-btn-bg: var(--mark); --bs-btn-border-color: var(--mark); --bs-btn-color: var(--ink);
    --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff; --bs-btn-hover-color: var(--ink); }

.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none !important; margin-right: 2rem; }
.logo-mark {
    display: inline-grid; place-items: center;
    width: 2rem; height: 2rem; border-radius: 9px;
    background: var(--mark); color: var(--ink);
    font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1;
    transform: rotate(-6deg);
}
.logo-word { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; color: #fff; }
.logo-tld { color: rgba(255,255,255,.55); font-weight: 500; }
.logo:hover .logo-mark { transform: rotate(0deg); transition: transform .2s ease; }

/* ---------- hero: wyszukiwarka-zdanie ---------- */
.hero { background: var(--ink); color: #fff; padding: 3.5rem 0 3rem; }
.hero-compact { padding: 1.5rem 0 1.75rem; }

.ask {
    display: flex; flex-wrap: wrap; align-items: baseline;
    column-gap: .6rem; row-gap: .4rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 4.6vw, 3.4rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    max-width: 1040px;
}
.hero-compact .ask { font-size: clamp(1.25rem, 2.6vw, 1.85rem); }
.ask-text { white-space: nowrap; }

.ask-input {
    font: inherit; letter-spacing: inherit;
    color: var(--mark);
    background: transparent;
    border: 0;
    border-bottom: 3px solid rgba(255,255,255,.35);
    border-radius: 0;
    padding: 0 .1em;
    min-width: 0;
    transition: border-color .15s, background-color .15s;
}
/* strona główna: dwie linie — „Czy jest praca jako ___” / „w ___ ? [Sprawdź]” */
.ask-break { flex-basis: 100%; height: 0; }
.ask-q { flex: 1 1 8em; max-width: 13em; }
.ask-l { flex: 0 1 7.5em; }
/* wąski pasek na stronie wyników: jedna linia */
.hero-compact .ask-break { display: none; }
.hero-compact .ask-q { max-width: 11em; }
.hero-compact .ask-l { flex: 1 1 6em; max-width: 8em; }
.ask-input::placeholder { color: rgba(255,255,255,.38); }
.ask-input:hover { border-bottom-color: rgba(255,255,255,.6); }
.ask-input:focus {
    outline: none;
    border-bottom-color: var(--mark);
    background: rgba(255, 214, 10, .08);
}
.ask-mark { color: var(--mark); margin-left: -.35rem; }

.btn-ask {
    align-self: center;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--ink);
    background: var(--mark);
    border: 0;
    border-radius: var(--r-md);
    padding: .8rem 1.6rem;
    margin-left: .5rem;
    cursor: pointer;
}
.hero-compact .btn-ask { padding: .55rem 1.2rem; font-size: 1rem; }
.btn-ask:hover { background: #fff; }
.btn-ask:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.hero-answer { margin: 1.75rem 0 0; font-size: 1.125rem; color: rgba(255,255,255,.75); max-width: 60ch; }
.hero-answer .answer {
    color: var(--ink);
    background: var(--mark);
    padding: .05em .35em;
    border-radius: 4px;
    font-weight: 700;
    box-decoration-break: clone;
}

.quick-cities { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.25rem 0 0; }
.quick-cities a {
    display: inline-block; padding: .3rem .8rem; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.28); color: #fff; font-weight: 600; font-size: .95rem;
}
.quick-cities a:hover { background: #fff; color: var(--ink); text-decoration: none; border-color: #fff; }

/* ---------- nagłówki sekcji ---------- */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .75rem; }
.section-head h2 { margin: 0; font-size: 1.4rem; }
.section-head a { font-weight: 600; }

/* ---------- lista ofert ---------- */
.jobs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.job {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--line);
    position: relative;
}
.job:first-child { border-top: 0; }
.job:hover { background: #F8F9FC; }
.job-title { font-size: 1.2rem; margin: 0 0 .15rem; }
.job-title a { color: var(--ink); }
.job-title a::after { content: ""; position: absolute; inset: 0; } /* cały wiersz klikalny */
.job:hover .job-title a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.job-company { margin: 0 0 .5rem; font-weight: 600; color: var(--ink-2); }

.job-facts { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; padding: 0; margin: 0; font-size: .95rem; color: var(--ink-2); }
.job-loc { display: inline-flex; align-items: center; gap: .25rem; margin-right: .35rem; }
.job-loc svg { color: var(--ink-3); }
.chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .6rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.chip-mode { background: #E9ECFF; border-color: #CBD2FF; color: var(--brand-dark); }

.job-snippet { margin: .6rem 0 0; color: var(--ink-2); font-size: .975rem; max-width: 70ch;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.job-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; min-width: 9rem; }
.job-salary { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--money); white-space: nowrap; }
.job-age { font-size: .875rem; color: var(--ink-3); }

@media (max-width: 640px) {
    .job { grid-template-columns: 1fr; gap: .5rem; padding: 1.1rem 1rem; }
    .job-side { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; text-align: left; min-width: 0; order: -1; }
    .job-side:not(:has(.job-salary)) { display: none; }
    .job-side .job-age { display: none; }
}

/* ---------- panel boczny ---------- */
.side-block h2 { font-size: 1.1rem; margin-bottom: .75rem; }
.side-block + .side-block, .employer + .side-block, .side-block + .employer { margin-top: 2rem; }

.cat-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.cat-cloud a {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .8rem; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    color: var(--ink); font-weight: 600; font-size: .95rem;
}
.cat-cloud a:hover { border-color: var(--ink); text-decoration: none; }
.cat-cloud .n { color: var(--ink-3); font-weight: 400; font-size: .85rem; }

.city-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.city-list li { display: flex; justify-content: space-between; padding: .3rem 0; break-inside: avoid; border-bottom: 1px dashed var(--line); }
.city-list a { color: var(--ink); font-weight: 600; }
.city-list .n { color: var(--ink-3); font-size: .9rem; }

.employer {
    background: var(--mark);
    border-radius: var(--r-lg);
    padding: 1.5rem;
}
.employer h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.employer p { margin-bottom: 1rem; color: var(--ink); }

/* ---------- wyniki wyszukiwania ---------- */
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.results-head h1 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.results-head .answer { background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); padding: 0 .1em; }
.results-head .ctx { color: var(--ink-2); font-weight: 500; }
.sort { display: flex; align-items: center; gap: .5rem; }
.sort label { color: var(--ink-3); font-size: .9rem; }
.sort select { width: auto; padding-right: 2.25rem; }

.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.15rem; position: sticky; top: 1rem; }
.filters-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 0; }
.filters form { margin-top: .9rem; }
.filters .form-label { font-weight: 600; font-size: .925rem; margin: .8rem 0 .3rem; }
.filters .form-label:first-of-type { margin-top: 0; }
.filters .btn { margin-top: 1.1rem; }
.filters-clear { display: block; text-align: center; margin-top: .6rem; font-size: .925rem; }

.pager { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 1.75rem 0 0; }
.pager a, .pager .current {
    display: inline-block; min-width: 2.5rem; text-align: center;
    padding: .45rem .8rem; border-radius: var(--r-sm); font-weight: 600;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
.pager a:hover { border-color: var(--ink); text-decoration: none; }
.pager .current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* oferty z Careerjet na tej samej liście — jedyna różnica to ikonka „otwiera się w nowej karcie” */
.job-external { color: var(--ink-3); margin-top: auto; }
.job-partner:hover .job-external { color: var(--brand); }

.empty { background: var(--surface); border: 2px dashed var(--line-strong); border-radius: var(--r-lg); padding: 2.5rem 1.5rem; text-align: center; }
.empty h3 { margin-bottom: .5rem; }
.empty p { color: var(--ink-2); max-width: 50ch; margin: 0 auto 1.25rem; }

/* ---------- szczegóły oferty ---------- */
.crumbs { display: flex; gap: .5rem; font-size: .95rem; margin-bottom: 1.25rem; color: var(--ink-3); }
.crumbs a { font-weight: 600; }

.detail-head { margin-bottom: 1.5rem; }
.detail-head h1 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin-bottom: .35rem; letter-spacing: -0.025em; }
.detail-company { font-size: 1.2rem; font-weight: 600; color: var(--ink-2); margin-bottom: .75rem; }
.detail-salary { margin: 1.1rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--money); }
.detail-salary span { font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--ink-3); margin-left: .35rem; }

.description {
    white-space: pre-line;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    line-height: 1.7;
    max-width: 100%;
}
@media (min-width: 992px) { .description { padding: 2rem 2.25rem; } }

.manage-bar { margin-top: 1.25rem; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.manage-bar span { color: var(--ink-3); font-size: .925rem; margin-left: .5rem; }

.apply-box { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 1.5rem; position: sticky; top: 1rem; }
.apply-box h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.apply-mail { margin: .5rem 0 0; text-align: center; font-size: .925rem; color: var(--ink-3); word-break: break-all; }
.apply-meta { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .35rem; font-size: .95rem; }
.apply-meta div { display: flex; justify-content: space-between; }
.apply-meta dt { font-weight: 400; color: var(--ink-3); }
.apply-meta dd { margin: 0; font-weight: 600; }

.similar { list-style: none; padding: 0; margin: 0; }
.similar li { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.similar a { display: block; font-weight: 600; color: var(--ink); }
.similar span { font-size: .9rem; color: var(--ink-3); }

/* ---------- formularze, konto, tabele ---------- */
.form-page { max-width: 880px; }
.form-page h1 { margin-bottom: .35rem; }
.form-page > p { color: var(--ink-2); }
.form-page form, .card-like { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; margin-top: 1.25rem; }
.form-label { font-weight: 600; }
.form-control, .form-select { border-color: var(--line-strong); border-radius: var(--r-sm); padding: .55rem .8rem; background-color: #fff; }
.form-control:focus, .form-select:focus { background-color: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43, 63, 209, .18); }
.text-danger { color: var(--danger) !important; }

.table { --bs-table-bg: var(--surface); }
.table thead th { font-weight: 600; color: var(--ink-3); font-size: .9rem; border-bottom-color: var(--line-strong); }
.table-responsive { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .25rem 1rem; }

.flash { background: #E7F6EE; border-left: 4px solid var(--money); color: var(--ink); padding: .8rem 1rem; border-radius: var(--r-sm); font-weight: 600; }
.flash-warn { background: var(--mark-soft); border-left-color: #C79A00; margin-bottom: 1.25rem; }

/* ---------- formularz ogłoszenia: wymagane, wynagrodzenie, aplikacje ---------- */
.req { color: var(--danger); font-weight: 700; }
.muted { color: var(--ink-3); font-weight: 400; font-size: .9em; }
.form-page .label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.form-page .label-row .form-label { margin-bottom: .4rem; }

.link-toggle {
    display: inline-flex; align-items: center; gap: .35rem;
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--ink-2); font-weight: 600; font-size: .925rem;
}
.link-toggle svg { color: var(--brand); transition: transform .25s ease; }
.link-toggle:hover { color: var(--ink); }
.link-toggle:hover svg { transform: rotate(180deg); }
.salary-block .when-range { display: none; }
.salary-block.is-range .when-range { display: inline; }
.salary-block.is-range .when-single { display: none; }
.salary-block.is-range .salary-inputs.when-range { display: flex; }

.salary-row { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; }
.salary-inputs { display: flex; gap: .5rem; align-items: center; flex: 1 1 18rem; }
.salary-inputs.when-single { flex: 0 1 16rem; }
.salary-inputs .dash { color: var(--ink-3); }
.salary-period { flex: 0 0 auto; width: auto; min-width: 10rem; }
.input-unit { position: relative; flex: 1; }
.input-unit .form-control { padding-right: 4.75rem; }
.input-unit .unit { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: .925rem; pointer-events: none; }
/* bez strzałek przy polach liczbowych */
.input-unit input[type=number] { -moz-appearance: textfield; }
.input-unit input[type=number]::-webkit-outer-spin-button,
.input-unit input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.salary-hint { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin-top: .6rem; font-size: .925rem; color: var(--ink-2); }
.salary-hint:empty { display: none; }
.chip-btn { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .15rem .7rem; font-size: .875rem; font-weight: 600; cursor: pointer; }
.chip-btn:hover { border-color: var(--brand); color: var(--brand); }
.salary-warn { margin: .6rem 0 0; padding: .5rem .75rem; background: var(--mark-soft); border-left: 3px solid #C79A00; border-radius: var(--r-sm); font-size: .925rem; color: var(--ink); }

.apply-block { border: 0; margin: 0; padding-top: 0; padding-bottom: 0; } /* poziomy odstęp zostaje z .col-12 */
.apply-block legend { float: none; width: auto; font-size: 1rem; }
.help {
    display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; flex: none;
    border: 1.5px solid var(--ink-3); border-radius: 50%; color: var(--ink-3);
    font-size: .8rem; font-weight: 700; cursor: help;
}
.help:hover, .help:focus { color: var(--brand); border-color: var(--brand); }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: .1rem 0 .85rem; }
.radio { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.radio input { width: 1.1rem; height: 1.1rem; accent-color: var(--brand); margin: 0; }
.radio:has(input:checked) { color: var(--ink); }
.apply-panel .field-hint { margin-top: .45rem; }

/* ---------- podpowiedzi miejscowości ---------- */
.ac-wrap { position: relative; }
.ac-list {
    position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px);
    margin: 0; padding: .3rem; list-style: none;
    background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md);
    box-shadow: 0 16px 32px -12px rgba(22, 32, 74, .35);
    max-height: 19rem; overflow-y: auto;
    font-family: var(--font-body); font-size: 1rem; font-weight: 400; letter-spacing: 0; line-height: 1.3;
}
.ac-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem .65rem; border-radius: var(--r-sm); cursor: pointer; color: var(--ink); }
.ac-list li[aria-selected="true"], .ac-list li:hover { background: #EEF1FF; }
.ac-name b { font-weight: 700; }
.ac-hint { color: var(--ink-3); font-size: .85rem; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* w wyszukiwarce-zdaniu pole miasta jest owinięte — wrapper przejmuje rozmiar pola */
.ask .ac-wrap-ask { flex: 0 1 7.5em; min-width: 0; }
.ask .ac-wrap-ask .ask-l { width: 100%; max-width: none; }
.ask .ac-wrap-ask .ac-list { min-width: 18rem; }
.hero-compact .ac-wrap-ask { flex: 1 1 6em; max-width: 8em; }
@media (max-width: 640px) {
    .ask .ac-wrap-ask { flex-basis: 100%; max-width: none; }
    .hero-compact .ac-wrap-ask { flex: 1 1 0; max-width: none; }
    .ask .ac-wrap-ask .ac-list { min-width: 0; }
    .salary-inputs.when-single { flex-basis: 100%; }
    .salary-period { flex: 1 1 100%; }
}

/* ---------- formularz aplikacji kandydata ---------- */
.apply-page { max-width: 34rem; margin: 0 auto; }
.apply-head { margin: 1rem 0 1.5rem; }
.apply-head h1 { margin-bottom: .5rem; }
.apply-job { margin: 0; display: flex; flex-direction: column; gap: .1rem; }
.apply-job strong { font-size: 1.15rem; }
.apply-job span { color: var(--ink-2); }
.apply-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; }
.apply-form .field { margin-bottom: 1.25rem; }
.apply-form .form-label { font-weight: 700; margin-bottom: .4rem; }
.apply-form .form-control { padding: .75rem .9rem; font-size: 1.05rem; }
.apply-form .form-control[readonly] { background: #F5F6F9; color: var(--ink-2); cursor: default; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.dropzone {
    position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
    min-height: 5.5rem; padding: 1rem; cursor: pointer;
    border: 2px dashed var(--line-strong); border-radius: var(--r-md); background: var(--surface);
    transition: border-color .15s, background-color .15s;
}
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: #F3F5FF; }
.dropzone:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.dropzone.has-error { border-color: var(--danger); }
.dropzone.has-file { border-style: solid; border-color: var(--money); background: #F2FAF6; }
.dz-empty { display: flex; flex-direction: column; gap: .2rem; }
.dz-action { color: var(--brand); font-weight: 700; font-size: 1.1rem; }
.dz-note { color: var(--ink-3); font-size: .875rem; }
.dz-file { display: flex; align-items: center; gap: .6rem; color: var(--ink); max-width: 100%; }
.dz-file svg { color: var(--money); flex: none; }
.dz-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-size { color: var(--ink-3); font-size: .9rem; flex: none; }
.dz-change { color: var(--brand); font-weight: 600; font-size: .9rem; flex: none; margin-left: .25rem; }
.apply-message summary { cursor: pointer; font-weight: 600; color: var(--brand); margin-bottom: .5rem; }
.legal-h3 { font-size: 1.1rem; margin: 1.25rem 0 .5rem; scroll-margin-top: 1rem; }

/* ---------- zgłoszenia błędów i sugestii ---------- */
.feedback-fab {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .6rem .95rem; border-radius: 999px;
    background: var(--mark); color: var(--ink); font-weight: 700; font-size: .925rem;
    border: 2px solid var(--ink);
    box-shadow: 0 10px 24px -8px rgba(22, 32, 74, .55);
    text-decoration: none !important;
}
.feedback-fab:hover { background: #fff; color: var(--ink); }
.feedback-fab svg { color: var(--ink); }
@media (max-width: 640px) { .feedback-fab span { display: none; } .feedback-fab { padding: .7rem; } }
@media print { .feedback-fab { display: none; } }

.feedback-lead { color: var(--ink-2); margin: .6rem 0 0; }
.type-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; display: inline-flex; align-items: center; padding: .45rem 1rem; border: 1px solid var(--line-strong);
        border-radius: 999px; font-weight: 600; color: var(--ink-2); cursor: pointer; background: var(--surface); }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
fieldset.field { border: 0; padding: 0; }
fieldset.field legend { float: none; font-size: 1rem; }

.report-link { margin: .9rem 0 0; font-size: .875rem; color: var(--ink-3); }
.report-link a { color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.nav-badge { display: inline-block; min-width: 1.35rem; padding: 0 .35rem; margin-left: .2rem; border-radius: 999px;
             background: var(--mark); color: var(--ink); font-size: .75rem; font-weight: 800; text-align: center; line-height: 1.35rem; }

.admin-tabs { display: flex; flex-wrap: wrap; gap: .35rem; border-bottom: 1px solid var(--line); margin-bottom: .9rem; }
.admin-tabs a { padding: .5rem .85rem; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; text-decoration: none; }
.admin-tabs a.active { color: var(--ink); border-bottom-color: var(--brand); }
.admin-tabs a span { color: var(--ink-3); font-weight: 400; margin-left: .2rem; }
.admin-filter { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-bottom: 1.25rem; font-size: .925rem; color: var(--ink-3); }
.admin-filter a { color: var(--ink-2); }
.admin-filter a.active { color: var(--ink); font-weight: 700; }

.fb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-size: .85rem; color: var(--ink-3); margin-bottom: .35rem; }
.fb-type, .fb-status { padding: .05rem .55rem; border-radius: 999px; font-weight: 700; font-size: .78rem; }
.fb-type-bug { background: #FDECEA; color: #8A1C13; }
.fb-type-suggestion { background: #E9ECFF; color: var(--brand-dark); }
.fb-type-jobreport { background: var(--mark-soft); color: #6B5200; }
.fb-type-other { background: var(--bg); color: var(--ink-2); }
.fb-status-new { background: var(--ink); color: #fff; }
.fb-status-inprogress { background: #E9ECFF; color: var(--brand-dark); }
.fb-status-done { background: #E7F6EE; color: var(--money); }
.fb-status-rejected { background: var(--bg); color: var(--ink-3); }
.fb-row .job-title { font-size: 1.05rem; }
.fb-shot { max-width: 100%; border: 1px solid var(--line); border-radius: var(--r-md); }
.fb-notes { font-size: .925rem; color: var(--ink-2); }

/* ---------- panel aplikacji pracodawcy ---------- */
.apps-head { margin: 1rem 0 1.25rem; }
.apps-head h1 { margin-bottom: .35rem; }
.apps-head .apply-job a { color: var(--ink); }
.apps { display: grid; gap: .75rem; }
.app-card {
    display: grid; grid-template-columns: 1fr auto; gap: 1rem 1.5rem; align-items: start;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.15rem 1.35rem;
    scroll-margin-top: 1rem;
}
.app-card.is-new { border-left: 4px solid var(--brand); }
.app-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; }
.app-top h2 { font-size: 1.15rem; margin: 0; }
.app-date { color: var(--ink-3); font-size: .875rem; margin-left: auto; }
.app-status { padding: .05rem .55rem; border-radius: 999px; font-weight: 700; font-size: .78rem; }
.app-status-new { background: var(--brand); color: #fff; }
.app-status-viewed { background: var(--bg); color: var(--ink-2); }
.app-status-shortlisted { background: #E7F6EE; color: var(--money); }
.app-status-rejected { background: var(--bg); color: var(--ink-3); text-decoration: line-through; }
.app-contact { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: 0; margin: .4rem 0 0; font-size: .95rem; }
.app-message { white-space: pre-line; margin: .75rem 0 0; padding: .7rem .9rem; background: var(--bg); border-radius: var(--r-sm); color: var(--ink-2); font-size: .95rem; max-width: 70ch; }
.app-actions { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; min-width: 11rem; }
.app-actions .btn-brand { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.app-size { font-weight: 400; opacity: .8; font-size: .8rem; }
.app-delete { color: var(--danger); padding: 0; text-align: center; }
@media (max-width: 640px) {
    .app-card { grid-template-columns: 1fr; }
    .app-date { margin-left: 0; }
    .app-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
}

/* ---------- moje konto ---------- */
.manage { max-width: 62rem; margin: 0 auto; }
.manage-head { margin-bottom: 1.5rem; }
.manage-head h1 { margin-bottom: .2rem; }
.manage-head p { color: var(--ink-3); margin: 0; }
.manage-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.manage-nav a { display: block; padding: .6rem .9rem; border-radius: var(--r-sm); color: var(--ink-2); font-weight: 600; text-decoration: none; }
.manage-nav a:hover { background: var(--surface); color: var(--ink); }
.manage-nav a.active { background: var(--ink); color: #fff; }
.manage-nav-links { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.manage-nav-links a { font-weight: 400; color: var(--brand); }
@media (max-width: 767px) {
    .manage-nav { display: flex; flex-wrap: wrap; gap: .35rem; }
    .manage-nav a { padding: .4rem .8rem; border: 1px solid var(--line); background: var(--surface); }
    .manage-nav-links { margin-top: .5rem; padding-top: 0; border-top: 0; }
}
.manage-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.75rem; }
.manage-card h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.manage-sub { color: var(--ink-2); margin-bottom: 1.5rem; max-width: 60ch; }
.manage-form { max-width: 34rem; }
.manage-form .field, .manage-card > .field { margin-bottom: 1.1rem; }
.manage-form .form-control[readonly] { background: #F5F6F9; color: var(--ink-2); }
.email-current { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: 1.25rem; }
.login-list { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .5rem; max-width: 34rem; }
.login-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); }
.data-actions { display: grid; gap: 1rem; max-width: 40rem; }
.data-actions section { border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.25rem; }
.data-actions h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.data-actions p { color: var(--ink-2); margin-bottom: .8rem; }
.danger-zone { border-color: #F3C5C0 !important; background: #FFF8F7; }

/* ---------- cennik i płatność ---------- */
.plans { border: 0; margin: 0; padding-top: 0; padding-bottom: 0; }
.checkout-form .plans { padding: 0; }
.plans legend { font-size: 1rem; float: none; margin-bottom: .5rem; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: .6rem; }
.plan {
    position: relative; display: flex; flex-direction: column; gap: .1rem;
    padding: .85rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-md);
    background: var(--surface); cursor: pointer;
}
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-days { font-weight: 600; color: var(--ink-2); }
.plan-price { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); }
.plan:hover { border-color: var(--ink); }
.plan:has(input:checked) { border: 2px solid var(--brand); padding: calc(.85rem - 1px) calc(1rem - 1px); background: #F3F5FF; }
.plan:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.plan-note { font-size: .9rem; color: var(--ink-3); margin: .6rem 0 0; }

.checkout { max-width: 620px; margin: 0 auto; }
.checkout h1 { margin-bottom: .4rem; }
.checkout-sub { color: var(--ink-2); margin-bottom: 1.5rem; }
.checkout-job { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.checkout-job h2 { font-size: 1.15rem; margin: 0 0 .15rem; }
.checkout-job p { margin: 0 0 .35rem; color: var(--ink-2); }
.checkout-job a { font-size: .925rem; font-weight: 600; }
.checkout-form { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 1.5rem; }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; margin: 1.5rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.checkout-total span { color: var(--ink-2); font-weight: 600; }
.checkout-total strong { font-family: var(--font-display); font-size: 1.9rem; }
.checkout-note { font-size: .9rem; color: var(--ink-3); margin: .8rem 0 0; text-align: center; }

/* ---------- konto: logowanie, rejestracja, hasła ---------- */
.auth { max-width: 460px; margin: 1rem auto 0; }
.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(22, 32, 74, .35);
}
.auth-card h1 { font-size: 1.85rem; margin-bottom: .35rem; letter-spacing: -0.025em; }
.auth-sub { color: var(--ink-2); margin-bottom: 1.5rem; }
.auth-card > p { color: var(--ink-2); }
.auth-alt { text-align: center; margin-top: 1.25rem; color: var(--ink-2); }
.auth-alt a { font-weight: 700; }
.auth-hint { font-size: .925rem; color: var(--ink-3); margin: .9rem 0 0; }

.auth .field { margin-bottom: 1.1rem; }
.auth .form-label { margin-bottom: .35rem; }
.auth .form-control { padding: .7rem .9rem; font-size: 1.05rem; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.label-row a { font-size: .925rem; font-weight: 600; }
.field-hint { display: block; font-size: .875rem; color: var(--ink-3); margin-top: .35rem; }
.field-error, .field-validation-error { display: block; font-size: .9rem; color: var(--danger); margin-top: .3rem; font-weight: 600; }
.field-error:empty { display: none; }
.input-validation-error { border-color: var(--danger) !important; }
.auth .form-check { margin: .25rem 0 1.4rem; }
.auth .form-check-input { width: 1.15em; height: 1.15em; margin-top: .2em; border-color: var(--line-strong); }
.auth .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.btn-lg-auth { padding: .8rem 1rem; font-size: 1.05rem; }

.auth-error:empty, .auth-error.validation-summary-valid { display: none; }
.auth-error {
    background: #FDECEA; border-left: 4px solid var(--danger); border-radius: var(--r-sm);
    padding: .75rem 1rem; margin-bottom: 1.25rem; color: #7A1A12; font-weight: 600;
}
.auth-error ul { margin: 0; padding-left: 0; list-style: none; }
.auth-error li + li { margin-top: .35rem; }

.ext-logins { display: grid; gap: .6rem; }
.ext-btn {
    display: flex; align-items: center; justify-content: center; gap: .65rem;
    width: 100%; padding: .75rem 1rem;
    background: var(--surface); color: var(--ink);
    border: 1px solid var(--line-strong); border-radius: var(--r-sm);
    font-weight: 700; font-size: 1rem; cursor: pointer;
}
.ext-btn:hover { border-color: var(--ink); background: #F8F9FC; }
.ext-btn svg { flex: none; }

.or { display: flex; align-items: center; gap: .9rem; margin: 1.4rem 0; color: var(--ink-3); font-size: .9rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-message { text-align: center; }
.auth-message p { max-width: 36ch; margin-left: auto; margin-right: auto; }
.auth-message .btn { margin-top: .75rem; }
.auth-icon {
    display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
    background: #E9ECFF; color: var(--brand); margin-bottom: 1rem;
    font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
}
.auth-icon-ok { background: #E7F6EE; color: var(--money); }
.auth-icon-warn { background: var(--mark-soft); color: #8A6A00; }

@media (max-width: 520px) {
    .auth { margin-top: 0; }
    .auth-card { padding: 1.5rem 1.25rem; border-radius: var(--r-md); }
}

/* ---------- regulamin, polityka prywatności ---------- */
.legal { max-width: 46rem; margin: 0 auto; line-height: 1.65; }
.legal-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: .6rem; }
.legal-head p { color: var(--ink-2); margin-bottom: .4rem; }
.legal-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.25rem; margin: 1.5rem 0 2rem; }
.legal-toc ol { margin: 0; padding-left: 1.25rem; columns: 2; column-gap: 2rem; }
.legal-toc li { padding: .15rem 0; break-inside: avoid; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.legal section { padding-top: .5rem; margin-bottom: 1.75rem; scroll-margin-top: 1rem; }
.legal h2 { font-size: 1.3rem; margin-bottom: .75rem; }
.legal ol, .legal ul { padding-left: 1.35rem; }
.legal li { margin-bottom: .45rem; }
.legal li > ol { margin-top: .45rem; }
.legal-table { font-size: .95rem; }
.legal-table th { color: var(--ink-3); font-weight: 600; }
.legal code { font-size: .85em; color: var(--ink); background: var(--bg); padding: .05rem .3rem; border-radius: 4px; }
mark.todo { background: var(--mark); color: var(--ink); padding: 0 .25rem; border-radius: 3px; font-weight: 600; }

.ext-note { font-size: .85rem; color: var(--ink-3); margin: .65rem 0 0; text-align: center; }
.consent { margin: 0 0 1.1rem; font-size: .925rem; color: var(--ink-2); }
.consent .form-check-input { width: 1.1em; height: 1.1em; margin-top: .2em; border-color: var(--line-strong); }
.consent .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* ---------- stopka ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 2.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; }
.footer-note { margin: .75rem 0 0; max-width: 42ch; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-links a { color: #fff; }
.footer-copy { grid-column: 1 / -1; margin: 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .875rem; }
.logo-sm .logo-mark { width: 1.6rem; height: 1.6rem; font-size: 1.1rem; border-radius: 7px; }
.logo-sm .logo-word { font-size: 1.1rem; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- mobile: wyszukiwarka ---------- */
@media (max-width: 640px) {
    .hero { padding: 2rem 0 2rem; }
    .ask { font-size: 1.65rem; }
    .ask-q, .ask-l { max-width: none; flex-basis: 100%; }
    .ask-mark { display: none; }
    .btn-ask { margin: .75rem 0 0; width: 100%; padding: .85rem; }
    .ask-break { display: none; }
    /* wyniki na telefonie: dwa pola + przycisk, bez słów zdania */
    .hero-compact { padding: 1rem 0 1.1rem; }
    .hero-compact .ask { font-size: 1.15rem; align-items: center; }
    .hero-compact .ask-text { display: none; }
    .hero-compact .ask-q { flex-basis: 100%; max-width: none; }
    .hero-compact .ask-l { flex: 1 1 0; max-width: none; }
    .hero-compact .btn-ask { width: auto; margin: 0 0 0 .5rem; padding: .5rem 1rem; }
}

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

/* ---------- /admin/careerjet ---------- */
.cj-facts { list-style: none; padding: 0; margin: 0 0 1rem; }
.cj-facts li { margin-bottom: .25rem; }
.cj-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; align-items: end; margin: 1rem 0 1.5rem; }
.cj-form label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .9rem; }
.cj-pre { background: #fff; border: 1px solid #e3e6ef; border-radius: 10px; padding: .75rem 1rem; white-space: pre-wrap; word-break: break-all; font-size: .82rem; max-height: 420px; overflow: auto; }

/* ---------- oferta z Careerjet (/oferta/…) ---------- */
.partner-note { color: var(--ink-3); margin: 1.5rem 0 .75rem; }
.partner-go { display: inline-flex; align-items: center; gap: .5rem; }
