/* ═══════════════════════════════════════════════════════════
   HR portal — page chrome + 3-step interest form
   Tokens from style.css (--fg / --muted / --border / --gold / --ease-expo)
   ═══════════════════════════════════════════════════════════ */

.hr-page,
.hr-page *,
.hr-page *::before,
.hr-page *::after { cursor: auto !important; }

.hr-page a,
.hr-page button,
.hr-page .lang-opt,
.hr-page .lang-pop-btn,
.hr-page label.iz-opt { cursor: pointer !important; }

.hr-page .pit-stage { cursor: grab !important; }
.hr-page .pit-stage.is-hold { cursor: grabbing !important; }

.hr-page { --hr-nav-h: 74px; }

.skip-link {
    position: fixed;
    left: 16px;
    top: -48px;
    z-index: 200;
    padding: 8px 14px;
    background: var(--fg);
    color: var(--bg);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ── Nav ── */
.hr-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-inline: var(--pad, 24px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--border);
}
.hr-nav-logo { text-decoration: none; flex-shrink: 0; }
.hr-nav-logo img { height: 28px; display: block; }

.hr-nav .lang-pop-btn,
.hr-nav .lang-opt { cursor: pointer; }

.hr-nav a:focus-visible,
.hr-nav button:focus-visible,
.iz-opt:focus-within,
.iz-next:focus-visible,
.iz-back:focus-visible,
.iz-field input:focus-visible,
.iz-field textarea:focus-visible,
.iz-area:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 3px;
}

/* ── Seq as first chapter: sit under the sticky nav ── */
.seq--first { border-top: none; }
.seq--first .seq-intro { padding-top: 48px; }
.seq--first .seq-stage {
    top: var(--hr-nav-h);
    height: calc(100svh - var(--hr-nav-h));
}

#career { scroll-margin-top: calc(var(--hr-nav-h) + 12px); }
#zajem  { scroll-margin-top: calc(var(--hr-nav-h) + 8px); }

/* ── Interest section ── */
.iz-sec {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 96px 52px 64px;
}

.iz-intro { max-width: 720px; margin-bottom: 48px; }

.iz-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.iz-title {
    font-size: clamp(34px, 4.6vw, 62px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1;
}

.iz-lead {
    margin-top: 20px;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 56ch;
}

.iz {
    max-width: 820px;
}

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

/* Progress rail — same language as the sequence ticks */
.iz-rail { margin-bottom: 40px; }

.iz-rail-line {
    position: relative;
    height: 1px;
    background: var(--border);
}
.iz-rail-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: var(--fg);
    transition: width 0.45s var(--ease-expo);
}

.iz-rail-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--border);
}
.iz-rail-ticks span {
    transition: color 0.3s ease;
}
.iz-rail-ticks span.is-active { color: var(--fg); }
.iz-rail-ticks span.is-past   { color: var(--muted); }

.iz-rail-count {
    margin-top: 14px;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Steps */
.iz-stage { min-height: 280px; }

.iz-step {
    border: 0;
    min-width: 0;
    padding: 0;
    margin: 0;
}
.iz-step[hidden] { display: none !important; }

.iz-step.is-on {
    display: block;
    animation: izIn 0.4s var(--ease-expo);
}
.iz[data-dir="back"] .iz-step.is-on { animation-name: izInBack; }

@keyframes izIn {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: none; }
}
@keyframes izInBack {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: none; }
}

.iz-q {
    display: flex;
    align-items: baseline;
    gap: 18px;
    float: none;
    width: 100%;
    padding: 0;
    margin: 0 0 12px;
    scroll-margin-top: calc(var(--hr-nav-h) + 24px);
}
.iz-num {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--gold);
    padding-top: 10px;
}
.iz-q-txt {
    display: block;
    font-size: clamp(22px, 2.8vw, 36px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.iz-hint {
    margin: 0 0 28px;
    padding-left: 42px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

/* Option rows — no icon tiles */
.iz-opts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.iz-opt--wide { grid-column: 1 / -1; }

.iz-opt {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 72px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.iz-opt input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.iz-opt-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 16px 20px 16px 22px;
    pointer-events: none;
}
.iz-opt-title {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--fg);
}
.iz-opt-sub {
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--muted);
}

.iz-opt:hover { border-color: #cfcfcf; }
.iz-opt:has(input:checked) {
    background: var(--fg);
    border-color: var(--fg);
}
.iz-opt:has(input:checked) .iz-opt-title { color: var(--bg); }
.iz-opt:has(input:checked) .iz-opt-sub   { color: rgba(255, 255, 255, 0.62); }

.iz-opt:active { transform: scale(0.985); }

.iz-area {
    font-family: inherit;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--fg);
    width: 100%;
    min-height: 160px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    resize: vertical;
    transition: border-color 0.2s ease;
}
.iz-area:focus {
    outline: none;
    border-color: var(--fg);
}
.iz-area.is-invalid { border-color: #d6453a; }

/* Step 3 fields */
.iz-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    padding-left: 0;
}
.iz-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.iz-field--wide { grid-column: 1 / -1; }
.iz-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fg);
}
.iz-field input,
.iz-field textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--fg);
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg);
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.iz-field textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.55;
}
.iz-field input:focus,
.iz-field textarea:focus {
    outline: none;
    border-color: var(--fg);
}
.iz-field input.is-invalid,
.iz-field textarea.is-invalid { border-color: #d6453a; }

.iz-err {
    margin: 16px 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #d6453a;
}

.iz-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
}

.iz-back {
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
    background: none;
    border: 0;
    padding: 14px 8px;
    min-height: 48px;
    transition: color 0.2s ease;
    touch-action: manipulation;
}
.iz-back:hover { color: var(--fg); }
.iz-back[hidden] { display: none !important; }

.iz-next {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 15px 28px;
    min-height: 52px;
    border: 0;
    border-radius: 100px;
    background: var(--fg);
    color: var(--bg);
    text-decoration: none;
    transition: opacity 0.2s ease;
    touch-action: manipulation;
}
.iz-next:hover { opacity: 0.82; }
.iz-next:disabled { opacity: 0.5; cursor: default !important; }
.iz-next svg { width: 16px; height: 16px; }

/* Done state */
.iz-done {
    max-width: 560px;
    padding: 8px 0 16px;
    animation: izIn 0.45s var(--ease-expo);
}
.iz-done .iz-num { display: block; margin-bottom: 16px; padding-top: 0; }
.iz-done h3 {
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}
.iz-done p {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 28px;
    max-width: 46ch;
}

.iz-skip {
    margin-top: 40px;
    font-size: 0.92rem;
    font-weight: 600;
}
.iz-skip a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.iz-skip a:hover { color: var(--fg); border-color: var(--fg); }

/* Footer */
.hr-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 32px 52px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--muted);
}
.hr-foot a { font-weight: 600; color: var(--fg); text-decoration: none; }

@media (max-width: 900px) {
    .seq--first .seq-intro { padding-top: 36px; }
}

@media (max-width: 720px) {
    .hr-page { --hr-nav-h: 64px; }
    .iz-sec { padding: 72px 24px 48px; }
    .iz-hint { padding-left: 0; }
    .iz-q { gap: 12px; }
    .iz-opts,
    .iz-opts--time,
    .iz-fields { grid-template-columns: 1fr; }
    .iz-field input,
    .iz-field textarea,
    .iz-area { font-size: 16px; }
    .iz-bar {
        position: sticky;
        bottom: 0;
        z-index: 6;
        margin-top: 16px;
        padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
        background: var(--bg);
        border-top: 1px solid var(--border);
    }
    .iz-next { flex: 1; justify-content: center; }
    .hr-foot { padding: 28px 24px; }
    #career { padding: 90px 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .iz-step.is-on,
    .iz-done { animation: none; }
    .iz-opt:active { transform: none; }
    .iz-rail-fill { transition: none; }
}
