/* LUXPRINT — design system + layout
   Paleta (ChatGPT spec 05): Ink Navy #182B35 · Warm White #F7F5F0 · Terracotta #D78B63 · Soft Gray #E7E4DE */

/* Fonty hostowane lokalnie (bez Google Fonts — RODO). Licencja SIL OFL 1.1: /fonts/OFL-*.txt. Źródło: @fontsource-variable. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'), url('/fonts/inter-latin-ext-wght-normal.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: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations'), url('/fonts/inter-latin-wght-normal.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; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations'), url('/fonts/plus-jakarta-sans-latin-ext-wght-normal.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: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations'), url('/fonts/plus-jakarta-sans-latin-wght-normal.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; }

:root {
  --navy: #182B35;
  --navy-700: #22394A;
  --navy-900: #101E26;
  --white: #F7F5F0;
  --paper: #FFFFFF;
  --terracotta: #D78B63;
  --terracotta-700: #97502F; /* tekst akcentowy na jasnych tłach: ≥ 4.9:1 (AA) */
  --terracotta-100: #F6E6DC;
  --gray: #E7E4DE;
  --gray-500: #5F6569;   /* tekst pomocniczy: ≥ 4.8:1 na wszystkich jasnych tłach */
  --gray-300: #A7ABAD;   /* tylko dekoracje (nie tekst) */
  --ink-60: #4A5A63;
  --success: #2F7A55;
  --success-100: #E3F1E9;
  --warning: #9A5B12;
  --warning-100: #FBEFD9;
  --danger: #B3261E;
  --danger-100: #FBE4E2;

  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(24, 43, 53, .06), 0 1px 1px rgba(24, 43, 53, .04);
  --shadow: 0 10px 30px -12px rgba(24, 43, 53, .22), 0 2px 6px rgba(24, 43, 53, .06);
  --shadow-magnet: 0 18px 30px -16px rgba(24, 43, 53, .45), 0 2px 4px rgba(24, 43, 53, .12);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-row: 68px;
  --header-h: 68px;            /* cała wysokość przyklejonego nagłówka (na telefonie + pasek sekcji) */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 4px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta-700); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--terracotta); border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-60); max-width: 36em; }
.muted { color: var(--ink-60); }
.small { font-size: .875rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--navy-700); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--ghost:hover { background: rgba(24, 43, 53, .06); }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--navy); }
.btn--light:hover { background: #fff; }
.btn--small { white-space: nowrap; min-height: 44px; padding: 8px 16px; font-size: .9rem; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.link-btn { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 600; }

/* ---------- Top info strip + header ---------- */
.topbar { background: var(--navy); color: var(--white); font-size: .82rem; }
.topbar .container { display: flex; gap: 18px; justify-content: center; align-items: center; min-height: 34px; flex-wrap: wrap; }
.topbar .container > span { display: inline-flex; align-items: center; gap: 6px; opacity: .92; }
.topbar b { color: #F2B796; font-weight: 600; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 245, 240, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--gray); }
.site-header .header-row, .site-header > .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-row); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-word { font-family: var(--font-head); font-size: 1.3rem; letter-spacing: .08em; line-height: 1; }
.brand-word b { font-weight: 800; }
.brand-word span { font-weight: 500; }
.main-nav { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px); }
.main-nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-60); }
.main-nav a:hover { color: var(--navy); }
@media (max-width: 1080px) { .main-nav { display: none; } }

/* ---------- Formularz zamówienia ---------- */
.price-terms { margin: 4px 0 12px; color: var(--ink-60); font-size: .98rem; }
.price-terms strong { color: var(--navy); font-weight: 700; }

.benefits { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; }
.benefits svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.intro-cta { display: none; }
@media (max-width: 980px) { .intro-cta { display: flex; margin-bottom: 22px; } }

/* Nawigacja mobilna (decyzja 17C): prosty pasek linków bez hamburgera — w przyklejonym nagłówku (etap A UI/UX). */
.mobile-nav { display: none; }
@media (max-width: 1080px) {
  :root { --header-h: calc(var(--header-row) + 44px); }
  .mobile-nav { display: block; border-top: 1px solid var(--gray); }
  .mobile-nav .container { display: flex; justify-content: flex-start; gap: 2px; overflow-x: auto; scrollbar-width: none; }
  .mobile-nav .container::-webkit-scrollbar { display: none; }
  .mobile-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: .88rem; font-weight: 600; color: var(--ink-60); text-decoration: none; white-space: nowrap; }
  .mobile-nav a:hover { color: var(--navy); }
}
@media (max-width: 380px) { .mobile-nav .container { justify-content: flex-start; } .mobile-nav a { padding: 0 8px; font-size: .84rem; } }
@media (max-width: 420px) { .site-header .btn--small { padding: 8px 12px; font-size: .85rem; } }

/* Galeria przykładowych projektów (ilustracje) */
.samples { position: relative; margin-top: 8px; }
.samples-stage { position: relative; aspect-ratio: 16 / 11; max-width: 560px; }
.magnet { position: absolute; width: 62%; border-radius: 3.2% / 4.8%; box-shadow: var(--shadow-magnet); background: #fff; transition: transform .35s ease; }
.magnet img { width: 100%; height: auto; border-radius: inherit; }
.magnet--1 { left: 0; top: 4%; transform: rotate(-5deg); z-index: 1; }
.magnet--2 { right: 0; top: 0; transform: rotate(4deg); z-index: 2; }
.magnet--3 { left: 18%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.samples-stage:hover .magnet--1 { transform: rotate(-7deg) translate(-6px, -4px); }
.samples-stage:hover .magnet--2 { transform: rotate(6deg) translate(6px, -4px); }
.samples-label { margin-top: 14px; font-size: .8rem; color: var(--gray-500); display: flex; align-items: center; gap: 8px; }
.samples-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gray-500); }
@media (max-width: 980px) { .samples { max-width: 520px; } }

/* ---------- Order card ---------- */
.order-card { background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid rgba(24, 43, 53, .06); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 12px); }
.order-card__head { padding: 22px 26px 18px; border-bottom: 1px solid var(--gray); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-card__head h2 { font-size: 1.35rem; margin: 0; }
.order-card__head .badge { font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--white); color: var(--ink-60); white-space: nowrap; }
.order-step { padding: 22px 26px; border-bottom: 1px solid var(--gray); }
.order-step:last-of-type { border-bottom: 0; }
.step-title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 1.02rem; font-weight: 700; font-family: var(--font-head); }
.step-num { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 700; flex: none; }
.step-title .step-hint { margin-left: auto; font-family: var(--font-body); font-weight: 500; font-size: .8rem; color: var(--gray-500); }
@media (max-width: 520px) { .order-card__head, .order-step { padding-left: 18px; padding-right: 18px; } }

/* Upload */
.dropzone { position: relative; display: grid; place-items: center; text-align: center; gap: 6px; padding: 30px 18px; border: 2px dashed #C9C4BA; border-radius: var(--radius); background: var(--white); cursor: pointer; transition: border-color .15s, background-color .15s; }
.dropzone:hover:not(:has(input:disabled)), .dropzone.is-dragover { border-color: var(--terracotta); background: var(--terracotta-100); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
/* Klik w ikonę/napisy trafia w pole pliku: obrócona ikona tworzy własną warstwę nad niewidocznym polem */
.dropzone > :not(input) { pointer-events: none; }
.dropzone:has(input:disabled), .dropzone input:disabled { cursor: default; }
.dropzone:focus-within { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.dropzone__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--navy); display: grid; place-items: center; margin-bottom: 6px; }
.dropzone__icon svg { width: 26px; height: 26px; }
.dropzone__title { font-weight: 700; font-family: var(--font-head); }
.dropzone__meta { font-size: .82rem; color: var(--ink-60); }

/* Cropper */
.cropper[hidden] { display: none; }
.crop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }

/* Bez wzoru przezroczystości wokół magnesu (3.12.2026) — jednolite tło; tło ramki = kolor pustych pasów („Cały obraz”). */
.crop-area { background: #F7F5F0; border-radius: var(--radius); padding: 18px; display: grid; place-items: center; }
.crop-frame { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; background: #fff; touch-action: none; cursor: grab; box-shadow: var(--shadow-magnet); user-select: none; -webkit-user-select: none; }
.crop-frame.is-portrait { aspect-ratio: 2 / 3; width: auto; height: min(360px, 60vh); }
.crop-frame.is-dragging { cursor: grabbing; }
.crop-frame img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; will-change: transform; }
.crop-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); background:
  linear-gradient(to right, transparent calc(33.333% - .5px), rgba(255,255,255,.45) calc(33.333% - .5px), rgba(255,255,255,.45) calc(33.333% + .5px), transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), rgba(255,255,255,.45) calc(66.666% - .5px), rgba(255,255,255,.45) calc(66.666% + .5px), transparent calc(66.666% + .5px)),
  linear-gradient(to bottom, transparent calc(33.333% - .5px), rgba(255,255,255,.45) calc(33.333% - .5px), rgba(255,255,255,.45) calc(33.333% + .5px), transparent calc(33.333% + .5px), transparent calc(66.666% - .5px), rgba(255,255,255,.45) calc(66.666% - .5px), rgba(255,255,255,.45) calc(66.666% + .5px), transparent calc(66.666% + .5px));
  opacity: 0; transition: opacity .2s; }
.crop-frame.is-dragging::after { opacity: 1; }
.crop-controls { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.crop-controls input[type="range"] { flex: 1; accent-color: var(--navy); }
.file-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 12px; font-size: .85rem; }
.file-info { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; gap: 8px; }
.file-info .file-name { min-width: 0; }
.file-info .upload-help { position: static; flex: none; }
@media (max-width: 600px) { .file-info { flex-basis: 100%; } }
.file-row .file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-60); }
.upload-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.upload-status.is-ok { color: var(--success); }
.upload-status.is-error { color: var(--danger); }
.upload-progress { height: 4px; background: var(--gray); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.upload-progress span { display: block; height: 100%; width: 0; background: var(--terracotta); transition: width .2s; }

/* Alerts */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .88rem; margin-top: 12px; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert--warning { background: var(--warning-100); color: var(--warning); }
.alert--error { background: var(--danger-100); color: var(--danger); }
.alert--info { background: var(--white); color: var(--ink-60); }
.alert[hidden] { display: none; }

/* Quantity */
.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--gray); border-radius: 999px; background: #fff; }
.stepper button { width: 46px; height: 46px; border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; border-radius: 50%; color: var(--navy); }
.stepper button:hover { background: var(--white); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper input { width: 76px; height: 46px; text-align: center; border: 0; font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; background: transparent; -moz-appearance: textfield; padding: 0; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 44px; min-width: 52px; border: 1.5px solid var(--gray); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: .88rem; font-weight: 600; cursor: pointer; color: var(--ink-60); }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.qty-hint { font-size: .82rem; color: var(--ink-60); margin: 10px 0 0; }

/* Form fields */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } .field--postal { grid-column: auto; } }
.field label { font-size: .86rem; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--gray-500); }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid #D6D2CA; background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #B9B4AA; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(24, 43, 53, .12); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.field-error { font-size: .8rem; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.checkbox.has-error { color: var(--danger); }

/* Summary */
.summary { background: var(--white); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 10px; font-size: .95rem; padding: 3px 0; }
.summary-row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; } /* kwota i waluta zawsze w jednej linii (review 18) */
@media (max-width: 400px) { .summary-row--total { font-size: 1.15rem; } }
.summary-row--total { border-top: 1px solid var(--gray); margin-top: 8px; padding-top: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.legal-note { font-size: .82rem; line-height: 1.5; color: var(--ink-60); margin: 10px 0 0; }
.legal-note a { color: inherit; text-underline-offset: 2px; }
.pay-note { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-60); margin: 12px 0 0; }
.pay-note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.form-error { margin-bottom: 12px; }

/* Success */
.order-success { padding: 34px 26px 30px; text-align: center; }
.order-success[hidden] { display: none; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success-100); display: grid; place-items: center; margin: 0 auto 16px; }
.success-icon svg { width: 32px; height: 32px; }
.order-number { display: inline-block; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; letter-spacing: .02em; background: var(--white); padding: 10px 18px; border-radius: var(--radius-sm); margin: 6px 0 16px; user-select: all; }
.order-success .summary { text-align: left; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--paper { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--ink-60); font-size: 1.05rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 26px 24px; position: relative; }
.steps .num { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: #B86B45; /* 3.7:1 na tle karty (duży tekst ≥ 3:1) */ line-height: 1; margin-bottom: 14px; display: block; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-60); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.section-cta { margin-top: 32px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }


.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1020px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .uses { grid-template-columns: 1fr; } }
.use { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(24,43,53,.06); }
.use__visual { aspect-ratio: 3 / 2; background: var(--gray); display: grid; place-items: center; padding: 18px; }
.use__visual img { border-radius: 6px; box-shadow: var(--shadow-magnet); }
.use__visual--icon { background: var(--terracotta-100); }
.use__visual--icon svg { width: 72px; height: 72px; }
.use__body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.use__body h3 { font-size: 1.08rem; }
.use__body p { color: var(--ink-60); font-size: .95rem; flex: 1; }
.use__body a { font-weight: 700; font-size: .92rem; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.use__body a:hover { text-decoration: underline; text-underline-offset: 3px; }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--gray); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 0 20px; color: var(--ink-60); }
.faq .answer p:last-child { margin: 0; }

.final-cta { text-align: center; }
.final-cta .lead { margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(247, 245, 240, .78); padding: 56px 0 calc(32px + env(safe-area-inset-bottom)); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-grid p { max-width: 36em; margin: 0; }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer h3 { color: var(--white); font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; }
.footer-meta { display: flex; align-items: center; gap: 0 24px; flex-wrap: wrap; }
.footer-links { display: flex; align-items: center; gap: 0 16px; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.placeholder { opacity: .6; font-style: italic; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; padding: 48px var(--gutter) 80px; } /* wcześniej 0 po bokach — tekst dotykał krawędzi na telefonie */
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal ol, .legal ul { padding-left: 1.4em; }
.legal li { margin-bottom: .45em; }
.doc-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 12px; font-size: .92rem; }
.doc-meta dt { color: var(--ink-60); }
.doc-meta dd { margin: 0; font-weight: 600; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 24px; font-size: .9rem; }
.toc { background: var(--paper); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 8px; font-size: .92rem; }
.toc ol { margin: 0; columns: 2 220px; }
.legal-bases dt { font-weight: 700; margin-top: 10px; }
.legal-bases dd { margin: 2px 0 0; }
.table-scroll { overflow-x: auto; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 8px 0 16px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--gray); }
/* Tabela cen w zamrożonej treści regulaminu (bez klasy): na telefonie przewija się wewnątrz, bez poziomego przewijania strony. */
@media (max-width: 600px) {
  .legal > table:not(.legal-table) { display: block; max-width: 100%; overflow-x: auto; font-size: .85rem; }
  .legal > table:not(.legal-table) th, .legal > table:not(.legal-table) td { padding: 4px 6px; }
}
.pay-fallback { background: var(--warning-100); color: var(--warning); padding: 10px 14px; border-radius: var(--radius-sm); font-size: .92rem; }
mark.missing { background: var(--warning-100); color: var(--warning); padding: 0 4px; border-radius: 4px; font-weight: 600; }
@media print {
  .site-header, .doc-actions { display: none !important; }
  .legal { padding: 0; max-width: none; }
  body { background: #fff; }
  a { color: inherit; }
}
.draft-note { background: var(--warning-100); color: var(--warning); padding: 12px 16px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 24px; }
.draft-note--preview { border: 2px dashed currentColor; }

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

/* utility (zamiast stylów inline — CSP bez 'unsafe-inline') */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mark--dark { color: var(--navy); --mark-inner: var(--white); }
.mark--light { color: var(--white); --mark-inner: var(--navy); }
fieldset.order-step { border: 0; margin: 0; min-width: 0; border-bottom: 1px solid var(--gray); }
.submit-btn { margin-top: 18px; }
.samples-label--uses { margin-top: 18px; }
.success-label { margin-bottom: 4px; }
legend.step-title { padding: 0; width: 100%; float: left; } fieldset.order-step > *:not(legend) { clear: both; }
[hidden] { display: none !important; }
.step-title { flex-wrap: wrap; }
@media (max-width: 520px) { .step-hint--opt { display: none; } }
@media (max-width: 980px) { .samples-stage { max-width: 420px; margin: 0 auto; } .samples-label { justify-content: center; } }
.crop-frame.is-locked { cursor: progress; }
fieldset:disabled { opacity: .7; }
form[aria-busy="true"] .chip, form[aria-busy="true"] .stepper button { cursor: not-allowed; }
.brand svg.logo { width: auto; height: 42px; aspect-ratio: 242 / 64; }
@media (max-width: 400px) { .brand svg.logo { height: 36px; } }
/* Punkt odbioru: lista działa także bez mapy i z klawiatury. */
.point-search { display: flex; gap: .5rem; }
.point-search input { min-width: 0; flex: 1; }
.point-results { display: grid; gap: .5rem; max-height: 22rem; overflow-y: auto; }
.point-option { display: block; width: 100%; text-align: left; padding: .8rem; border: 1px solid #b7c2c8; border-radius: .5rem; background: #fff; color: #182b35; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.point-option:hover, .point-option:focus-visible { border-color: #182b35; background: #f7f5f0; }
#sum-point, .summary-row > span.delivery-point { min-width: 0; max-width: 65%; white-space: normal; overflow-wrap: anywhere; text-align: right; }
/* Punkt 27: podsumowanie bezpośrednio przed przyciskiem z obowiązkiem zapłaty i ekran rejestracji zamówienia. */
.summary-hint { font-size: .82rem; color: var(--ink-60); margin: 0 0 2px; }
.summary-hint:empty { display: none; }
.summary-row--point { border-top: 1px solid var(--gray); margin-top: 8px; padding-top: 8px; align-items: flex-start; }
.submit-btn .btn-label { white-space: normal; text-align: center; }
.success-notice { background: var(--warning-100); color: var(--warning); border-radius: var(--radius-sm); padding: 10px 14px; text-align: left; font-size: .9rem; }
.success-next { text-align: left; margin: 18px 0 12px; }
.success-next h3 { font-size: 1.05rem; margin: 0 0 8px; }
.next-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font-size: .95rem; }
.success-warn { text-align: left; background: var(--white); border-left: 3px solid var(--terracotta); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; }
.summary-row--total > span:first-child { line-height: 1.25; }

/* ===================== Etap A UI/UX (9.11.2026): oferta, formaty, cennik progowy ===================== */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.hero-text { position: sticky; top: calc(var(--header-h) + 24px); }
.hero-configurator { min-width: 0; display: grid; gap: 20px; scroll-margin-top: calc(var(--header-h) + 12px); }
.hero-configurator .product-intro h2 { margin: 0; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .hero-text { position: static; } }
.hero h1 { margin-bottom: 14px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 26px; }

.offer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1020px) { .offer { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .offer { grid-template-columns: 1fr; } }
.offer-card { background: var(--white); border: 1px solid var(--gray); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.offer-card h3 { margin: 0; font-size: 1.08rem; }
.offer-card p { margin: 0; color: var(--ink-60); font-size: .95rem; flex: 1; }
.offer-card__visual { width: 100%; aspect-ratio: 3 / 2; border-radius: var(--radius-sm); background: var(--gray); display: grid; place-items: center; padding: 14px; }
.offer-card__visual img { border-radius: 6px; box-shadow: var(--shadow-magnet); }
/* CMS: zdjęcie z biblioteki mieści się w polu 3:2 niezależnie od proporcji; karty „Wkrótce” ze zdjęciem — jasne tło i widoczne na telefonie */
.offer-card__visual { grid-template: minmax(0, 1fr) / minmax(0, 1fr); min-height: 0; } /* aspect-ratio bez minimalnej wysokości z treści */
.offer-card__visual img { max-width: 100%; max-height: 100%; width: auto; height: auto; min-height: 0; }
.offer-card--soon .offer-card__visual:has(img:not([hidden])) { background: var(--gray); }
.offer-card--soon { background: #F1EFEA; }
.offer-card--soon .offer-card__visual { background: repeating-linear-gradient(-45deg, #E7E4DE 0 10px, #EEEBE5 10px 20px); }
@media (max-width: 560px) { .offer-card--soon .offer-card__visual:not(:has(img:not([hidden]))) { display: none; } }
.state { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.state--on { background: var(--success-100); color: var(--success); }
.state--soon { background: var(--navy); color: var(--white); }
.tag { display: inline-block; font-family: var(--font-body); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--terracotta-100); color: var(--terracotta-700); vertical-align: middle; }

.package-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.package-option { display: grid; gap: 4px; min-height: 80px; padding: 12px 8px; border: 1.5px solid var(--gray); border-radius: var(--radius-sm); background: #fff; color: var(--navy); cursor: pointer; text-align: center; font-family: var(--font-body); }
.package-option strong { font-family: var(--font-head); font-size: 1rem; }
.package-option [data-package-price] { font-weight: 600; font-variant-numeric: tabular-nums; }
.package-option[aria-pressed="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.package-option:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }
.package-option:disabled { cursor: wait; }
/* Znacznik „Polecamy” na pakiecie 100 szt. (Łukasz 16.11.2026): pomarańczowa etykieta jak kroki konfiguratora. */
.package-option { position: relative; }
.package-badge { position: absolute; top: -11px; left: 50%; translate: -50% 0; rotate: -4deg; padding: 3px 9px 2px; border-radius: 6px; background: #e09a72; color: #0d1517; font-family: 'Anton', var(--font-head), sans-serif; font-weight: 400; font-size: 12px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; box-shadow: 2px 2px 0 #132528; pointer-events: none; }
.package-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--gray); }
.package-total strong { font-family: var(--font-head); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
#cennik { scroll-margin-top: calc(var(--header-h) + 20px); }
@media (max-width: 420px) { .package-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.format-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 380px) { .format-options { grid-template-columns: 1fr; } }
.format-option { position: relative; cursor: pointer; }
.format-option input { position: absolute; opacity: 0; inset: 0; }
.format-option > span { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border: 1.5px solid var(--gray); border-radius: var(--radius-sm); background: #fff; }
.format-option b { font-family: var(--font-head); }
.format-option small { color: var(--ink-60); font-size: .8rem; line-height: 1.35; }
.format-option input:checked + span { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--white); }
.format-option input:focus-visible + span { outline: 3px solid var(--terracotta); outline-offset: 2px; }

.crop-frame.is-square { aspect-ratio: 1 / 1; width: min(100%, 360px, 60vh); height: auto; }
/* Margines bezpieczeństwa 1 mm (1.12.2026): zawsze widoczny; odstęp od krawędzi ustawia app.js według obszaru druku. */
.crop-safe { position: absolute; inset: 1.667% 1.111%; border: 1.5px dashed rgba(255, 255, 255, .9); outline: 1px dashed rgba(24, 43, 53, .55); border-radius: 3px; pointer-events: none; z-index: 1; }
.crop-frame.is-circle .crop-safe { border-radius: 50%; box-shadow: 0 0 0 999px rgba(255, 255, 255, .55); }
.crop-fit-help { position: relative; display: inline-flex; }
.crop-fit-help__trigger { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 1px solid var(--gray-500); border-radius: 50%; background: transparent; color: var(--ink-60); cursor: help; }
.crop-fit-help__trigger:hover, .crop-fit-help__trigger:focus-visible { border-color: var(--navy); color: var(--navy); }
.crop-fit-help__trigger:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.crop-fit-help__trigger svg { width: 15px; height: 15px; }
.crop-fit-help__bubble { position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 8px); width: min(320px, calc(100vw - 36px)); padding: 10px 12px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; box-shadow: var(--shadow); font-size: .8rem; line-height: 1.45; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s ease, transform .15s ease; }
.crop-fit-help__bubble::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.crop-fit-help__bubble::after { content: ""; position: absolute; left: 50%; top: 100%; border: 6px solid transparent; border-top-color: var(--navy); transform: translateX(-50%); }
.crop-fit-help:not(.is-dismissed):hover .crop-fit-help__bubble, .crop-fit-help:not(.is-dismissed):focus-within .crop-fit-help__bubble { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.upload-help { align-items: center; gap: 6px; }
.upload-help .crop-fit-help__bubble { left: 0; width: min(320px, calc(100vw - 72px)); visibility: hidden; transform: translateY(4px); }
.upload-help .crop-fit-help__bubble::after { display: none; }
.upload-help:not(.is-dismissed):hover .crop-fit-help__bubble, .upload-help:not(.is-dismissed):focus-within .crop-fit-help__bubble { visibility: visible; transform: translateY(0); }
.upload-help .crop-fit-help__bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.upload-help .crop-fit-help__bubble a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.quality-help { flex: none; }
.quality-help__trigger { width: 24px; height: 24px; border: 0; border-radius: 4px; color: inherit; }
.quality-help__trigger svg { width: 22px; height: 22px; margin: 0; }
.quality-help .crop-fit-help__bubble { left: 0; width: min(320px, calc(100vw - 104px)); visibility: hidden; transform: translateY(4px); }
.quality-help .crop-fit-help__bubble::after { left: 12px; }
.quality-help:not(.is-dismissed):hover .crop-fit-help__bubble, .quality-help:not(.is-dismissed):focus-within .crop-fit-help__bubble { visibility: visible; transform: translateY(0); }
.invoice-choice { display: flex; align-items: center; gap: 8px; }
.invoice-help, .cart-help { flex: none; }
.invoice-help .crop-fit-help__bubble, .cart-help .crop-fit-help__bubble { left: 0; visibility: hidden; transform: translateY(4px); font-weight: 400; }
.invoice-help .crop-fit-help__bubble::after, .cart-help .crop-fit-help__bubble::after { left: var(--help-arrow-left, 12px); }
.invoice-help:not(.is-dismissed):hover .crop-fit-help__bubble, .invoice-help:not(.is-dismissed):focus-within .crop-fit-help__bubble, .cart-help:not(.is-dismissed):hover .crop-fit-help__bubble, .cart-help:not(.is-dismissed):focus-within .crop-fit-help__bubble { visibility: visible; transform: translateY(0); }
.quality-help.is-below .crop-fit-help__bubble, .invoice-help.is-below .crop-fit-help__bubble, .cart-help.is-below .crop-fit-help__bubble, .safe-help.is-below .crop-fit-help__bubble { top: calc(100% + 8px); bottom: auto; }
.quality-help.is-below .crop-fit-help__bubble::before, .invoice-help.is-below .crop-fit-help__bubble::before, .cart-help.is-below .crop-fit-help__bubble::before, .safe-help.is-below .crop-fit-help__bubble::before { top: auto; bottom: 100%; }
.quality-help.is-below .crop-fit-help__bubble::after, .invoice-help.is-below .crop-fit-help__bubble::after, .cart-help.is-below .crop-fit-help__bubble::after, .safe-help.is-below .crop-fit-help__bubble::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--navy); }
/* Dymek koszyka stoi przy nagłówku na górze karty (karta przycina zawartość) — zawsze otwiera się w dół. */
.cart-help .crop-fit-help__bubble { top: calc(100% + 8px); bottom: auto; }
.cart-help .crop-fit-help__bubble::before { top: auto; bottom: 100%; }
.cart-help .crop-fit-help__bubble::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--navy); }
/* Margines bezpieczeństwa zablokowany (16.11.2026): przycisk nieaktywny, dymek z informacją po najechaniu lub fokusie. */

.unit-line { margin: 12px 0 0; font-size: .95rem; }
.unit-line strong { font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.tier-hint { color: var(--navy); background: var(--terracotta-100); }
.tier-hint .link-btn { font-size: inherit; }
.ship-msg { font-weight: 600; color: var(--terracotta-700); }
.ship-msg.is-free { color: var(--success); }

/* ---------------------------------------------------------------- Dane do faktury (9.11.2026)
   Checkbox pod danymi do wysyłki rozwija kartę w formularzu (bez modala): delikatne tło, subtelna ramka,
   te same pola co w danych do wysyłki. Na telefonie pola jedno pod drugim (reguła .fields ≤ 520 px). */
.invoice { gap: 0; }
.purchase-type { padding-bottom: 16px; border-bottom: 1px solid var(--gray); }
.invoice-toggle { align-items: center; min-height: 44px; padding: 4px 0; font-weight: 600; font-size: .92rem; }
.invoice-toggle input { margin: 0; }
.invoice-toggle:hover span { text-decoration: underline; text-decoration-color: var(--gray-300); text-underline-offset: 3px; }
.invoice-toggle input:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.invoice-card {
  margin-top: 10px; padding: 18px 18px 20px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--gray);
}
.invoice-card[hidden] { display: none; }
.invoice-card__title { margin: 0 0 4px; font-family: var(--font-head); font-size: .98rem; font-weight: 700; }
.invoice-card__hint { margin: 0 0 14px; font-size: .86rem; color: var(--ink-60); }
.invoice-card .fields { gap: 14px; }
.invoice-field-hint { margin: -2px 0 0; font-size: .8rem; }
@media (max-width: 520px) { .invoice-card { padding: 16px 14px 18px; } }
@media (prefers-reduced-motion: no-preference) {
  .invoice-card:not([hidden]) { animation: invoice-in .18s ease-out; }
  @keyframes invoice-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
.summary-row--detail { align-items: flex-start; font-size: .9rem; }
.summary-row--detail > span:first-child { color: var(--ink-60); }
.summary-row > span.summary-detail { min-width: 0; max-width: 65%; white-space: normal; overflow-wrap: anywhere; text-align: right; font-variant-numeric: normal; }


/* ===== 38b: koszyk ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: var(--navy); margin-left: auto; }
.cart-link svg { width: 26px; height: 26px; }
.cart-link:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.cart-link:hover { background: var(--terracotta-100); }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--terracotta-700); color: #fff; font-size: .75rem; font-weight: 800; line-height: 20px; text-align: center; }
.site-header .header-row { gap: 12px; }
.cart-add { margin-top: 16px; display: grid; gap: 10px; }
.cart-edit-note { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--terracotta-100); color: var(--navy); font-size: .92rem; font-weight: 600; }
.cart-added:empty { display: none; }
.cart-added { padding: 12px 14px; border-radius: 12px; background: var(--success-100); color: var(--navy); }
.cart-added:focus { outline: none; }
.cart-added p { margin: 0 0 8px; font-weight: 600; }
.cart-added__actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Dwa przyciski równej szerokości: obok siebie albo (wąski ekran) jeden pod drugim; „Przejdź do koszyka” (główna akcja) zawsze pierwszy — po lewej / na górze, zgodnie z kolejnością klawiatury. */
.cart-added__actions > .btn { flex: 1 1 170px; justify-content: center; text-align: center; }
.cart-empty { margin: 0 0 8px; color: var(--gray-500); }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--gray); border-radius: 14px; background: var(--paper); }
.cart-item:focus { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.cart-item.is-editing { border-color: var(--terracotta); box-shadow: 0 0 0 2px var(--terracotta-100); }
.cart-item.is-expired { border-color: var(--danger); background: var(--danger-100); }
.cart-thumb { width: 84px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--gray); box-shadow: 0 1px 3px rgba(16, 30, 38, .18); }
.cart-thumb.is-portrait { width: 56px; height: 84px; justify-self: center; }
.cart-thumb.is-square { width: 72px; height: 72px; justify-self: center; }
.cart-item__body { min-width: 0; }
.cart-item__title { margin: 0; font-weight: 700; }
.cart-item__file { margin: 2px 0 6px; overflow-wrap: anywhere; }
.cart-item__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cart-item__pkg { font-size: .9rem; font-weight: 600; }
.cart-item__row select { min-height: 44px; padding: 6px 10px; border: 1px solid var(--gray-300); border-radius: 10px; background: #fff; font: inherit; max-width: 100%; }
.cart-item__price { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-item__error { margin: 6px 0 0; }
.cart-item__actions { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; }
.cart-item__actions .link-btn { min-height: 44px; }
.link-btn--danger { color: var(--danger); }
.cart-totals { margin-top: 14px; padding-top: 6px; }
.cart-note { margin: 12px 0 4px; }
/* 3.12.2026: „Dodaj kolejny projekt” jako duży przycisk na całą szerokość (jak „Zastosuj”), informacja o koszyku w dymku. */
.add-another { display: flex; width: 100%; min-height: 56px; margin-top: 18px; text-decoration: none; }
.step-title-row { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.step-title-row .step-title { margin: 0; }
/* Kod rabatowy (3.12.2026): zwinięty link, pole z „Dodaj” w jednym rzędzie; w karcie „Twoje zamówienie” na szerokim ekranie. */
.discount-slot:empty { display: none; }
.discount-box { margin: 4px 0 8px; }
.discount-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.discount-field label { display: block; margin: 6px 0; font-size: .85rem; font-weight: 600; }
.discount-input-row { display: flex; gap: 8px; }
.discount-input-row input { flex: 1; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1.5px solid #D6D2CA; border-radius: var(--radius-sm); font-size: 16px; }
.discount-apply { flex: none; min-height: 44px; padding: 0 18px; }
.discount-status { margin: 6px 0 0; }
.discount-status:empty { display: none; }
.discount-remove { margin-left: 6px; font-size: .85rem; }
.summary-lines { display: grid; gap: 2px; margin-bottom: 6px; }
.summary-row--line > span:first-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 400px) { .cart-item { grid-template-columns: 64px minmax(0, 1fr); } .cart-thumb { width: 64px; height: 43px; } .cart-thumb.is-portrait { width: 43px; height: 64px; } .cart-thumb.is-square { width: 56px; height: 56px; } }

/* Osobna finalizacja: pełne podsumowanie przy przycisku, krótkie kwoty obok na desktopie. */
.checkout-page { padding-top: 36px; padding-bottom: 64px; }
.checkout-page h1 { margin-bottom: 28px; scroll-margin-top: calc(var(--header-h) + 24px); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 28px; align-items: start; }
.checkout-layout form { min-width: 0; }
.checkout-totals { border: 1px solid var(--gray); background: var(--paper); border-radius: var(--radius-lg); padding: 24px; }
.checkout-totals h2 { font-size: 1.15rem; margin-bottom: 16px; }
.checkout-totals .summary-row { gap: 16px; flex-wrap: wrap; }
.checkout-totals .summary-row strong { margin-left: auto; }
.checkout-totals #side-discount-row { gap: 8px; }
.checkout-totals .summary-row--total { font-size: 1.12rem; }
.checkout-page .order-success { max-width: 760px; margin: auto; }
.pending-order { margin-bottom: 24px; }
.pending-order h2 { font-size: 1.15rem; }
.checkout-page .form-error { margin: 18px; }
.checkout-page .form-error:focus { outline: 3px solid var(--terracotta); outline-offset: 3px; }
@media (min-width: 981px) and (min-height: 750px) { .checkout-totals { position: sticky; top: calc(var(--header-h) + 24px); } }
@media (max-width: 980px) { .checkout-layout { grid-template-columns: minmax(0, 1fr); } .checkout-totals { display: none; } }

/* Powiadomienie koszyka */
.toast-region { position: fixed; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; right: 12px; z-index: 100; display: flex; justify-content: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 12px; max-width: 560px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--navy); color: #fff; box-shadow: var(--shadow); font-size: .9rem; pointer-events: auto; }
.toast[hidden] { display: none; }
.toast__message { min-width: 0; overflow-wrap: anywhere; }
.toast__close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 6px; background: transparent; color: inherit; font-size: 1.5rem; cursor: pointer; }
.toast__close:hover { background: rgba(255, 255, 255, .15); }
.toast__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ===== 38c: dane do przelewu (ekran po zamówieniu i /platnosc.html) ===== */
.pay-status { display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: var(--warning-100); color: var(--warning); font-weight: 800; font-size: .9rem; }
.pay-box { margin: 18px 0; padding: 16px; border: 2px solid var(--terracotta); border-radius: 14px; background: #fff; text-align: left; }
.pay-box h2, .pay-box h3 { margin: 0 0 10px; font-size: 1.1rem; }
.pay-data { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 8px 14px; margin: 0 0 10px; }
.pay-data dt { color: var(--gray-500); font-size: .9rem; padding-top: 10px; }
.pay-data dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pay-value { font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.copy-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--navy); cursor: pointer; }
.copy-btn svg { width: 22px; height: 22px; }
.copy-btn:hover { background: var(--terracotta-100); }
.copy-btn.is-copied { background: #E8F3EC; }
.copy-btn:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
@media (max-width: 520px) { .pay-data { grid-template-columns: 1fr; } .pay-data dt { padding-top: 4px; } }
.pay-page { max-width: 720px; padding-top: 32px; padding-bottom: 48px; }
.pay-page .summary-row--point > span:last-child { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: right; }
.payment-header .brand img { max-width: 38vw; height: auto; }
.payment-header .btn { flex: none; }

.test-mode-banner { margin: 16px 0; padding: 16px; text-align: center; border: 2px solid #9a5a00; border-radius: 12px; background: #fff4d6; color: #513000; font-weight: 600; overflow-wrap: anywhere; }

/* ===== Kontakt (/kontakt) — układ jak strona zamówienia, jedna karta formularza ===== */
.contact-page { padding-top: 36px; padding-bottom: 64px; }
.contact-page h1 { margin-bottom: 8px; scroll-margin-top: calc(var(--header-h) + 24px); }
.contact-page .lead { margin: 0 0 28px; }
.contact-card { max-width: 640px; padding: 26px; }
.contact-card .form-error { margin: 0 0 18px; }
.contact-card .field-hint { margin: 0; }
.contact-card .field textarea { min-height: 160px; }
.contact-submit { margin-top: 22px; }
.contact-success h2 { font-size: 1.35rem; }
.contact-success:focus { outline: none; }
@media (max-width: 520px) { .contact-card { padding: 22px 18px; } }

/* ---------- Nagłówek strony płatności (telefon) ---------- */
@media (max-width: 560px) {
  .site-header.payment-header > .container { gap: 10px; }
  .payment-header .brand img { width: 116px; height: auto; }
}

/* CMS etap C: komunikat na stronie głównej (edytowany w panelu) i pasek podglądu szkicu (tylko w panelu) */
.site-notice { margin: 0; padding: 12px 16px; background: #FBF4E4; color: var(--navy); text-align: center; font-weight: 600; font-size: .95rem; border-bottom: 1px solid #EADFC4; white-space: pre-line; }
.site-notice[hidden] { display: none; }
.cms-preview-bar { position: sticky; top: 0; z-index: 1000; padding: 10px 16px; background: #C9A227; color: #101E26; text-align: center; font-weight: 700; font-size: .9rem; }

/* Dane sprzedawcy i kontakt (audyt S3) */
.footer-seller { font-style: normal; font-size: .875rem; line-height: 1.6; max-width: 48em; }
.footer-seller a { text-decoration: underline; text-underline-offset: 2px; }
.contact-seller { margin-bottom: 24px; }
.contact-seller h2 { font-size: 1.1rem; margin: 0 0 12px; }
.seller-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.seller-list dt { font-weight: 600; }
.seller-list dd { margin: 0; overflow-wrap: anywhere; }
.seller-list a { display: inline-flex; align-items: center; min-height: 24px; }

/* Ikona informacji (29.11.2026): czarny kwadrat z pomarańczowym „i”, w stylu numerków kroków. */
.crop-fit-help__trigger:not(.quality-help__trigger) { width: 22px; height: 22px; border: 0; border-radius: 5px; background: #132528; color: #e09a72; box-shadow: 2px 2px 0 #e09a72; rotate: -6deg; transition: background-color .2s, color .2s; }
.crop-fit-help__trigger:not(.quality-help__trigger) svg { width: 16px; height: 16px; }
.crop-fit-help__trigger:not(.quality-help__trigger):hover, .crop-fit-help__trigger:not(.quality-help__trigger):focus-visible, .crop-fit-help__trigger:not(.quality-help__trigger)[aria-expanded="true"] { background: #e09a72; color: #132528; box-shadow: 2px 2px 0 #132528; }
.crop-fit-help__trigger:not(.quality-help__trigger):focus-visible { outline: 3px solid #132528; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .crop-fit-help__trigger:not(.quality-help__trigger) { transition: none; } }

/* ---------------------------------------------------------------- zestaw magnesów akrylowych (1.12.2026) */
.set-editor { margin-bottom: 14px; }
.set-editor__count { font-weight: 600; margin: 0 0 8px; }
.set-progress-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.set-progress__num { font-weight: 700; font-size: .9rem; color: var(--navy); }
.set-progress { height: 6px; border-radius: 999px; background: var(--gray); overflow: hidden; margin: 0 0 12px; }
.set-progress span { display: block; height: 100%; width: 0; background: var(--terracotta); transition: width .2s ease; }
@media (prefers-reduced-motion: reduce) { .set-progress span { transition: none; } }
.set-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 14px; }
.set-slots > .set-slot { flex: 0 0 calc((100% - 30px) / 4); }
.set-slot { position: relative; aspect-ratio: 1 / 1; border: 1.5px dashed #b9b4aa; border-radius: 10px; background: #f7f6f3 center / cover no-repeat; color: var(--navy); overflow: hidden; }
.set-slots.is-rect .set-slot { aspect-ratio: 82 / 52; }
.set-slots.is-rect .set-slot.is-portrait { aspect-ratio: 52 / 82; }
.set-slots { align-items: flex-start; }
/* Kadr w miniaturze: przeciągnięcie myszą przesuwa zdjęcie; Ctrl/⌘ + kółko i klawisze +/− powiększają. */
.set-slot.is-filled:not(.is-busy) { cursor: grab; touch-action: pan-y; }
.set-slot.is-dragging { cursor: grabbing; }
.set-slot.is-filled:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.shrink-dialog__actions .btn { min-height: 44px; }
.set-slot.is-filled { border-style: solid; border-color: var(--gray); box-shadow: 0 2px 6px rgba(16, 30, 38, .12); }
.set-slot.is-circle { border-radius: 50%; }
.set-slot[aria-current="true"] { outline: 3px solid var(--navy); outline-offset: 2px; }
.set-slot__num { position: absolute; left: 7px; top: 5px; z-index: 2; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--navy); font-size: .75rem; font-weight: 800; line-height: 20px; text-align: center; }
.set-slot.is-circle .set-slot__num { left: 50%; top: 6px; transform: translateX(-50%); }
.set-slot__add { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; width: 100%; padding: 8px; border: 0; background: transparent; color: var(--navy); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.set-slot__add svg { width: 28px; height: 28px; }
.set-slot__add:hover, .set-slot__add:focus-visible { background: #fff; }
.set-slot__add:focus-visible, .set-slot__tool:focus-visible { outline: 3px solid var(--terracotta); outline-offset: -3px; }
.set-slot__tools { position: absolute; right: 6px; top: 6px; z-index: 2; display: flex; gap: 4px; padding: 3px; border-radius: 8px; background: rgba(16, 30, 38, .78); }
.set-slot.is-circle .set-slot__tools { top: auto; bottom: 10px; right: 50%; transform: translateX(50%); }
.set-slot__tool { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }
.set-slot__tool:hover { background: rgba(255, 255, 255, .18); }
.set-slot__tool svg { width: 18px; height: 18px; }
.set-slot__mark { position: absolute; right: 6px; bottom: 6px; z-index: 2; min-width: 22px; height: 22px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 700; line-height: 22px; text-align: center; padding: 0 6px; }
.set-slot.is-dup .set-slot__mark { background: var(--terracotta); }
.set-slot__state { position: absolute; left: 6px; bottom: 6px; z-index: 2; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: #8a3b12; font-size: .72rem; font-weight: 700; }
.set-slot.is-error { border-color: #b3261e; border-style: solid; }
.set-slot.is-error .set-slot__state { color: #b3261e; }
.set-slot.is-busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .55); }
.set-slot.is-dragover { border-color: var(--navy); border-style: solid; background-color: #fff; }
.set-slots.is-dragover { outline: 2px dashed var(--navy); outline-offset: 4px; border-radius: 12px; }
@media (max-width: 420px) { .set-slots > .set-slot { flex-basis: calc((100% - 10px) / 2); } }
.crop-dialog { width: min(640px, calc(100vw - 16px)); max-height: calc(100vh - 16px); border: 0; border-radius: 14px; padding: 16px; box-shadow: 0 20px 60px rgba(16, 30, 38, .35); }
.crop-dialog::backdrop { background: rgba(16, 30, 38, .6); }
.crop-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.crop-dialog__title { margin: 0; }
.crop-dialog .cropper { margin: 0; }
.set-editor__actions { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 18px; } /* odstęp od komunikatu pod przyciskami (cień przycisku 4–6 px) */
.set-editor__actions .set-add-many { grid-column: 2; justify-self: center; }
.set-clear { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.set-clear svg { width: 18px; height: 18px; flex: none; }
.set-clear[hidden] { display: none; }
@media (max-width: 520px) { .set-editor__actions { grid-template-columns: 1fr; } .set-editor__actions .set-add-many, .set-clear { grid-column: 1; } .set-clear { justify-self: end; } }
.set-add-many { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; white-space: normal; max-width: 100%; text-align: center; }
.set-add-many svg { width: 18px; height: 18px; flex: none; }
.set-add-many[hidden] { display: none; }
.set-dup { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #fff4ec; border: 1px solid var(--terracotta); }
.set-dup p { margin: 0 0 6px; }
.shrink-dialog { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); border: 0; border-radius: 14px; padding: 20px; box-shadow: 0 20px 60px rgba(16, 30, 38, .35); }
.shrink-dialog::backdrop { background: rgba(16, 30, 38, .55); }
.shrink-dialog__title { margin: 0 0 8px; }
.shrink-pick { border: 0; padding: 0; margin: 12px 0 6px; }
.shrink-pick .set-slot { display: block; }
.shrink-pick .set-slot input { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; accent-color: var(--navy); }
.shrink-pick .set-slot:has(input:checked) { outline: 3px solid var(--navy); outline-offset: 2px; }
.shrink-pick .set-slot:has(input:not(:checked)) { opacity: .55; }
.shrink-pick .set-slot:has(input:focus-visible) { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.shrink-dialog__count { font-weight: 600; }
.shrink-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.edit-load { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fff4ec; border: 1px solid var(--terracotta); font-weight: 600; }
.edit-load[hidden] { display: none; }
.edit-load p { margin: 0; }
.confirm-dialog { width: min(460px, calc(100vw - 24px)); }
/* Formaty: wizytówki — ikona i opis na środku kafelka; akrylowe — trzy kafelki w rzędzie, ikona nad opisem. */
.format-options.is-acrylic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Krok 3 — układ (2.12.2026): plik na górze, podgląd, pasek narzędzi, legenda marginesu. */
.cropper .file-row { margin: 0 0 12px; padding: 10px 12px; border: 1.5px solid var(--gray); border-radius: var(--radius); background: #fff; flex-wrap: nowrap; }
.file-row__icon { width: 22px; height: 22px; flex: none; color: var(--ink-60); }
.cropper .file-info { flex-direction: column; align-items: flex-start; gap: 2px; flex-basis: auto; }
.file-info__line { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.cropper .upload-status { font-size: .8rem; }
.cropper .upload-status:empty { display: none; }
.cropper .upload-progress { margin: -6px 0 12px; }
.crop-frame { position: relative; }
.crop-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .8rem; font-weight: 600; white-space: nowrap; pointer-events: none; transition: opacity .3s; }
.crop-hint svg { width: 14px; height: 14px; }
.crop-frame.is-used .crop-hint, .crop-frame.is-locked .crop-hint { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .crop-hint { transition: none; } }
.crop-caption { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 8px 0 0; text-align: center; font-size: .85rem; color: var(--ink-60); }
/* Jeden pasek (decyzja Łukasza 3.12.2026): „Obróć”, „Wypełnij” albo „Cały obraz”, powiększenie; w wąskim kadrze suwak
   przechodzi do drugiego rzędu — kolejność wizualna = kolejność w dokumencie (Tab). */
.cropper .crop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 12px; margin: 14px 0 0; padding: 0; border: 0; }
.cropper .crop-controls { flex: 1 1 170px; min-width: 0; margin: 0; gap: 2px; }
.cropper .crop-controls input[type="range"] { min-width: 0; }
.crop-rotate, .crop-fit-toggle { flex: none; }
.crop-rotate svg { width: 18px; height: 18px; }
.crop-zoom-btn { flex: none; display: grid; place-items: center; width: 40px; height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--ink-60); cursor: pointer; }
.crop-zoom-btn:hover { color: var(--ink); background: rgba(19, 37, 40, .06); }
.crop-zoom-btn:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 0; }
.crop-zoom-btn svg { width: 20px; height: 20px; }
.btn.btn--icon { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; }
.btn.btn--icon svg { width: 20px; height: 20px; }
/* Margines bezpieczeństwa: opis w dymku przy podpisie formatu (3.12.2026); linia przerywana zostaje na podglądzie. */
/* Ikona stoi na końcu podpisu — dymek otwiera się w lewo od niej, bez wychodzenia poza ekran telefonu. */
.safe-help .crop-fit-help__bubble { left: auto; right: -8px; width: min(320px, calc(100vw - 72px)); text-align: left; font-weight: 400; visibility: hidden; transform: translateY(4px); }
.safe-help .crop-fit-help__bubble::after { left: auto; right: 13px; transform: none; }
.safe-help:not(.is-dismissed):hover .crop-fit-help__bubble, .safe-help:not(.is-dismissed):focus-within .crop-fit-help__bubble { visibility: visible; transform: translateY(0); }
.safe-help .crop-fit-help__bubble strong { color: inherit; }
.cropper .alert { margin-top: 10px; }
.cropper { container-type: inline-size; }
/* R122-31: status przesyłania zawija się zamiast wchodzić pod przycisk; w bardzo wąskim kadrze „Zmień plik” pod nazwą. */
.cropper .upload-status { white-space: normal; }
@container (max-width: 400px) {
  .cropper .file-row { flex-wrap: wrap; }
  .cropper .file-info { flex: 1 1 calc(100% - 40px); }
  .cropper #change-photo { margin-left: 32px; }
}
/* Kolor pustych pasów (decyzja Łukasza 3.12.2026): kółka pod podglądem, w prawym rogu szarego pola, tylko gdy pasy są
   widoczne — nie zasłaniają podglądu także przy poziomej ramce na całą szerokość. */
.crop-fill { justify-self: end; margin: 10px -8px -8px 0; padding: 4px 6px; border-radius: 999px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.crop-fill__group { display: flex; gap: 2px; }
.crop-fill__group label { position: relative; display: grid; place-items: center; width: 32px; height: 32px; cursor: pointer; }
.crop-fill__group input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.crop-fill__swatch { width: 22px; height: 22px; border-radius: 50%; background: var(--swatch, #fff); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }
.crop-fill__swatch--black { --swatch: #000; }
.crop-fill__group input:checked + .crop-fill__swatch { outline: 2px solid var(--navy); outline-offset: 2px; }
.crop-fill__group input:focus-visible + .crop-fill__swatch { outline: 3px solid var(--terracotta); outline-offset: 2px; }
/* R122-28: wiersz pliku jest na górze kroku i okna kadru — informacja o przesyłaniu otwiera się w dół, na szerokość wiersza. */
.cropper .file-row { position: relative; }
.cropper .file-info { position: static; }
.cropper .upload-help .crop-fit-help__bubble { left: 0; right: 0; width: auto; top: calc(100% + 6px); bottom: auto; }
.cropper .upload-help .crop-fit-help__bubble::before { top: auto; bottom: 100%; }
