/* =========================================================
   ФЭЙД — minimal. Pure #000 / #FFF, system fonts.
   ========================================================= */
:root {
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --bg: #000;
  --fg: #fff;
  --mute: rgba(255, 255, 255, .5);
  --line: rgba(255, 255, 255, .14);
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "Bahnschrift", "sans-serif-condensed", "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
}

.sec--light { --bg: #fff; --fg: #000; --mute: rgba(0, 0, 0, .5); --line: rgba(0, 0, 0, .14); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  background: var(--bg); color: var(--fg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* ---------- buttons: L 56/20/8/24/18 · M 40/16/8/20/16 · S 36/12/6/16/14 ---------- */
.btn, .btn--md, .btn--sm { --h: 56px; --px: 20px; --gap: 8px; --icon: 24px; --fs: 18px; }
.btn--md { --h: 40px; --px: 16px; --gap: 8px; --icon: 20px; --fs: 16px; }
.btn--sm { --h: 36px; --px: 12px; --gap: 6px; --icon: 16px; --fs: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--gap);
  height: var(--h); padding: 0 var(--px); border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-size: var(--fs); font-weight: 500; line-height: 1; white-space: nowrap;
  transition: opacity .25s, transform .3s var(--ease);
}
.btn:hover { opacity: .85; }
.btn:active { transform: scale(.97); }
.ico { width: var(--icon); height: var(--icon); flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn, .tabs button, .fab { touch-action: pan-y; }
.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }

/* ---------- reveal ---------- */
.reveal-up { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-up.in { opacity: 1; transform: none; }

/* ---------- bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 64px; padding: 0 var(--pad);
  background: rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.bar { transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
/* over the white section the frosted bar turns white too */
.bar.is-light { background: rgba(255, 255, 255, .6); color: #000; border-bottom-color: rgba(0, 0, 0, .08); }
.bar.is-light .bar__nav a { color: rgba(0, 0, 0, .5); }
.bar.is-light .bar__nav a:hover, .bar.is-light .bar__nav a.is-active { color: #000; }
.bar__logo { font-weight: 600; letter-spacing: .04em; }
.bar__nav { display: flex; gap: 28px; font-size: 14px; }
.bar__nav a { color: var(--mute); transition: color .2s; }
.bar__nav a:hover, .bar__nav a.is-active { color: var(--fg); }
.bar__menu { display: none; font-size: 14px; height: 40px; }

/* ---------- menu ---------- */
.toc {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; gap: 32px;
  padding: 0 var(--pad) calc(32px + env(safe-area-inset-bottom));
  background: var(--bg);
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
.toc.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }
.toc__head { display: flex; align-items: center; justify-content: space-between; height: 64px; font-weight: 600; letter-spacing: .04em; }
.toc__close { font-size: 14px; height: 40px; }
.toc__list { display: grid; gap: 6px; margin-top: auto; }
.toc__list a {
  font-size: 32px; font-weight: 500; letter-spacing: -.02em;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.toc.is-open .toc__list a { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i) * 40ms); }
.toc__phone { color: var(--mute); }

/* ---------- cover ---------- */
.cover {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px;
  padding: 96px var(--pad) 40px;
}
.cover__title, .foot__mast {
  align-self: stretch; text-align: center; white-space: nowrap;
  font-family: var(--display); font-stretch: condensed;
  font-size: 28vw;                    /* fitText() fills the width exactly */
  font-weight: 800; line-height: .8; letter-spacing: -.01em;
  padding: .24em 0 .12em;             /* room for the Й breve and Д tails */
}
.cover__title { animation: rise 1s var(--ease) both; }
.cover__text { font-size: clamp(20px, 2vw, 28px); line-height: 1.3; letter-spacing: -.01em; max-width: 26em; animation: rise 1s var(--ease) .1s backwards; }
.cover .btn { margin-top: 8px; animation: rise 1s var(--ease) .2s backwards; }
.cover__meta { margin-top: auto; font-size: 13px; color: var(--mute); display: flex; align-items: center; animation: rise 1s var(--ease) .3s backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); margin-right: 8px; animation: pulse 1.6s ease-in-out infinite; }
.dot.is-closed { animation: none; opacity: .35; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- sections: title left, content right ---------- */
.sec {
  background: var(--bg); color: var(--fg);
  padding: clamp(72px, 12vh, 140px) var(--pad);
  border-top: 1px solid var(--line);
}
.sec__head {
  display: flex; align-items: baseline; gap: 20px;
  padding-bottom: 20px; margin-bottom: clamp(32px, 6vh, 64px);
  border-bottom: 1px solid var(--fg);
}
.sec__num { font-size: 14px; color: var(--mute); font-variant-numeric: tabular-nums; }
.sec__title {
  font-family: var(--display); font-stretch: condensed;
  font-size: clamp(44px, 7vw, 104px); font-weight: 800; line-height: .9; letter-spacing: -.01em;
  text-transform: uppercase;
}
.sec__body { display: grid; gap: 40px; min-width: 0; margin-left: 33.333%; }
.lead { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; letter-spacing: -.02em; max-width: 22em; }
.note { color: var(--mute); }
.note a { color: var(--fg); }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.facts dt { font-size: 13px; color: var(--mute); margin-bottom: 4px; }
.facts dd { font-size: 17px; }
.facts dd small { display: block; font-size: 13px; color: var(--mute); }
.facts a { border-bottom: 1px solid var(--line); transition: border-color .2s; }
.facts a:hover { border-color: var(--fg); }

/* simple list rows */
.rows { border-top: 1px solid var(--line); }
.rows a {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(160px, 1fr) 1.3fr auto; align-items: center; gap: 16px;
  padding: 22px 12px; border-bottom: 1px solid var(--line);
  transition: color .35s var(--ease);
}
.rows a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg);
  transform: scaleY(0); transform-origin: bottom; transition: transform .4s var(--ease);
}
.rows a:hover { color: var(--bg); }
.rows a:hover::before { transform: scaleY(1); }
.rows a span { font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 34px); line-height: 1; }
.rows a small { opacity: .55; font-size: 15px; }
.rows a b { font-weight: 500; font-size: 15px; }

/* ---------- booking ---------- */
.tabs { position: relative; display: inline-flex; justify-self: start; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: -16px; }
.tabs button { position: relative; z-index: 1; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 16px; color: var(--mute); transition: color .3s var(--ease); }
.tabs button[aria-selected="true"] { color: var(--bg); }
.tabs__pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--fg); width: var(--w, 0); transform: translateX(var(--x, 4px)); transition: transform .45s var(--ease), width .45s var(--ease); }

.price { border-top: 1px solid var(--line); }
.price li {
  display: grid; grid-template-columns: 1fr 100px 150px; align-items: center; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  cursor: pointer; user-select: none;
  color: var(--mute);
  opacity: 0; transition: opacity .5s var(--ease), color .2s;
  transition-delay: calc(var(--i, 0) * 25ms), 0s;
}
.price.in li { opacity: 1; }
.price li:hover { color: var(--fg); }
.price li[aria-checked="true"] { color: var(--fg); }
.price__name { display: flex; align-items: center; gap: 12px; }
.price__name::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor;
  transition: background-color .2s, box-shadow .2s;
}
.price li[aria-checked="true"] .price__name::before { background: var(--fg); box-shadow: none; }
.price__name small { font-size: 13px; opacity: .7; margin-left: 6px; white-space: nowrap; }
.price__time { font-size: 14px; }
.price__cost { text-align: right; font-variant-numeric: tabular-nums; }

.summary {
  position: sticky; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  transform: translateY(12px); opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.summary.has-items { opacity: 1; transform: none; pointer-events: auto; }
.summary__info { display: grid; margin-right: auto; line-height: 1.2; min-width: 0; }
.summary__sum { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__k { font-size: 13px; opacity: .55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary__reset { font-size: 13px; opacity: .55; }
.summary__reset:hover { opacity: 1; }
.summary .btn { background: var(--bg); color: var(--fg); }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 0 var(--pad) calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 13px; color: var(--mute); }
.foot__mast { flex-basis: 100%; color: var(--fg); margin-bottom: 20px; border-bottom: 1px solid var(--line); }

/* quote */
.quote { padding: 8px 0 8px 24px; border-left: 1px solid var(--fg); }
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 12px; }
.quote figcaption { font-size: 13px; color: var(--mute); }
.quote a { color: var(--fg); }
.credit__heart { display: inline-block; color: var(--fg); animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 15%, 40% { transform: scale(1.25); } }

/* ---------- floating pill ---------- */
.fab {
  position: fixed; right: var(--pad); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 65;
  display: flex; align-items: center; gap: 4px;
  height: 52px; padding: 0 6px 0 20px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  box-shadow: 0 0 0 1px rgba(255,255,255,.2);
  font-size: 14px;
  transform: translateY(calc(100% + 40px)); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .6s var(--ease), opacity .4s var(--ease), visibility 0s linear .6s;
}
.fab.is-on { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .6s var(--ease), opacity .4s var(--ease), visibility 0s; }
.fab__text { display: inline-block; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.fab__text.is-swap { opacity: 0; transform: translateY(6px); }
.fab b { margin-left: 14px; height: 40px; padding: 0 16px; border-radius: 999px; display: grid; place-items: center; background: var(--fg); color: var(--bg); font-size: 16px; font-weight: 500; }

/* ---------- booking drawer ---------- */
.booking {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(520px, 100vw); height: 100%; max-height: none; max-width: none;
  border: 0; padding: 0; background: #fff; color: #000;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .55s var(--ease), overlay .55s allow-discrete, display .55s allow-discrete;
}
.booking:not([open]) { display: none; }
.booking[open] { transform: none; }
@starting-style { .booking[open] { transform: translateX(100%); } }
.booking::backdrop { background: rgba(0,0,0,0); transition: background-color .55s, overlay .55s allow-discrete, display .55s allow-discrete; }
.booking[open]::backdrop { background: rgba(0,0,0,.6); }
@starting-style { .booking[open]::backdrop { background: rgba(0,0,0,0); } }
.booking__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 22px; border-bottom: 1px solid rgba(0,0,0,.1); font-weight: 600; font-size: 15px; }
.booking__title { display: grid; gap: 2px; min-width: 0; }
.booking__title small { font-size: 13px; font-weight: 400; opacity: .55; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking__title small:empty { display: none; }
.booking__actions { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 400; }
.booking__actions a { opacity: .6; white-space: nowrap; }
.booking__actions a:hover { opacity: 1; }
.booking__close { width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.06); }
.booking__body { position: relative; flex: 1; }
.booking__body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.booking__loader { position: absolute; inset: 0; display: grid; place-items: center; }
.booking__loader span { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(0,0,0,.15); border-top-color: #000; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .sec__body { margin-left: 16.666%; }
  .bar__nav { display: none; }
  .bar__menu { display: block; }
}
@media (max-width: 760px) {
  .sec__body { margin-left: 0; }
  .rows a { padding: 18px 6px; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .rows a { grid-template-columns: 1fr auto; gap: 2px 16px; }
  .rows a small { grid-row: 2; }
  .rows a b { grid-row: 1 / span 2; align-self: center; }
  .price li { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .price__time { grid-row: 2; padding-left: 28px; font-size: 13px; }
  .price__cost { grid-row: 1 / span 2; }
  .summary__reset { display: none; }
  .tabs { display: flex; justify-self: stretch; }
  .tabs button { flex: 1; padding: 0 8px; font-size: 15px; }
  .fab { left: 12px; right: 12px; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal-up, .price li { opacity: 1; transform: none; }
}

/* =========================================================
   Centered composition
   ========================================================= */
.cover { align-items: center; text-align: center; }
.cover__text { margin: 0 auto; }
.cover__meta { justify-content: center; }

.sec__head {
  flex-direction: column; align-items: center; gap: 10px;
  text-align: center; border-bottom: 0; padding-bottom: 0;
}
.sec__body { margin: 0 auto; max-width: 880px; }
.lead, .note { text-align: center; margin-left: auto; margin-right: auto; }

.quote { border-left: 0; padding: 0; text-align: center; }
.quote blockquote { max-width: 24em; margin-left: auto; margin-right: auto; }

.facts { grid-template-columns: repeat(4, 1fr); text-align: center; }

.tabs { justify-self: center; }
.summary { width: 100%; }

.foot { justify-content: center; text-align: center; }
.foot > span { flex-basis: 100%; }

@media (max-width: 1000px) {
  .sec__body { margin-left: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
}

/* =========================================================
   Motion layer
   ========================================================= */
.reveal-up { transition-delay: var(--d, 0s); }

/* cover letters: staggered intro, then drift apart on scroll (--p set from scrollY) */
.cover { --p: 0; }
.cover__title { animation: none; }
.cover__title .ch, .foot__mast .ch {
  display: inline-block;
  /* room for the Й breve / Д tails — Safari clips glyph overflow on animated layers */
  padding: .26em 0 .16em; margin: -.26em 0 -.16em;
}

/* section titles slide up from under a mask */
.reveal-mask { overflow: hidden; padding: .2em 0 .06em; margin: -.2em 0 -.06em; }
.reveal-mask > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.reveal-mask.in > span { transform: none; }

/* quote: words light up one after another */
.reveal-words .w { opacity: .12; transition: opacity .5s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.reveal-words.in .w { opacity: 1; }
.reveal-words figcaption { opacity: 0; transition: opacity .6s var(--ease) .9s; }
.reveal-words.in figcaption { opacity: 1; }

/* footer word rises letter by letter */
.reveal-letters .ch { transform: translateY(60%); opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease); transition-delay: calc(var(--i) * 80ms); }
.reveal-letters.in .ch { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .reveal-mask > span, .reveal-letters .ch, .reveal-words .w, .reveal-words figcaption { transform: none; opacity: 1; }
}

/* =========================================================
   Map, masters, FAQ
   ========================================================= */
.route { display: flex; justify-content: center; }

.masters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.master {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  padding: 24px 16px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line);
}
.master img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.05); background: var(--line); }
.master__info { display: grid; gap: 2px; }
.master__info b { font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1; }
.master__info span { font-size: 14px; color: var(--mute); }
.master .btn { margin-top: auto; }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(18px, 1.6vw, 22px);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; flex: none; font-size: 24px; font-weight: 300; line-height: 1;
  transition: transform .35s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 22px; max-width: 40em; color: var(--mute); line-height: 1.6; }
.faq__item[open] p { animation: rise .5s var(--ease); }

@media (max-width: 760px) {
  .masters { grid-template-columns: 1fr; }
  .master { flex-direction: row; text-align: left; padding: 14px; gap: 14px; }
  .master img { width: 56px; height: 56px; }
  .master__info b { font-size: 22px; }
  .master .btn { margin: 0 0 0 auto; }
}

@media (max-width: 760px) {
  .tabs { justify-self: stretch; }            /* the centered rule above must not shrink tabs on phones */
  .tabs button { white-space: nowrap; }
  .master__info { min-width: 0; }
  .master__info span { font-size: 13px; }
}

/* =========================================================
   Fun layer
   ========================================================= */



/* scissors burst when a service is picked */
.snip {
  position: fixed; z-index: 150; pointer-events: none;
  font-size: 18px; line-height: 1; color: var(--fg);
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
}

/* =========================================================
   Scroll motion
   ========================================================= */

/* titles: letters rise one by one from under the baseline with a little spring */
.sec__title.reveal-mask > span { transform: none; transition: none; }
.sec__title .l {
  display: inline-block;
  transform: translateY(115%) rotate(6deg);
  transform-origin: left bottom;
  transition: transform .9s cubic-bezier(.2, 1.35, .35, 1);
  transition-delay: calc(var(--i) * 38ms);
}
.sec__title.in .l { transform: none; }

/* list rows come in from alternating sides */
.rows li.reveal-up { transform: translateX(-48px); }
.rows li.reveal-up:nth-child(even) { transform: translateX(48px); }
.rows li.reveal-up.in { transform: none; }

/* white booking section opens as a growing circle (once) */
.js-motion .circle-reveal { clip-path: circle(0% at 50% 30%); transition: clip-path 1.3s cubic-bezier(.65, 0, .35, 1); }
.js-motion .circle-reveal.in { clip-path: circle(150% at 50% 30%); }

@media (prefers-reduced-motion: reduce) {
  .sec__title .l { transform: none; }
  .js-motion .circle-reveal { clip-path: none; }
}

/* cover: static first screen */
.cover { min-height: 100vh; min-height: 100svh; padding: 0; display: flex; }
.cover__pin {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px;
  padding: 96px var(--pad) 40px; text-align: center;
}

/* =========================================================
   Footer — white finale
   ========================================================= */
.foot {
  display: block; text-align: left;
  background: var(--bg); color: var(--fg);
  padding: clamp(80px, 14vh, 160px) var(--pad) calc(24px + env(safe-area-inset-bottom));
  border-top: 0;
}
.foot__cta { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; margin-bottom: clamp(64px, 10vh, 112px); }
.foot__ask {
  font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase;
  font-size: clamp(44px, 7vw, 104px); line-height: .9; letter-spacing: -.01em; color: var(--fg);
}
.foot__cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  padding: 28px 0 40px; border-top: 1px solid var(--fg);
}
.foot__cols > div { display: grid; gap: 6px; align-content: start; }
.foot__cols span:first-child { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.foot__cols a, .foot__cols p { font-size: 18px; color: var(--fg); }
.foot__cols small { font-size: 13px; color: var(--mute); display: inline-flex; align-items: center; gap: 4px; }
.foot__cols small a { font-size: 13px; color: var(--mute); }
.foot__cols .ico { --icon: 14px; }
.foot__cols a:hover { text-decoration: underline; text-underline-offset: 3px; }

.foot .foot__mast { color: var(--fg); margin: 0; border-bottom: 1px solid var(--line); }
.foot__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mute);
}
.foot__bottom .credit__heart { color: var(--fg); }

@media (max-width: 1000px) { .foot__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .foot__cols { grid-template-columns: 1fr; gap: 22px; }
  .foot__bottom { flex-direction: column; text-align: center; }
}

/* the big word: letters rise one by one from under the edge with a little spring
   (cover — on load, footer — when it scrolls into view) */
.cover__title, .foot__mast { overflow: hidden; }
.cover__title .ch {
  animation: ch-rise 1.1s cubic-bezier(.2, 1.2, .35, 1) backwards;
  animation-delay: calc(.1s + var(--i) * .09s);
}
@keyframes ch-rise { from { transform: translateY(110%) rotate(8deg); } }
.foot__mast .ch {
  transform: translateY(110%) rotate(8deg);
  transition: transform 1.1s cubic-bezier(.2, 1.2, .35, 1);
  transition-delay: calc(var(--i) * .09s);
}
.foot__mast.in .ch { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cover__title .ch { animation: none; }
  .foot__mast .ch { transform: none; }
}

/* on scroll the letters leave upward through the top edge, each at its own speed (--p set from scrollY) */
.cover { --p: 0; }
.cover__title .ch {
  translate: 0 calc(var(--p) * -1 * (60% + var(--i) * 28%));
  rotate: calc(var(--p) * (var(--i) - 1.5) * 5deg);
}
@media (prefers-reduced-motion: reduce) { .cover__title .ch { translate: none; rotate: none; } }

/* =========================================================
   No sideways wobble on phones: nothing may widen the page
   (rows slide in from ±48px, letters tilt — keep it all inside)
   ========================================================= */
html { overflow-x: clip; }
.sec, .foot, .cover { overflow-x: clip; }      /* clip ≠ scroll container, so sticky still works */
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }            /* older Safari */
  .sec, .foot, .cover { overflow-x: hidden; }
}
@media (max-width: 760px) {
  .rows li.reveal-up { transform: translateX(-24px); }
  .rows li.reveal-up:nth-child(even) { transform: translateX(24px); }
  .rows li.reveal-up.in { transform: none; }
}

/* cover status: three pills that wrap as whole pieces */
.cover__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin-top: auto; }
.cover__meta li { display: flex; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  height: 34px; padding: 0 14px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; color: var(--mute);
  transition: color .25s, box-shadow .25s;
}
.pill--status { color: var(--fg); }
a.pill:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); }

/* Stop Studio credit — plain text */
.credit { font-size: 13px; color: var(--mute); }
.credit b { font-family: var(--font); font-weight: 500; color: var(--fg); }   /* SF Pro Medium on Apple */
.credit .credit__heart { color: var(--fg); }

/* test-site notice above the header — removed for launch; --notice kept at 0 so offsets stay valid */
:root { --notice: 0px; }
.notice {
  position: fixed; inset: 0 0 auto; z-index: 55;
  height: var(--notice); padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #000;
  font-size: 12px; font-weight: 500; line-height: 1; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.bar { top: var(--notice); }
html { scroll-padding-top: calc(64px + var(--notice)); }
.cover__pin { padding-top: calc(96px + var(--notice)); }
.toc { top: var(--notice); }          /* menu opens under the notice */
@media (max-width: 360px) { .notice { font-size: 11px; } }

/* =========================================================
   Photos
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
@media (min-width: 761px) { .gallery .shot:nth-child(2) { margin-top: 56px; } }   /* editorial step on wide screens */
.shot { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 3 / 4; background: #111; }
.shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.05);                     /* keep the site black & white */
  transform: scale(1.15);
  transition: transform 1.6s var(--ease), filter .6s var(--ease);
}
.shot:hover img { filter: grayscale(.2) contrast(1.02); }
/* the photo opens upward like a curtain and settles from a slight zoom */
.reveal-shot { clip-path: inset(100% 0 0 0 round 20px); transition: clip-path 1.2s cubic-bezier(.65, 0, .35, 1) var(--d, 0s); }
.reveal-shot.in { clip-path: inset(0 0 0 0 round 20px); }
.reveal-shot.in img { transform: scale(1); transition-delay: var(--d, 0s); }

@media (max-width: 760px) {
  /* phones: swipeable row instead of three narrow columns */
  .gallery {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad);
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .shot { flex: 0 0 72%; scroll-snap-align: center; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-shot { clip-path: none; }
  .shot img { transform: none; }
}

/* services: featured photo with a short story */

/* =========================================================
   Button variants (sizes still follow the L / M / S spec)
   ========================================================= */
.btn { position: relative; overflow: hidden; isolation: isolate; }

/* outline that fills left → right on hover */
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--fg); transition: color .35s var(--ease), transform .3s var(--ease); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.btn--ghost:hover { color: var(--bg); opacity: 1; }
.btn--ghost:hover::before { transform: scaleX(1); }

/* filled pill + arrow in its own circle that turns on hover */
.btn--arrow { padding-right: calc((var(--h) - var(--icon) - 20px) / 2); gap: 14px; }
.btn--arrow .ico {
  box-sizing: content-box; padding: 10px; border-radius: 50%;
  background: var(--bg); color: var(--fg);
  transition: transform .45s var(--ease);
}
.btn--arrow:hover { opacity: 1; }
.btn--arrow:hover .ico { transform: rotate(-45deg); }
.sec--light .btn--arrow .ico { background: var(--bg); color: var(--fg); }

/* text link with a drawn underline */
.btn--link {
  height: auto; padding: 4px 0; border-radius: 0; background: none; color: var(--fg); overflow: visible;
}
.btn--link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(.25); transform-origin: left; transition: transform .45s var(--ease);
}
.btn--link:hover { opacity: 1; }
.btn--link:hover::after { transform: scaleX(1); }
.btn--link:hover .ico { transform: translateX(4px); }

/* round icon-only button */
.btn--icon { width: var(--h); padding: 0; border-radius: 50%; }
.btn--icon:hover .ico { transform: translateY(-3px); }

/* cover chair: sits right under the word, its backrest tucked behind the letters */
.cover__title { position: relative; z-index: 2; }
.cover__chair {
  position: relative; z-index: 1;
  height: clamp(180px, 30vh, 360px); aspect-ratio: 2 / 3;
  margin-top: -7vh;
  translate: 0 calc(var(--p, 0) * -40px);
  scale: calc(1 - var(--p, 0) * .06);
  animation: chair-in 1.4s cubic-bezier(.2, 1, .3, 1) .35s backwards;
}
.cover__chair::before {                      /* soft spotlight under the chair */
  content: ""; position: absolute; inset: 15% -60% -10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .14), transparent);
}
.cover__chair img { width: 100%; height: 100%; object-fit: contain; display: block; filter: grayscale(1) contrast(1.08); }
@keyframes chair-in { from { opacity: 0; transform: translateY(40px) scale(.96); } }
@media (max-width: 760px) {
  .cover__chair { height: clamp(170px, 30vh, 280px); margin-top: -4vh; }
}
@media (prefers-reduced-motion: reduce) { .cover__chair { translate: none; scale: none; animation: none; } }

/* =========================================================
   Cover, "big chair" layout: the chair fills the first screen
   and runs off the bottom; the word sits on its backrest
   ========================================================= */
.cover__pin {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  justify-content: flex-end; gap: 18px;
  padding-bottom: 36px;
}
.cover__chair {
  position: absolute; left: 50%; top: 30%; z-index: 0;
  height: min(118%, 165vw); aspect-ratio: 2 / 3; margin: 0;
  translate: -50% calc(var(--p, 0) * -60px);
  scale: calc(1 + var(--p, 0) * .04);
}
.cover__chair::before { inset: -8% -30% 40%; background: radial-gradient(closest-side, rgba(255, 255, 255, .10), transparent); }
.cover__chair img { filter: grayscale(1) brightness(.78) contrast(1.12); }
/* fade the lower part of the chair so the text stays readable */
.cover__pin::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent 52%, rgba(0, 0, 0, .82) 76%, #000 96%);
}
.cover__title {
  position: absolute; left: 0; right: 0; top: 25%; z-index: 3;
  font-family: var(--font); font-stretch: normal; font-weight: 700;
  font-size: clamp(64px, 10.5vw, 168px); letter-spacing: -.035em; text-transform: none;
}
.cover__text, .cover .btn, .cover__meta { position: relative; z-index: 3; }
.cover__meta { margin-top: 6px; }
@media (max-width: 760px) {
  .cover__title { top: 26%; font-size: clamp(56px, 19vw, 96px); }
  .cover__chair { top: 33%; }
  .cover__pin::after { background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, .85) 72%, #000 92%); }
}
/* tune: whole chair visible down to the footrest, chrome stays bright */
.cover__chair { top: 27%; height: min(100%, 130vw); }
.cover__chair img { filter: grayscale(1) brightness(.92) contrast(1.1); }
.cover__pin::after { background: linear-gradient(to bottom, transparent 62%, rgba(0, 0, 0, .7) 80%, #000 97%); }
.cover__title { top: 23%; }
@media (max-width: 760px) {
  .cover__chair { top: 30%; height: min(92%, 130vw); }
  .cover__title { top: 24%; }
  .cover__pin::after { background: linear-gradient(to bottom, transparent 58%, rgba(0, 0, 0, .78) 76%, #000 94%); }
}

/* =========================================================
   Cover v3 — just the word and the chair (like the mockup),
   text and actions live in a calm block right below
   ========================================================= */
.cover { display: block; min-height: 0; }
.cover__pin {
  position: relative; overflow: hidden; display: block;
  height: 100vh; height: 100svh; min-height: 560px; padding: 0;
}
.cover__chair {
  position: absolute; left: 50%; top: 31%; z-index: 0;
  height: min(108%, 150vw); aspect-ratio: 2 / 3;
  translate: -50% calc(var(--p, 0) * -50px);
  scale: calc(1 + var(--p, 0) * .04);
}
.cover__chair::before { inset: -12% -45% 35%; background: radial-gradient(closest-side, rgba(255, 255, 255, .09), transparent); }
.cover__chair img { filter: grayscale(1) brightness(.82) contrast(1.18); }
/* vignette: edges and the bottom melt into black */
.cover__pin::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 75% at 50% 48%, transparent 45%, rgba(0, 0, 0, .9) 100%),
    linear-gradient(to bottom, transparent 70%, #000 100%);
}
.cover__title {
  position: absolute; left: 0; right: 0; top: 43%; z-index: 3;
  transform: translateY(-50%);
  font-size: min(12vw, 30vh); letter-spacing: -.035em;
}

.cover__info {
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
  padding: 8px var(--pad) clamp(72px, 12vh, 120px);
}
.cover__info .cover__meta { margin-top: 4px; }

@media (max-width: 760px) {
  .cover__chair { top: 33%; height: min(80%, 150vw); }
  .cover__title { top: 38%; font-size: min(22vw, 22vh); }
  .cover__pin::after {
    background:
      radial-gradient(ellipse 90% 70% at 50% 50%, transparent 50%, rgba(0, 0, 0, .9) 100%),
      linear-gradient(to bottom, transparent 72%, #000 100%);
  }
}

/* =========================================================
   Cover v4 — full-bleed photo, huge word bottom-left,
   short text + booking bottom-right
   ========================================================= */
.cover { display: block; min-height: 0; }
.cover__pin {
  position: relative; overflow: hidden; display: grid;
  grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; align-items: end; gap: 24px 48px;
  height: 100vh; height: 100svh; min-height: 600px;
  padding: calc(64px + var(--notice) + 28px) var(--pad) 40px;
  text-align: left; justify-content: initial;
}
.cover__pin::after {                 /* darken the bottom so the type reads */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .45) 0%, transparent 25%, transparent 45%, rgba(0, 0, 0, .85) 82%, #000 100%);
}
.cover__photo { position: absolute; inset: 0; z-index: 0; translate: 0 calc(var(--p, 0) * 80px); }
.cover__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block;
  filter: grayscale(1) contrast(1.12) brightness(.9);
  animation: photo-in 2.2s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes photo-in { from { transform: scale(1.14); } to { transform: scale(1); } }

.cover__kicker {
  position: absolute; z-index: 2; top: calc(64px + var(--notice) + 24px); left: var(--pad);
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8);
  animation: rise 1s var(--ease) .3s backwards;
}
.cover__title {
  position: relative; z-index: 2; grid-column: 1; grid-row: 2;
  top: auto; left: auto; right: auto; transform: none;
  text-align: left; align-self: end; margin: 0 0 -.06em -.04em;
  font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase;
  font-size: min(26vw, 36vh); line-height: .8; letter-spacing: -.01em;
}
.cover__side {
  position: relative; z-index: 2; grid-column: 2; grid-row: 2;
  display: grid; gap: 16px; justify-items: start; max-width: 340px; padding-bottom: .4em;
  animation: rise 1s var(--ease) .6s backwards;
}
.cover__side .cover__text { font-size: 17px; line-height: 1.45; text-align: left; margin: 0; max-width: none; animation: none; }
.cover__side .btn { margin: 0; animation: none; }
.cover__side .cover__meta { justify-content: flex-start; margin: 0; animation: none; }
.cover__side .pill { background: rgba(0, 0, 0, .35); }

@media (max-width: 860px) {
  .cover__pin { grid-template-columns: 1fr; grid-template-rows: 1fr auto auto; gap: 20px; padding-bottom: 28px; }
  .cover__title { grid-column: 1; grid-row: 2; font-size: min(30vw, 30vh); }
  .cover__side { grid-column: 1; grid-row: 3; max-width: none; padding-bottom: 0; }
  .cover__photo img { object-position: 55% 25%; }
}
@media (prefers-reduced-motion: reduce) {
  .cover__photo { translate: none; }
  .cover__photo img { animation: none; }
}
@media (min-width: 861px) { .cover__photo img { object-position: 50% 23%; } }
/* cover without the photo: plain black, no darkening layer */
.cover__pin::after { content: none; }
.cover__side .pill { background: transparent; }

/* =========================================================
   Cover — centred: big word in the middle, everything stacked under it
   ========================================================= */
.cover { background: var(--bg); color: var(--fg); }

/* ---------- A · centred: big word in the middle, everything stacked under it ---------- */
.cover[data-hero="a"] .cover__pin {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center;
}
.cover[data-hero="a"] .cover__kicker { left: 0; right: 0; text-align: center; }
.cover[data-hero="a"] .cover__title {
  font-family: var(--font); font-stretch: normal; font-weight: 700; text-transform: none;
  font-size: min(22vw, 34vh); letter-spacing: -.045em; line-height: .85; text-align: center; margin: 0;
}
.cover[data-hero="a"] .cover__side { justify-items: center; text-align: center; max-width: 520px; padding: 0; }
.cover[data-hero="a"] .cover__side .cover__text { text-align: center; }
.cover[data-hero="a"] .cover__side .cover__meta { justify-content: center; }

/* phones */
@media (max-width: 760px) {
  .cover[data-hero="a"] .cover__title { font-size: min(26vw, 26vh); }
}
/* variant fixes: undo the bottom-right alignment inherited from the previous cover */
.cover[data-hero] .cover__pin { align-items: stretch; }
.cover[data-hero="a"] .cover__pin { align-items: center; }
.cover[data-hero="a"] .cover__title { align-self: center; }
.cover[data-hero="a"] .cover__side .cover__text { text-wrap: balance; }

/* on scroll the word goes out of focus instead of flying away (--p set from scrollY) */
.cover__title .ch { translate: none; rotate: none; }
.cover__title {
  filter: blur(calc(var(--p, 0) * 48px));
  opacity: calc(1 - var(--p, 0) * 1.1);
  scale: calc(1 + var(--p, 0) * .06);
  will-change: filter, opacity;
}
@media (prefers-reduced-motion: reduce) { .cover__title { filter: none; opacity: 1; scale: none; } }

/* phones: collage instead of a swipe row — one wide photo, two below side by side */
@media (max-width: 760px) {
  .gallery {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start;
    margin: 0; padding: 0; overflow: visible; scroll-snap-type: none;
  }
  .gallery .shot { flex: none; margin-top: 0; scroll-snap-align: none; aspect-ratio: 3 / 4; }
  .gallery .shot:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .gallery .shot:nth-child(3) { margin-top: 36px; }   /* editorial step */
}

/* phones, compact: all three photos in one short row */
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .gallery .shot, .gallery .shot:first-child { grid-column: auto; aspect-ratio: 3 / 4; border-radius: 14px; }
  .gallery .shot:nth-child(3) { margin-top: 0; }
  .reveal-shot { clip-path: inset(100% 0 0 0 round 14px); }
  .reveal-shot.in { clip-path: inset(0 0 0 0 round 14px); }
}
/* phones: same composition as desktop — three in a row, the middle one stepped down */
@media (max-width: 760px) {
  .gallery { gap: 8px; }
  .gallery .shot:nth-child(2) { margin-top: 28px; }
}
.cover__kicker { text-transform: none; letter-spacing: 0; font-size: 14px; }

/* cover word: after the intro the letters keep a slow endless wave in place */
.cover__title .ch {
  animation:
    ch-rise 1.1s cubic-bezier(.2, 1.2, .35, 1) calc(.1s + var(--i) * .09s) backwards,
    ch-wave 3.2s ease-in-out calc(1.4s + var(--i) * .22s) infinite;
}
@keyframes ch-wave {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6%; }
}
@media (prefers-reduced-motion: reduce) { .cover__title .ch { animation: none; } }

/* cover status pills: pinned to the bottom edge of the first screen */
.cover[data-hero="a"] .cover__pin > .cover__meta {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 40px;
  justify-content: center; margin: 0;
  animation: rise 1s var(--ease) .7s backwards;
}

/* main CTA (cover, footer): plain pill in the section's foreground colour, lowercase label, wide sides */
.btn--cta {
  background: var(--fg); color: var(--bg); box-shadow: none;
  padding: 0 40px;
  font-size: 24px; font-weight: 500; letter-spacing: -.01em;
}

/* header logo: swaps between the name and the slogan every 5 s */
.bar__logo-text { display: inline-block; white-space: nowrap; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.bar__logo-text.is-swap { opacity: 0; transform: translateY(6px); }

/* cover text: breathing room under the big word, a bit more before the button */
.cover[data-hero="a"] .cover__side { margin-top: clamp(20px, 5vh, 56px); gap: 28px; }
.cover[data-hero="a"] .cover__pin { padding-bottom: 120px; }   /* keep the centred stack clear of the pills pinned at the bottom */
.cover[data-hero="a"] .cover__title { padding-bottom: .22em; margin-bottom: -.1em; }   /* Д tails were clipped by overflow: hidden ("ФЭЙЛ") */
.bar__logo-text.is-slogan { font-weight: 400; letter-spacing: -.005em; }   /* the slogan reads as a sentence, not a wordmark */

/* about gallery: photos scattered like prints on a table — tilted, slightly overlapping;
   a hovered one straightens and comes to the front */
.gallery { gap: 0; }
.gallery .shot {
  --r: 0deg; --x: 0%; --y: 0px;
  rotate: var(--r); translate: var(--x) var(--y);
  box-shadow: 0 0 0 3px var(--bg);                 /* black edge so overlaps read on the black page */
  transition: rotate .6s var(--ease), translate .6s var(--ease), scale .6s var(--ease);
}
.gallery .shot:nth-child(1) { --r: -6deg;  --x: 8%;   --y: 18px; z-index: 1; }
.gallery .shot:nth-child(2) { --r: 3.5deg; --x: 0%;   --y: 0px;  z-index: 2; }
.gallery .shot:nth-child(3) { --r: -2deg;  --x: -10%; --y: 36px; z-index: 3; }
.gallery .shot:hover { rotate: 0deg; scale: 1.03; z-index: 4; }
/* the reveal clip must leave room for the black edge */
.gallery .reveal-shot.in { clip-path: inset(-3px round 23px); }
@media (max-width: 760px) {
  .gallery .shot { box-shadow: 0 0 0 2px var(--bg); }
  .gallery .shot:nth-child(1) { --r: -5deg; --x: 8%;   --y: 10px; }
  .gallery .shot:nth-child(3) { --r: -2deg; --x: -10%; --y: 20px; }
  .gallery .reveal-shot.in { clip-path: inset(-2px round 16px); }
}
@media (prefers-reduced-motion: reduce) { .gallery .shot { transition: none; } }

/* about: the lead sits lower, over the top of the scattered photos, on a soft black glow */
#about .lead {
  position: relative; z-index: 5;
  margin-bottom: -70px;                             /* body gap is 40px → ~30px over the cards */
}
#about .lead::before {
  content: ""; position: absolute; z-index: -1; inset: -60px -90px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .92), rgba(0, 0, 0, .7) 55%, transparent);
  pointer-events: none;
}
@media (max-width: 760px) {
  #about .lead { margin-bottom: -50px; }
  #about .lead::before { inset: -40px -40px; }
}
/* middle photo stands highest, the side ones sit lower */
.gallery .shot:nth-child(2) { margin-top: 0; }
.gallery .shot:nth-child(1) { --y: 56px; }
.gallery .shot:nth-child(3) { --y: 72px; }
@media (max-width: 760px) {
  .gallery .shot:nth-child(2) { margin-top: 0; }
  .gallery .shot:nth-child(1) { --y: 28px; }
  .gallery .shot:nth-child(3) { --y: 36px; }
}
.gallery { padding-bottom: 80px; }                 /* room for the lowered side photos */
@media (max-width: 760px) { .gallery { padding-bottom: 40px; } }
.gallery .shot:nth-child(2) { --y: 32px; }        /* still the highest, but clear of the lead text */
@media (max-width: 760px) { .gallery .shot:nth-child(2) { --y: 14px; } }
.quote blockquote { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.3; max-width: 30em; }   /* quieter review quote */
.gallery .shot:nth-child(3) img { scale: -1 1; }  /* mirrored so the comb leads toward the centre */
/* text links: no underline at rest, it draws in on hover a little lower */
.btn--link::after { bottom: -6px; transform: scaleX(0); }
.btn--link:hover::after { transform: scaleX(1); }

/* services rows: a photo pops up, tilted, next to the title on hover — each row its own angle */
.rows--photos a { overflow: visible; }
.rows--photos img {
  --r: -6deg; --l: 0px;
  position: absolute; z-index: 2; left: calc(clamp(150px, 16vw, 210px) + var(--l)); top: 50%;
  width: 120px; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 45%; border-radius: 12px;
  filter: grayscale(1) contrast(1.05); box-shadow: 0 0 0 3px var(--bg), 0 18px 40px rgba(0, 0, 0, .5);
  pointer-events: none; opacity: 0; translate: 0 -40%; rotate: calc(var(--r) * 1.8); scale: .7;
  transition: opacity .3s var(--ease), translate .45s var(--ease), rotate .45s var(--ease), scale .45s var(--ease);
}
.rows--photos a:hover img { opacity: 1; translate: 0 -55%; rotate: var(--r); scale: 1; }
.rows--photos li:nth-child(1) img { --r: -6deg;  --l: 0px; }
.rows--photos li:nth-child(2) img { --r: 8deg;   --l: 30px; }
.rows--photos li:nth-child(3) img { --r: -3deg;  --l: -10px; }
.rows--photos li:nth-child(4) img { --r: 11deg;  --l: 20px; }
.rows--photos li:nth-child(5) img { --r: -9deg;  --l: 60px; }
.rows--photos li:nth-child(6) img { --r: 4deg;   --l: -20px; }
.rows--photos li:nth-child(7) img { --r: -12deg; --l: 40px; }
@media (hover: none) { .rows--photos img { display: none; } }

/* jobs: "Ищем ___" — the role word rolls like a slot machine; chips pick a role, the button follows it */
.hire { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 4px 0 8px; }
.hire__line {
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 .28em;
  font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase;
  font-size: clamp(34px, 5vw, 64px); line-height: 1.05;
}
.hire__roll {
  display: inline-block; height: 1.05em; overflow: hidden; vertical-align: bottom;
  width: var(--w, auto); transition: width .55s cubic-bezier(.65, 0, .35, 1);
}
.hire__track { display: grid; justify-items: start; translate: 0 calc(var(--n) * -1.05em); transition: translate .55s cubic-bezier(.65, 0, .35, 1); }
.hire__track > span { height: 1.05em; white-space: nowrap; }
.hire__lead { color: var(--mute); }   /* grey «ИЩЕМ», the role in white */
.hire__desc { font-size: 15px; color: var(--mute); min-height: 1.4em; transition: opacity .25s var(--ease); }
.hire__desc.is-swap { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hire__roll, .hire__track { transition: none; } }

/* news: three cards — b/w photo that zooms on hover, tag, title, one line, an arrow that turns */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.news li { display: flex; }
.news-card {
  position: relative; display: grid; align-content: start; gap: 8px; width: 100%;
  padding: 10px 10px 18px; border-radius: 22px; box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .3s var(--ease);
}
.news-card:hover { box-shadow: inset 0 0 0 1px var(--fg); }
.news-card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: #111; margin-bottom: 6px; }
.news-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.05); transition: transform .8s var(--ease);
}
.news-card:hover .news-card__img img { transform: scale(1.06); }
.news-card__tag {
  justify-self: start; margin: 0 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; line-height: 1; letter-spacing: .04em; box-shadow: inset 0 0 0 1px var(--line); color: var(--mute);
}
.news-card__title {
  margin: 2px 6px 0; font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 2.2vw, 28px); line-height: .95;
}
.news-card__text { margin: 0 6px; font-size: 14px; line-height: 1.4; color: var(--mute); }
.news-card__go {
  position: absolute; top: 20px; right: 20px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--fg); color: var(--bg); font-size: 16px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 4px 14px rgba(0, 0, 0, .25);   /* readable on light photos too */
  transition: rotate .4s var(--ease), scale .4s var(--ease);
}
.news-card:hover .news-card__go { rotate: 45deg; scale: 1.08; }
@media (max-width: 760px) {             /* phones: a swipeable row */
  .news {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad);
  }
  .news::-webkit-scrollbar { display: none; }
  .news li { flex: 0 0 78%; scroll-snap-align: center; }
}
/* news: a single card for now — centred, not stretched */
.news { grid-template-columns: minmax(0, calc((100% - 24px) / 3)); justify-content: center; }   /* same size as one of three */
@media (max-width: 760px) {
  .news { display: grid; grid-template-columns: 1fr; margin: 0; padding: 0; overflow: visible; }
  .news li { flex: none; }
}
.hire__roll { font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; padding: 0; text-align: left; cursor: pointer; }
@media (max-width: 760px) { .btn--cta { height: 48px; padding: 0 30px; font-size: 20px; } }   /* phones: a notch smaller */

/* training program: hours as big counting numbers, one line about practice and the diploma */
.program__k { padding-top: 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.program__hours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; }
.program__hours dt {
  font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 5vw, 64px); line-height: 1;
}
.program__hours dd { margin-top: 6px; font-size: 14px; color: var(--mute); }
@media (max-width: 760px) { .program__hours { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; } }
.program__hours dt small { margin-left: .12em; font-size: .4em; font-weight: 500; text-transform: none; color: var(--mute); }

/* course terms window */
.terms {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: clamp(24px, 4vw, 36px);
  border: 0; border-radius: 24px; background: #0b0b0b; color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line); text-align: center; overflow: auto;
}
.terms[open] { display: grid; justify-items: center; gap: 14px; animation: terms-in .4s var(--ease); }
.terms::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(4px); }
@keyframes terms-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.terms__close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  font-size: 22px; line-height: 1; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line);
  transition: color .3s var(--ease), rotate .3s var(--ease);
}
.terms__close:hover { color: var(--fg); rotate: 90deg; }
.terms__k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.terms__title {
  font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase;
  font-size: clamp(32px, 5vw, 44px); line-height: .95;
}
.terms__lead { font-size: 16px; line-height: 1.45; max-width: 36ch; }
.terms .program__k { padding-top: 10px; }
.terms .program__hours { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px 0 6px; }
.terms .program__hours dt { font-size: clamp(30px, 4.4vw, 44px); }
.terms .program__hours dd { font-size: 13px; }
.terms__text { font-size: 14px; line-height: 1.5; color: var(--mute); max-width: 44ch; }
.terms__diploma { font-size: 15px; color: var(--fg); }   /* plain white line, no outline */
.terms__cta { margin-top: 6px; }
@media (max-width: 560px) { .terms .program__hours { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; } }
.terms__close { display: grid; place-items: center; padding: 0; }
.terms__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }

/* «для практиков» window: one-day facts + numbered program */
.terms__facts { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 10px 18px; padding: 4px 0; }
.terms__facts span { font-size: 15px; color: var(--mute); }
.terms__facts b {
  font-family: var(--display); font-stretch: condensed; font-weight: 800;
  font-size: clamp(36px, 5vw, 48px); line-height: 1; color: var(--fg); margin-right: .12em;
}
.terms__list { display: grid; gap: 0; width: 100%; list-style: none; counter-reset: t; text-align: left; border-top: 1px solid var(--line); }
.terms__list li {
  counter-increment: t; display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; row-gap: 2px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.terms__list li::before { content: counter(t, decimal-leading-zero); grid-row: 1 / span 2; font-size: 12px; color: var(--mute); padding-top: 4px; }
.terms__list b { font-weight: 500; font-size: 16px; }
.terms__list span { font-size: 14px; color: var(--mute); }
.terms .terms__cta { height: 44px; padding: 0 24px; font-size: 17px; }   /* calmer inside the window */

/* training: one path from zero to pro — the line draws in, the steps pop up one by one,
   brackets above show which part each course covers */
.path {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 8px; row-gap: 22px;
  padding: 8px 0 12px; text-align: center;
}
.path__course {
  grid-row: 1; grid-column: var(--from) / var(--to);
  position: relative; display: grid; justify-items: center; gap: 4px; padding-bottom: 16px;
}
.path__course::after {                       /* a curly brace ︷ over the course's steps: fixed caps + tip, only the straight parts stretch */
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -2px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M0.75 13.25 Q0.75 6.75 7 6.75 L14 6.75' fill='none' stroke='%23484848' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") left top / 14px 14px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14'%3E%3Cpath d='M0 6.75 L6 6.75 Q12 6.75 12 0.75 Q12 6.75 18 6.75 L24 6.75' fill='none' stroke='%23484848' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center top / 24px 14px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M0 6.75 L7 6.75 Q13.25 6.75 13.25 13.25' fill='none' stroke='%23484848' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right top / 14px 14px no-repeat,
    linear-gradient(#484848, #484848) 13px 6px / calc(50% - 24px) 1.5px no-repeat,
    linear-gradient(#484848, #484848) right 13px top 6px / calc(50% - 24px) 1.5px no-repeat;
}
.path__course b {
  font-family: var(--display); font-stretch: condensed; font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1;
}
.path__course span { font-size: 14px; color: var(--mute); transition: color .3s var(--ease); }
.path__course:hover::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M0.75 13.25 Q0.75 6.75 7 6.75 L14 6.75' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") left top / 14px 14px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14' viewBox='0 0 24 14'%3E%3Cpath d='M0 6.75 L6 6.75 Q12 6.75 12 0.75 Q12 6.75 18 6.75 L24 6.75' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center top / 24px 14px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M0 6.75 L7 6.75 Q13.25 6.75 13.25 13.25' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right top / 14px 14px no-repeat,
    linear-gradient(#fff, #fff) 13px 6px / calc(50% - 24px) 1.5px no-repeat,
    linear-gradient(#fff, #fff) right 13px top 6px / calc(50% - 24px) 1.5px no-repeat;
}
.path__course:hover span { color: var(--fg); }
.path__steps { grid-row: 2; grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; list-style: none; position: relative; }
.path__steps::before {                       /* the line through the dots */
  content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 6px; height: 1.5px; background: var(--fg);
  transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.65, 0, .35, 1) .2s;
}
.path__steps li { position: relative; display: grid; justify-items: center; gap: 12px; font-size: 14px; line-height: 1.25; }
.path__steps li::before {                    /* the dot */
  content: ""; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--fg);
  scale: 0; transition: scale .5s cubic-bezier(.2, 1.4, .35, 1), background-color .3s var(--ease);
  transition-delay: calc(.3s + var(--i) * .17s), 0s;
}
.path__steps li span { opacity: 0; translate: 0 6px; transition: opacity .5s var(--ease), translate .5s var(--ease); transition-delay: calc(.35s + var(--i) * .17s); }
.path.in .path__steps::before { transform: scaleX(1); }
.path.in .path__steps li::before { scale: 1; }
.path.in .path__steps li span { opacity: 1; translate: 0 0; }
.path__steps li:hover::before { background: var(--fg); }
@media (max-width: 760px) {                  /* phones: the path runs downward */
  .path { grid-template-columns: auto 1fr; grid-template-rows: repeat(7, auto); column-gap: 18px; row-gap: 0; text-align: left; }
  .path__course { grid-column: 2; grid-row: var(--from) / var(--to); justify-items: start; align-content: center; padding: 0 0 0 26px; }
  .path__course::after {                     /* phones: the same brace standing upright */
    left: 0; right: auto; top: 8px; bottom: 8px; width: 14px; height: auto; transform: scaleX(-1);   /* «}»: ends wrap the steps, the tip points at the course */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M13.25 0.75 Q6.75 0.75 6.75 7 L6.75 14' fill='none' stroke='%23484848' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") left top / 14px 14px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='24' viewBox='0 0 14 24'%3E%3Cpath d='M6.75 0 L6.75 6 Q6.75 12 0.75 12 Q6.75 12 6.75 18 L6.75 24' fill='none' stroke='%23484848' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") left center / 14px 24px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M6.75 0 L6.75 7 Q6.75 13.25 13.25 13.25' fill='none' stroke='%23484848' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 14px 14px no-repeat,
    linear-gradient(#484848, #484848) 6px 13px / 1.5px calc(50% - 24px) no-repeat,
    linear-gradient(#484848, #484848) left 6px bottom 13px / 1.5px calc(50% - 24px) no-repeat;
  }
  .path__course:hover::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M13.25 0.75 Q6.75 0.75 6.75 7 L6.75 14' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") left top / 14px 14px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='24' viewBox='0 0 14 24'%3E%3Cpath d='M6.75 0 L6.75 6 Q6.75 12 0.75 12 Q6.75 12 6.75 18 L6.75 24' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") left center / 14px 24px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M6.75 0 L6.75 7 Q6.75 13.25 13.25 13.25' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 14px 14px no-repeat,
    linear-gradient(#fff, #fff) 6px 13px / 1.5px calc(50% - 24px) no-repeat,
    linear-gradient(#fff, #fff) left 6px bottom 13px / 1.5px calc(50% - 24px) no-repeat; }
  .path__steps { grid-column: 1; grid-row: 1 / -1; grid-template-columns: none; grid-template-rows: subgrid; }
  .path__steps::before { left: 6px; right: auto; top: 22px; bottom: 22px; width: 1.5px; height: auto; transform: scaleY(0); transform-origin: top; }
  .path.in .path__steps::before { transform: scaleY(1); }
  .path__steps li { grid-template-columns: 13px auto; justify-items: start; align-items: center; padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .path__steps::before { transform: none; }
  .path__steps li::before { scale: 1; }
  .path__steps li span { opacity: 1; translate: none; }
}

/* «с нуля»: two actions under the course name */
.path__acts { display: inline-flex; gap: 14px; font-size: 14px; }
.path__acts a, .path__acts button { color: var(--mute); transition: color .3s var(--ease); }
.path__acts a:hover, .path__acts button:hover { color: var(--fg); }
.path__acts button { font: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

/* wide screens: steps on top, the course braces ︸ and names underneath */
@media (min-width: 761px) {
  .path__steps { grid-row: 1; }
  .path__course { grid-row: 2; padding: 22px 0 0; }
  .path__course::after { top: -2px; bottom: auto; transform: scaleY(-1); }   /* same brace, flipped */
}
.path__acts { white-space: nowrap; }
@media (max-width: 760px) { .path__acts { gap: 12px; } .path { column-gap: 12px; } }

/* floating CTA: see-through with a frosted blur behind, thin outline kept */
.fab {
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
}
.terms__price {
  margin-top: 4px; font-family: var(--display); font-stretch: condensed; font-weight: 800;
  font-size: clamp(32px, 4.4vw, 44px); line-height: 1; letter-spacing: -.01em;
}
/* price + button side by side, list a bit tighter — the windows fit a laptop screen without scrolling */
.terms[open] { gap: 10px; }
.terms__buy { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 6px; }
.terms__buy .terms__price, .terms__buy .terms__cta { margin: 0; }
.terms__list li { padding: 9px 0; }
.terms .program__hours { padding: 0 0 2px; }
@media (max-height: 760px) { .terms { padding-top: 24px; padding-bottom: 24px; } .terms__lead { font-size: 15px; } }
