/* «Полубокс» — demo of the studio tariff «Бизнес». One stylesheet for all 12 pages (RU at the root, EN in /en/).
   World: a tiled barbershop in the morning. Bone paper, navy ink, barber-pole red used only for the line,
   the booking button and focus. Display: Oranienbaum (condensed Didone). Text: Golos Text. Sharp corners, hairlines. */

:root {
  --paper: #f2ede4;
  --paper-2: #e9e2d6;
  --paper-3: #ddd3c3;
  --card: #f9f6f0;
  --ink: #151a2b;
  --ink-2: #4b5064;
  --rule: rgba(21, 26, 43, .16);
  --rule-strong: rgba(21, 26, 43, .38);
  --red: #b8321e;
  --red-deep: #952412;
  --red-glow: #e3573d;
  --open: #2f7d4f;
  --on-ink: #f2ede4;
  --on-ink-2: #b9b7c1;
  --on-ink-rule: rgba(242, 237, 228, .16);
  --display: "Oranienbaum", "Times New Roman", serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --g: clamp(18px, 4.6vw, 56px);
  --max: 1320px;
  --hdr: 60px;
  --cut: .66em;
  --out: cubic-bezier(.16, 1, .3, 1);
  --inout: cubic-bezier(.7, 0, .2, 1);
  color-scheme: light;
}
@media (min-width: 1000px) { :root { --hdr: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 20px); scrollbar-color: var(--ink-2) var(--paper-2); scrollbar-width: thin; }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .1 0 0 0 0 .17 .55 0 0 0 -.22'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink); font: 400 17px/1.55 var(--body);
  font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
@media (min-width: 1000px) { body { font-size: 18px; } }
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
input, textarea { caret-color: var(--red); accent-color: var(--red); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em; text-decoration-color: var(--red); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
.i { width: 20px; height: 20px; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 200; left: 12px; top: 12px; padding: 12px 16px; background: var(--ink); color: var(--paper); transform: translateY(-160%); transition: transform .3s var(--out); }
.skip:focus { transform: none; }
.wrap { width: min(100% - 2 * var(--g), var(--max)); margin-inline: auto; }

/* ---------- Lenis (from lenis.css 1.3.26) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

/* ---------- page transitions: the new page opens from a horizontal slit ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-old .75s cubic-bezier(.7, 0, .2, 1) both; }
::view-transition-new(root) { animation: vt-new .75s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes vt-new { from { clip-path: inset(50% 0 50% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes vt-old { to { transform: scale(.985); filter: brightness(.82); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- buttons and links ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border: 1px solid var(--bd); border-radius: 0;
  background: var(--bg); color: var(--fg); font: 600 16px/1.1 var(--body); letter-spacing: -.005em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn .i { width: 18px; height: 18px; transition: transform .4s var(--out); }
.btn:hover .i { transform: translateX(3px); }
.btn--red { --bg: var(--red); --fg: var(--paper); --bd: var(--red); }
.btn--red:hover { --bg: var(--red-deep); --bd: var(--red-deep); }
.btn--ink { --bg: var(--ink); --fg: var(--paper); --bd: var(--ink); }
.btn--ink:hover { --bg: #252c44; --bd: #252c44; }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: 15px; }
.btn--light { --fg: var(--on-ink); --bd: rgba(242, 237, 228, .5); }
.btn--light:hover { --bg: var(--on-ink); --fg: var(--ink); --bd: var(--on-ink); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.btn.is-loading { pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--red); line-height: 1.2; }
.link .i { width: 18px; height: 18px; transition: transform .4s var(--out); }
.link:hover .i { transform: translateX(4px); }

/* ---------- the signature: a heading cut by one red line ---------- */
.fit { container-type: inline-size; }
.cut {
  --w: 4; --cap: 4.75rem; --gap: .016em; --off: .03em;
  position: relative; display: block; width: fit-content; margin: 0;
  font: 400 min(var(--cap), 88cqi / var(--w))/1 var(--display); letter-spacing: 0; white-space: nowrap;
}
@media (min-width: 600px) { .cut { --cap: 6rem; } }
.cut__text, .cut__bot { display: block; padding: .1em 0 .12em; }
.cut::after, .cut__line {
  content: ""; position: absolute; left: calc(100% + .14em); width: 100vw; top: calc(var(--cut) - 1px); height: max(2px, .012em);
  background: var(--red); transform-origin: 0 50%; pointer-events: none;
}
.cut.is-cut::after { content: none; }
.cut.is-cut .cut__text { position: relative; left: calc(-1 * var(--off)); clip-path: inset(0 0 calc(100% - var(--cut) + var(--gap)) 0); }
.cut__bot { position: absolute; left: var(--off); top: 0; clip-path: inset(calc(var(--cut) + var(--gap)) 0 0 0); }
.mp .cut__text, .mp .cut__bot, .mp .cut::after, .mp .cut__line { visibility: hidden; }
.mp .hero__photo { clip-path: inset(46% 0 46% 0); }
.cut .ch { will-change: transform; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .3s; view-transition-name: hdr; }
.hdr.is-scrolled { border-bottom-color: var(--rule); }
.hdr__in { display: flex; align-items: center; gap: 6px; height: var(--hdr); width: min(100% - 2 * var(--g), var(--max)); margin-inline: auto; }
.logo { position: relative; display: block; margin-right: auto; color: var(--ink); font: 400 26px/1 var(--display); text-decoration: none; }
.logo span { display: block; padding: .1em 0 .12em; transition: transform .5s var(--out); }
.logo__t { position: relative; left: -.035em; clip-path: inset(0 0 calc(100% - var(--cut) + 1px) 0); }
.logo__b { position: absolute; left: .035em; top: 0; clip-path: inset(calc(var(--cut) + 1px) 0 0 0); }
.logo::after { content: ""; position: absolute; left: calc(100% + .12em); width: .6em; top: calc(var(--cut) - .75px); height: 1.5px; background: var(--red); transform-origin: 0 50%; transition: transform .5s var(--out); }
.logo:hover .logo__t { transform: translateX(-2px); }
.logo:hover .logo__b { transform: translateX(2px); }
.logo:hover::after { transform: scaleX(1.6); }
@media (min-width: 1000px) { .logo { font-size: 32px; } }
.nav { display: none; }
.nav a { position: relative; padding: 10px 0; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--out); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.lang { display: flex; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 44px; padding: 0 4px; text-decoration: none; color: var(--ink-2); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: .5em; }
.hdr .lang a[aria-current="true"] { display: none; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.iconbtn .i { width: 24px; height: 24px; }
.burger { flex: none; }
/* under 360px the header has no room for RU/EN next to the button: the switch stays in the menu and the footer */
@media (max-width: 359px) { .hdr .lang { display: none; } }
@media (min-width: 1000px) {
  .hdr__in { gap: 10px; }
  .nav { display: flex; gap: clamp(18px, 2vw, 30px); margin-right: clamp(8px, 2vw, 28px); }
  .hdr .burger { display: none; }
  .hdr .lang a[aria-current="true"] { display: inline-flex; }
  .hdr .lang { margin-right: 10px; }
  .hdr .lang a + a::before { content: ""; width: 1px; height: 12px; margin: 0 8px 0 -4px; background: var(--rule-strong); }
}

/* ---------- mobile menu ---------- */
.menu { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.menu[open] { animation: menu-in .45s var(--out) both; }
.menu::backdrop { background: var(--paper); }
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.menu__in { display: flex; flex-direction: column; min-height: 100%; padding: 0 var(--g) 28px; }
.menu__top { display: flex; align-items: center; justify-content: space-between; height: var(--hdr); }
.menu nav { margin-top: 12px; border-top: 1px solid var(--ink); }
.menu nav a { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0 8px; border-bottom: 1px solid var(--rule); font: 400 40px/1.1 var(--display); text-decoration: none; }
.menu nav a[aria-current="page"] { color: var(--red); }
.menu__foot { display: grid; gap: 14px; margin-top: auto; padding-top: 28px; }
.menu__foot p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 11vw, 150px) 0; }
.sec--tight { padding-top: clamp(28px, 4vw, 56px); }
.sec--paper2 { background: var(--paper-2); }
.h2 { font: 400 clamp(40px, 6.4vw, 76px)/1 var(--display); letter-spacing: -.005em; }
.sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 56px); }
.sec__head p { max-width: 38ch; margin: 0; color: var(--ink-2); }
.big { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.45; }
.muted { color: var(--ink-2); }

/* ---------- hero (home) ---------- */
.hero { padding: clamp(20px, 4vw, 48px) 0 0; overflow-x: clip; }
.hero__grid { display: grid; grid-template-areas: "title" "lead" "photo" "facts"; }
.hero__title { grid-area: title; position: relative; z-index: 2; }
.hero .cut { --w: 3.74; --cap: 15rem; }
.hero__lead { grid-area: lead; margin-top: 8px; }
.hero__lead p { max-width: 30ch; margin: 0; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 599px) { .hero__cta .btn { flex: 1 1 100%; } }
.hero__photo { grid-area: photo; margin: 28px calc(-1 * var(--g)) 0; overflow: hidden; background: var(--paper-3); }
.hero__photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 30%; }
.facts { grid-area: facts; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-2); }
.facts li { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.facts .i { width: 18px; height: 18px; color: var(--ink); }
@media (min-width: 1000px) {
  .hero { padding-top: clamp(24px, 4vh, 56px); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); grid-template-rows: auto 1fr auto auto; grid-template-areas: "title photo" ". photo" "lead photo" "facts photo"; column-gap: clamp(32px, 4vw, 72px); min-height: min(calc(100svh - var(--hdr) - 24px), 880px); }
  .hero__photo { margin: 0 calc(-1 * var(--g)) 0 0; align-self: stretch; }
  .hero__photo img { height: 100%; aspect-ratio: auto; }
  .facts { margin: 28px 0 0; padding-bottom: 96px; }
  .hero__lead { margin-top: 0; }
}
@media (min-width: 1000px) and (min-width: 1440px) { .hero__photo { margin-right: 0; } }

/* ---------- statement: text + photo ---------- */
.split { display: grid; gap: 40px; }
.split__text .h2 { margin-bottom: 28px; }
.split__text > p { max-width: 60ch; }
.split__img { margin: 0; overflow: hidden; background: var(--paper-3); }
.split__img img { width: 100%; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(48px, 6vw, 110px); align-items: center; }
  .split--rev .split__img { order: -1; }
}

/* ---------- price board (home) ---------- */
.board { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.board li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 16px; padding: 16px 0 14px; border-bottom: 1px solid var(--rule); }
.board__name { font: 400 clamp(27px, 3.4vw, 40px)/1.05 var(--display); }
.board__meta { grid-column: 1; font-size: 14.5px; color: var(--ink-2); }
.board__price { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 760px) {
  .board li { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; padding: 22px 0 18px; }
  .board__meta { grid-column: 2; grid-row: 1; }
  .board__price { grid-row: 1; grid-column: 3; }
}
.row-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* ---------- masters strip (home) ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 14px; margin: 0 calc(-1 * var(--g)); padding: 0 var(--g) 6px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip li { scroll-snap-align: start; }
.mcard { display: block; text-decoration: none; }
.mcard figure { margin: 0 0 14px; overflow: hidden; background: var(--paper-3); }
.mcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .9s var(--out); }
.mcard:hover img { transform: scale(1.04); }
.mcard__name { display: block; font: 400 34px/1 var(--display); }
.mcard__role { display: block; margin-top: 6px; font-size: 15px; color: var(--ink-2); }
@media (min-width: 760px) { .strip { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; } }

/* ---------- works ---------- */
.works { display: grid; gap: 28px 14px; }
.work { margin: 0; }
.work__img { overflow: hidden; background: var(--paper-3); }
.work img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.work figcaption { padding-top: 12px; }
.work__t { display: block; font: 400 26px/1.08 var(--display); }
.work__m { display: block; margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }
.work .link { margin-top: 6px; font-size: 15px; }
.works--teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.works--teaser .work__t { font-size: 22px; }
@media (min-width: 760px) { .works--teaser { grid-template-columns: repeat(4, minmax(0, 1fr)); } .works--teaser .work:nth-child(even) { margin-top: 56px; } }
.works--all { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .works--all { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .works--all { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; } .works--all .work:nth-child(3n + 2) { margin-top: 96px; } }

/* ---------- map ("we are on the maps") ---------- */
.where { display: grid; background: var(--card); border: 1px solid var(--rule); }
.map { position: relative; overflow: hidden; aspect-ratio: 1 / .92; background: #f7f2ea; }
.map svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; font-family: var(--body); }
.map .lbl { font-size: 17px; font-weight: 600; letter-spacing: .1em; fill: var(--ink-2); }
.map .lbl-sm { font-size: 16px; font-weight: 500; fill: var(--ink-2); }
.map .walk { font-size: 16px; font-weight: 600; fill: var(--red-deep); }
.map .pin-t { font: 400 30px var(--display); fill: var(--paper); }
@media (min-width: 760px) { .map { aspect-ratio: 640 / 440; } }
.mapcard { padding: 20px 18px 22px; border-top: 1px solid var(--rule); }
.mapcard__name { margin: 0; font: 400 34px/1 var(--display); }
.mapcard__kind { margin: 6px 0 10px; color: var(--ink-2); font-size: 15px; }
.mapcard__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mapcard__btns .btn { flex: 1 1 auto; }
.status { display: inline-flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 15px; font-weight: 500; }
.status::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: calc(.775em - 4px); border-radius: 50%; background: var(--ink-2); }
.facts .status::before { margin-top: 0; }
.status.is-open::before { background: var(--open); box-shadow: 0 0 0 4px rgba(47, 125, 79, .16); }
.status.is-closed::before { background: var(--red); }
@media (min-width: 760px) {
  .where { grid-template-columns: minmax(0, 1fr) 300px; }
  .mapcard { display: flex; flex-direction: column; border-top: 0; border-left: 1px solid var(--rule); padding: 28px 24px; }
  .mapcard__btns { margin-top: auto; padding-top: 24px; flex-direction: column; }
}
.place-sec { display: grid; gap: 32px; }
.place-sec__text .h2 { margin-bottom: 24px; }
.hours { margin: 22px 0 28px; padding: 0; border-top: 1px solid var(--ink); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.hours dt { color: var(--ink-2); }
.hours dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 1000px) { .place-sec { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(40px, 5vw, 80px); align-items: start; } }

/* ---------- dark band and footer ---------- */
.band { position: relative; background: var(--ink); color: var(--on-ink); padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.band__t { position: relative; max-width: 14ch; font: 400 clamp(44px, 7.4vw, 96px)/.98 var(--display); }
.band p { max-width: 46ch; margin: 22px 0 30px; color: var(--on-ink-2); }
@media (min-width: 1000px) {
  .band .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(40px, 6vw, 110px); align-items: end; }
  .band__t { max-width: 12ch; }
  .band p { margin-top: 0; }
}
.band__line { position: absolute; left: 0; right: 0; top: clamp(40px, 6vw, 80px); height: 2px; background: var(--red-glow); transform-origin: 0 50%; }
.ftr { background: var(--ink); color: var(--on-ink); padding: 0 0 calc(120px + env(safe-area-inset-bottom)); font-size: 15.5px; }
.ftr__in { border-top: 1px solid var(--on-ink-rule); padding-top: 48px; }
.ftr__grid { display: grid; gap: 32px; }
.ftr .logo { color: var(--on-ink); font-size: 44px; margin: 0 0 14px; width: fit-content; }
.ftr .logo::after { background: var(--red-glow); }
.ftr__brand p { max-width: 34ch; color: var(--on-ink-2); }
.ftr__h { margin: 0 0 12px; font: 600 12.5px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-2); }
.ftr ul { margin: 0; padding: 0; list-style: none; }
.ftr li a, .ftr li button { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0; border: 0; background: none; text-decoration: none; cursor: pointer; text-align: left; }
.ftr li a:hover, .ftr li button:hover { text-decoration: underline; text-decoration-color: var(--red-glow); }
.ftr li .i { width: 18px; height: 18px; color: var(--on-ink-2); }
.ftr address { font-style: normal; color: var(--on-ink); }
.ftr .lang { margin-top: 10px; }
.ftr .lang a { color: var(--on-ink-2); min-width: 0; padding: 0 14px 0 0; }
.ftr .lang a[aria-current="true"] { color: var(--on-ink); text-decoration-color: var(--red-glow); }
.ftr__demo { margin: 44px 0 0; padding-top: 18px; border-top: 1px solid var(--on-ink-rule); font-size: 14px; color: var(--on-ink-2); }
.ftr__demo a { color: var(--on-ink); text-decoration-color: var(--red-glow); }
@media (min-width: 760px) { .ftr__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

/* ---------- inner page heading ---------- */
.phead { padding: clamp(28px, 6vw, 88px) 0 clamp(36px, 5vw, 72px); overflow-x: clip; }
.phead__lead { max-width: 52ch; margin: clamp(18px, 2.4vw, 32px) 0 0; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; }

/* ---------- services page ---------- */
.pcols { display: none; }
.pgroup + .pgroup { margin-top: clamp(48px, 7vw, 96px); }
.pgroup__t { margin-bottom: 14px; font: 400 clamp(32px, 4.4vw, 52px)/1 var(--display); }
.plist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main book" "nums nums"; gap: 10px 14px; align-items: start; padding: 18px 0 16px; border-bottom: 1px solid var(--rule); }
.prow__main { grid-area: main; }
.prow__name { font: 400 clamp(26px, 2.8vw, 34px)/1.05 var(--display); }
.prow__desc { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); }
.prow__nums { grid-area: nums; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 28px; margin: 0; font-variant-numeric: tabular-nums; }
.prow__nums > span { display: flex; flex-direction: column; white-space: nowrap; }
.prow__time { color: var(--ink-2); }
.prow__price { font-weight: 600; }
.prow__lbl { font-size: 12.5px; font-weight: 400; color: var(--ink-2); line-height: 1.5; }
.prow__book { grid-area: book; }
@media (min-width: 1000px) {
  .pcols, .prow { grid-template-columns: minmax(0, 1fr) 110px 130px 130px 150px; grid-template-areas: none; }
  .pcols { display: grid; column-gap: 14px; position: sticky; top: var(--hdr); z-index: 5; padding: 12px 0; background: var(--paper); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
  .pcols span:nth-child(n + 2) { text-align: right; }
  .prow { align-items: center; gap: 0 14px; padding: 22px 0 20px; }
  .prow__main, .prow__book, .prow__nums { grid-area: auto; }
  .prow__nums { display: contents; }
  .prow__nums > span { display: block; text-align: right; font-size: 18px; }
  .prow__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prow__book { justify-self: end; }
}
.notes { margin: 0; border-top: 1px solid var(--ink); }
.notes div { display: grid; gap: 4px 32px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.notes dt { font: 400 26px/1.1 var(--display); }
.notes dd { margin: 0; color: var(--ink-2); max-width: 56ch; }
@media (min-width: 760px) { .notes div { grid-template-columns: 220px minmax(0, 1fr); } }

/* ---------- barbers page ---------- */
.master { display: grid; gap: 24px; padding: clamp(28px, 5vw, 72px) 0; border-top: 1px solid var(--rule); }
.master:first-child { border-top: 0; padding-top: 0; }
.master__img { margin: 0; overflow: hidden; background: var(--paper-3); }
.master__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.master__name { font: 400 clamp(64px, 9vw, 120px)/.9 var(--display); }
.master__role { margin: 14px 0 22px; font-weight: 600; }
.master__text > p { max-width: 52ch; }
.master__q { margin: 26px 0 26px; padding: 0; font: 400 clamp(26px, 2.6vw, 34px)/1.15 var(--display); max-width: 24ch; }
.master__next { min-height: 1.5em; color: var(--ink-2); font-size: 15px; }
@media (min-width: 900px) {
  .master { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
  .master:nth-child(even) .master__img { order: 2; }
}

/* ---------- about page ---------- */
.wide { margin: 0; overflow: hidden; background: var(--paper-3); }
.wide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 1000px) { .wide img { aspect-ratio: 21 / 10; } }
.place { display: grid; gap: 28px; }
.place figure { margin: 0; overflow: hidden; background: var(--paper-3); }
.place__text .h2 { margin-bottom: 24px; }
@media (min-width: 1000px) {
  .place { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(48px, 6vw, 110px); }
  .place__a { grid-row: span 2; }
  .place__text { align-self: end; }
}

/* ---------- contacts page ---------- */
.contacts { display: grid; gap: 40px; }
.cblock { padding: 20px 0 22px; border-top: 1px solid var(--ink); }
.cblock h2 { margin: 0 0 10px; font: 600 12.5px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.cblock__big { margin: 0 0 8px; font: 400 clamp(36px, 4.4vw, 52px)/1 var(--display); }
.cblock p:last-child { margin-bottom: 0; }
.tel { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; text-decoration-color: var(--red); }
.cbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cbtns .btn { flex: 1 1 140px; }
@media (min-width: 1000px) { .contacts { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(40px, 5vw, 80px); align-items: start; } .contacts .where { position: sticky; top: calc(var(--hdr) + 24px); } }

/* ---------- toast (simulated outward actions) ---------- */
.toast {
  position: fixed; inset: auto; top: calc(12px + env(safe-area-inset-top)); left: 50%; z-index: 300;
  display: flex; align-items: flex-start; gap: 6px; width: min(460px, calc(100vw - 24px)); margin: 0; padding: 16px 6px 16px 18px; border: 0; overflow: hidden;
  background: var(--ink); color: var(--paper); font: 400 15px/1.45 var(--body);
  box-shadow: 0 22px 44px -20px rgba(21, 26, 43, .7);
  opacity: 0; transform: translate(-50%, -14px); transition: opacity .3s, transform .5s var(--out); pointer-events: none;
}
.toast[popover]:not(:popover-open) { display: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast__t { flex: 1; margin: 2px 0 0; }
.toast__x { flex: none; width: 36px; height: 36px; margin-top: -6px; color: var(--on-ink-2); }
.toast__x:hover { color: var(--paper); }
.toast__x .i { width: 20px; height: 20px; }
.toast__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--red-glow); transform-origin: 0 50%; }
.toast.on .toast__bar { animation: toast-bar 7s linear both; }
@keyframes toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- booking sheet (the one module of the tariff) ---------- */
.bk { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.bk::backdrop { background: rgba(21, 26, 43, .55); animation: fade-in .35s ease both; }
.bk.is-closing::backdrop { animation: fade-out .3s ease both; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
.bk__panel {
  position: absolute; left: 0; right: 0; bottom: 0; height: min(90svh, 760px);
  display: flex; flex-direction: column; background: var(--paper); box-shadow: 0 -24px 60px -24px rgba(21, 26, 43, .55);
  animation: sheet-up .6s var(--out) both;
}
.bk.is-closing .bk__panel { animation: sheet-down .32s var(--inout) both; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@media (min-width: 760px) {
  .bk__panel { left: auto; top: 0; width: 500px; height: auto; box-shadow: -24px 0 60px -24px rgba(21, 26, 43, .55); animation-name: sheet-left; }
  .bk.is-closing .bk__panel { animation-name: sheet-right; }
  @keyframes sheet-left { from { transform: translateX(100%); } }
  @keyframes sheet-right { to { transform: translateX(100%); } }
}
.bk__head { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 6px; padding: 10px 8px 12px; border-bottom: 1px solid var(--rule); }
.bk__back[hidden] { display: inline-flex; visibility: hidden; }
.bk__titles { text-align: center; }
.bk__title { font: 400 28px/1.05 var(--display); outline: none; }
.bk__count { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bk__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.bk__progress i { display: block; height: 100%; background: var(--red); transform-origin: 0 50%; transform: scaleX(var(--p, .2)); transition: transform .6s var(--out); }
.bk__chips { display: flex; gap: 6px; padding: 10px 16px 0; overflow-x: auto; scrollbar-width: none; }
.bk__chips:empty, .bk.is-kb .bk__chips { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--rule-strong); background: var(--card); font-size: 14px; cursor: pointer; white-space: nowrap; }
@media (hover: hover) { .chip:hover { border-color: var(--ink); } }
.chip .i { width: 14px; height: 14px; color: var(--ink-2); }
.bk__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 28px; }
.bk__step { animation: step-in .45s var(--out) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }
.bk__step.is-back { animation-name: step-back; }
@keyframes step-back { from { opacity: 0; transform: translateX(-18px); } }
.bk__foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--paper); }
.bk__sum { flex: 1; min-width: 0; margin: 0; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.bk__sum b { display: block; overflow: hidden; color: var(--ink); font-size: 15.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.bk__foot .btn { flex: none; min-width: 140px; }
.bk-grp__t { margin: 22px 0 4px; font: 600 12.5px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.bk-list { margin: 0; padding: 0; list-style: none; }
.bk-opt {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; width: 100%;
  padding: 13px 10px; border: 0; border-bottom: 1px solid var(--rule); background: transparent; text-align: left; cursor: pointer;
  transition: background-color .2s, color .2s;
}
@media (hover: hover) { .bk-opt:hover { background: var(--paper-2); } }
.bk-opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.bk-opt__name { font-size: 16.5px; font-weight: 500; line-height: 1.3; }
.bk-opt__meta { grid-column: 1; font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.bk-opt[aria-pressed="true"] .bk-opt__meta { color: var(--on-ink-2); }
.bk-opt__price { grid-row: 1 / span 2; grid-column: 2; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-opt--m { grid-template-columns: 56px minmax(0, 1fr) auto; column-gap: 14px; }
.bk-opt--m .bk-opt__name, .bk-opt--m .bk-opt__meta { grid-column: 2; }
.bk-opt--m .bk-opt__price { grid-column: 3; }
.bk-opt__ph { grid-row: 1 / span 2; width: 56px; height: 56px; object-fit: cover; background: var(--paper-3); }
.bk-opt__any { grid-row: 1 / span 2; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--rule-strong); }
.bk-opt__any .i { width: 26px; height: 26px; }
.bk-opt[aria-pressed="true"] .bk-opt__any { border-color: var(--on-ink-2); }
.bk-days { display: flex; gap: 6px; margin: 14px -16px 0; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 16px; scrollbar-width: none; }
.bk-day { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 66px; height: 76px; padding: 0; border: 1px solid var(--rule-strong); background: var(--card); cursor: pointer; scroll-snap-align: start; }
.bk-day small { font-size: 11.5px; color: var(--ink-2); line-height: 1; white-space: nowrap; }
.bk-day b { font: 400 28px/1 var(--display); }
@media (hover: hover) { .bk-day:hover:not(:disabled) { border-color: var(--ink); } }
.bk-day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.bk-day[aria-pressed="true"] small { color: var(--on-ink-2); }
.bk-day:disabled { background: transparent; border-style: dashed; color: var(--ink-2); cursor: not-allowed; }
.bk-day:disabled b { text-decoration: line-through; text-decoration-color: var(--rule-strong); text-decoration-thickness: 1px; }
/* in the side sheet the two weeks are two rows of seven: a mouse cannot swipe a strip sideways */
@media (min-width: 760px) {
  .bk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 14px 0 0; padding: 0; overflow: visible; }
  .bk-day { width: auto; }
  .bk-day small { font-size: 11px; }
}
.bk-when { margin: 20px 0 6px; font: 400 26px/1.1 var(--display); }
.bk-slots__t { margin: 18px 0 8px; font-size: 13.5px; color: var(--ink-2); }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; }
.bk-slot { height: 46px; padding: 0; border: 1px solid var(--rule-strong); background: var(--card); font-size: 15.5px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
@media (hover: hover) { .bk-slot:hover { border-color: var(--ink); } }
.bk-slot[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--paper); }
.bk-empty { margin: 22px 0 0; padding: 18px; border: 1px dashed var(--rule-strong); color: var(--ink-2); }
.bk-empty p { margin: 0 0 12px; }
.bk-empty .btn { min-height: 44px; }
.fld { display: block; margin-top: 18px; }
.fld__l { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 500; }
.fld__l i { font-style: normal; font-weight: 400; color: var(--ink-2); }
.fld input, .fld textarea { display: block; width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid var(--rule-strong); border-radius: 0; background: var(--card); color: var(--ink); font: 400 17px/1.35 var(--body); }
.fld textarea { min-height: 84px; resize: vertical; }
.fld input:hover, .fld textarea:hover { border-color: var(--ink-2); }
.fld input:focus, .fld textarea:focus { outline: 2px solid var(--ink); outline-offset: -2px; border-color: var(--ink); }
.fld input::placeholder, .fld textarea::placeholder { color: var(--ink-2); opacity: 1; }
.fld [aria-invalid="true"] { border-color: var(--red); background: #fbefe9; }
.fld__err { margin: 6px 0 0; color: var(--red); font-size: 14px; font-weight: 500; }
.fld__err:empty { display: none; }
.bk-hint { margin: 18px 0 0; font-size: 14px; color: var(--ink-2); }
.bk-ticket { position: relative; margin-top: 18px; padding: 22px 18px 6px; background: var(--card); border: 1px solid var(--rule); }
.bk-ticket::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--red); }
.bk-ticket__day { margin: 0; font: 400 24px/1.1 var(--display); }
.bk-ticket__time { margin: 0 0 16px; font: 400 76px/.95 var(--display); }
.bk-ticket dl { margin: 0; border-top: 1px dashed var(--rule-strong); }
.bk-ticket dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.bk-ticket dl div:last-child { border-bottom: 0; }
.bk-ticket dt { flex: none; color: var(--ink-2); }
.bk-ticket dd { margin: 0; text-align: right; font-weight: 500; overflow-wrap: anywhere; }
.bk-ticket .sum dd { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bk-done { padding: 40px 6px 10px; text-align: center; }
.bk-done svg { display: block; width: 92px; height: 92px; margin: 0 auto; color: var(--red); }
.bk-done path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s .15s var(--inout) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bk-done__t { margin: 18px 0 10px; font: 400 60px/1 var(--display); }
.bk-done p { max-width: 34ch; margin-inline: auto; }
.spin { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- small pieces ---------- */
.status:empty { display: none; }
.ftr__status { margin-top: 14px; color: var(--on-ink); }
.ftr .status::before { background: var(--on-ink-2); }
.ftr .status.is-open::before { background: #5fbf85; box-shadow: none; }
.ftr .status.is-closed::before { background: var(--red-glow); }
.menu nav a .i { width: 22px; height: 22px; color: var(--ink-2); }
.menu nav a[aria-current="page"] .i { color: var(--red); }
.cblock .status { margin-top: 12px; }
