@font-face {
    font-family: "Mulish";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url(/start/fonts/mulish-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Mulish";
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
    src: url(/start/fonts/mulish-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Kolory i kształty jak na usterka.pl */
:root {
    --blue: #0066D6;
    --blue-700: #0052AD;
    --blue-soft: #E5F2FF;
    --ink: #15191D;
    --text: #3A434C;
    --mute: #5C6773;
    --line: #DDE2E8;
    --soft: #F4F6F9;
    --dot: #FF7A00;
    --white: #FFFFFF;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--white);
    color: var(--ink);
    font-family: Mulish, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* Pasek ładowania: od kliknięcia do pokazania następnej strony */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    height: 3px;
    overflow: hidden;
    background: var(--blue-soft);
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}
.loading-bar::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 40%;
    border-radius: 3px;
    background: var(--blue);
    animation: slide 1.1s cubic-bezier(.4, 0, .2, 1) infinite;
}
.is-loading .loading-bar { opacity: 1; }

@keyframes slide {
    from { transform: translateX(-100%); }
    to { transform: translateX(260%); }
}

.shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.content {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
}

/* Dwie strefy na jednym ekranie: klient u góry, fachowiec przyklejony do dołu */
.client { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; padding: 16px 0 24px; }

.top {
    display: flex;
    align-items: center;
    min-height: 52px;
}
.logo { width: 120px; height: auto; display: block; }

h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
}
h1 .mark { display: block; color: var(--blue); }

.lead { margin: 8px 0 20px; color: var(--text); font-size: 17px; }

.search {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
}

.field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: var(--soft);
    cursor: text;
    transition: border-color .15s ease, background-color .15s ease;
}
.field:focus-within { border-color: var(--blue); background: var(--white); }
.field svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--mute); }
.field-text { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.field label { font-size: 13px; font-weight: 700; color: var(--mute); line-height: 1.2; }

.field input {
    width: 100%;
    padding: 2px 0 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    -webkit-appearance: none;
    appearance: none;
}
.field input::placeholder { color: #8A949E; font-weight: 500; }
.field input:focus { outline: none; }
.field input::-webkit-search-cancel-button { -webkit-appearance: none; }

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    background: var(--blue);
    color: var(--white);
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--blue-700); }
.btn:active { transform: scale(.985); }
.btn:focus-visible { outline: 3px solid rgba(0, 102, 214, .35); outline-offset: 2px; }
.btn svg { width: 20px; height: 20px; }

/* Stan ładowania przycisku: spinner zamiast strzałki, bez drugiego kliknięcia */
.btn .spinner { display: none; }
.btn.is-busy { pointer-events: none; background: var(--blue-700); }
.btn.is-busy .arrow { display: none; }
.btn.is-busy .spinner { display: block; }

.spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, .35);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.worker {
    padding: 16px;
    border-radius: 20px;
    background: var(--soft);
}
.worker-label { margin: 0 0 10px; color: var(--mute); font-size: 14px; font-weight: 700; }

.choice {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
    transition: transform .1s ease, box-shadow .15s ease;
}
.choice:hover { box-shadow: 0 0 0 2px var(--blue); }
.choice:focus-visible { outline: 3px solid rgba(0, 102, 214, .45); outline-offset: 2px; }
.choice:active { transform: scale(.985); }

.choice-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-soft);
    color: var(--blue);
}
.choice-icon svg { width: 22px; height: 22px; }

.choice-text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.choice-title { font-size: 17px; font-weight: 800; line-height: 1.25; }
.choice-desc { font-size: 14px; color: var(--text); }

.choice-end { flex: 0 0 auto; display: flex; color: var(--blue); }
.choice-end svg { width: 22px; height: 22px; }
.choice .spinner { display: none; border-color: var(--blue-soft); border-top-color: var(--blue); }
.choice.is-busy .spinner { display: block; }
.choice.is-busy .arrow { display: none; }

.worker-job {
    display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 12px 0 0;
    color: var(--text); font-size: 15px; text-decoration: none;
}
.worker-job strong { color: var(--blue); }
.worker-job:hover strong, .worker-job:focus-visible strong { text-decoration: underline; }

@media (min-width: 768px) {
    .shell { align-items: center; }
    h1 { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    .loading-bar::before { animation-duration: 2.5s; }
}
