* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  :root {
    --bg: #f6f0e8;
    --paper: #fffdf9;
    --text: #2d2721;
    --soft: #71675d;
    --muted: #9b9085;
    --gold: #a88755;
    --gold-soft: #d9c7ad;
    --good-bg: #edf5ec;
    --good: #436949;
    --bad-bg: #f8ebe7;
    --bad: #9f4539;
    --info-bg: #f2eadf;
    --shadow: 0 24px 70px rgba(55, 43, 31, .10);
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  
  button,
  input {
    font: inherit;
  }
  
  .welcome {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    display: grid;
    place-items: center;
    text-align: center;
    isolation: isolate;
  }
  
  .welcome-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -3;
    opacity: 0;
    transform: scale(1.12);
    filter: blur(12px) saturate(1);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .welcome-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: rgba(246, 240, 232, 0);
    transition: background 0.6s ease;
  }
  
  .welcome-text {
    max-width: 900px;
    padding: 32px 22px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  body.image-visible .welcome-photo {
    opacity: 1;
    transform: scale(1.02);
    filter: blur(0) saturate(1);
  }
  
  body.image-visible .welcome-shade {
    background: rgba(246, 240, 232, 0.08);
  }
  
  body.image-hidden .welcome-photo {
    opacity: 0;
    transform: scale(1.10);
    filter: blur(6px) saturate(0.6);
    transition-duration: 0.6s;
  }
  
  body.image-hidden .welcome-shade {
    background: rgba(246, 240, 232, 0.72);
  }
  
  body.text-visible .welcome-text {
    opacity: 1;
    transform: translateY(0);
  }
  
  .overline,
  .eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .76rem;
    font-weight: 600;
  }
  
  .welcome h1 {
    margin-top: 16px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    font-size: clamp(4rem, 13vw, 9rem);
    line-height: .92;
    letter-spacing: -.035em;
  }
  
  .welcome h1 span {
    color: var(--gold);
  }
  
  .lead {
    max-width: 560px;
    margin: 22px auto 0;
    color: var(--soft);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 300;
  }
  
  .scroll-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 38px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--text);
    color: #fffaf2;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
    transition: transform .25s ease, opacity .25s ease;
  }
  
  .scroll-link:hover {
    transform: translateY(-2px);
    opacity: .92;
  }
  
  .page {
    padding: 74px 20px 56px;
  }
  
  .intro {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
  }
  
  .intro h2 {
    margin-top: 14px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    line-height: 1;
    letter-spacing: -.03em;
  }
  
  .intro p:not(.eyebrow) {
    max-width: 640px;
    margin: 20px auto 0;
    color: var(--soft);
    font-weight: 300;
    font-size: 1.04rem;
  }
  
  .upload-box {
    width: min(920px, 100%);
    margin: 0 auto;
    background: var(--paper);
    border-radius: 34px;
    padding: clamp(20px, 5vw, 44px);
    box-shadow: var(--shadow);
  }
  
  .dropzone {
    min-height: 230px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 34px 22px;
    border-radius: 28px;
    background: #f6f0e8;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease;
  }
  
  .dropzone:hover,
  .dropzone.dragover {
    background: #f1e8dc;
    transform: translateY(-2px);
  }
  
  .file-input-native {
    position: fixed;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0.01;
  }
  
  .drop-icon {
    display: grid;
    place-items: center;
    inline-size: 62px;
    block-size: 62px;
    border-radius: 50%;
    background: #fffaf2;
    color: var(--gold);
    font-size: 2.1rem;
    font-weight: 300;
    line-height: 1;
  }
  
  .drop-title {
    margin-top: 8px;
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  .drop-hint {
    max-width: 520px;
    color: var(--muted);
    font-size: .93rem;
  }
  
  .file-list {
    margin-top: 22px;
    display: grid;
    gap: 9px;
  }
  
  .file-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
    border-radius: 18px;
    background: #f8f3ec;
  }
  
  .file-name {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500;
  }
  
  .file-size {
    color: var(--muted);
    font-size: .88rem;
  }
  
  .remove-file {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 4px;
  }
  
  .remove-file:hover {
    color: var(--bad);
  }
  
  .upload-btn {
    width: 100%;
    min-height: 62px;
    margin-top: 24px;
    border: 0;
    border-radius: 999px;
    background: var(--gold);
    color: #fffaf2;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.02rem;
    transition: transform .25s ease, opacity .25s ease;
  }
  
  .upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
  }
  
  .upload-btn:disabled {
    cursor: not-allowed;
    opacity: .56;
  }
  
  .progress {
    margin-top: 22px;
  }
  
  .progress-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eee2d3;
  }
  
  .progress-bar span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: var(--gold);
    transition: width .2s ease;
  }
  
  .progress p {
    margin-top: 9px;
    color: var(--muted);
    font-size: .92rem;
  }
  
  .messages {
    margin-top: 18px;
    display: grid;
    gap: 8px;
  }
  
  .message {
    padding: 12px 15px;
    border-radius: 18px;
    font-size: .94rem;
  }
  
  .message.good {
    background: var(--good-bg);
    color: var(--good);
  }
  
  .message.bad {
    background: var(--bad-bg);
    color: var(--bad);
  }
  
  .message.info {
    background: var(--info-bg);
    color: var(--soft);
  }
  
  .footer {
    margin-top: 54px;
    text-align: center;
    color: var(--muted);
    font-size: .92rem;
  }
  
  @media (max-width: 700px) {
    .welcome {
      min-height: 100svh;
    }
  
    .welcome h1 {
      font-size: clamp(3.8rem, 18vw, 6rem);
    }
  
    .page {
      padding: 54px 14px 40px;
    }
  
    .upload-box {
      border-radius: 28px;
    }
  
    .dropzone {
      min-height: 210px;
      border-radius: 24px;
    }
  
    .file-item {
      grid-template-columns: 1fr auto;
    }
  
    .file-size {
      grid-column: 1 / 2;
    }
  
    .remove-file {
      grid-column: 2 / 3;
      grid-row: 1 / 3;
    }
  }
/* Statusy pojedynczych plików podczas wysyłania */
.file-item {
  position: relative;
  overflow: hidden;
}

.file-item.is-uploading,
.file-item.is-waiting,
.file-item.is-done,
.file-item.is-error {
  padding-bottom: 28px;
}

.file-status {
  color: var(--muted);
  font-size: .82rem;
  white-space: nowrap;
}

.file-item.is-done .file-status {
  color: var(--good);
}

.file-item.is-error .file-status {
  color: var(--bad);
}

.file-item.is-uploading .file-status {
  color: var(--gold);
}

.file-progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 5px;
  border-radius: 999px;
  background: #eee2d3;
  overflow: hidden;
}

.file-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
  transition: width .18s ease;
}

.file-item.is-done .file-progress span {
  background: var(--good);
}

.file-item.is-error .file-progress span {
  background: var(--bad);
}

@media (max-width: 700px) {
  .file-status {
    grid-column: 1 / 2;
    font-size: .8rem;
  }
}

/* Wyróżniona instrukcja wyboru wielu plików */
.drop-help {
  display: block;
  max-width: 620px;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: #fff7e8;
  color: #6f5634;
  font-size: .9rem;
  line-height: 1.55;
  box-shadow: inset 0 0 0 1px rgba(168, 135, 85, .18);
}

.drop-help strong {
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 700px) {
  .drop-help {
    max-width: 320px;
    padding: 11px 14px;
    font-size: .84rem;
  }
}
