/* =========================================================
   VERT — Maison de Barbier
   ========================================================= */

:root {
  --black: #0a0a0a;
  --ink: #111311;
  --white: #f1f0ea;
  --paper: #e9e8e1;
  --green-deep: #0c3b2b;
  --green: #17603f;
  --acid: #c6f45a;
  --muted: rgba(241, 240, 234, .56);
  --line: rgba(241, 240, 234, .16);
  --line-dark: rgba(10, 10, 10, .14);
  --error: #ff6b4a;

  --f-display: "Unbounded", "Inter Tight", system-ui, sans-serif;
  --f-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(16px, 3vw, 48px);
  --header-h: 76px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }
svg { display: block; }

::selection { background: var(--acid); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 10001;
  padding: 12px 18px;
  background: var(--acid);
  color: var(--black);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Grain ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9990;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
  100% { transform: translate(0, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--white);
  --fg: var(--black);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--black);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--white); }
.btn svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  transition: transform .5s var(--ease-out);
}
.btn:hover svg { transform: translateX(4px); }

.btn--acid { --bg: var(--acid); --fg: var(--black); }
.btn--light { --bg: var(--white); --fg: var(--black); }
.btn--ghost { --bg: transparent; --fg: currentColor; border: 1px solid currentColor; }
.btn--ghost::before { background: var(--acid); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--black); }
.btn--pill { border-radius: 999px; min-height: 44px; padding: 0 22px; font-size: 14px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn > span { position: relative; }

/* rolling link */
.link-roll { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3; }
.link-roll span { position: relative; display: inline-block; transition: transform .55s var(--ease-out); }
.link-roll span::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 100%;
}
.link-roll:hover span, .link-roll:focus-visible span { transform: translateY(-100%); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  display: none;
}
.js .preloader { display: block; }
.preloader__panel { position: absolute; inset: 0; }
.preloader__panel--green { background: var(--green-deep); }
.preloader__panel--black {
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--gutter);
}
.preloader__top, .preloader__bottom {
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--muted);
}
.preloader__count { color: var(--white); font-size: 14px; }
.preloader__word {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(50px, 21vw, 440px);
  line-height: .8;
  letter-spacing: -.04em;
  overflow: hidden;
  padding-bottom: .04em;
}
.preloader__word span { display: inline-block; transform: translateY(105%); }
.preloader__bar {
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 3px;
  background: var(--line);
}
.preloader__bar span {
  display: block; height: 100%;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor {
  display: block;
  position: fixed;
  top: 0; left: 0;
  z-index: 9995;
  pointer-events: none;
}
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea, .has-cursor select { cursor: auto !important; }
.cursor__dot, .cursor__ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  will-change: transform;
}
.cursor__dot {
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--acid);
}
.cursor__ring {
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border: 1px solid rgba(241, 240, 234, .6);
  display: grid; place-items: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out),
              background-color .45s var(--ease-out), border-color .45s var(--ease-out);
}
.cursor__label {
  font-size: 11px;
  color: var(--black);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s, transform .45s var(--ease-out);
  white-space: nowrap;
}
.cursor.is-hover .cursor__ring {
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-color: var(--acid);
}
.cursor.is-label .cursor__ring {
  width: 104px; height: 104px; margin: -52px 0 0 -52px;
  background: var(--acid);
  border-color: var(--acid);
}
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-hidden { opacity: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--white);
  transition: transform .6s var(--ease-out), color .4s;
}
.header.is-hidden { transform: translateY(-110%); }
.header.menu-open { transform: none; color: var(--white); }
.header.on-light:not(.menu-open) { color: var(--black); }
.header.on-light:not(.menu-open) .header__clock { color: var(--black); }
.header.on-light:not(.menu-open) .btn--light { --bg: var(--black); --fg: var(--white); }
.header.on-light:not(.menu-open) .btn--light::before { background: var(--green); }
.header .btn--light { transition: color .45s var(--ease-out), background-color .4s; }
.header__logo {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -.03em;
  line-height: 1;
}
.header__logo sup { font-size: 9px; margin-left: 2px; vertical-align: super; }
.header__nav { display: flex; gap: clamp(16px, 2.4vw, 40px); font-size: 15px; font-weight: 500; }
.header__right { display: flex; align-items: center; gap: 20px; }
.header__clock { color: var(--white); opacity: .7; white-space: nowrap; }

.burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
}
.burger span {
  position: absolute; left: 10px; right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: transform .5s var(--ease-out);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 800;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) var(--gutter);
}
.menu__bg {
  position: absolute; inset: 0;
  background: var(--green-deep);
  clip-path: inset(0 0 100% 0);
}
.menu__nav { position: relative; display: flex; flex-direction: column; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.menu__nav a span { color: var(--acid); }
.menu__nav em {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 9vw, 64px);
  line-height: 1.1;
  letter-spacing: -.02em;
  display: inline-block;
}
.menu__foot {
  position: relative;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--muted);
}
.menu__foot a { color: var(--white); }

/* ---------- Section basics ---------- */
.section { position: relative; padding: clamp(96px, 14vw, 200px) var(--gutter); }
.section__label {
  display: flex; gap: 18px;
  color: var(--muted);
  margin-bottom: clamp(28px, 4vw, 56px);
}
.section__label span:first-child { color: var(--acid); }

.big-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(48px, 10vw, 180px);
  line-height: .92;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.big-title em { font-weight: 300; color: var(--acid); }

/* split helpers */
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line__inner { display: block; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--green-deep);
}
.hero__reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
  gap: 22px;
  background: var(--green-deep);
}
.hero__reveal-kicker { color: var(--acid); }
.hero__reveal-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(42px, 9vw, 160px);
  line-height: 1.04; /* точки «Ё» во второй строке не налезают на «Т» сверху */
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.hero__reveal-text { font-size: clamp(16px, 1.6vw, 22px); color: var(--muted); }
.hero__reveal-cta { display: none; }

.hero__half {
  position: absolute;
  inset: 0;
  z-index: 1;
  will-change: transform;
}
.hero__half.is-clone { visibility: hidden; pointer-events: none; }
.hero__half.is-clone-top { clip-path: inset(0 0 50% 0); }
.hero__half.is-clone-bottom { clip-path: inset(50% 0 0 0); }

.hero__scene {
  position: absolute;
  inset: 0;
  background: var(--black);
  overflow: hidden;
}
.hero__meta {
  position: absolute;
  top: calc(var(--header-h) + 8px);
  left: var(--gutter); right: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}
.hero__title {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: -.06em;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(50px, 22vw, 480px);
  line-height: .8;
  letter-spacing: -.05em;
  overflow: hidden;
  color: var(--white);
  z-index: 3;
}
.hero__letter { display: inline-block; will-change: transform; }

.hero__photo {
  position: absolute;
  left: 50%; top: 46%;
  width: clamp(220px, 23vw, 420px);
  aspect-ratio: 2 / 3;
  transform: translate(-50%, -50%);
  overflow: hidden;
  z-index: 2;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  transform: scale(1.25);
}

.hero__copy {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  max-width: 340px;
  display: flex; flex-direction: column; gap: 28px; align-items: flex-start;
}
.hero__lead { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.3; font-weight: 500; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px; height: 70px;
  background: linear-gradient(var(--acid), transparent);
  animation: scrollLine 2s var(--ease-io) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero__cut {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  z-index: 4;
  height: 0;
  pointer-events: none;
}
.hero__cut-line {
  position: absolute;
  left: 0; top: -1px;
  width: 100%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--acid) 0 14px, transparent 14px 24px);
  transform: scaleX(0);
  transform-origin: left;
}
.scissors {
  position: absolute;
  left: 0; top: 0;
  width: clamp(110px, 14vw, 230px);
  height: auto;
  color: var(--white);
  transform: translate(-110%, -50%);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .5));
}
.no-js .hero__cut { display: none; }

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 2;
  background: var(--acid);
  color: var(--black);
  overflow: hidden;
  padding: clamp(14px, 1.6vw, 24px) 0;
  border-block: 1px solid var(--black);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  width: max-content;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 84px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.03em;
  white-space: nowrap;
  will-change: transform;
}
.marquee__track i { font-style: normal; font-weight: 300; font-size: .6em; }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--black); }
.manifesto__text {
  font-size: clamp(28px, 4.6vw, 78px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -.03em;
  max-width: 1400px;
}
.manifesto__text .word { display: inline-block; }
.js .manifesto__text .word { opacity: .14; }
.inline-img {
  display: inline-block;
  width: 1.5em; height: .82em;
  vertical-align: -.06em;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 .08em;
}
.inline-img--wide { width: 2.3em; }
.inline-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

.manifesto__stats {
  margin-top: clamp(72px, 10vw, 160px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.stat {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 20px 0 0;
}
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat__num {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 84px);
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--muted); }

/* ---------- Tools ---------- */
.tools {
  position: relative;
  background: var(--white);
  color: var(--black);
  overflow: hidden;
}
.tools .section__label { color: rgba(10, 10, 10, .55); }
.tools .section__label span:first-child { color: var(--green); }
.tools__pin {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
  padding: calc(var(--header-h) + 20px) 0 48px;
}
.tools__head {
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}
.tools__head .section__label { grid-column: 1 / -1; margin-bottom: 0; }
.tools__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(42px, 7vw, 120px);
  line-height: .92;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.tools__title em { font-weight: 300; color: var(--green); }
.tools__progress {
  width: clamp(120px, 18vw, 280px);
  height: 2px;
  background: var(--line-dark);
  margin-bottom: 12px;
}
.tools__progress span {
  display: block; height: 100%;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
}
.tools__track {
  display: flex;
  gap: 0;
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}
.tool {
  position: relative;
  width: clamp(300px, 30vw, 460px);
  padding: 24px clamp(20px, 2vw, 36px) 8px;
  border-left: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tool:last-child { border-right: 1px solid var(--line-dark); }
.tool__num { color: rgba(10, 10, 10, .5); }
.tool__art {
  aspect-ratio: 1;
  display: grid; place-items: center;
  background:
    linear-gradient(var(--line-dark) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px) 0 0 / 24px 24px;
  background-color: var(--paper);
}
.tool__art--photo { overflow: hidden; background: var(--black); }
.tool__art--photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.tool-svg { width: 82%; height: auto; color: var(--black); overflow: visible; }
.tool-svg .dim-text { font-family: var(--f-mono); font-size: 9px; letter-spacing: .1em; fill: currentColor; }
.pin { fill: var(--acid); }
.tool-svg .pin { fill: var(--green); }
.tool-svg .hum { stroke: var(--green); opacity: 0; }
.tool__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -.03em;
  text-transform: uppercase;
}
.tool__desc { color: rgba(10, 10, 10, .68); max-width: 34ch; }
.tool--photo { width: clamp(340px, 42vw, 680px); justify-content: center; }
.tool__photo { overflow: hidden; aspect-ratio: 3 / 2; }
.tool__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.tool__photo-cap { color: rgba(10, 10, 10, .55); }

/* ---------- Lookbook ---------- */
.lookbook { background: var(--black); }
.lookbook__head {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 360px);
  align-items: end;
  gap: 32px;
  margin-bottom: clamp(56px, 8vw, 120px);
}
.lookbook__head .section__label { grid-column: 1 / -1; margin-bottom: 0; }
.lookbook__intro { color: var(--muted); font-size: 17px; }
.lookbook__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 32px);
  align-items: start;
}
.lookbook__col { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 64px); will-change: transform; }
.lookbook__col--offset { margin-top: clamp(60px, 12vw, 220px); }
.look { display: block; width: 100%; text-align: left; }
.look__frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--ink);
}
.look__frame::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--green);
  mix-blend-mode: color;
  opacity: .55;
  transition: opacity .8s var(--ease-out);
}
.look__frame img {
  width: 100%; height: 118%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transform: translateY(-8%);
  transition: filter .8s var(--ease-out);
}
.look:hover .look__frame::after, .look:focus-visible .look__frame::after { opacity: 0; }
.look:hover .look__frame img, .look:focus-visible .look__frame img { filter: grayscale(0) contrast(1); }
.look__cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 17px; font-weight: 500;
}
.look__cap .mono { color: var(--acid); white-space: nowrap; }
.look__cap > span:last-child { transition: transform .5s var(--ease-out); }
.look:hover .look__cap > span:last-child { transform: translateX(-6px); }

/* ---------- Services ---------- */
.services { background: var(--green-deep); overflow: hidden; }
.services .big-title { margin-bottom: clamp(40px, 6vw, 88px); }
.services__list { border-top: 1px solid var(--line); position: relative; z-index: 2; }
.service {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 60px 1fr auto 140px;
  align-items: center;
  gap: 20px;
  padding: clamp(18px, 2.4vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow: hidden;
  isolation: isolate;
}
.service::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--acid);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .55s var(--ease-out);
}
.service:focus-visible::before { transform: scaleY(1); }
.service:focus-visible { color: var(--black); }
.service:focus-visible .service__num, .service:focus-visible .service__time { color: var(--black); }
@media (hover: hover) {
  .service:hover::before { transform: scaleY(1); }
  .service:hover { color: var(--black); }
  .service:hover .service__num, .service:hover .service__time { color: var(--black); }
  }
.service__num { color: var(--acid); padding-left: 8px; transition: color .3s; }
.service__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 3.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -.035em;
  text-transform: uppercase;
  transition: transform .6s var(--ease-out);
}
.service:hover .service__name { transform: translateX(18px); }
.service__time { color: var(--muted); transition: color .3s; }
.service__price {
  font-size: clamp(17px, 1.6vw, 24px);
  font-weight: 600;
  text-align: right;
  padding-right: 8px;
  font-variant-numeric: tabular-nums;
}
.services__float {
  position: fixed;
  left: 0; top: 0;
  z-index: 3;
  width: clamp(220px, 20vw, 320px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  visibility: hidden;
}
.services__float-inner { width: 100%; height: 100%; overflow: hidden; transform: scale(0); }
.services__float img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }

/* ---------- Space ---------- */
.space { background: var(--black); padding: 0; }
.space__frame {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.js .space__frame { clip-path: inset(12% 18% 12% 18%); }
.space__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(.75);
  transform: scale(1.3);
}
.space__caption {
  position: absolute;
  left: var(--gutter); bottom: var(--gutter);
  display: flex; flex-direction: column; gap: 14px;
}
.space__caption .mono { color: var(--acid); }
.space__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 96px);
  line-height: .95;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

/* ---------- Barbers ---------- */
.barbers { background: var(--black); }
.barbers__head { margin-bottom: clamp(48px, 7vw, 100px); }
.barbers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 24px);
}
.barber:nth-child(even) { margin-top: clamp(40px, 7vw, 120px); }
.barber__frame {
  position: relative;
  aspect-ratio: 3 / 4.2;
  overflow: hidden;
  background: var(--ink);
}
.barber__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1);
  transition: filter .8s var(--ease-out), transform 1.2s var(--ease-out);
}
.barber__info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px;
  background: var(--green-deep);
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
  transform: translateY(101%);
  transition: transform .7s var(--ease-out);
}
.barber__info p { font-size: 15px; line-height: 1.4; }
.barber:hover .barber__info, .barber:focus-within .barber__info { transform: translateY(0); }
.barber:hover .barber__frame img, .barber:focus-within .barber__frame img { filter: grayscale(0) contrast(1); transform: scale(1.05); }
.barber__meta { padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.barber__meta .mono { color: var(--muted); }
.barber__name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 28px);
  letter-spacing: -.03em;
  text-transform: uppercase;
  line-height: 1.1;
}

@media (hover: none) {
  .barber__info { position: relative; transform: none; }
  .barber__frame { aspect-ratio: auto; }
  .barber__frame img { aspect-ratio: 3 / 4; }
}

/* ---------- Booking ---------- */
.booking {
  background: var(--white);
  color: var(--black);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
}
.booking .section__label { color: rgba(10, 10, 10, .55); }
.booking .section__label span:first-child { color: var(--green); }
.booking .big-title em { color: var(--green); }
.booking__note { margin-top: 28px; max-width: 40ch; font-size: 17px; color: rgba(10, 10, 10, .7); }
.booking__photo {
  margin-top: 48px;
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.booking__photo img { width: 100%; height: 120%; object-fit: cover; filter: grayscale(1) contrast(1.1); }

.booking__right { align-self: center; }
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.field--half { grid-column: span 1; }
.field label {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, .7);
}
.field__opt { text-transform: none; letter-spacing: 0; color: rgba(10, 10, 10, .5); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(10, 10, 10, .35);
  border-radius: 0;
  color: var(--black);
  font: 500 18px/1.3 var(--f-sans);
  transition: border-color .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 88px; }
.field select {
  text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 18px;
  padding-right: 28px;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(10, 10, 10, .4); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--green);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.field.is-invalid input, .field.is-invalid select { border-bottom-color: #b3261e; }
.field__error { min-height: 20px; font-size: 13px; color: #b3261e; }

.check {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 12px;
  margin-top: 8px;
  font-size: 15px;
  cursor: pointer;
  min-height: 44px;
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex: none;
  width: 22px; height: 22px;
  border: 1px solid rgba(10, 10, 10, .5);
  display: grid; place-items: center;
  transition: background-color .3s, border-color .3s;
}
.check__box::after {
  content: "";
  width: 10px; height: 6px;
  border-left: 2px solid var(--acid);
  border-bottom: 2px solid var(--acid);
  transform: rotate(-45deg) scale(0);
  margin-top: -3px;
  transition: transform .35s var(--ease-out);
}
.check input:checked + .check__box { background: var(--black); border-color: var(--black); }
.check input:checked + .check__box::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--green); outline-offset: 3px; }
.form > .field__error { grid-column: 1 / -1; }
.form .btn { grid-column: 1 / -1; margin-top: 12px; min-height: 60px; font-size: 16px; }
.form .btn:hover::before { background: var(--black); }

.btn__spinner {
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
}
.btn.is-loading .btn__label { opacity: 0; }
.btn.is-loading .btn__spinner { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: 40px 0;
  outline: none;
}
.form-success[hidden] { display: none; }
.form-success svg { width: 80px; height: 80px; fill: none; stroke: var(--green); stroke-width: 2; }
.form-success svg circle, .form-success svg path { stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw 1.2s var(--ease-out) forwards; }
.form-success svg path { animation-delay: .4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 60px);
  letter-spacing: -.04em;
  text-transform: uppercase;
  line-height: 1;
}
.form-success p { font-size: 17px; color: rgba(10, 10, 10, .75); max-width: 44ch; }
.form-success .btn--ghost { color: var(--black); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--black);
  padding: clamp(96px, 12vw, 180px) var(--gutter) 24px;
  overflow: hidden;
}
.footer__cta { margin-bottom: clamp(64px, 9vw, 140px); }
.footer__cta-link {
  display: inline-flex;
  align-items: center;
  gap: .2em;
  flex-wrap: wrap;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 170px);
  line-height: .95;
  letter-spacing: -.05em;
  text-transform: uppercase;
  background: linear-gradient(var(--acid), var(--acid)) 0 100% / 0 6px no-repeat;
  transition: background-size .8s var(--ease-out), color .5s;
}
.footer__cta-link em { font-weight: 300; color: var(--acid); }
.footer__cta-link svg {
  width: .7em; height: .7em;
  fill: none; stroke: var(--acid); stroke-width: 1.6;
  transition: transform .6s var(--ease-out);
}
.footer__cta-link:hover, .footer__cta-link:focus-visible { background-size: 100% 6px; }
.footer__cta-link:hover svg { transform: rotate(45deg); }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__h { color: var(--acid); margin-bottom: 6px; }
.footer__link, .footer__text { font-size: 18px; line-height: 1.4; }
.footer__link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out), color .3s;
  padding: 2px 0;
}
.footer__link:hover, .footer__link:focus-visible { background-size: 100% 1px; color: var(--acid); }
.socials { display: flex; gap: 10px; }
.social {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: background-color .4s, border-color .4s, color .4s;
}
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.social:hover, .social:focus-visible { background: var(--acid); border-color: var(--acid); color: var(--black); }

.footer__giant {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(50px, 20vw, 440px);
  line-height: .78;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(241, 240, 234, .35);
  margin: 20px 0 30px;
  user-select: none;
  overflow: hidden;
  padding-top: .04em;
}
.footer__giant span {
  display: inline-block;
  transition: color .6s var(--ease-out), -webkit-text-stroke-color .6s;
}
.footer__giant span:hover { color: var(--green); -webkit-text-stroke-color: var(--acid); }

.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.to-top {
  min-height: 44px;
  padding: 0 4px;
  color: var(--white);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: color .3s;
}
.to-top:hover { color: var(--acid); }

/* ---------- Look modal ---------- */
.look-modal {
  width: min(1100px, calc(100% - 2 * var(--gutter)));
  max-width: none;
  max-height: calc(100% - 2 * var(--gutter));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--black);
  overflow: auto;
}
.look-modal::backdrop { background: rgba(5, 12, 9, .78); backdrop-filter: blur(6px); }
.look-modal__inner {
  position: relative;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.look-modal__img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--ink); }
.look-modal__img img { width: 100%; height: 100%; object-fit: cover; }
.look-modal__body {
  padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: center; gap: 20px; align-items: flex-start;
}
.look-modal__body > .mono { color: var(--green); }
.look-modal__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.look-modal__desc { font-size: 17px; color: rgba(10, 10, 10, .72); }
.look-modal__specs { width: 100%; border-top: 1px solid var(--line-dark); }
.look-modal__specs div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
}
.look-modal__specs dt { color: rgba(10, 10, 10, .55); }
.look-modal__specs dd { font-weight: 600; text-align: right; }
.look-modal__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  transition: transform .5s var(--ease-out), background-color .3s;
}
.look-modal__close:hover { transform: rotate(90deg); background: var(--green); }
.look-modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .header__nav, .header__clock { display: none; }
  .burger { display: block; }
  .barbers__grid { grid-template-columns: repeat(3, 1fr); }
  .barber:nth-child(even) { margin-top: 0; }
  .barber:nth-child(2n) { transform: translateY(48px); }
  .barbers__grid { padding-bottom: 48px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header__right .btn { display: none; }

  .hero__photo { width: 52vw; top: 47%; }
  .hero__copy {
    top: auto;
    bottom: calc(29vw + 28px);
    transform: none;
    max-width: none;
    right: var(--gutter);
    gap: 18px;
  }
  .hero__photo { top: 40%; width: 44vw; }
  .hero__lead br { display: none; }
  .hero__lead { max-width: 30ch; }
  .hero__scroll { display: none; }
  .hero__meta span:nth-child(2) { display: none; }

  .manifesto__stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-bottom: 28px; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .tools__pin { min-height: 0; padding: clamp(80px, 14vw, 120px) 0; }
  .tools__head { grid-template-columns: 1fr; }
  .tools__progress { display: none; }
  .tools__track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tools__track::-webkit-scrollbar { display: none; }
  .tool { flex: none; width: 78vw; scroll-snap-align: start; }
  .tool--photo { width: 86vw; }

  .lookbook__head { grid-template-columns: 1fr; }
  .lookbook__grid { grid-template-columns: repeat(2, 1fr); }
  .lookbook__col--offset { margin-top: 0; }
  .lookbook__col:nth-child(2) { margin-top: 64px; }
  .lookbook__col:nth-child(3) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 14px; }
  .lookbook__col:nth-child(3) .look:last-child { grid-column: 1 / -1; }
  .lookbook__col:nth-child(3) .look:last-child .look__frame { aspect-ratio: 4 / 3; }

  .service { grid-template-columns: 36px 1fr auto; gap: 6px 12px; }
  .look__cap { font-size: 14px; flex-direction: column; gap: 4px; }
  .service__price { white-space: nowrap; }
  .service__time { grid-column: 2; grid-row: 2; }
  .service__price { grid-column: 3; grid-row: 1 / span 2; }
  .services__float { display: none; }

  .js .space__frame { clip-path: inset(8% 6% 8% 6%); }
  .space__frame { height: 80vh; height: 80svh; }

  .booking { grid-template-columns: 1fr; }
  .booking__photo { display: none; }

  .footer__grid { grid-template-columns: repeat(2, 1fr); }

  .look-modal__inner { grid-template-columns: 1fr; }
  .look-modal__img { aspect-ratio: 4 / 3; }
}

/* Телефон: сначала разрез фото, потом текст и кнопки (они живут в .hero__reveal) */
@media (max-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js .hero__copy { display: none; }
  .js .hero__reveal { gap: 16px; }
  .js .hero__reveal-cta {
    display: flex; flex-direction: column; align-items: stretch; gap: 12px;
    width: 100%; max-width: 360px; margin-top: 10px;
  }
  .hero__reveal-lead { font-size: 15px; line-height: 1.4; color: var(--muted); margin-bottom: 6px; }
  .hero__reveal-cta .btn { justify-content: center; }
}

@media (max-width: 560px) {
  .hero__meta span:nth-child(3) { display: none; }
  .hero__photo { width: 54vw; top: 38%; }
  .hero__copy .btn { width: 100%; }
  .barbers__grid { grid-template-columns: 1fr; }
  .barber:nth-child(2n) { transform: none; }
  .barbers__grid { padding-bottom: 0; }
  .form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .grain { animation: none; }
  .js .manifesto__text .word { opacity: 1; }
  .js .space__frame { clip-path: none; }
  .space__frame img, .hero__photo img { transform: none; }
  .look__frame img { height: 100%; transform: none; }
  .booking__photo img { height: 100%; }
}

/* demo notes */
.footer__top { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; margin-bottom: clamp(64px, 9vw, 140px); }
.footer__top .footer__cta { margin-bottom: 0; }
.footer__demo { max-width: 46ch; font-size: 17px; color: var(--muted); }

/* demo watermark */
.watermark {
  position: fixed;
  inset: 0;
  z-index: 9989;
  pointer-events: none;
  user-select: none;
  opacity: .1;
  background-repeat: repeat;
  background-size: 360px 220px;
}
.demo-badge {
  position: fixed;
  left: 16px; bottom: 16px;
  z-index: 9989;
  padding: 8px 12px;
  background: rgba(10, 10, 10, .72);
  color: var(--white);
  border: 1px solid var(--line);
  font: 500 11px/1 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  backdrop-filter: blur(6px);
}
.demo-badge b { color: var(--acid); font-weight: 500; }
