/* ==========================================================================
   Architektura Paznokci Edyta Śliwa
   Kierunek: nazwa jako monument. Paleta z fanpage'a: szare tło sesji,
   grafit cennika, czerń koronki. Kroje: Bodoni Moda + Montserrat.
   ========================================================================== */

:root {
  /* kolor */
  --ground: #edede9;
  --ground-2: #e2e2dd;
  --ink: #121212;
  --ink-2: #57574f;
  --graphite: #2b2b2a;
  --graphite-2: #353534;
  --graphite-3: #222221;
  --on-dark: #f1f1ed;
  --on-dark-2: #b2b2ab;
  --form: #77776f;
  --skin: #d9b5a3;
  --nail: #f3ddd6;

  /* typografia */
  --f-display: "Bodoni Moda", "Bodoni 72", Didot, "Times New Roman", serif;
  --f-text: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --t-small: 0.875rem;                               /* 14px */
  --t-body: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);  /* 16–18px */
  --t-mid: clamp(1.375rem, 1.1rem + 1vw, 2rem);       /* 22–32px: h3, zdania */
  --t-h2: clamp(2.5rem, 1.4rem + 4.2vw, 5.25rem);     /* 40–84px */

  /* przestrzeń */
  --maxw: 1680px;
  --m: clamp(16px, 2.6vw, 40px);
  --px: max(var(--m), calc((100vw - var(--maxw)) / 2));
  --gap: clamp(104px, 12vw, 200px);
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset i podstawy
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--ground); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.sr-only {
  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 {
  position: absolute; left: var(--m); top: -100px; z-index: 100;
  background: var(--ink); color: var(--ground); padding: 12px 18px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* --------------------------------------------------------------------------
   Elementy wspólne
   -------------------------------------------------------------------------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p, dd, li { text-wrap: pretty; }
.h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--t-mid);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.statement {
  font-family: var(--f-display);
  font-size: var(--t-mid);
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 30ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  font: 600 0.9375rem/1.2 var(--f-text);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--ink); color: var(--ground); }
.btn--ink:hover { background: #3a3a37; }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #ffffff; }
.btn--soft { background: var(--ground); color: var(--ink); }
.btn--soft:hover { background: var(--ink); color: var(--ground); }

.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  font-weight: 500;
  transition: text-decoration-thickness 0.2s, text-underline-offset 0.2s var(--ease);
}
.link:hover { text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.link--light { color: var(--on-dark); }

.arrow {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 0;
  background: var(--ground-2);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.arrow:hover { background: var(--ink); color: var(--ground); }
.arrow:active { transform: scale(0.94); }
.arrow:disabled { opacity: 0.35; cursor: default; background: var(--ground-2); color: var(--ink); }
.arrow--light { background: rgba(241, 241, 237, 0.12); color: var(--on-dark); }
.arrow--light:hover { background: var(--on-dark); color: var(--ink); }

/* --------------------------------------------------------------------------
   Nawigacja
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  min-height: var(--nav-h);
  padding: 10px var(--px);
  background: var(--ground);
}
.nav__mark {
  font-family: var(--f-display);
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav__links {
  display: flex;
  gap: clamp(20px, 2.6vw, 40px);
  margin-left: auto;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav__links a { position: relative; text-decoration: none; padding: 4px 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__call { min-height: 44px; padding: 0 20px; }
.nav__toggle {
  display: none;
  margin-left: auto;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Hero: nazwa jako fasada
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(8px, 2vw, 32px) var(--px) 0;
}
.hero__title {
  grid-area: 1 / 1;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 11vw; /* JS dopasowuje dokładnie do szerokości */
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  font-optical-sizing: auto;
}
.hero__line { display: block; overflow: hidden; padding-top: 0.04em; }
.hero__line--2 { text-align: right; }
.hero__in { display: inline-block; white-space: nowrap; }
.hero__word { display: inline; }
.hero__hyphen { display: none; }

.o-window {
  display: inline-block;
  width: 0.62em;
  height: 0.77em; /* wysokość wersalików Bodoni Moda z nadmiarem owalu */
  margin: 0 0.05em 0 0.03em;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: -0.012em;
  background: var(--ground-2);
}
.o-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: calc(1 + var(--p, 0) * 0.45);
}

.hero__address {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: start;
  margin-bottom: 1.2vw;
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--ink-2);
}

.hero__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(28px, 3.4vw, 56px);
}
.hero__intro {
  grid-column: 1 / span 4;
  align-self: start;
  display: grid;
  gap: 28px;
  max-width: 34ch;
}
.hero__lead { font-size: var(--t-body); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.hero__band {
  grid-column: 5 / -1;
  margin-right: calc(var(--px) * -1);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ground-2);
}
.hero__band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.1;
  translate: 0 calc((var(--p, 0) - 0.2) * 5%);
}

/* --------------------------------------------------------------------------
   Stylizacje: ściana galerii przewijana w bok
   -------------------------------------------------------------------------- */
.works { padding-top: var(--gap); }
.works__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: end;
  padding: 0 var(--px);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.works__head .h2 { grid-column: 1 / span 5; }
.works__text { grid-column: 6 / span 4; max-width: 40ch; }
.works__controls { grid-column: 11 / -1; display: flex; justify-content: flex-end; gap: 8px; }

.reel {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.8vw, 28px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--px);
  padding: 0 var(--px) 8px;
  scrollbar-width: none;
  cursor: grab;
}
.reel::-webkit-scrollbar { display: none; }
.reel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel.is-dragging .reel__open { pointer-events: none; }
.reel__item { flex: 0 0 auto; width: clamp(250px, 30vw, 500px); scroll-snap-align: start; }
.reel__item:nth-child(3n + 2) { width: clamp(210px, 24vw, 400px); margin-top: clamp(48px, 7vw, 120px); }
.reel__item:nth-child(3n) { width: clamp(230px, 27vw, 450px); margin-top: clamp(16px, 2.5vw, 40px); }
.reel__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--ground-2);
  overflow: hidden;
  cursor: zoom-in;
}
.reel__open img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.reel__open:hover img { transform: scale(1.045); }
.reel figcaption { margin-top: 14px; font-size: var(--t-small); line-height: 1.45; }
.cap__title { display: block; font-size: var(--t-body); font-weight: 500; }
.cap__by { color: var(--ink-2); }
.cap__by::before { content: "Wykonanie: "; }
.works__more { padding: clamp(32px, 4vw, 48px) var(--px) 0; }

/* --------------------------------------------------------------------------
   Cennik: grafitowe pole jak grafika z fanpage'a
   -------------------------------------------------------------------------- */
.prices {
  margin-top: var(--gap);
  padding: var(--gap) var(--px);
  background: var(--graphite);
  color: var(--on-dark);
}
.prices ::selection { background: var(--on-dark); color: var(--ink); }
.prices__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.prices__head .h2 { grid-column: 1 / span 6; }
.prices__intro { grid-column: 8 / -1; max-width: 42ch; }

.prices__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: start;
}
.pgroup + .pgroup { margin-top: clamp(48px, 5vw, 72px); }
.pgroup .h3 { margin-bottom: 18px; }

.plist > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 11px 14px;
  margin-inline: -14px;
  transition: background-color 0.2s;
}
.plist > div:hover { background: var(--graphite-2); }
.plist dd {
  flex: none;
  max-width: 45%;
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
}

.ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.ptable th, .ptable td { padding: 11px 0; text-align: right; font-weight: 600; }
.ptable tbody th { text-align: left; font-weight: 400; padding-right: 16px; }
.ptable thead th { font-family: var(--f-display); font-size: var(--t-mid); font-weight: 400; line-height: 1; padding-bottom: 6px; }
.ptable td, .ptable thead th:not(:first-child) { width: 4.5em; }
.ptable tbody tr { transition: background-color 0.2s; }
.ptable tbody tr:hover { background: var(--graphite-2); }

.lengths { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-bottom: 20px; }
.lengths b { font-family: var(--f-display); font-size: var(--t-mid); font-weight: 400; margin-right: 8px; }
.pgroup--notes p { max-width: 58ch; }
.pgroup--notes p + p { margin-top: 12px; }

/* kalkulator */
.calc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  background: var(--graphite-2);
  padding: clamp(22px, 2.4vw, 36px);
}
.calc[hidden] { display: none; }
.calc .h3 { margin-bottom: 24px; }
.calc__set { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.calc__set legend { padding: 0; margin-bottom: 10px; font-size: var(--t-small); font-weight: 600; color: var(--on-dark-2); }

.choices { display: grid; gap: 2px; }
.choice { position: relative; display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.choice:hover { background: var(--graphite); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { background: var(--on-dark); color: var(--ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--on-dark); outline-offset: 2px; }
.choice__price { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }

.form-svg { width: 100%; height: auto; margin: 4px 0 12px; }
.form-svg__form { fill: var(--form); }
.form-svg__finger { fill: var(--skin); }
.form-svg__nail { fill: var(--nail); }
.form-svg__ticks line { stroke: var(--on-dark); stroke-width: 2; }
.form-svg__ticks text { fill: var(--on-dark-2); font: 600 20px var(--f-text); text-anchor: middle; transition: fill 0.25s; }
.form-svg__ticks text.is-on { fill: var(--on-dark); font-size: 24px; }
.form-svg__mark { stroke: var(--on-dark); stroke-width: 3; transition: opacity 0.3s; }

.segment { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.segment label { position: relative; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 4px;
  background: var(--graphite);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.segment span small { display: block; font-size: 0.75rem; font-weight: 500; color: var(--on-dark-2); }
.segment label:hover span { background: var(--graphite-3); }
.segment input:checked + span { background: var(--on-dark); color: var(--ink); }
.segment input:checked + span small { color: var(--ink-2); }
.segment input:focus-visible + span { outline: 2px solid var(--on-dark); outline-offset: 2px; }
.segment input:disabled + span { opacity: 0.3; cursor: not-allowed; background: var(--graphite); }

.check, .stepper {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.check { cursor: pointer; }
.check em, .stepper em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  background: var(--graphite);
  border: 2px solid var(--on-dark-2);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.check input:checked {
  background: var(--on-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23121212' stroke-width='2.6'/%3E%3C/svg%3E") center / 18px no-repeat;
  border-color: var(--on-dark);
}
.stepper { grid-template-columns: 1fr auto auto; }
.stepper__ctrl { display: flex; align-items: center; gap: 2px; }
.stepper__ctrl button {
  width: 40px;
  height: 40px;
  border: 0;
  background: var(--graphite);
  color: var(--on-dark);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.15s;
}
.stepper__ctrl button:hover { background: var(--graphite-3); }
.stepper__ctrl button:active { transform: scale(0.92); }
.stepper__ctrl output { min-width: 2.4ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.calc__total {
  margin: 8px calc(clamp(22px, 2.4vw, 36px) * -1) 0;
  padding: 24px clamp(22px, 2.4vw, 36px);
  background: var(--graphite-3);
}
.calc__label { display: block; font-size: var(--t-small); color: var(--on-dark-2); }
.calc__sum {
  display: block;
  font-family: var(--f-display);
  font-size: var(--t-h2);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 4px 0 10px;
}
.calc__summary { font-size: var(--t-small); color: var(--on-dark-2); }
.calc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.calc__note { margin-top: 16px; font-size: var(--t-small); color: var(--on-dark-2); }

/* --------------------------------------------------------------------------
   Salon
   -------------------------------------------------------------------------- */
.salon {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  padding: var(--gap) var(--px);
  align-items: start;
}
.salon__photo { grid-column: 1 / span 6; position: sticky; top: calc(var(--nav-h) + 24px); }
.salon__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ground-2); }
.salon__photo figcaption { margin-top: 14px; font-size: var(--t-small); color: var(--ink-2); }
.salon__text { grid-column: 8 / -1; padding-top: clamp(0px, 4vw, 64px); }
.salon__text .h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.rules { margin-top: clamp(36px, 4vw, 56px); display: grid; gap: 22px; }
.rules dt { font-weight: 600; }
.rules dd { margin-top: 4px; max-width: 46ch; }
.team { margin-top: clamp(48px, 5vw, 72px); padding: clamp(22px, 2.4vw, 36px); background: var(--ground-2); }
.team .h3 { margin-bottom: 14px; }
.team__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 8px 0; }
.team__list b { font-weight: 600; }
.signature { width: min(300px, 72%); margin-top: 24px; }

/* --------------------------------------------------------------------------
   Kontakt
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(16px, 2vw, 32px);
  padding: var(--gap) var(--px);
  background: var(--ground-2);
}
.contact__text { grid-column: 1 / span 6; }
.contact__phone {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.12em;
  font-variant-numeric: lining-nums;
  transition: text-underline-offset 0.3s var(--ease);
}
.contact__phone:hover { text-underline-offset: 0.06em; }
.contact__lead { margin-top: clamp(24px, 3vw, 40px); max-width: 40ch; }
.contact__info { display: grid; gap: 18px; margin-top: 36px; }
.contact__info dt { font-size: var(--t-small); color: var(--ink-2); }
.contact__info dd { margin-top: 2px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.contact__map { grid-column: 8 / -1; min-height: 440px; background: var(--ground); }
.contact__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; filter: grayscale(1) contrast(1.04); }

/* --------------------------------------------------------------------------
   Stopka: nazwa wraca na całą szerokość, w inwersji
   -------------------------------------------------------------------------- */
.footer {
  padding: clamp(56px, 8vw, 120px) var(--px) calc(32px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--on-dark);
}
.footer__name {
  font-family: var(--f-display);
  font-size: 7vw;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.footer__line { display: inline-block; white-space: nowrap; }
.footer__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  align-items: end;
  gap: 20px 32px;
  font-size: var(--t-small);
  color: var(--on-dark-2);
}
.footer__row a { color: var(--on-dark); text-underline-offset: 0.25em; }
.signature--light { width: min(240px, 100%); margin: 0; filter: invert(1); }

/* przycisk telefonu na telefonie */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  padding: 16px var(--m) calc(16px + env(safe-area-inset-bottom));
  background: var(--ink);
  color: var(--ground);
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(110%);
  transition: transform 0.45s var(--ease);
}
.callbar.is-visible { transform: none; }

/* --------------------------------------------------------------------------
   Powiększenie zdjęcia
   -------------------------------------------------------------------------- */
.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 64px 88px 40px;
  border: 0;
  background: rgba(14, 14, 13, 0.96);
  color: var(--on-dark);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(14, 14, 13, 0.94); }
.lightbox__figure { display: grid; justify-items: center; gap: 14px; }
.lightbox__img { max-height: calc(100dvh - 160px); max-width: 100%; width: auto; object-fit: contain; }
.lightbox__cap { font-size: var(--t-small); color: var(--on-dark-2); text-align: center; }
.lightbox__cap b { display: block; color: var(--on-dark); font-size: var(--t-body); font-weight: 500; }
.lightbox__btn { position: fixed; z-index: 2; }
.lightbox__close {
  top: 16px;
  right: var(--m);
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  background: none;
  color: var(--on-dark);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.lightbox__prev { left: var(--m); top: 50%; translate: 0 -50%; }
.lightbox__next { right: var(--m); top: 50%; translate: 0 -50%; }

/* --------------------------------------------------------------------------
   Ruch
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__in { animation: rise 1.25s var(--ease) both; }
  .js .hero__line--2 .hero__in { animation-delay: 0.12s; }
  .js .o-window img { animation: window-open 1.8s var(--ease) 0.2s both; }
  .js .hero__band img { animation: band-in 1.6s var(--ease) 0.25s both; }

  .motion [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  .motion [data-reveal].is-in { opacity: 1; transform: none; }
}

@keyframes rise { from { transform: translateY(104%); } to { transform: none; } }
@keyframes window-open { from { transform: scale(1.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes band-in { from { transform: scale(1.12); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .o-window img, .hero__band img { scale: 1; translate: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
@media (max-width: 1099px) {
  .hero__intro { grid-column: 1 / span 5; }
  .hero__band { grid-column: 6 / -1; aspect-ratio: 4 / 3; }
  .works__head .h2 { grid-column: 1 / span 12; margin-bottom: 20px; }
  .works__text { grid-column: 1 / span 8; }
  .works__controls { grid-column: 9 / -1; }
  .prices__grid { grid-template-columns: minmax(0, 1fr); }
  .calc { position: static; }
  .salon__photo { grid-column: 1 / span 5; }
  .salon__text { grid-column: 7 / -1; padding-top: 0; }
  .contact__text { grid-column: 1 / -1; }
  .contact__map { grid-column: 1 / -1; margin-top: 48px; min-height: 360px; }
  .contact__map iframe { min-height: 360px; }
  .footer__row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 859px) {
  .nav__links, .nav__call { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--px) 28px;
    background: var(--ground);
    font-family: var(--f-display);
    font-size: var(--t-mid);
    font-weight: 400;
  }
  .nav.is-open .nav__links a { padding: 10px 0; background: none; }
  .salon__photo { grid-column: 1 / -1; position: static; }
  .salon__text { grid-column: 1 / -1; margin-top: 48px; }
  .salon__photo img { aspect-ratio: 4 / 5; }
  .callbar { display: block; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* --------------------------------------------------------------------------
   Telefon: własna kompozycja
   -------------------------------------------------------------------------- */
@media (max-width: 699px) {
  :root { --nav-h: 60px; }
  .nav__mark { font-size: 1.25rem; }

  .hero { padding-top: 12px; }
  .hero__title { line-height: 0.9; }
  .hero__word { display: block; }
  .hero__hyphen { display: inline; }
  .hero__line--1 .hero__word + .hero__word { text-align: right; }
  .hero__line--2 { text-align: left; }
  .hero__address { grid-area: auto; justify-self: end; text-align: right; margin: 16px 0 0; }
  .hero__body { display: block; margin-top: 28px; }
  .hero__intro { max-width: none; gap: 24px; }
  .hero__band { margin: 36px calc(var(--px) * -1) 0; aspect-ratio: 4 / 5; }

  .works__head { display: block; }
  .works__text { margin-top: 0; }
  .works__controls { display: none; }
  .reel__item { width: 74vw; }
  .reel__item:nth-child(3n + 2) { width: 60vw; margin-top: 56px; }
  .reel__item:nth-child(3n) { width: 68vw; margin-top: 20px; }

  .prices__head { display: block; }
  .prices__intro { margin-top: 20px; }
  .plist > div { flex-direction: row; gap: 16px; }
  .ptable tbody th { font-size: 0.9375rem; }
  .ptable td, .ptable thead th:not(:first-child) { width: 3.4em; }

  .stepper { grid-template-columns: auto 1fr; row-gap: 10px; }
  .stepper__label { grid-column: 1 / -1; }
  .stepper em { justify-self: end; }

  .contact__map { min-height: 300px; margin-top: 40px; }
  .contact__map iframe { min-height: 300px; }
  .contact__actions .btn { flex: 1 1 auto; }

  .footer__row { grid-template-columns: 1fr; gap: 12px; }
  .footer__row .signature--light { margin-bottom: 12px; }

  .lightbox { padding: 64px 12px 96px; }
  .lightbox__img { max-height: calc(100dvh - 220px); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; translate: none; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}
