/* Rosa, studio skóry: arkusz stylów */

/* Czcionki osadzone lokalnie (licencja SIL OFL, pliki w assets/fonts) */
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/marcellus-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: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/marcellus-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: "Albert Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/albert-sans-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: "Albert Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/albert-sans-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: "Albert Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/albert-sans-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: "Albert Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/albert-sans-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: "Albert Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/albert-sans-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: "Albert Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/albert-sans-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; }

:root {
  --mech: #1C2620;
  --szron: #2A3830;
  --mleko: #E9ECE4;
  --rosa: #B9C6BE;
  --platek: #E8B4B8;
  --platek-ciemny: #D99AA0;
  --linia: rgba(233, 236, 228, .18);
  --blad: #F4C2C2;

  --szeryf: "Marcellus", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --szerokosc: 1240px;
  --margines: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (pointer: fine) { html { overscroll-behavior: none; } }
body {
  margin: 0; background: var(--mech); color: var(--mleko);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--mleko); text-underline-offset: 3px; text-decoration-color: var(--platek); }
a:hover { color: var(--platek); }
a, button, input, select, textarea, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--platek); outline-offset: 3px; }

.kontener { max-width: var(--szerokosc); margin: 0 auto; padding-inline: var(--margines); }
.pomin { position: absolute; left: 12px; top: -100px; z-index: 20; background: var(--platek); color: var(--mech); padding: 12px 16px; border-radius: 2px; font-weight: 600; text-decoration: none; }
.pomin:focus { top: 12px; color: var(--mech); }

/* Pasek strony pokazowej: usuń razem z <p class="demo"> w plikach HTML */
.demo { margin: 0; padding: 8px var(--margines); background: var(--szron); color: var(--rosa); font-size: 14px; text-align: center; }

/* Nagłówek */
.naglowek { position: relative; z-index: 2; border-bottom: 1px solid var(--linia); }
.naglowek__wnetrze { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 40px; padding-block: 16px; }
.logo { font-family: var(--szeryf); font-size: 30px; line-height: 1; color: var(--mleko); text-decoration: none; letter-spacing: .02em; min-height: 44px; display: inline-flex; align-items: center; }
.logo:hover { color: var(--mleko); }
.menu { display: flex; flex-wrap: wrap; gap: 0 28px; margin: 0 auto 0 0; padding: 0; list-style: none; }
.menu a { display: inline-block; padding: 11px 0; color: var(--rosa); text-decoration: none; font-weight: 500; }
.menu a:hover { color: var(--mleko); }

/* Przyciski */
.przycisk {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
  border: 1.5px solid var(--platek); border-radius: 999px; background: var(--platek); color: var(--mech);
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.przycisk:hover { background: var(--platek-ciemny); border-color: var(--platek-ciemny); color: var(--mech); }
.przycisk--obrys { background: transparent; color: var(--mleko); border-color: var(--rosa); }
.przycisk--obrys:hover { background: transparent; color: var(--platek); border-color: var(--platek); }
.przycisk--maly { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Pierwszy ekran z kroplą */
.hero { position: relative; min-height: clamp(560px, calc(100svh - 120px), 900px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero__scena { position: absolute; inset: 0; z-index: -1; }
.hero__znak {
  position: absolute; left: 0; right: 0; top: 29%; transform: translateY(-50%); margin: 0; text-align: center;
  font-family: var(--szeryf); font-size: min(30vw, 50svh); line-height: 1;
  letter-spacing: -.01em; color: var(--szron); user-select: none;
}
.ma-3d .hero__znak { visibility: hidden; }
.hero__plotno { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__tresc { position: relative; padding-block: 0 64px; }
.hero__tytul { margin: 0; max-width: 14ch; font-family: var(--szeryf); font-weight: 400; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.01em; }
.hero__wstep { margin: 20px 0 0; max-width: 46ch; font-size: 18px; color: var(--rosa); }
.hero__akcje { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Wspólne nagłówki sekcji */
.tytul-sekcji { margin: 0; font-family: var(--szeryf); font-weight: 400; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; }
.wstep { margin: 16px 0 0; max-width: 40ch; font-size: 17px; color: var(--rosa); }

/* Cennik */
.zabiegi { padding-block: 112px; border-top: 1px solid var(--linia); }
.zabiegi__uklad { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px 80px; align-items: start; }
.zabiegi__glowa { position: static; }
@media (min-height: 760px) and (min-width: 901px) { .zabiegi__glowa { position: sticky; top: 32px; } }
.zabiegi__zdjecie { margin: 40px 0 0; max-width: 300px; }
.zabiegi__zdjecie img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 8; object-fit: cover; border-radius: 4px; }
.zabiegi__zdjecie img[hidden] { display: none; }
.filtry { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filtr {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--linia); border-radius: 999px;
  background: transparent; color: var(--rosa); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filtr:hover { color: var(--mleko); border-color: var(--rosa); }
.filtr[aria-pressed="true"] { background: var(--mleko); border-color: var(--mleko); color: var(--mech); }
.kategoria + .kategoria { margin-top: 56px; }
.kategoria[hidden] { display: none; }
.kategoria__tytul { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--platek); letter-spacing: .02em; }
.lista-zabiegow { margin: 0; padding: 0; list-style: none; }
.zabieg { padding: 22px 0; border-bottom: 1px solid var(--linia); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; }
.zabieg__glowa { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; }
.zabieg__nazwa { margin: 0; font-family: var(--szeryf); font-weight: 400; font-size: 24px; line-height: 1.2; }
.zabieg__glowa::after { content: ""; order: 2; flex: 1 1 24px; min-width: 24px; border-bottom: 1px dotted var(--rosa); opacity: .55; transform: translateY(-4px); }
.zabieg__cena { order: 3; margin: 0; font-size: 19px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zabieg__opis { margin: 8px 0 0; max-width: 56ch; color: var(--rosa); }
.zabieg__czas { margin: 8px 0 0; align-self: end; font-size: 14px; color: var(--rosa); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Pierwsza wizyta: prawdziwa kolejność, więc numery */
.wizyta { padding-block: 112px; background: var(--szron); }
.kroki { counter-reset: krok; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 56px 0 0; padding: 0; list-style: none; }
.krok { counter-increment: krok; }
.krok__zdjecie { margin-bottom: 24px; max-width: 320px; }
.krok__zdjecie img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 8; object-fit: cover; border-radius: 4px; }
.krok__tytul { display: flex; align-items: baseline; gap: 14px; margin: 0 0 8px; font-size: 20px; font-weight: 600; }
.krok__tytul::before { content: counter(krok); font-family: var(--szeryf); font-weight: 400; font-size: 44px; line-height: 1; color: var(--platek); }
.krok p { margin: 0; color: var(--rosa); max-width: 36ch; }

/* Studio: taśma zdjęć przewijana w bok */
.studio { padding-block: 112px 120px; }
.studio__glowa { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.tasma__strzalki { display: flex; gap: 8px; }
.tasma__strzalka {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--linia); border-radius: 50%; background: transparent; color: var(--mleko); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.tasma__strzalka:hover { border-color: var(--platek); color: var(--platek); }
.tasma__strzalka svg { width: 22px; height: 22px; }
.tasma {
  --wciecie: max(var(--margines), calc((100vw - var(--szerokosc)) / 2 + var(--margines)));
  display: flex; gap: 16px; margin: 48px 0 0; padding: 0 var(--wciecie) 12px; list-style: none;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--wciecie);
  scrollbar-width: thin; scrollbar-color: var(--szron) transparent; overscroll-behavior-x: contain;
}
.tasma:focus-visible { outline-offset: -3px; }
.tasma__kafel { flex: 0 0 auto; scroll-snap-align: start; }
.tasma__kafel figure { margin: 0; }
.tasma__kafel img { display: block; height: 320px; width: auto; border-radius: 4px; }
.tasma__kafel figcaption { margin-top: 10px; font-size: 14px; color: var(--rosa); }

/* Kontakt */
.kontakt { padding-block: 112px; }
.kontakt__uklad { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px 80px; align-items: start; }
.kontakt__info .przycisk { margin-top: 28px; }
.dane { margin: 40px 0 0; display: grid; gap: 20px; }
.dane div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
.dane dt { color: var(--rosa); font-size: 15px; }
.dane dd { margin: 0; }
.dane a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; }

.formularz { background: var(--szron); border-radius: 6px; padding: clamp(24px, 4vw, 40px); }
.formularz__tytul { margin: 0 0 24px; font-family: var(--szeryf); font-weight: 400; font-size: 28px; }
.pole { margin-bottom: 20px; }
.pole label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; }
.pole__opcja { color: var(--rosa); font-weight: 400; }
.pole input, .pole select, .pole textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--linia); border-radius: 4px;
  background: var(--mech); color: var(--mleko); font: inherit; font-size: 16px;
}
.pole textarea { min-height: 96px; resize: vertical; }
.pole input:focus-visible, .pole select:focus-visible, .pole textarea:focus-visible { outline: 2px solid var(--platek); outline-offset: 1px; border-color: transparent; }
.pole [aria-invalid="true"] { border-color: var(--blad); }
.pole__blad { margin: 8px 0 0; color: var(--blad); font-size: 15px; font-weight: 500; }
.zgoda { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 4px; font-size: 14px; color: var(--rosa); cursor: pointer; }
.zgoda input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--platek); }
.formularz > .przycisk { margin-top: 20px; }
.pulapka { display: none; }

/* Stopka */
.stopka { border-top: 1px solid var(--linia); }
.stopka__wnetrze { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 40px; padding-block: 36px 52px; font-size: 15px; color: var(--rosa); }
.stopka p { margin: 0; }
.stopka ul { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.stopka a { display: inline-block; padding: 12px 0; }

/* Podstrony */
.podstrona { padding-block: 72px 112px; }
.podstrona h1 { margin: 0; max-width: 18ch; font-family: var(--szeryf); font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; }
.proza { max-width: 68ch; margin-top: 32px; font-size: 18px; line-height: 1.7; color: var(--rosa); }
.proza h2 { margin: 40px 0 8px; font-family: var(--szeryf); font-weight: 400; font-size: 26px; color: var(--mleko); }
.proza p { margin: 0 0 16px; }
.podstrona .przycisk { margin-top: 24px; }

@media (max-width: 900px) {
  .zabiegi__uklad, .kontakt__uklad { grid-template-columns: minmax(0, 1fr); }
  .zabiegi__glowa { position: static; }
  .kroki { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .zabiegi__zdjecie { display: none; }
  .zabiegi, .wizyta, .kontakt { padding-block: 80px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .naglowek .przycisk--maly { display: none; }
  .hero__znak { top: 22%; font-size: min(40vw, 30svh); }
  .zabieg__nazwa { font-size: 21px; }
  .dane div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tasma__kafel img { height: 260px; }
  .tasma__strzalki { display: none; }
  .studio { padding-block: 80px; }
}
