/* simple.css — простая версия «Барбершоп 24/7» (мастер, 19.11): обычная страница вниз, без сцены и холста.
   Палитра и шрифты — из основной версии (design/direction.md): бумага и чернила, гребень-часы статичной полосой. */
:root {
  --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(16px, 3.4vw, 52px); --container: 1280px;
  --ease-out: cubic-bezier(.16, 1, .3, 1); --dur-micro: .18s; --dur-reveal: .3s;
  --surface: #EDEDEA; --ink: #0E0E0E; --ink-muted: #55554F; --line: #C9C9C3; --plane: #E2E2DE;
  --accent: var(--ink); --on-accent: var(--surface);
  --sec: clamp(56px, 9vw, 120px);
}
.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; }
body { overflow-x: clip; }

.btn { min-height: 52px; padding: 0 1.5em; font: 600 .875rem/1 var(--font-body); letter-spacing: .05em; text-transform: uppercase; border: 1.5px solid var(--ink); }
.btn--ink { background: var(--ink); color: var(--surface); }
.btn--line { background: transparent; color: var(--ink); }
@media (hover: hover) { .btn--ink:hover { background: transparent; color: var(--ink); } .btn--line:hover { background: var(--ink); color: var(--surface); } }

/* шапка */
.header { border-bottom: 1px solid var(--line); }
.header__inner { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; min-height: 60px; }
.logo { font: 800 1.75rem/1 var(--font-display); letter-spacing: .02em; text-decoration: none; display: flex; align-items: center; gap: .25em; min-height: 44px; }
.logo span { font: 500 .625rem/1 var(--font-mono); letter-spacing: .04em; align-self: flex-start; margin-top: .9em; }
.nav__list a { text-decoration: none; font-weight: 500; font-size: .9375rem; }
.nav__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lang button { font: 500 .8125rem/1 var(--font-mono); min-width: 40px; min-height: 44px; }
.header__call { min-height: 42px; }
@media (max-width: 900px) { .nav, .header__call { display: none; } .header__actions .lang { display: flex; } }

/* первый экран: кто мы, открыто, позвонить; рядом настоящий зал */
.hero { padding: clamp(24px, 5vw, 72px) 0 var(--sec); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__title { margin-top: .6rem; font: 800 clamp(2.9rem, 6.4vw, 6rem)/.92 var(--font-display); text-transform: uppercase; letter-spacing: -.005em; }
.hero__open { display: flex; align-items: center; gap: .6em; margin-top: 1.2rem; font-weight: 600; font-size: 1.125rem; }
.hero__open i { width: 10px; height: 10px; border-radius: 50%; background: #1F8A4C; flex: none; }
.hero__lead { margin-top: .5rem; font-size: 1.125rem; max-width: 30rem; }
.hero__cta { display: flex; gap: .6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero__phone { display: inline-block; margin-top: 1rem; font: 700 1.5rem/1.2 var(--font-display); letter-spacing: .02em; text-decoration: none; }
.hero__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--plane); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { order: -1; margin-inline: calc(-1 * var(--gutter)); }
  .hero__cta .btn { flex: 1 1 0; }
}

/* заголовки разделов */
.sec__title { font: 800 clamp(2.4rem, 5vw, 4.4rem)/.95 var(--font-display); text-transform: uppercase; }
.prices, .styles, .room { padding-bottom: var(--sec); }
.prices { padding-top: var(--sec); border-top: 1px solid var(--line); }

/* цены: гребень-часы статичной полосой — короткий зубец день, длинный ночь */
.comb { display: grid; grid-template-columns: repeat(24, 1fr); gap: clamp(2px, .5vw, 8px); margin-top: 1.6rem; border-top: 8px solid var(--ink); }
.comb i { height: 18px; background: var(--ink-muted); border-radius: 0 0 99px 99px; }
.comb i.n { height: 34px; background: var(--ink); }
.comb__scale { position: relative; height: 1.4em; margin-top: .4rem; 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: 37.5%; }
.comb__scale span:nth-child(3) { left: 91.67%; }

.ptable { margin-top: 1.4rem; }
.ptable__head, .prow { display: grid; grid-template-columns: minmax(0, 1fr) 11rem 11rem; column-gap: clamp(12px, 2vw, 32px); }
.ptable__head { align-items: end; padding-bottom: .7rem; border-bottom: 1.5px solid var(--ink); }
.ptable__col { text-align: right; color: var(--ink-muted); }
.now-tag { display: none; margin-left: .4em; padding: .2em .45em; background: var(--ink); color: var(--surface); font-weight: 500; }
html[data-now="day"] [data-col="day"] .now-tag, html[data-now="night"] [data-col="night"] .now-tag { display: inline-block; }
html[data-now="day"] .ptable__col[data-col="day"], html[data-now="night"] .ptable__col[data-col="night"] { color: var(--ink); }
.prow { padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.prow__name b { display: block; font: 600 clamp(1.2rem, 2vw, 1.6rem)/1.15 var(--font-body); }
.prow__name span { display: block; margin-top: .3rem; color: var(--ink-muted); font-size: .9375rem; max-width: 36rem; }
.prow__v { text-align: right; }
.prow__v b { font: 800 clamp(1.9rem, 3.4vw, 2.8rem)/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prow__lbl { display: none; }
html[data-now="day"] .prow__v[data-col="night"] b, html[data-now="night"] .prow__v[data-col="day"] b { color: var(--ink-muted); }
.prices__note { margin-top: 1rem; color: var(--ink-muted); }
@media (max-width: 760px) {
  .ptable__head, .prow { grid-template-columns: 1fr 1fr; }
  .ptable__head > :first-child { display: none; }
  .ptable__head { border-bottom: 0; padding-bottom: 0; }
  .ptable__col { text-align: left; line-height: 1.9; }
  .prow { row-gap: .7rem; }
  .prow__name { grid-column: 1 / -1; }
  .prow__v { text-align: left; padding: .55rem .7rem; border: 1px solid var(--line); }
  .prow__lbl { display: block; color: var(--ink-muted); margin-bottom: .3rem; }
  .prow__v b { font-size: 1.9rem; }
  html[data-now="day"] .prow__v[data-col="day"], html[data-now="night"] .prow__v[data-col="night"] { border: 1.5px solid var(--ink); }
}

/* стрижки: сетка, листается вниз вместе со страницей */
.cuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.6vw, 24px); margin-top: clamp(24px, 4vw, 48px); }
.cut img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #111; }
.cut figcaption { padding-top: .6rem; }
.cut figcaption b { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.2; }
.cut figcaption span { display: block; margin-top: .25rem; color: var(--ink-muted); font-size: .75rem; }
.styles__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 48px); padding-top: 1.4rem; border-top: 1px solid var(--line); }
.styles__foot p { max-width: 34rem; font-size: 1.0625rem; }
@media (max-width: 760px) {
  .cuts { grid-template-columns: 1fr 1fr; }
  .cut figcaption b { font-size: 1rem; }
  .styles__foot .btn { width: 100%; }
}

/* зал: три фото одно под другим (кресло уже на первом экране) */
.room__lead { margin-top: 1rem; font-size: 1.125rem; max-width: 34rem; }
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.6vw, 24px); margin-top: clamp(24px, 4vw, 48px); }
.rm:first-child { grid-column: 1 / -1; }
.rm img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--plane); }
.rm:first-child img { aspect-ratio: 21 / 9; }
.rm figcaption { padding-top: .5rem; color: var(--ink-muted); }
@media (max-width: 760px) { .rooms { grid-template-columns: 1fr; } .rm:first-child img { aspect-ratio: 3 / 2; } }

/* контакты: тёмный финал */
.contact { padding-top: var(--sec); background: var(--ink); color: var(--surface); --line: color-mix(in oklab, var(--surface) 22%, transparent); }
.contact .sec__title { color: var(--surface); }
.contact .btn--ink { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.contact .btn--line { color: var(--surface); border-color: var(--surface); }
@media (hover: hover) { .contact .btn--ink:hover { background: transparent; color: var(--surface); } .contact .btn--line:hover { background: var(--surface); color: var(--ink); } }
.contact :focus-visible { outline-color: var(--surface); }
.contact .kicker { color: color-mix(in oklab, var(--surface) 65%, transparent); }
.contact__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 80px); margin-top: clamp(28px, 4vw, 48px); align-items: end; }
.contact__grid > * { min-width: 0; }
.contact__phone { display: block; margin-top: .8rem; font: 800 clamp(2.6rem, 5.6vw, 5.6rem)/.95 var(--font-display); text-decoration: none; white-space: nowrap; }
.contact__cta { display: flex; gap: .6rem; margin-top: 1.4rem; flex-wrap: wrap; }
.contact__facts { margin: 0; border-top: 1px solid var(--line); }
.contact__facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.contact__facts dt { color: color-mix(in oklab, var(--surface) 65%, transparent); padding-top: .2em; }
.contact__facts dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: var(--sec); padding: 1.4rem 0 2rem; border-top: 1px solid var(--line); color: color-mix(in oklab, var(--surface) 65%, transparent); }
@media (max-width: 760px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__phone { font-size: 11.4vw; }
  .contact__cta .btn { flex: 1 1 0; }
  .contact__facts div { grid-template-columns: 6.8rem minmax(0, 1fr); }
  .footer { flex-direction: column; }
}

/* нижние кнопки на телефоне — всегда на месте, без выезда */
@media (max-width: 900px) {
  .sticky-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; transform: none; transition: none;
    left: 0; right: 0; bottom: 0; padding: 8px var(--gutter) max(8px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .sticky-cta .btn--line { background: var(--surface); }
}
@media (max-width: 400px) { .btn { font-size: .8rem; letter-spacing: .01em; white-space: nowrap; padding: 0 .8em; } }

/* слабый телефон: разделы ниже первого экрана не считаются, пока до них не долистали */
.styles, .room, .contact { content-visibility: auto; contain-intrinsic-size: auto 1400px; }
