@font-face {
  font-family: 'Instrument Sans';
  src: url('/fonts/instrument-sans-latin-v1.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #231f1d;
  --red: #E3502E;
  --border-width: 2px;
  --space: clamp(1.25rem, 3.4vw, 4rem);
  --panel-top-space: clamp(2rem, 6vw, 6.5rem);
  --bar-height: clamp(5rem, 3.5rem + 3.5vw, 7rem);
  --panel-bar-height: calc(var(--bar-height) + env(safe-area-inset-top));
  --bar-pad: clamp(.625rem, 2.4vw, 3rem);
  font-family: 'Instrument Sans', Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
button, a, input, label { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { border-radius: 0; }
button:enabled { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
:root[data-pointer-focus] :focus,
:where(a:not(.gallery-link), button):focus-visible { outline: none; }
:root:not([data-pointer-focus]) :where(a:not(.tile, .gallery-link), button):focus-visible,
:root:not([data-pointer-focus]) .tile:focus-visible .tile-title {
  text-decoration: underline 3px;
  text-underline-offset: .2em;
}
h1, h2, p, figure, dl { margin: 0; }
p { line-height: 1.6; }
h1, h2 { font-weight: 400; letter-spacing: -.045em; }
h1:focus { outline: none; }
::selection { background: var(--ink); color: white; }
.home {
  --tile-inset: clamp(1rem, min(5vw, 5vh), 3rem);
  --title-size: clamp(1.75rem, 7.7vw, 4.7rem);
  --tile-pad-top: max(var(--tile-inset), env(safe-area-inset-top));
  --tile-pad-bottom: max(var(--tile-inset), env(safe-area-inset-bottom));
  width: 100%; min-height: max(28rem, 100vh); min-height: max(28rem, 100dvh);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, 1fr);
  gap: var(--border-width); padding: var(--border-width); background: var(--red);
}
.tile {
  position: relative; min-width: 0; container-type: inline-size;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: var(--tile-pad-top)
           max(var(--tile-inset), env(safe-area-inset-right))
           var(--tile-pad-bottom)
           max(var(--tile-inset), env(safe-area-inset-left));
  background: var(--paper); text-align: left; text-decoration: none;
}
.tile > * { flex: none; max-width: 100%; }
.tile-title, .wordmark {
  font-size: var(--title-size);
  font-size: clamp(1.75rem, 22.2cqi, var(--title-size));
}
.tile-title {
  display: block; overflow-wrap: anywhere;
  font-weight: 400; line-height: 1.02; letter-spacing: -.055em;
}
/* Górna krawędź znaku odpowiada optycznie górnej krawędzi dużych liter. */
.wordmark { margin-top: .12em; margin-bottom: 1rem; width: min(100%, 2.8em); }
.wordmark img { display: block; width: 100%; height: auto; }
.tile-note, .tile-legal, .brand-links {
  font-size: clamp(.875rem, 1.15vw, 1rem);
  line-height: 1.35; letter-spacing: 0;
}
.tile-note, .tile-legal { margin-top: auto; }
.tile-note { padding-top: .8rem; font-weight: 700; }
.tile-book { background: var(--red); color: white; }
.external-arrow { width: .82em; height: .82em; margin-inline-start: .1em; vertical-align: -.06em; }
.tile-shop { appearance: none; border: 0; color: #909090; -webkit-text-fill-color: currentColor; opacity: 1; cursor: default; }
.tile-shop .tile-note { color: #767676; -webkit-text-fill-color: currentColor; }
.tile-legal {
  --legal-link-height: 44px;
  width: 100%;
  padding-block-start: clamp(.75rem, min(6cqi, 3vh), 2rem);
  /* Wyrównanie wiersza linków z podpisami pozostałych pól. */
  margin-bottom: clamp(calc(-1 * var(--tile-pad-bottom)), calc(1.35em - var(--legal-link-height)), 0px);
}
.tile-legal p { font-size: clamp(.75rem, 9cqi, 1em); line-height: inherit; }
.brand-links {
  display: grid; justify-items: start; row-gap: .125rem; font-weight: 700;
  margin-block-start: auto;
}
.document-links {
  display: flex; flex-wrap: wrap; gap: 0 .75em;
  margin-block-start: .25rem;
}
.document-links a {
  flex: none; max-width: 100%; min-height: var(--legal-link-height); overflow-wrap: anywhere;
}
@container (max-width: 20rem) {
  .tile-legal { --legal-link-height: 20px; }
}
@media (width < 56.25rem) {
  .home { --tile-inset: clamp(.625rem, min(3vw, 4vh), 1.5rem); }
  .tile-title { font-size: clamp(1.875rem, 23cqi, 4.7rem); }
  .tile-link[href="/kontakt/"] .tile-title { font-size: min(22cqi, 4.7rem); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .tile-link::before, .tile-book::before {
    content: ""; flex: 0 1 0%; min-height: 0; pointer-events: none;
    transition: flex-basis 320ms cubic-bezier(.22,.65,.3,1);
  }
  .tile-link:hover::before, .tile-book:hover::before {
    /* Do ¼ pełnej wysokości kafelka. Elastyczny odstęp ustępuje miejsca podpisowi. */
    flex-basis: calc(25% + (var(--tile-pad-top) + var(--tile-pad-bottom)) / 4);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .home a:hover .tile-title { text-decoration: underline; text-decoration-thickness: 1px; }
}
@media (hover: hover) {
  .text-link:hover, .identity a:hover, .footer-legal a:hover { text-decoration-thickness: 2px; }
  .button:hover { background: var(--ink); color: white; border-color: var(--ink); }
  .back-link:hover { background: var(--red); color: var(--paper); }
}
.screen { position: fixed; inset: 0; overflow-y: auto; overscroll-behavior: contain; background: white; scroll-padding-block-start: var(--panel-bar-height); }
.panel-open { overflow: hidden; }
.panel, .not-found {
  display: flex; flex-direction: column;
  border-inline: var(--border-width) solid var(--red);
}
.panel { min-height: 100%; }
.not-found { min-height: 100vh; min-height: 100dvh; }
.panel-header, .panel-bar, .panel-footer { border-block: var(--border-width) solid var(--red); }
.panel-header, .panel-bar {
  position: sticky; top: 0; z-index: 2;
  min-height: var(--panel-bar-height);
  background: var(--paper);
}
.panel-header { --panel-title-size: clamp(2.8rem, 8vw, 7.5rem); display: contents; }
.panel-bar { display: flex; justify-content: space-between; }
.panel-header h1, .panel-content {
  width: 100%; max-width: 1440px; margin-inline: auto;
  padding-inline: max(var(--space), env(safe-area-inset-left)) max(var(--space), env(safe-area-inset-right));
}
.back-link {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 0; text-decoration: none;
  inline-size: calc(var(--panel-bar-height) - 2 * var(--border-width));
  aspect-ratio: 1; align-self: center; flex: none; border-inline-end: var(--border-width) solid var(--red);
  font-size: var(--panel-title-size);
  padding: env(safe-area-inset-top) 0 0 env(safe-area-inset-left);
}
.back-link svg { width: 1em; height: 1em; flex: none; }
:root:not([data-pointer-focus]) .back-link:focus-visible { background: var(--red); color: var(--paper); }
.panel-header h1 {
  margin-block-start: var(--panel-top-space);
  font-size: var(--panel-title-size); line-height: 1.03; overflow-wrap: anywhere;
}
.panel-logo {
  display: block; align-self: center; width: clamp(6rem, 4rem + 6vw, 10rem); height: auto;
  margin-block-start: env(safe-area-inset-top);
  margin-inline-end: max(var(--bar-pad), env(safe-area-inset-right));
}
.panel-content { padding-block: clamp(1rem, 2vw, 2rem) max(3rem, env(safe-area-inset-bottom)); }
@media (min-width: 40rem) {
  .panel-header {
    --panel-title-size: clamp(1.25rem, .65rem + 3vw, 3.75rem);
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--bar-pad);
  }
  .panel-bar { display: contents; }
  .panel-header h1 {
    grid-area: 1 / 2; align-self: center; margin: 0; padding: calc(.5rem + env(safe-area-inset-top)) 0 .5rem;
    line-height: 1.06;
  }
  .panel-content { padding-block-start: var(--panel-top-space); }
}
.panel-intro { margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.lead { font-size: clamp(1.25rem, 2.8vw, 2.4rem); line-height: 1.3; letter-spacing: -.03em; max-width: 50rem; }
.panel-intro > p + p { max-width: 42rem; margin-top: 1.25rem; }
.panel h2 { font-size: clamp(1.65rem, 3.5vw, 2.75rem); line-height: 1.15; margin-bottom: 1rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.25rem; border: var(--border-width) solid var(--red); background: white; color: var(--ink); text-decoration: none; line-height: 1.3; text-align: center; }
.button-red { background: var(--red); color: var(--paper); font-size: 1.1875rem; font-weight: 700; }
.text-link { min-height: 48px; display: inline-flex; align-items: center; }
.locations-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
  gap: clamp(2rem, 4vw, 4rem);
}
.location-card { min-width: 0; container-type: inline-size; border-top: var(--border-width) solid var(--red); }
.location-body { padding-top: clamp(1rem, 2vw, 2rem); display: grid; align-items: start; gap: 1.5rem; }
.location-body > * { min-width: 0; }
.location-info h2 { margin-bottom: .25rem; }
.location-city { font-size: 1.125rem; }
.location-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.25rem 0 .65rem; }
.location-contact { display: grid; justify-items: start; font-style: normal; }
.location-contact a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; max-width: 100%; }
.location-photos {
  list-style: none; padding: 0; margin: 0; display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem;
}
.location-photos li { min-width: 0; }
.location-photos li:first-child { grid-column: 1 / -1; }
.location-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.location-photos li:first-child img { aspect-ratio: 16 / 9; }
.gallery-link:focus-visible { outline-offset: -3px; }
@container (min-width: 48rem) {
  .location-body { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space); }
}
.legal-copy { max-width: 44rem; }
.legal-copy section { margin-bottom: 2.5rem; }
.legal-copy p + p { margin-top: 1rem; }
.transition-surface { position: fixed; z-index: 10; background: white; border: var(--border-width) solid var(--red); pointer-events: none; }
.booking-cover { position: fixed; inset: 0; z-index: 11; background: var(--red); pointer-events: none; }
.is-arriving .panel-content { animation: panel-in 160ms ease-out both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 56.25rem), (min-width: 40rem) and (orientation: landscape) {
  .home {
    --title-size: clamp(2rem, min(5.8vw, 12vh), 6rem);
    grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr);
    min-height: max(18rem, 100vh); min-height: max(18rem, 100dvh);
  }
}
@media (width < 56.25rem) and (max-height: 38rem) {
  .wordmark { max-width: min(100%, 27vh); }
  .home {
    --tile-inset: clamp(.625rem, min(3vw, 3vh), 1.5rem);
    height: 100vh; height: 100dvh; min-height: min-content;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .home { background: CanvasText; }
  .tile { background: Canvas; color: CanvasText; }
  .tile-shop, .tile-shop .tile-note { color: GrayText; }
  .tile-book { background: Highlight; color: HighlightText; forced-color-adjust: none; }
  :root:not([data-pointer-focus]) :focus-visible:not(h1) { outline: 2px solid Highlight; outline-offset: -2px; }
}

.people-grid, .portfolio-row { list-style: none; padding: 0; margin: 0; display: grid; }
.people-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: var(--space); }
.person img { width: 100%; aspect-ratio: 4 / 3; max-height: 27rem; display: block; object-fit: cover; object-position: center 35%; margin-bottom: 1rem; }
.person h2 { margin-bottom: .5rem; }
.person p { max-width: 52ch; }
[data-panel="/portfolio/"] { --panel-top-space: clamp(1.25rem, 3.5vh, 3rem); }
[data-panel="/portfolio/"] .panel-content { padding-block-end: var(--panel-top-space); }
.portfolio-row {
  grid-auto-flow: column; grid-template-rows: auto;
  gap: clamp(.75rem, 2vw, 1.5rem); overflow-x: auto;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  padding-bottom: .6rem;
}
.portfolio-row > li { min-width: 0; scroll-snap-align: start; }
.gallery { grid-auto-columns: clamp(9rem, 56%, 18rem); gap: 0; }
.gallery-link { display: block; cursor: zoom-in; }
.gallery-link img { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: clamp(10rem, 37vh, 21rem); object-fit: cover; background: #f3f2f1; }
.gallery > li { position: relative; container-type: inline-size; }
.gallery .gallery-link img { border: var(--border-width) solid var(--red); }
.gallery > li:not(:last-child) .gallery-link img { border-inline-end: 0; }
.photo-info {
  position: absolute; inset: 0 auto auto 0; z-index: 1;
  display: grid; place-items: center; width: 44px; aspect-ratio: 1;
  background: var(--paper); color: var(--ink); border: var(--border-width) solid var(--red);
  text-decoration: none;
}
.photo-info svg { display: block; width: 64%; height: 64%; }
.photo-tooltip {
  position: absolute; inset: 100% auto auto 0; z-index: 1; visibility: hidden;
  width: max-content; max-width: min(18rem, calc(100cqi - 2 * var(--border-width)));
  padding: .55rem .75rem; border: var(--border-width) solid var(--red); background: var(--paper);
  color: var(--ink); font-size: .875rem; line-height: 1.4; overflow-wrap: anywhere;
}
.photo-info:focus-visible { background: var(--red); color: var(--paper); }
.photo-info:focus-visible:not(.tooltip-dismissed) .photo-tooltip { visibility: visible; }
@media (hover: hover) and (pointer: fine) {
  .gallery > li:not(:hover):not(:focus-within) .photo-info { opacity: 0; pointer-events: none; }
  .photo-info:hover { background: var(--red); color: var(--paper); }
  .photo-info:hover:not(.tooltip-dismissed) .photo-tooltip { visibility: visible; }
}
.gallery-heading, .service-line {
  display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap;
}
.gallery-heading { align-items: center; margin-bottom: .5rem; }
.service-menu { max-width: 56rem; }
.service-list { padding: 0; margin: 2rem 0; list-style: none; border-bottom: var(--border-width) solid var(--red); }
.service-list li { border-top: var(--border-width) solid var(--red); padding: 1.1rem 0 1.25rem; }
.service-line { margin-bottom: .45rem; }
.service-line h2 { margin: 0; font-size: clamp(1.35rem, 2.7vw, 2rem); }
.service-terms, .service-examples { display: flex; gap: .45rem 1.25rem; flex-wrap: wrap; }
.service-terms { font-variant-numeric: tabular-nums; }
.service-terms span { white-space: nowrap; }
.service-terms span:first-child { font-weight: 700; }
.service-examples { margin-top: .65rem; }
.haircut-work { display: grid; align-items: start; gap: var(--space); }
.haircut-work .gallery-link img { width: 100%; aspect-ratio: 3 / 4; max-height: none; object-fit: contain; background: transparent; }
.work-copy { display: grid; justify-items: start; gap: 1rem; max-width: 42rem; }
.work-booking { display: grid; justify-items: start; gap: 1rem; padding-top: 1.25rem; border-top: var(--border-width) solid var(--red); width: 100%; }
@media (min-width: 40rem) {
  .haircut-work { grid-template-columns: minmax(0, min(40%, 27rem)) minmax(0, 1fr); }
}
.portfolio-reviews { margin-top: clamp(1.25rem, 2.5vw, 2.5rem); padding-top: 1rem; border-top: var(--border-width) solid var(--red); }
[data-panel="/portfolio/"] h2 { margin-bottom: .25rem; }
.reviews { grid-auto-columns: min(85%, 25rem); }
.review-card { border: var(--border-width) solid var(--red); padding: 1rem; overflow-wrap: anywhere; }
.review-card figure { height: 100%; display: flex; flex-direction: column; gap: .75rem; }
.review-card blockquote { margin: 0; line-height: 1.5; white-space: pre-line; }
.review-card figcaption { margin-top: auto; font-size: .9rem; line-height: 1.45; }
.panel-footer {
  display: flex; flex-wrap: wrap; align-items: center; align-content: center;
  justify-content: space-between; gap: .25rem 1.5rem;
  min-height: calc(var(--bar-height) + env(safe-area-inset-bottom));
  margin-top: auto;
  padding-block: .65rem calc(.65rem + env(safe-area-inset-bottom));
  padding-inline: max(var(--bar-pad), env(safe-area-inset-left)) max(var(--bar-pad), env(safe-area-inset-right));
}
.panel-footer > span {
  font-size: clamp(1rem, .85rem + .6vw, 1.5rem); line-height: 1.2;
}
.footer-legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 1em;
  font-size: clamp(.875rem, 1.15vw, 1rem); line-height: 1.4;
}
.footer-legal a { padding-block: .25rem; }
.photo-dialog {
  --photo-ratio: .75;
  --safe-x: calc(env(safe-area-inset-left) + env(safe-area-inset-right));
  --safe-y: calc(env(safe-area-inset-top) + env(safe-area-inset-bottom));
  inset: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  width: min(calc(96vw - var(--safe-x)), calc(94vh - var(--safe-y)), 56rem);
  width: min(calc(96vw - var(--safe-x)), calc(94dvh - var(--safe-y)), 56rem);
  max-width: none; max-height: none; padding: 0; margin: auto;
  border: var(--border-width) solid var(--red); background: var(--paper); color: var(--ink);
}
.photo-dialog::backdrop { background: rgb(255 255 255 / .82); }
.photo-dialog[data-orientation="landscape"] { --photo-ratio: calc(4 / 3); }
.photo-dialog[data-orientation="square"] { --photo-ratio: 1; }
.viewer {
  /* Podział 1:6:1 daje dwa krzyżujące się kadry 8:6 i 6:8. */
  --tracks: minmax(0, 1fr) minmax(0, 6fr) minmax(0, 1fr);
  position: relative; container-type: inline-size; width: 100%; aspect-ratio: 1; display: grid;
  grid-template: var(--tracks) / var(--tracks);
}
.viewer-stage {
  grid-area: 1 / 2 / 4 / 3; min-width: 0; min-height: 0;
  overflow: auto; overscroll-behavior: contain;
}
.viewer-stage:not(.zoomed) { overflow: hidden; }
.photo-dialog[data-orientation="landscape"] .viewer-stage:not(.zoomed) { grid-area: 2 / 1 / 3 / 4; }
.photo-dialog[data-orientation="square"] .viewer-stage:not(.zoomed) { grid-area: 1 / 1 / 3 / 3; }
.viewer button { appearance: none; padding: 0; background: var(--paper); color: inherit; }
.viewer-zoom { display: block; position: relative; border: 0; aspect-ratio: var(--photo-ratio); }
.viewer-stage:not(.zoomed) .viewer-zoom { width: 100%; height: 100%; }
.photo-dialog:not([data-orientation]) .viewer-zoom { visibility: hidden; }
.viewer-zoom:enabled { cursor: zoom-in; }
.viewer-stage.zoomed {
  grid-area: 1 / 1 / -1 / -1;
  display: flex; align-items: flex-start; scrollbar-width: none;
}
.viewer-stage.zoomed .viewer-zoom {
  flex: none; width: 150%; height: auto;
  cursor: zoom-out;
}
.photo-dialog[data-orientation="square"] .viewer-stage.zoomed .viewer-zoom { width: 175%; }
.photo-dialog[data-orientation="landscape"] .viewer-stage.zoomed .viewer-zoom {
  width: auto; height: 150%;
}
.viewer-image { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.viewer-corner {
  display: grid; place-items: center; min-width: 0; min-height: 0;
  z-index: 1; background: var(--paper); border: 0 solid var(--red);
}
.viewer-close { grid-area: 1 / 3; border-width: 0 0 var(--border-width) var(--border-width); }
.viewer-info-slot {
  grid-area: 1 / 1 / 2 / 3; display: grid; grid-template-columns: subgrid;
  position: relative; z-index: 2; pointer-events: none;
}
.viewer-info-slot:empty { display: none; }
.viewer-info-slot .photo-info {
  grid-area: 1 / 1; position: static; width: auto; aspect-ratio: auto; pointer-events: auto;
  border-width: 0 var(--border-width) var(--border-width) 0;
}
.viewer-info-slot .photo-tooltip {
  grid-area: 1 / 2; inset: 0 0 auto; width: auto; max-width: none; min-height: 100%;
  display: grid; align-content: center; padding: .15em clamp(.4rem, 2cqi, 1.25rem);
  border-width: 0 0 var(--border-width); text-align: center;
  font-size: clamp(.8125rem, 2.6cqi, 1rem); line-height: 1.2;
}
.viewer-corner[data-step="-1"] { grid-area: 3 / 1; border-width: var(--border-width) var(--border-width) 0 0; }
.viewer-corner[data-step="1"] { grid-area: 3 / 3; border-width: var(--border-width) 0 0 var(--border-width); }
.viewer-corner svg { display: block; width: 70%; height: 70%; }
.viewer-corner:disabled svg { visibility: hidden; }
:root:not([data-pointer-focus]) .viewer button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
@media (hover: hover) and (pointer: fine) {
  .viewer-corner:enabled:hover { background: var(--red); color: var(--paper); }
}
