/* style.css — «Сеанс 24/7». Монохром фейда; день — бумага, ночь — чернила (design/direction.md). */
:root {
  /* сигнатура — гребень-часы: короткий зубец = дневной час, длинный = ночной */
  --signature-tooth-day: 58px; --signature-tooth-night: 104px;
  --font-display: 'Fira Sans Extra Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Golos Text', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --step--1: .8125rem; --step-0: 1rem; --step-1: 1.25rem; --step-2: 1.6rem;
  --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2.5rem;
  --gutter: clamp(18px, 3.4vw, 52px);
  --container: 1380px;
  --ease-out: cubic-bezier(.16, 1, .3, 1); /* expo-out: быстрый старт, мягкая остановка — как проход машинки */
  --dur-micro: .18s; --dur-reveal: .7s; --dur-theme: .7s;
  --radius-control: 0;
  /* день */
  --surface: #EDEDEA; --ink: #0E0E0E; --ink-muted: #5E5E58; --line: #C9C9C3;
  --head: #C4C4BE; --head-2: #A9A9A2; --hair-grey: #8F8F88;
  --accent: var(--ink); --on-accent: var(--surface); --plane: #E2E2DE;
  --mirror: #121212;
}
html[data-time="night"] {
  --surface: #0A0A0A; --ink: #EFEFEA; --ink-muted: #8C8C86; --line: #2C2C2A;
  --head: #3A3A37; --head-2: #2A2A28; --hair-grey: #6C6C66;
  --plane: #151514;
}
body, .header, .mobile-menu, .btn, .comb i, .pr, .stage .giant__word { transition: background-color var(--dur-theme) ease, color var(--dur-theme) ease, border-color var(--dur-theme) ease; }
::selection { background: var(--ink); color: var(--surface); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .02em; text-transform: uppercase; }
.wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.kicker { color: var(--ink-muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ── кнопки: строгие, без скруглений */
.btn { min-height: 52px; padding: 0 1.6em; font: 600 .875rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; border: 1.5px solid var(--ink); }
.btn--ink { background: var(--ink); color: var(--surface); }
.btn--ink:hover { background: transparent; color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--surface); }
.btn--sm { min-height: 40px; padding: 0 1.1em; font-size: .75rem; }

/* ── шапка */
.header { position: fixed; inset: 0 0 auto; background: color-mix(in oklab, var(--surface) 94%, transparent); border-bottom: 1px solid var(--line); }
.header__inner { width: calc(100% - 2 * var(--gutter)); margin-inline: auto; min-height: 64px; }
.logo { font: 800 1.75rem/1 var(--font-display); letter-spacing: .02em; text-decoration: none; display: flex; align-items: flex-start; gap: .25em; }
.logo span { font: 500 .625rem/1 var(--font-mono); letter-spacing: .04em; margin-top: .2em; }
.nav__list { gap: clamp(14px, 2vw, 32px); }
.nav__list a { text-decoration: none; font-weight: 500; font-size: .9375rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease-out); padding-bottom: 2px; }
.nav__list a:hover { background-size: 100% 1.5px; }
.clock-chip { display: inline-flex; align-items: center; gap: .5em; font: 500 .75rem/1 var(--font-mono); text-decoration: none; padding: .55em .8em; border: 1px solid var(--line); text-transform: uppercase; }
.clock-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: blink 2s steps(2, end) infinite; }
.clock-chip b { font-weight: 500; color: var(--ink-muted); }
@keyframes blink { 50% { opacity: .15; } }
.lang button { font: 500 .75rem/1 var(--font-mono); }
.header__call { min-height: 40px; }
@media (max-width: 1100px) { .header__call { display: none; } }
@media (max-width: 900px) { .clock-chip { padding: .45em .6em; } .mobile-menu ul { font: 800 2.4rem/1.1 var(--font-display); text-transform: uppercase; } .mobile-menu a { text-decoration: none; } }

/* ── сцена «Сеанс» */
.session { position: relative; height: 720vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#head { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.giant { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: grid; align-items: start; }
.giant__word { display: block; font: 800 clamp(10rem, 34vw, 42rem)/.78 var(--font-display); letter-spacing: -.01em; text-align: center; color: var(--ink); white-space: nowrap; margin-top: calc(64px + 4vh);
  transition: color var(--dur-theme) ease, opacity .8s var(--ease-out), transform 1.2s var(--ease-out); }
.session.is-past-hero .giant__word { opacity: .07; transform: scale(1.04); }
.corner { position: absolute; z-index: 2; top: calc(64px + 18px); color: var(--ink-muted); }
.corner--tl { left: var(--gutter); }
.corner--tr { right: var(--gutter); }

.steps { position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(28px, 8vh, 90px); width: min(34vw, 470px); }
.step { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(28px); transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); pointer-events: none; }
.step.is-on { opacity: 1; transform: none; pointer-events: auto; transition-delay: .08s; }
.step__num { color: var(--ink-muted); margin-bottom: .9rem; }
.step__title { font: 800 clamp(3.4rem, 7.2vw, 7.6rem)/.86 var(--font-display); text-transform: uppercase; letter-spacing: -.005em; }
.step__text { margin-top: 1.1rem; max-width: 30ch; color: var(--ink); font-size: 1.0625rem; }
.step__price { margin-top: 1.4rem; display: flex; align-items: baseline; gap: .4em; }
.step__price b { font: 800 clamp(2.6rem, 4.4vw, 4.4rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.step__price .cur { font: 500 .875rem/1 var(--font-mono); text-transform: uppercase; color: var(--ink-muted); }
.step__alt { margin-top: .5rem; color: var(--ink-muted); }
.step__cta { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.6rem; }
.step--hero .step__lead { font: 500 clamp(1.25rem, 1.9vw, 1.75rem)/1.2 var(--font-body); max-width: 22ch; margin-top: 1rem; }
.step__kicker { color: var(--ink); }
.step__hint { margin-top: 1.8rem; color: var(--ink-muted); }
.rail { position: absolute; z-index: 2; right: var(--gutter); top: 30vh; bottom: 30vh; width: 1.5px; background: var(--line); }
.rail i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 0; transform: scaleY(0); }

@media (max-width: 760px) {
  .session { height: 640vh; }
  .giant { align-items: start; }
  .giant__word { font-size: 37vw; margin-top: calc(64px + 16vh); }
  .corner { top: calc(64px + 12px); font-size: .6875rem; }
  .steps { left: var(--gutter); right: var(--gutter); width: auto; bottom: 86px; }
  .corner--tr { display: none; }
  .step::before { content: ""; position: absolute; inset: -40px calc(-1 * var(--gutter)) -86px; z-index: -1; background: linear-gradient(to bottom, transparent, var(--surface) 38%); }
  .step__title { font-size: 3.4rem; }
  .step__text { margin-top: .5rem; font-size: .9375rem; max-width: 34ch; }
  .step__price { margin-top: .7rem; }
  .step__price b { font-size: 2.5rem; }
  .step--hero .step__lead { font-size: 1.15rem; margin-top: .5rem; }
  .step__cta { margin-top: 1rem; }
  .step__cta .btn { flex: 1; }
  .step__hint { margin-top: .9rem; }
  .rail { top: auto; bottom: auto; left: 0; right: 0; top: 64px; height: 2px; width: auto; }
  .rail i { transform-origin: 0 0; transform: scaleX(var(--p, 0)) !important; }
}

/* ── цены и гребень-часы */
.prices { padding: clamp(90px, 14vh, 160px) 0 clamp(80px, 12vh, 140px); border-top: 1px solid var(--line); }
.prices__head { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 1.2rem 4vw; align-items: end; }
.prices__head .kicker { grid-column: 1 / -1; }
.prices__title { font: 800 clamp(4.2rem, 11vw, 11.5rem)/.82 var(--font-display); text-transform: uppercase; }
.prices__title em { font-style: normal; color: var(--ink-muted); }
.prices__lead { font-size: 1.0625rem; max-width: 34ch; }

.comb { position: relative; margin-top: clamp(48px, 8vh, 90px); height: 190px; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.comb:focus-visible { outline-offset: 10px; }
.comb__spine { position: absolute; left: 0; right: 0; top: 34px; height: 22px; background: var(--ink); }
.comb__teeth { position: absolute; left: 0; right: 0; top: 56px; display: grid; grid-template-columns: repeat(24, 1fr); gap: 0 clamp(3px, .7vw, 12px); padding-inline: clamp(3px, .35vw, 6px); }
.comb__teeth i { height: var(--signature-tooth-day); background: color-mix(in oklab, var(--ink) 38%, var(--surface)); transition: height .45s var(--ease-out), background-color .3s ease; border-radius: 0 0 99px 99px; }
.comb__teeth i.n { height: var(--signature-tooth-night); background: var(--ink); }
.comb__teeth i.on { height: 72px; background: var(--ink); }
.comb__teeth i.n.on { height: 122px; }
.comb__cursor { position: absolute; top: 0; bottom: 0; left: calc(var(--x, .5) * 100%); width: 0; pointer-events: none; transition: left .25s var(--ease-out); }
.comb.is-drag .comb__cursor { transition: none; }
.comb__cursor::before { content: ""; position: absolute; top: 28px; bottom: 6px; left: -1px; width: 2px; background: var(--ink); }
.comb__time { position: absolute; top: 0; left: 0; transform: translateX(-50%); padding: .35em .55em; background: var(--ink); color: var(--surface); white-space: nowrap; }
.comb.is-live .comb__time::after { content: " ●"; animation: blink 2s steps(2, end) infinite; }
.comb__scale { position: absolute; left: 0; right: 0; bottom: 0; height: 1em; color: var(--ink-muted); }
.comb__scale span { position: absolute; transform: translateX(-50%); }
.comb__scale span:nth-child(1) { left: 0; transform: none; } .comb__scale span:nth-child(2) { left: 25%; } .comb__scale span:nth-child(3) { left: 37.5%; }
.comb__scale span:nth-child(4) { left: 50%; } .comb__scale span:nth-child(5) { left: 75%; } .comb__scale span:nth-child(6) { left: 91.67%; } .comb__scale span:nth-child(7) { right: 0; left: auto; transform: none; }
.comb__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.4rem; padding-bottom: 1.6rem; border-bottom: 1.5px solid var(--ink); }
.comb__status { font-weight: 500; font-size: 1.0625rem; }

.pricelist { margin-top: .4rem; }
.pr { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "n d v" "n d a"; align-items: end; column-gap: 1rem; padding: 1.3rem 0 1.1rem; border-bottom: 1px solid var(--line); }
.pr__name { grid-area: n; font: 500 clamp(1.25rem, 2.2vw, 2rem)/1.1 var(--font-body); align-self: center; }
.pr__dots { grid-area: d; align-self: center; border-bottom: 1.5px dotted var(--line); transform: translateY(.4em); }
.pr__v { grid-area: v; font: 800 clamp(2.2rem, 4.4vw, 4.2rem)/.9 var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
.pr__alt { grid-area: a; color: var(--ink-muted); text-align: right; margin-top: .3rem; }
.pr--main .pr__name { font-weight: 600; }
.prices__note { margin-top: 1.4rem; color: var(--ink-muted); }
@media (max-width: 760px) {
  .prices__head { grid-template-columns: 1fr; }
  .prices__title { font-size: 17.5vw; }
  .comb { height: 160px; }
  .comb__teeth i { height: 44px; } .comb__teeth i.n { height: 84px; } .comb__teeth i.on { height: 56px; } .comb__teeth i.n.on { height: 98px; }
  .comb__scale span:nth-child(3), .comb__scale span:nth-child(6) { display: none; }
  .comb__bar { flex-direction: column; align-items: flex-start; }
  .pr { grid-template-columns: 1fr auto; grid-template-areas: "n v" "n a"; }
  .pr__dots { display: none; }
  .pr__name { font-size: 1.125rem; }
  .pr__v { font-size: 2.3rem; }
}

/* ── стрижки */
.styles { padding: clamp(90px, 14vh, 160px) 0 clamp(70px, 10vh, 120px); background: #111111; color: #EFEFEA; --ink: #EFEFEA; --surface: #111111; --ink-muted: #8C8C86; --line: #2C2C2A; }
.styles__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem; }
.styles__head .kicker { grid-column: 1 / -1; }
.styles__title { font: 800 clamp(3.2rem, 7.4vw, 7.6rem)/.86 var(--font-display); text-transform: uppercase; }
.styles__nav { display: flex; align-items: center; gap: .6rem; }
.styles__count { margin-right: .8rem; color: var(--ink-muted); } .styles__count b { color: var(--ink); font-weight: 500; }
.arrow { width: 56px; height: 56px; background: transparent; border: 1.5px solid var(--ink); font-size: 1.3rem; transition: background-color var(--dur-micro), color var(--dur-micro); }
.arrow:hover { background: var(--ink); color: var(--surface); }
.styles__track { --w: clamp(250px, 27vw, 400px); display: flex; gap: clamp(14px, 2vw, 32px); overflow-x: auto; scroll-snap-type: x mandatory; padding: clamp(36px, 6vh, 64px) calc(50vw - var(--w) / 2) 8px; scrollbar-width: none; cursor: grab; }
.styles__track::-webkit-scrollbar { display: none; }
.styles__track.is-grab { cursor: grabbing; scroll-snap-type: none; }
.cut { flex: 0 0 var(--w); scroll-snap-align: center; margin: 0; transition: transform .6s var(--ease-out), opacity .6s var(--ease-out); transform: scale(.88); opacity: .4; }
.cut.is-on { transform: none; opacity: 1; }
.cut__img { aspect-ratio: 2 / 3; background: #161616; overflow: hidden; }
.cut__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.cut figcaption { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; padding-top: 1rem; }
.cut__n { grid-row: span 2; color: var(--ink-muted); padding-top: .35rem; }
.cut b { font: 800 2rem/1 var(--font-display); text-transform: uppercase; }
.cut__spec { color: var(--ink-muted); }
.styles__foot { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: clamp(36px, 6vh, 60px); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.styles__foot p { max-width: 46ch; }
@media (max-width: 760px) {
  .styles__track { --w: 72vw; }
  .styles__head { grid-template-columns: 1fr; }
  .styles__nav .arrow { width: 48px; height: 48px; }
}

/* ── зал в зеркале с лампами */
.room { padding: clamp(90px, 14vh, 160px) 0; }
.room__grid { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.room__title { font: 800 clamp(3rem, 5.6vw, 6rem)/.88 var(--font-display); text-transform: uppercase; margin-top: 1rem; }
.room__lead { margin-top: 1.4rem; max-width: 36ch; font-size: 1.0625rem; }
.room__tabs { margin-top: 2rem; display: grid; border-top: 1px solid var(--line); }
.room__tabs button { display: flex; gap: 1rem; align-items: baseline; text-align: left; padding: .95rem 0; background: none; border: 0; border-bottom: 1px solid var(--line); font: 500 1.125rem/1.2 var(--font-body); color: var(--ink-muted); transition: color .3s, padding .4s var(--ease-out); }
.room__tabs button[aria-selected="true"] { color: var(--ink); padding-left: .8rem; box-shadow: inset 3px 0 0 var(--ink); }
.mirror { position: relative; background: var(--mirror); padding: clamp(26px, 3vw, 44px); }
.mirror__bulbs { position: absolute; inset: 0; pointer-events: none; }
.mirror__bulbs i { position: absolute; width: clamp(12px, 1.2vw, 18px); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: #3a3a38; transition: background-color .4s ease calc(var(--i) * 60ms), box-shadow .5s ease calc(var(--i) * 60ms); }
.mirror.is-lit .mirror__bulbs i { background: #FFFDF6; box-shadow: 0 0 10px 3px rgba(255, 252, 240, .65), 0 0 34px 8px rgba(255, 252, 240, .18); }
.mirror.flash .mirror__bulbs i { animation: flick .5s steps(3) 1; }
@keyframes flick { 40% { opacity: .35; } }
.mirror__glass { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #1c1c1b; }
.mirror__glass img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease-out), transform 1.4s var(--ease-out); }
.mirror__glass img.is-on { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .room__grid { grid-template-columns: 1fr; }
  .mirror { order: -1; }
}

/* ── финал */
.contact { position: relative; padding-top: clamp(70px, 10vh, 120px); background: var(--ink); color: var(--surface); --line: color-mix(in oklab, var(--surface) 22%, transparent); }
.contact .btn--ink { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.contact .btn--ink:hover { background: transparent; color: var(--surface); }
.contact .btn--line { color: var(--surface); border-color: var(--surface); }
.contact .btn--line:hover { background: var(--surface); color: var(--ink); }
.contact :focus-visible { outline-color: var(--surface); }
.contact__giant { font: 800 clamp(9rem, 40vw, 44rem)/.74 var(--font-display); letter-spacing: -.02em; text-align: center; white-space: nowrap; }
.contact__grid > * { min-width: 0; }
.contact__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: clamp(40px, 7vh, 80px); align-items: end; }
.contact .kicker { color: color-mix(in oklab, var(--surface) 60%, transparent); }
.contact__phone { display: block; margin-top: .8rem; font: 800 clamp(3rem, 6.2vw, 6.8rem)/.9 var(--font-display); text-decoration: none; white-space: nowrap; }
.contact__cta { display: flex; gap: .6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.contact__facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.contact__facts div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact__facts dt { color: color-mix(in oklab, var(--surface) 60%, transparent); padding-top: .2em; }
.contact__facts dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.foot-comb { display: grid; grid-template-columns: repeat(24, 1fr); gap: 0 clamp(3px, .7vw, 12px); margin-top: clamp(60px, 10vh, 110px); padding-inline: var(--gutter); border-top: 14px solid var(--surface); }
.foot-comb i { height: 26px; background: color-mix(in oklab, var(--surface) 40%, var(--ink)); border-radius: 0 0 99px 99px; }
.foot-comb i.n { height: 48px; background: var(--surface); }
.footer { display: flex; justify-content: space-between; padding: 1.6rem 0 2rem; color: color-mix(in oklab, var(--surface) 60%, transparent); }
@media (max-width: 760px) {
  .contact__giant { font-size: 44vw; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__phone { font-size: 11.6vw; }
  .contact__cta .btn { flex: 1; }
  .contact__facts div { grid-template-columns: 6.6rem minmax(0, 1fr); }
}

/* ── липкая кнопка (телефон) */
@media (max-width: 900px) {
  .sticky-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .sticky-cta .btn--line { background: var(--surface); }
}

/* ── без анимации: сцена — финальный кадр, шаги списком */
.is-reduced .session { height: auto; }
.is-reduced .stage { position: relative; height: auto; overflow: clip; }
.is-reduced #head { position: relative; inset: auto; display: block; width: 100%; height: 100svh; }
.is-reduced .giant { inset: 0 0 auto; height: 100svh; overflow: clip; }
.is-reduced .steps { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin-top: calc(-1 * min(46svh, 430px)); padding: 0 var(--gutter) 80px; display: grid; gap: 56px; z-index: 3; }
.is-reduced .step { position: relative; opacity: 1; transform: none; pointer-events: auto; max-width: 470px; }
.is-reduced .step:not(.step--hero)::before { display: none; }
.is-reduced .rail { display: none; }
/* ничего не вылезает вбок: огромное слово и лента стрижек обрезаются по краю */
.stage, .styles { overflow-x: clip; }
body { overflow-x: clip; }
@media (max-width: 760px) { .btn { padding: 0 1em; letter-spacing: .03em; } }
@media (max-width: 400px) { .btn { font-size: .8rem; letter-spacing: .01em; white-space: nowrap; padding: 0 .8em; } }

/* сцена готовится короткими шагами — голова проявляется, а не появляется рывком */
#head { transition: opacity .6s ease; }
#head:not(.is-ready) { opacity: 0; }
