/* Przymierzalnia · Styl Sapierzyńska – czerń, metaliczne złoto, Cormorant Garamond + Manrope (jak strona salonu). */

/* ---------- fonty (lokalnie, łacina + polskie znaki) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonty/cormorant-garamond-latin-500-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: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonty/cormorant-garamond-latin-ext-500-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: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonty/cormorant-garamond-latin-600-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: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonty/cormorant-garamond-latin-ext-600-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: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url(/fonty/cormorant-garamond-latin-500-italic.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: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap;
  src: url(/fonty/cormorant-garamond-latin-ext-500-italic.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: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonty/manrope-latin-400-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: "Manrope"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/fonty/manrope-latin-ext-400-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: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonty/manrope-latin-500-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: "Manrope"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/fonty/manrope-latin-ext-500-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: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonty/manrope-latin-600-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: "Manrope"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonty/manrope-latin-ext-600-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: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonty/manrope-latin-700-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: "Manrope"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/fonty/manrope-latin-ext-700-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; }

/* ---------- barwy i miary ---------- */
:root {
  --czern: #000;
  --pow: #15120e;          /* powierzchnia kart */
  --pow2: #1e1a15;         /* pola, przyciski drugiego rzędu */
  --linia: #372f25;
  --linia2: #4b4032;
  --zloto: #c9a45c;
  --zloto-j: #e8d3a2;
  --zloto-c: #8a6a2f;
  --tekst: #f3eee4;
  --cichy: #a69c8c;
  --blad: #ef8a78;
  --szeryf: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --metal: linear-gradient(115deg, #7d5e27 0%, #c9a45c 20%, #f4e4b8 42%, #d2b06a 58%, #8a6a2f 82%, #c9a45c 100%);
  --r: 14px;
  --gutter: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--czern); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--czern); color: var(--tekst);
  font: 400 16px/1.5 var(--sans); font-feature-settings: "lnum" 1; -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
}
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--zloto-j); }
:focus-visible { outline: 2px solid var(--zloto-j); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.start { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--linia2); border-top-color: var(--zloto); animation: obrot .9s linear infinite; }
@keyframes obrot { to { transform: rotate(360deg); } }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  border-radius: 10px; border: 1px solid var(--linia2); background: var(--pow2); color: var(--tekst);
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: border-color .15s, background-color .15s;
}
.btn:hover { border-color: var(--zloto); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.cichy { background: transparent; border-color: transparent; color: var(--cichy); }
.btn.cichy:hover { color: var(--tekst); }
.btn.mala { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 8px; }
.btn.ostrz { color: var(--blad); }
.btn.zloty {
  border: 0; color: #1d1609; background: var(--metal); background-size: 230% 100%; background-position: 0% 50%;
  box-shadow: 0 1px 0 rgba(255, 240, 200, .35) inset, 0 6px 22px -10px rgba(201, 164, 92, .7);
  animation: polysk 5.5s ease-in-out infinite;
}
.btn.zloty:hover { animation-duration: 1.6s; box-shadow: 0 1px 0 rgba(255, 240, 200, .4) inset, 0 8px 28px -8px rgba(232, 211, 162, .75); }
.btn.zloty:disabled { animation: none; filter: saturate(.3) brightness(.7); }
.btn.duzy { min-height: 56px; font-size: 18px; border-radius: 999px; padding: 12px 28px; width: 100%; letter-spacing: .01em; }
@keyframes polysk { 0%, 70% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .btn.zloty { animation: none; } }
.link { background: none; border: 0; padding: 6px 0; color: var(--zloto-j); cursor: pointer; font-weight: 600; font-size: 14px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(232, 211, 162, .4); }
.link:hover { text-decoration-color: currentColor; }

/* ---------- nagłówek ---------- */
.belka {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) var(--gutter) 10px; background: rgba(0, 0, 0, .86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #1d1913;
}
.marka { display: flex; flex-direction: column; text-decoration: none; line-height: 1; min-width: 0; }
.marka-nazwa { font: 600 24px/1 var(--szeryf); font-feature-settings: "lnum" 1; color: var(--zloto-j); letter-spacing: .01em; white-space: nowrap; }
.marka-apka { font: 500 13px/1 var(--sans); color: var(--cichy); margin-top: 5px; letter-spacing: .04em; }
.menu { display: flex; gap: 4px; }
.menu a { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 10px; color: var(--cichy);
  text-decoration: none; font-weight: 600; font-size: 14px; }
.menu a svg { width: 20px; height: 20px; }
.menu a:hover { color: var(--tekst); }
.menu a.akt { color: var(--zloto-j); background: #17130d; }
@media (max-width: 560px) {
  .menu a span { display: none; }
  .menu a { padding: 10px; }
  .marka-nazwa { font-size: 21px; }
}

.baner { margin: 12px var(--gutter) 0; padding: 12px 14px; border-radius: 12px; border: 1px solid #5a3a2c; background: #1d120d;
  color: #f2c4b5; font-size: 14px; }

/* ---------- przymiarka: układ ---------- */
.przym { display: grid; gap: 22px; padding: 18px var(--gutter) 40px; max-width: 1320px; margin: 0 auto; }
@media (min-width: 980px) {
  .przym { grid-template-columns: minmax(360px, 430px) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 28px; }
  .wejscia { position: sticky; top: 84px; }
}
.wejscia { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.para { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.okienko { position: relative; min-width: 0; }
.okienko-tytul { display: block; font: 600 20px/1.2 var(--szeryf); font-feature-settings: "lnum" 1; color: var(--zloto-j); margin: 0 0 8px 2px; }
.pole-zdj {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: var(--pow);
  border: 1px dashed var(--linia2); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 14px; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.pole-zdj:hover, .okienko.cel .pole-zdj { border-color: var(--zloto); }
.okienko.nad .pole-zdj { border-style: solid; border-color: var(--zloto-j); background: #1c170f; }
.pole-zdj > svg { height: 34px; width: auto; max-width: 70px; color: var(--zloto); }
.pole-zdj .gl { font-weight: 600; font-size: 15px; }
.pole-zdj .pod { font-size: 12.5px; color: var(--cichy); line-height: 1.35; }
.pole-zdj.ma { border-style: solid; border-color: var(--linia); padding: 0; cursor: default; }
.pole-zdj.ma img { width: 100%; height: 100%; object-fit: cover; }
.pole-zdj.ma.calosc { background: #fafafa; }
.pole-zdj.ma.calosc img { object-fit: contain; }
.pole-zdj .stan-wys { position: absolute; left: 8px; bottom: 8px; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, .7);
  font-size: 12px; color: var(--cichy); }
.pole-zdj .stan-wys.zle { color: var(--blad); }
.pole-zdj .nazwa-bib { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; font-size: 13px; font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85)); text-align: left; }
.zdj-akcje { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.ikbtn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .66);
  color: var(--tekst); display: grid; place-items: center; cursor: pointer; padding: 0; }
.ikbtn:hover { border-color: var(--zloto); }
.ikbtn svg { width: 17px; height: 17px; }

.segment { display: flex; padding: 3px; border-radius: 12px; background: var(--pow); border: 1px solid var(--linia); gap: 3px; }
.segment button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: none; color: var(--cichy); font-weight: 600;
  font-size: 13.5px; cursor: pointer; padding: 6px 8px; }
.segment button[aria-pressed="true"] { background: #2a2219; color: var(--zloto-j); box-shadow: 0 0 0 1px #5b4a2f inset; }
.pod-oprawka { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* opcje */
.opcje { border: 1px solid var(--linia); border-radius: var(--r); background: var(--pow); }
.opcje > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.opcje > summary::-webkit-details-marker { display: none; }
.opcje > summary .t { font: 600 19px/1.2 var(--szeryf); font-feature-settings: "lnum" 1; color: var(--zloto-j); }
.opcje > summary .skrot { color: var(--cichy); font-size: 13px; flex: 1; text-align: right; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.opcje > summary svg { width: 18px; height: 18px; color: var(--cichy); transition: transform .2s; flex: none; }
.opcje[open] > summary svg { transform: rotate(180deg); }
.opcje-tresc { padding: 0 16px 16px; display: grid; gap: 16px; }
.grupa > .et { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 8px; color: var(--tekst); }
.grupa > .et small { font-weight: 500; color: var(--cichy); margin-left: 6px; }
.chipy { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--linia2); background: var(--pow2);
  color: var(--tekst); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--zloto); color: var(--zloto-j); background: #241d13; }
.probki { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.probka { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; padding: 3px; background: none; cursor: pointer; }
.probka i { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset; }
.probka[aria-pressed="true"] { border-color: var(--zloto-j); }
.probka-nazwa { font-size: 13px; color: var(--cichy); min-height: 20px; margin-top: 6px; }
.jakosci { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.jak { text-align: left; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--linia2); background: var(--pow2); cursor: pointer; }
.jak b { display: block; font-size: 14px; }
.jak span { display: block; font-size: 11.5px; color: var(--cichy); line-height: 1.3; margin-top: 2px; }
.jak em { display: block; font-style: normal; font-size: 12px; color: var(--zloto-j); margin-top: 4px; }
.jak[aria-pressed="true"] { border-color: var(--zloto); background: #241d13; }
textarea, input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select {
  width: 100%; border-radius: 10px; border: 1px solid var(--linia2); background: #0d0b08; padding: 11px 12px; min-height: 44px;
  font-size: 16px; color: var(--tekst);
}
textarea { min-height: 70px; resize: vertical; line-height: 1.4; }
textarea:focus, input:focus, select:focus { border-color: var(--zloto); outline: none; box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
::placeholder { color: #776e60; }
.przelacznik { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; }
.przelacznik input { width: 20px; height: 20px; accent-color: var(--zloto); }

.akcja { position: sticky; bottom: 0; z-index: 5; padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, #000 30%); margin-top: -4px; }
.akcja .koszt { text-align: center; font-size: 12.5px; color: var(--cichy); margin: 7px 0 0; min-height: 18px; }
@media (min-width: 980px) { .akcja { position: static; background: none; padding-bottom: 0; } }
.rodo { font-size: 12.5px; color: var(--cichy); line-height: 1.45; margin: 0; }
.rodo svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--zloto); }

/* ---------- lustro (wynik) ---------- */
.scena { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lustro-rama {
  --prop: 3 / 4;
  position: relative; width: min(100%, 560px); padding: 9px; background: var(--metal); background-size: 100% 100%;
  border-radius: 50% 50% 26px 26px / 26% 26% 26px 26px;
  box-shadow: 0 30px 80px -40px rgba(201, 164, 92, .55), 0 0 0 1px #000 inset;
}
@media (min-width: 980px) { .lustro-rama { width: min(100%, 600px, calc((100vh - 230px) * 0.75)); min-width: 380px; } }
.lustro {
  position: relative; aspect-ratio: var(--prop); overflow: hidden; background: radial-gradient(120% 80% at 50% 20%, #1d1912 0%, #0a0907 70%);
  border-radius: 50% 50% 18px 18px / 25% 25% 18px 18px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .9), 0 0 0 4px #0b0a08, 0 0 0 5px rgba(232, 211, 162, .25);
  isolation: isolate;
}
.lustro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; }
.lustro .pusto { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 30px; text-align: center; color: var(--cichy); }
.lustro .pusto svg { width: 96px; color: var(--zloto); opacity: .85; }
.lustro .pusto p { margin: 0; font: 500 22px/1.3 var(--szeryf); font-feature-settings: "lnum" 1; color: var(--zloto-j); max-width: 15em; }
.lustro .pusto small { font-size: 13.5px; max-width: 24em; }
.lustro .oryg { opacity: 0; transition: opacity .18s; }
.lustro.pokaz-oryg .oryg { opacity: 1; }
.lustro .czekanie img { filter: brightness(.55) saturate(.7); }
.lustro .polysk { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(244, 228, 184, .22) 48%,
  rgba(244, 228, 184, .05) 56%, transparent 70%); background-size: 260% 100%; animation: przemiatanie 2.2s ease-in-out infinite; }
@keyframes przemiatanie { from { background-position: 120% 0; } to { background-position: -40% 0; } }
@media (prefers-reduced-motion: reduce) { .lustro .polysk { animation: none; opacity: .4; } }
.lustro .napis { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 22px; text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, .82)); }
.lustro .napis b { display: block; font: 600 26px/1.2 var(--szeryf); font-feature-settings: "lnum" 1; color: var(--zloto-j); }
.lustro .napis span { font-size: 13.5px; color: var(--tekst); opacity: .85; }
.lustro .napis.zle b { color: var(--blad); font: 600 17px/1.35 var(--sans); }
.lustro .napis .btn { margin-top: 12px; }
.lustro .podpowiedz { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px;
  background: rgba(0, 0, 0, .66); font-size: 12px; color: var(--tekst); white-space: nowrap; pointer-events: none; }
.lustro.pokaz-oryg .podpowiedz { opacity: 0; }
.lustro .etykieta-oryg { position: absolute; top: 18%; left: 14px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .66);
  font-size: 12px; opacity: 0; transition: opacity .18s; }
.lustro.pokaz-oryg .etykieta-oryg { opacity: 1; }
/* porównanie przed / po */
.lustro.porown .oryg { opacity: 1; clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); transition: none; }
.lustro .suwak-linia { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; margin-left: -1px; background: var(--zloto-j);
  box-shadow: 0 0 12px rgba(0, 0, 0, .6); pointer-events: none; }
.lustro .suwak-uchwyt { position: absolute; top: 50%; left: var(--x, 50%); width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: var(--metal); box-shadow: 0 4px 16px rgba(0, 0, 0, .6); display: grid; place-items: center;
  color: #1d1609; pointer-events: none; }
.lustro .suwak-uchwyt svg { width: 22px; height: 22px; }
.lustro .suwak { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; z-index: 3; }
.lustro .et-l, .lustro .et-p { position: absolute; top: 22%; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .66);
  font-size: 12px; pointer-events: none; }
.lustro .et-l { left: 12px; }
.lustro .et-p { right: 12px; }

.wynik-tytul { text-align: center; margin-top: -4px; }
.wynik-tytul h2 { margin: 0; font: 600 28px/1.15 var(--szeryf); font-feature-settings: "lnum" 1; color: var(--zloto-j); cursor: pointer; }
.wynik-tytul h2:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.wynik-tytul p { margin: 4px 0 0; font-size: 13px; color: var(--cichy); }
.akcje-wyniku { display: grid; grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)); gap: 8px; width: min(100%, 600px); }
.akcje-wyniku .btn { padding: 8px 10px; font-size: 14px; white-space: normal; line-height: 1.2; }
@media (min-width: 620px) { .akcje-wyniku .btn { flex-direction: column; gap: 5px; min-height: 66px; font-size: 13px; } }

/* galeria przymiarek klienta */
.galeria { width: 100%; max-width: 900px; border-top: 1px solid #1f1a14; padding-top: 16px; }
.galeria-glowa { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.galeria-glowa h2 { margin: 0; font: 600 22px/1.2 var(--szeryf); font-feature-settings: "lnum" 1; color: var(--zloto-j); }
.galeria-glowa h2 small { font: 500 13px var(--sans); color: var(--cichy); margin-left: 8px; }
.galeria-glowa .przyc { display: flex; gap: 8px; flex-wrap: wrap; }
.miniatury { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.mini { position: relative; border-radius: 12px; overflow: hidden; background: var(--pow); border: 1px solid var(--linia); cursor: pointer;
  padding: 0; text-align: left; color: inherit; }
.mini.akt { border-color: var(--zloto); box-shadow: 0 0 0 1px var(--zloto) inset; }
.mini .obr { aspect-ratio: 3 / 4; position: relative; background: #0d0b08; }
.mini .obr img { width: 100%; height: 100%; object-fit: cover; }
.mini .obr .polysk { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(244, 228, 184, .16) 50%, transparent 70%);
  background-size: 260% 100%; animation: przemiatanie 2.2s ease-in-out infinite; }
.mini .obr .sek { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; color: var(--zloto-j); font-size: 14px; }
.mini .obr .zle { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 8px; font-size: 12px; color: var(--blad); }
.mini .nr { position: absolute; top: 6px; left: 6px; min-width: 24px; height: 24px; border-radius: 12px; background: rgba(0, 0, 0, .72);
  color: var(--zloto-j); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; }
.mini .zazn { position: absolute; top: 4px; right: 4px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; padding: 5px;
  cursor: pointer; }
.mini .zazn i { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .75);
  background: rgba(0, 0, 0, .35); }
.mini .zazn[aria-pressed="true"] i { background: var(--zloto); border-color: var(--zloto-j); color: #1d1609; }
.mini .zazn svg { width: 14px; height: 14px; opacity: 0; }
.mini .zazn[aria-pressed="true"] svg { opacity: 1; }
.mini .opis { padding: 6px 8px 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini .opis small { display: block; font-weight: 500; color: var(--cichy); font-size: 11.5px; }

/* ---------- okna (dialogi) ---------- */
.zaslona { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .72); display: flex; align-items: flex-end; justify-content: center;
  padding: 0; animation: zaslona .15s ease-out; }
@keyframes zaslona { from { opacity: 0; } }
@media (min-width: 700px) { .zaslona { align-items: center; padding: 24px; } }
.okno { width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow: auto; background: #120f0b; border: 1px solid var(--linia2);
  border-radius: 20px 20px 0 0; padding: 20px var(--gutter) calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .okno { border-radius: 20px; padding: 24px; } .okno.szerokie { max-width: 980px; } }
.okno h2 { margin: 0 0 12px; font: 600 26px/1.15 var(--szeryf); font-feature-settings: "lnum" 1; color: var(--zloto-j); }
.okno p { margin: 0 0 12px; }
.okno .cichy { color: var(--cichy); font-size: 14px; }
.okno .przyciski { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 16px; }
.okno .przyciski .btn.zloty { min-width: 140px; }
.okno label.et { display: block; font-weight: 600; font-size: 13.5px; margin: 12px 0 6px; }
.okno ul { padding-left: 20px; margin: 0 0 12px; }
.okno li { margin-bottom: 6px; }
.kolaz-podglad { width: 100%; border-radius: 12px; border: 1px solid var(--linia); background: #000; }
.kolaz-ukl { display: grid; gap: 16px; }
@media (min-width: 700px) { .kolaz-ukl { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.nazwy-kolazu { display: grid; gap: 8px; }
.nazwy-kolazu label { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; font-weight: 700; color: var(--zloto-j); }

/* ---------- biblioteka ---------- */
.strona { max-width: 1180px; margin: 0 auto; padding: 22px var(--gutter) 60px; }
.strona-glowa { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.strona h1 { margin: 0; font: 600 34px/1.1 var(--szeryf); font-feature-settings: "lnum" 1; color: var(--zloto-j); }
.strona h1 + p { margin: 6px 0 0; color: var(--cichy); font-size: 14.5px; max-width: 60ch; }
.szukaj { max-width: 420px; flex: 1 1 260px; }
.siatka-bib { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
@media (min-width: 700px) { .siatka-bib { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.karta-bib { background: var(--pow); border: 1px solid var(--linia); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.karta-bib .obr { aspect-ratio: 3 / 4; background: #0d0b08; position: relative; cursor: pointer; border: 0; padding: 0; width: 100%; }
.karta-bib .obr img { width: 100%; height: 100%; object-fit: cover; }
.karta-bib .obr.calosc { background: #fafafa; }
.karta-bib .obr.calosc img { object-fit: contain; }
.karta-bib .obr .typ { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .7); font-size: 11.5px; color: var(--cichy); }
.karta-bib .tr { padding: 10px 12px 12px; display: grid; gap: 8px; }
.karta-bib .tr b { font-size: 14.5px; line-height: 1.3; }
.karta-bib .tr small { color: var(--cichy); font-size: 12.5px; display: block; }
.karta-bib .rzad { display: flex; gap: 6px; }
.karta-bib .rzad .btn { flex: 1; }
.pusta-lista { padding: 40px 20px; border: 1px dashed var(--linia2); border-radius: var(--r); text-align: center; color: var(--cichy); }
.pusta-lista p { margin: 0 0 14px; }

/* ---------- konto, zespół, koszty ---------- */
.karta { background: var(--pow); border: 1px solid var(--linia); border-radius: var(--r); padding: 18px; margin-bottom: 16px; }
.karta h2 { margin: 0 0 10px; font: 600 23px/1.2 var(--szeryf); font-feature-settings: "lnum" 1; color: var(--zloto-j); }
.karta p { margin: 0 0 10px; }
.uklad2 { display: grid; gap: 16px; }
@media (min-width: 860px) { .uklad2 { grid-template-columns: 1fr 1fr; align-items: start; } }
.formularz { display: grid; gap: 10px; max-width: 460px; }
.formularz label { font-weight: 600; font-size: 13.5px; }
.liczby { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.liczba { padding: 12px 14px; border-radius: 12px; background: var(--pow2); border: 1px solid var(--linia); }
.liczba b { display: block; font: 600 30px/1.1 var(--szeryf); font-feature-settings: "lnum" 1; color: var(--zloto-j); }
.liczba span { font-size: 13px; color: var(--cichy); }
.pasek { height: 10px; border-radius: 999px; background: #0d0b08; border: 1px solid var(--linia); overflow: hidden; }
.pasek i { display: block; height: 100%; background: var(--metal); }
.pasek.alarm i { background: var(--blad); }
table.tab { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tab th { text-align: left; font-weight: 600; color: var(--cichy); padding: 6px 8px; border-bottom: 1px solid var(--linia); font-size: 13px; }
table.tab td { padding: 8px; border-bottom: 1px solid #1f1a14; vertical-align: top; }
table.tab td.l, table.tab th.l { text-align: right; white-space: nowrap; }
.przewin { overflow-x: auto; }
.osoba { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #1f1a14; flex-wrap: wrap; }
.osoba:last-child { border-bottom: 0; }
.osoba b { display: block; }
.osoba small { color: var(--cichy); }
.osoba .wyl { opacity: .55; }
.osoba .rzad { display: flex; gap: 6px; flex-wrap: wrap; }
.znacznik { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #241d13; color: var(--zloto-j); margin-left: 6px; }
code.link-kop { display: block; padding: 10px; border-radius: 8px; background: #0d0b08; border: 1px solid var(--linia); word-break: break-all; font-size: 13px; }

/* logowanie */
.wejscie { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px var(--gutter); }
.pudlo { width: 100%; max-width: 400px; display: grid; gap: 10px; }
.pudlo .godlo { display: flex; justify-content: center; margin-bottom: 6px; }
.pudlo .godlo svg { width: 120px; color: var(--zloto); }
.pudlo h1 { margin: 0; text-align: center; font: 600 34px/1.1 var(--szeryf); font-feature-settings: "lnum" 1; color: var(--zloto-j); }
.pudlo > p { margin: 0 0 12px; text-align: center; color: var(--cichy); }
.pudlo label { font-weight: 600; font-size: 13.5px; margin-top: 4px; }
.pudlo .btn { margin-top: 10px; }
.blad-txt { color: var(--blad); font-size: 14px; min-height: 20px; margin: 4px 0 0; }

/* powiadomienie */
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px); opacity: 0; z-index: 60;
  background: #1f1a12; border: 1px solid var(--zloto-c); color: var(--tekst); padding: 11px 16px; border-radius: 12px; font-size: 14.5px;
  max-width: calc(100vw - 32px); transition: opacity .2s, transform .2s; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
