/* styles.css — вид «Иришки» по design/direction.md «Кошачий глаз». Значения — из tokens.css. */

html, body { overscroll-behavior: none; }
body { overflow-x: clip; }
::selection { background: color-mix(in oklab, var(--accent) 35%, transparent); }
img { -webkit-user-drag: none; user-select: none; }

/* ── общие ── */
.label { font-size: var(--step--1); letter-spacing: var(--track-label); color: var(--ink-muted); line-height: 1.4; }
.chapter__num, .peak__corner { text-transform: uppercase; font-weight: 600; }
.chapter { padding-block: var(--section); }
.chapter__title { font-size: var(--step-3); font-weight: 400; letter-spacing: -.02em; line-height: 1.02; }
.chapter__num { margin-bottom: var(--space-4); }
.chapter__lead { margin-top: var(--space-4); max-width: 34ch; color: var(--ink-muted); font-size: var(--step-1); line-height: 1.45; }
.reveal { transform: translateY(var(--reveal-shift)); }
.reveal.is-in { transform: none; }

/* Вырезки с кошкой: фон-плоскость только пока файла нет */
.slot--cut:not(.is-empty) { background: none; overflow: visible; }

/* Кнопки: пилюля тушью */
.btn { border-radius: var(--radius-control); font-weight: 700; font-size: var(--step-0); }
.btn--primary { background: var(--ink); color: var(--surface); }
.btn--primary:hover { background: color-mix(in oklab, var(--ink) 84%, var(--accent)); }

/* ── шапка ── */
.header { border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; min-height: 44px; }
.logo__mark { width: 24px; height: 29px; color: var(--ink); }
.logo__word { font-family: var(--font-display); font-size: 1.375rem; line-height: 1; }
.nav .nav__list { gap: var(--space-6); }
.nav a, .mobile-menu a { text-decoration: none; font-weight: 600; font-size: .9375rem; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.mobile-menu a { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); }
.lang button { font-weight: 700; letter-spacing: var(--track-label); }
.header__cta { min-height: 40px; padding: .5em 1.2em; font-size: .875rem; }

/* ── K1 первый экран ── */
.hero { padding-block: var(--space-5) var(--space-8); }
.hero__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5);
  grid-template-rows: auto 1fr auto; min-height: calc(100svh - var(--header-h, 72px) - var(--space-5) - var(--space-8));
}
.hero__corner--a { grid-column: 1 / 4; grid-row: 1; }
.hero__corner--b { grid-column: 3 / 6; grid-row: 1; justify-self: end; text-align: right; }
.hero__title { grid-column: 1 / 6; grid-row: 2; align-self: center; position: relative; z-index: 2; font-weight: 400; padding-block: var(--space-7); }
.hero__word { display: block; font-size: var(--hero); line-height: .92; letter-spacing: -.035em; white-space: nowrap; }
.hy { display: none; }
.hero__sub { display: block; font-size: 4vw; line-height: 1.05; letter-spacing: -.02em; margin: .2em 0 0 1.8em; }
.hero__stage { grid-column: 6 / 13; grid-row: 1 / 4; position: relative; display: flex; flex-direction: column; }
.glare { --ratio: auto; flex: 1; min-height: 34vw; touch-action: pan-y; cursor: crosshair; }
.glare img, .glare__stage { object-position: 30% 55%; }
.glare__stage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--signature-glare-fade) var(--ease-out); pointer-events: none; }
.glare__stage.is-lit { opacity: 1; }
.hero__cat { position: absolute; z-index: 3; width: 16vw; right: -1.5vw; bottom: 3vw; pointer-events: none; }
.hero__hint { margin-top: var(--space-3); font-weight: 600; font-size: .9375rem; display: flex; align-items: center; gap: var(--space-2); }
.hero__hint::before { content: ""; width: 3px; height: 1.1em; background: var(--signature-glare); box-shadow: 0 0 0 1px var(--line), 0 0 10px var(--signature-glare); border-radius: 2px; }
.on-mouse { display: none; }
@media (hover: hover) and (pointer: fine) { .on-mouse { display: inline; } .on-touch { display: none; } }
.hero__actions { grid-column: 1 / 6; grid-row: 3; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); }
.hero__ig { font-weight: 700; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; }

/* ── списки услуг: имя · отточие · цена · «Записаться →» — вся строка ссылка ── */
.price { margin-top: var(--space-5); border-top: 1px solid var(--line); }
.price .price__row {
  display: grid; grid-template-columns: auto minmax(var(--space-5), 1fr) auto auto; align-items: baseline; column-gap: var(--space-3);
  min-height: var(--row); padding-block: var(--space-4); border-bottom: 1px solid var(--line); text-decoration: none;
  transition: background-color var(--dur-micro) var(--ease-out);
}
.price__name { font-weight: 600; font-size: var(--step-1); }
.price__dots { height: 1px; border-bottom: 1.5px dotted currentColor; opacity: .35; }
.price__cost { color: var(--ink-muted); font-size: .9375rem; }
.price__cost--sum { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price__go { font-weight: 700; font-size: .9375rem; padding-left: var(--space-4); white-space: nowrap; transition: transform var(--dur-micro) var(--ease-out); }
.price__row:hover { background: color-mix(in oklab, var(--ink) 4%, transparent); }
.price__row:hover .price__go { transform: translateX(4px); }
.price--tush { border-color: var(--line-tush); }
.price--tush .price__row { border-color: var(--line-tush); }
.price--tush .price__row:hover { background: color-mix(in oklab, var(--on-tush) 7%, transparent); }

/* ── K2 маникюр ── */
.manicure__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); align-items: start; }
.manicure__photo { grid-column: 1 / 7; }
.manicure__photo .slot { width: min(100%, calc(88svh * 3 / 4)); }
.manicure__body { grid-column: 7 / 13; padding-left: var(--space-5); padding-top: var(--space-6); }
.tabs { display: flex; gap: var(--space-6); margin-top: var(--space-7); border-bottom: 1px solid var(--line); }
.tabs__tab { background: none; border: 0; padding: var(--space-2) 0 var(--space-3); min-height: 48px; font-family: var(--font-display); font-size: var(--step-2); color: var(--ink-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--dur-micro) var(--ease-out); }
.tabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs__tab:hover { color: var(--ink); }
.tabs + .tabs__panel .price, .tabs__panel .price { border-top: 0; margin-top: 0; }
.manicure__cat { display: grid; grid-template-columns: 44% 1fr; align-items: end; gap: var(--space-4); margin-top: var(--space-7); }
.manicure__cat .label { padding-bottom: var(--space-5); max-width: 18ch; }

/* ── K3 наращивание · овёс ── */
.extend { background: var(--oat); --plane: color-mix(in oklab, var(--oat) 80%, var(--ink) 8%); }
.extend__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); row-gap: var(--space-6); }
.extend__head { grid-column: 1 / 13; }
.extend__title { font-size: var(--step-4); letter-spacing: -.03em; }
.extend__stage { grid-column: 1 / 8; }
.extend__paw { width: 100%; }
.extend__list { grid-column: 8 / 13; align-self: end; padding-left: var(--space-5); }
.extend__list .chapter__lead { margin-top: 0; }
.shapes { display: flex; gap: var(--space-4); margin-top: var(--space-5); }
.shape {
  flex: 0 0 56px; display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-2) 0; min-height: 56px;
  background: none; border: 0; color: var(--ink); font-size: .8125rem; font-weight: 600;
}
.shape svg { width: 24px; height: 40px; fill: transparent; stroke: currentColor; stroke-width: 1.4; transition: fill var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.shape:hover svg { transform: translateY(-3px); }
.shape[aria-checked="true"] svg { fill: var(--ink); }
.shape[aria-checked="true"] span { text-decoration: underline; text-underline-offset: 4px; }
.shapes__say { margin-top: var(--space-4); min-height: 3.2em; font-size: var(--step-1); line-height: 1.45; max-width: 40ch; }
.shapes__say b { font-family: var(--font-display); font-weight: 400; }
.price--oat { border-color: color-mix(in oklab, var(--ink) 20%, transparent); }
.extend__cta { margin-top: var(--space-6); flex-wrap: wrap; column-gap: .35em; row-gap: 0; text-align: center; }

/* ── K4 пик «Кошачий глаз» · тушь ── */
.peak { background: var(--tush); color: var(--on-tush); --plane: #221d20; --ink-muted: var(--on-tush-muted); }
.peak__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); }
.peak__corner { grid-column: 9 / 13; grid-row: 1; justify-self: end; }
.peak__title { grid-column: 1 / 13; grid-row: 2; font-size: 9vw; font-weight: 400; letter-spacing: -.035em; line-height: .95; white-space: nowrap; margin-top: var(--space-4); position: relative; z-index: 2; }
.peak__nail { grid-column: 1 / 6; grid-row: 3 / 6; position: relative; z-index: 1; margin-top: -3.2vw; }
.peak__say { grid-column: 7 / 13; grid-row: 3; margin-top: var(--space-5); font-size: var(--step-1); color: var(--on-tush-muted); }
.peak__eye { grid-column: 7 / 10; grid-row: 4; margin-top: var(--space-6); }
.peak__list { grid-column: 7 / 13; grid-row: 5; align-self: end; margin-top: var(--space-6); }
.peak .price__name { font-family: var(--font-display); font-weight: 400; font-size: var(--step-2); }

/* ── работы Ирины: «чёрные окна» без рамки ── */
.works .slot { background: var(--tush); }
.peak .works .slot { background: var(--plane); }
.works figcaption { position: absolute; left: var(--space-4); right: var(--space-4); bottom: var(--space-4); color: var(--on-tush); font-size: var(--step--1); font-weight: 600; line-height: 1.35; }
.works--extend { display: grid; grid-template-columns: 3fr 2fr; gap: var(--space-4); align-items: start; margin-top: var(--space-8); }
.works--extend .works__small { margin-top: 40%; }
.works__say { grid-column: 1 / -1; color: var(--ink-muted); }
.works--peak { grid-column: 1 / 13; grid-row: 6; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); align-items: start; margin-top: var(--section); }
.works--peak .slot:nth-child(1) { grid-column: 1 / 6; }
.works--peak .slot:nth-child(2) { grid-column: 6 / 10; margin-top: 14vw; }
.works--peak .slot:nth-child(3) { grid-column: 10 / 13; margin-top: 5vw; }

/* ── K6 контакты · кошка спит под лампой ── */
.contacts__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--space-5); row-gap: var(--space-7); align-items: end; }
.contacts__cat { grid-column: 1 / 7; }
.contacts__title { grid-column: 7 / 13; font-size: var(--step-4); font-weight: 400; letter-spacing: -.035em; line-height: .95; padding-bottom: var(--space-5); }
.plate { grid-column: 1 / 13; border-top: 1px solid var(--ink); }
.plate .plate__row {
  display: grid; grid-template-columns: minmax(8rem, 3fr) 8fr auto; align-items: center; gap: var(--space-5);
  min-height: 96px; padding-inline: var(--space-4); border-bottom: 1px solid var(--ink); text-decoration: none;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.plate__key { font-size: var(--step--1); letter-spacing: var(--track-label); text-transform: uppercase; font-weight: 700; }
.plate__val { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; }
.plate__arrow { font-size: var(--step-2); transition: transform var(--dur-micro) var(--ease-out); }
a.plate__row:hover { background: var(--ink); color: var(--surface); }
a.plate__row:hover .plate__arrow { transform: translateX(6px); }
.plate__row--still .plate__val { color: var(--ink-muted); }

/* ── подвал ── */
.footer { border-top: 1px solid var(--line); padding-block: var(--space-6); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
.footer__copy { color: var(--ink-muted); }

/* ── «Листайте ↓» — весь сеанс, справа внизу ── */
.scroll-hint {
  position: fixed; right: var(--gutter); bottom: var(--space-5); z-index: 30;
  padding: var(--space-2) var(--space-4); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-control);
  font-size: 1.125rem; font-weight: 700; line-height: 1.3; pointer-events: none;
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.scroll-hint.is-off { opacity: 0; transform: translateY(8px); }

/* ── телефон: отдельная композиция ── */
@media (max-width: 900px) {
  .hero { padding-block: var(--space-4) var(--space-6); }
  .hero__grid { display: flex; flex-direction: column; min-height: 0; }
  .hero__corner--b { display: none; }
  .hero__title { padding-block: var(--space-3) 0; align-self: stretch; }
  .hero__word { white-space: normal; line-height: .86; }
  .hy { display: inline; }
  .hero__sub { font-size: 8vw; margin: .25em 0 0 18%; }
  .hero__stage { align-self: flex-end; width: 68vw; margin: -12vw calc(-1 * var(--gutter)) 0 0; z-index: 1; }
  .hero__title { z-index: 2; }
  .glare { --ratio: 4/5; flex: none; aspect-ratio: 4/5; min-height: 0; }
  .hero__cat { width: 40vw; right: auto; left: -30vw; bottom: 2vw; }
  .hero__hint { position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); margin: 0; padding: var(--space-2) var(--space-3); background: color-mix(in oklab, var(--surface) 92%, transparent); font-size: .8125rem; line-height: 1.3; }
  .hero__actions { margin-top: var(--space-5); flex-direction: column; align-items: stretch; gap: 0; }
  .hero__tg { min-height: 56px; }
  .hero__ig { justify-content: center; }

  .chapter__lead { max-width: none; }
  .price .price__row { grid-template-columns: 1fr auto; grid-template-areas: "name go" "cost go"; align-items: center; row-gap: 2px; padding-block: var(--space-3); }
  .price__name { grid-area: name; }
  .price__cost { grid-area: cost; font-size: var(--step--1); }
  .price__go { grid-area: go; }
  .price__dots { display: none; }
  .peak .price .price__row { grid-template-areas: "name go"; }

  .manicure__grid { display: flex; flex-direction: column; align-items: stretch; }
  .manicure__body { display: contents; }
  .manicure__body > * { order: 1; }
  .manicure__photo { order: 2; margin-top: var(--space-5); max-height: none; }
  .manicure__cat { order: 3; margin-top: calc(-1 * var(--space-7)); position: relative; grid-template-columns: 40% 1fr; }
  .manicure__body > .tabs__panel { order: 4; }
  .tabs { margin-top: var(--space-5); gap: 0; }
  .tabs__tab { flex: 1; }

  .extend__grid { display: flex; flex-direction: column; row-gap: 0; }
  .extend__title { font-size: 12.6vw; }
  .extend__stage { margin-top: var(--space-4); }
  .extend__paw { --ratio: 1/1; margin-inline: calc(-1 * var(--gutter)); width: auto; }
  .shapes { justify-content: space-between; gap: 0; }
  .shapes .shape { flex: 0 0 auto; min-width: 48px; }
  .extend__list { padding-left: 0; margin-top: var(--space-5); }
  .extend__cta { width: 100%; min-height: 56px; }

  .peak__grid { display: flex; flex-direction: column; }
  .peak__corner { align-self: flex-start; }
  .peak__title { white-space: normal; font-size: 19vw; line-height: .9; }
  .peak__say { margin-top: var(--space-4); }
  .peak__nail, .peak__eye { margin: 0; }
  .peak__nail { margin-top: var(--space-5); width: 100%; }
  .peak__eye { width: 62%; align-self: flex-end; margin-top: calc(-1 * var(--space-8)); position: relative; z-index: 2; box-shadow: 0 0 0 6px var(--tush); }
  .works--extend .works__small { display: none; }
  .works--extend { grid-template-columns: 1fr; margin-top: var(--space-7); }
  .works--peak { display: flex; gap: var(--space-3); margin: var(--space-8) calc(-1 * var(--gutter)) 0; padding-inline: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; touch-action: pan-x pan-y; overscroll-behavior-x: contain; }
  .works--peak .slot:nth-child(n) { flex: 0 0 80%; margin-top: 0; scroll-snap-align: start; }

  .contacts__grid { display: flex; flex-direction: column; align-items: stretch; row-gap: var(--space-5); }
  .contacts__title { order: -1; padding: 0; font-size: 17vw; }
  .contacts__cat { width: 70%; }
  .plate .plate__row { grid-template-columns: 1fr auto; grid-template-areas: "key arrow" "val arrow"; min-height: 64px; padding: var(--space-3) var(--space-2); row-gap: 2px; gap: var(--space-1) var(--space-3); }
  .plate__key { grid-area: key; }
  .plate__val { grid-area: val; font-size: var(--step-1); }
  .plate__arrow { grid-area: arrow; }

  .scroll-hint { bottom: calc(88px + env(safe-area-inset-bottom)); right: var(--space-3); }
  .footer { padding-bottom: var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; }
}
