/* ============================================================
   manicur · страница записи для клиенток
   Визуальный мир лендинга: кремовая бумага, глубокая хвоя,
   крупная антиква Cormorant Garamond, Inter для текста,
   тонкие линии и воздух. Движение — заметное, но быстрое,
   только transform/opacity.
   Общий файл для записи, списка мастеров, политики и 404.
   ============================================================ */

:root {
  --paper:    #FAF8F3;
  --sand:     #F1EDE3;
  --vanilla:  #F3E8D6;
  --forest:   #2C332A;
  --forest-2: #212720;
  --green:    #5A6E4B;
  --green-2:  #46583A;
  --matcha:   #809671;
  --pistache: #B3B792;
  --chai:     #D2AB80;
  --cream:    #E5D2B8;

  --ink:       #2E2A24;
  --ink-soft:  #6B6459;
  --ink-faint: #746D62;   /* мелкие подписи: контраст 4,8:1 на --paper (WCAG AA) */
  --line:        rgba(46, 42, 36, 0.14);
  --line-strong: rgba(46, 42, 36, 0.3);
  --error:     #A3412C;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-signature: cubic-bezier(0.5, 0.02, 0.15, 1);

  --pad-x: 22px;
  --shell: 1180px;
  --top-h: 58px;
  --bar-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

/* Сайт живёт в одной светлой гамме — это фирменные цвета, а не упущенная тёмная тема. */
html {
  color-scheme: light;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

p { margin: 0 0 1em; overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: max(var(--pad-x), env(safe-area-inset-left)) max(var(--pad-x), env(safe-area-inset-right));
}

/* ---------- типографика ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--forest);
  text-wrap: balance;
}

.eyebrow {
  display: flex; align-items: center;
  margin: 0 0 1.4em;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow-line {
  display: block; flex: none;
  width: 38px; height: 1px; margin-right: 14px;
  background: currentColor;
  transform-origin: left center;
  animation: line-draw 900ms var(--ease-out) 120ms both;
}

.lead {
  font-size: clamp(1.04rem, 4.1vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.kicker {
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- кнопки ---------- */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  border: 0; border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  background: var(--forest);
  color: var(--paper);
  font: inherit; font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
/* заливка наезжает слева направо (как на лендинге), но через transform */
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--green);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 460ms var(--ease-out);
}
@media (hover: hover) {
  .btn:hover::before { transform: scaleX(1); }
  .btn:hover { transform: translateY(-2px); }
}
.btn:active { transform: scale(0.97); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.38; cursor: default; transform: none; }
.btn[disabled]::before { transform: scaleX(0); }
.btn-arrow { display: inline-block; transition: transform 320ms var(--ease-out); }
@media (hover: hover) { .btn:hover .btn-arrow { transform: translateX(5px); } }
.btn-lg { min-height: 58px; font-size: 14px; padding-inline: 34px; }
.btn-block { width: 100%; }

.btn-ghost {
  background: transparent; color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost::before { background: var(--sand); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  padding: 0; border: 0; background: none;
  font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green); text-decoration: none; cursor: pointer;
}
.link-arrow::after { content: '→'; transition: transform 320ms var(--ease-out); }
@media (hover: hover) { .link-arrow:hover::after { transform: translateX(6px); } }

.text-link {
  color: var(--green); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}

/* ---------- верхняя панель ---------- */

.topbar {
  position: sticky; top: 0; z-index: 60;
  padding-top: env(safe-area-inset-top);
  background: rgba(250, 248, 243, 0.97);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.topbar::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line);
}
.topbar-in {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-height: var(--top-h);
}
.brand {
  font-family: var(--serif); font-weight: 500;
  font-size: 26px; line-height: 1; letter-spacing: 0.01em;
  color: var(--forest); text-decoration: none;
  padding-block: 9px;
}
.brand-dot { color: var(--chai); }
.top-title {
  flex: 1; min-width: 0;
  font-family: var(--serif); font-size: 21px; line-height: 1.1;
  color: var(--forest);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  animation: fade-in 420ms var(--ease-out) both;
}
.top-spacer { flex: 1; }
.top-step {
  flex: none;
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
  font-variant-numeric: lining-nums tabular-nums;
}
.top-step b { color: var(--forest); font-weight: 600; }
.back {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; min-width: 44px;
  margin-left: -10px; padding: 0 10px;
  border: 0; background: none; cursor: pointer;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--forest);
  animation: fade-in 420ms var(--ease-out) both;
}
.back svg { width: 20px; height: 20px; transition: transform 300ms var(--ease-out); }
@media (hover: hover) { .back:hover svg { transform: translateX(-4px); } }
.back:active svg { transform: translateX(-4px); }

.progress {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: 2px;
  background: var(--green);
  transform-origin: left center;
  transition: transform 800ms var(--ease-out);
}

/* ---------- раскладка записи ---------- */

.layout { position: relative; }
.flow { position: relative; padding-bottom: calc(var(--bar-h) + 48px + env(safe-area-inset-bottom)); }
.flow.no-bar { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }

/* ---------- шапка мастера (hero) ---------- */

.hero {
  position: relative;
  padding: clamp(40px, 11vw, 72px) 0 clamp(34px, 8vw, 48px);
}
.hero-in { position: relative; z-index: 1; }

.orbs {
  position: absolute; inset: -40px calc(-1 * var(--pad-x)) 0; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.orb-1 {
  width: 78vw; height: 78vw; max-width: 460px; max-height: 460px;
  top: -18%; right: -26%;
  background: radial-gradient(circle at 42% 40%, rgba(179, 183, 146, 0.6), rgba(179, 183, 146, 0) 70%);
  animation: drift-a 16s ease-in-out infinite alternate;
}
.orb-2 {
  width: 70vw; height: 70vw; max-width: 420px; max-height: 420px;
  bottom: -30%; left: -30%;
  background: radial-gradient(circle at 55% 45%, rgba(229, 210, 184, 0.72), rgba(229, 210, 184, 0) 70%);
  animation: drift-b 21s ease-in-out infinite alternate;
}

.hero-name {
  position: relative;
  font-size: clamp(3.3rem, 17.5vw, 6.4rem);
  line-height: 0.98;
  margin: 0 0 0.3em;
  overflow-wrap: anywhere;
}
/* слово — маска, буквы поднимаются из-под неё */
.hero-name .w { display: inline-block; overflow: hidden; padding: 0.04em 0.02em 0.16em; margin: -0.04em -0.02em -0.16em; vertical-align: bottom; }
.hero-name .l {
  display: inline-block;
  animation: letter-up 1000ms var(--ease-out) both;
  animation-delay: calc(140ms + var(--i, 0) * 46ms);
}
/* блик по свежему покрытию: «окно» (40% ширины) едет по имени, а светлая копия имени внутри него — навстречу,
   поэтому буквы копии стоят на месте точно над настоящими. Только transform. */
/* рамка блика = ширина заголовка (+ запас по вертикали для выносных элементов букв); окно уезжает за неё, а не за край страницы */
.hero-name .shine-clip { position: absolute; left: 0; right: 0; top: -0.15em; bottom: -0.35em; overflow: hidden; pointer-events: none; }
.hero-name .shine {
  position: absolute; top: 0; bottom: 0; left: 0; width: 40%;
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%, #000 58%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 42%, #000 58%, transparent);
  transform: translateX(-100%);
  animation: shine-win 1500ms var(--ease-signature) 1450ms both;
}
.hero-name .shine-in {
  position: absolute; top: 0.15em; left: 0; width: 250%;
  color: #EBDCC0;
  transform: translateX(40%);
  animation: shine-txt 1500ms var(--ease-signature) 1450ms both;
}
.hero-name .sl { display: inline-block; }
.hero-rule {
  display: block; width: 100%; height: 1px; margin: 0 0 22px;
  background: var(--line);
  transform-origin: left center;
  animation: line-draw 1100ms var(--ease-out) 520ms both;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  margin: 0 0 18px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 14px; height: 14px; flex: none; color: var(--green); }
.hero-about { max-width: 34rem; }
.hero.calm .l, .hero.calm .rise-a, .hero.calm .hero-rule, .hero.calm .eyebrow-line { animation: none; }
.hero.calm .shine-clip { display: none; }

/* сводка выбора — только на широком экране, в левой колонке */
.aside-sum { display: none; }

/* ---------- шаги ---------- */

.step { animation: step-in-fwd 620ms var(--ease-out) both; }
.step.from-back { animation-name: step-in-back; }
.step.is-leaving {
  animation: step-out-fwd 190ms ease-in both;
}
.step.is-leaving.to-back { animation-name: step-out-back; }

.step-head { padding: clamp(30px, 8vw, 54px) 0 clamp(22px, 6vw, 32px); }
.step-first .step-head { padding-top: 6px; }
.step-title { font-size: clamp(2.35rem, 10.6vw, 3.6rem); }
.step-lead { margin: 14px 0 0; color: var(--ink-soft); font-size: 16px; max-width: 32rem; }

.rise { animation: rise 680ms var(--ease-out) both; animation-delay: calc(90ms + var(--i, 0) * 60ms); }

.list { list-style: none; margin: 0; padding: 0; }

/* ---------- основная услуга: строки-варианты ---------- */

.opt {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: start;
  width: 100%;
  padding: 24px 0 26px;
  border: 0; border-top: 1px solid var(--line);
  background: none;
  text-align: left; cursor: pointer;
  isolation: isolate;
}
.list > li:last-child .opt { border-bottom: 1px solid var(--line); }
/* мягкая подложка выбранного варианта — проявляется opacity/transform */
.opt::before {
  content: ''; position: absolute; z-index: -1;
  inset: -1px calc(-1 * var(--pad-x));
  background: var(--sand);
  opacity: 0; transform: scaleY(0.92);
  transition: opacity 360ms var(--ease-out), transform 520ms var(--ease-out);
}
/* тонкая зелёная линия слева у выбранного */
.opt::after {
  content: ''; position: absolute; top: -1px; bottom: -1px; left: calc(-1 * var(--pad-x));
  width: 3px; background: var(--green);
  transform: scaleY(0); transform-origin: top center;
  transition: transform 520ms var(--ease-out);
}
.opt.is-sel::before { opacity: 1; transform: none; }
.opt.is-sel::after { transform: scaleY(1); }
.opt.is-sel { animation: press 520ms var(--ease-spring); }
.opt:active { transform: scale(0.99); transition: transform 120ms; }

.mark {
  position: relative;
  width: 26px; height: 26px; margin-top: 5px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.mark::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--forest);
  transform: scale(0); opacity: 0;
  transition: transform 300ms var(--ease-out), opacity 200ms;
}
.mark svg {
  position: absolute; inset: 0; margin: auto; width: 14px; height: 14px;
  color: var(--paper);
  transform: scale(0); opacity: 0;
}
.is-sel .mark::before { transform: scale(1); opacity: 1; animation: pop 520ms var(--ease-spring); }
.is-sel .mark svg { transform: scale(1); opacity: 1; transition: transform 420ms var(--ease-spring) 80ms, opacity 200ms 80ms; }

.opt-name {
  display: block;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.5rem, 6.6vw, 1.95rem); line-height: 1.12;
  color: var(--forest);
  overflow-wrap: anywhere;
}
.opt-desc { display: block; margin-top: 7px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.opt-meta {
  display: block; margin-top: 10px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green);
}
.opt-price {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.45rem, 6.2vw, 1.85rem); line-height: 1.12;
  white-space: nowrap; color: var(--ink);
  padding-top: 1px;
}

/* ---------- допы: переключатели ---------- */

.addon { grid-template-columns: minmax(0, 1fr) auto; padding: 22px 0 24px; }
.addon .opt-name { font-size: clamp(1.35rem, 5.8vw, 1.7rem); }
.addon-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.addon-price {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 5.6vw, 1.6rem); line-height: 1.1;
  white-space: nowrap;
}
.switch {
  position: relative; flex: none;
  width: 52px; height: 32px; border-radius: 16px;
  background: rgba(46, 42, 36, 0.12);
  overflow: hidden;
}
.switch::before {
  content: ''; position: absolute; inset: 0;
  background: var(--green);
  opacity: 0; transition: opacity 260ms var(--ease-out);
}
.switch i {
  position: absolute; top: 3px; left: 3px;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(33, 39, 32, 0.22);
  transition: transform 460ms var(--ease-spring);
}
.is-sel .switch::before { opacity: 1; }
.is-sel .switch i { transform: translateX(20px); }

.skip-note { margin-top: 22px; font-size: 14.5px; color: var(--ink-soft); }

/* «о себе» под прайсом — только на телефоне (на широком экране оно в шапке слева) */
.about-below { display: none; margin-top: 34px; padding-bottom: 34px; max-width: 34rem; }
.about-below .kicker { margin: 0 0 8px; }
.about-below p:last-child { color: var(--ink-soft); }

/* ---------- нижняя панель «Итого» ---------- */

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(250, 248, 243, 0.96);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 -1px 0 var(--line), 0 -18px 40px -24px rgba(33, 39, 32, 0.18);
  transform: translateY(115%); opacity: 0;
  transition: transform 520ms var(--ease-out), opacity 300ms var(--ease-out);
}
.bar.is-on { transform: none; opacity: 1; }
.bar-in {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: var(--bar-h);
  padding-block: 12px;
}
.bar-sum { min-width: 0; }
.bar-k {
  display: block;
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar-v {
  display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px;
  margin-top: 3px;
}
.bar-price {
  font-family: var(--serif); font-weight: 500;
  font-size: 30px; line-height: 1.05; color: var(--forest);
  white-space: nowrap;
}
.bar-dur { font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; }
.num { display: inline-block; font-variant-numeric: lining-nums tabular-nums; }
.num.bump { animation: bump 560ms var(--ease-spring); }
.bar .btn { flex: none; min-height: 54px; padding-inline: 24px; }

/* ---------- день: лента ---------- */

.month-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.month-label {
  font-family: var(--serif); font-weight: 500;
  font-size: 26px; line-height: 1.1; color: var(--forest);
}
.month-label small { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; color: var(--ink-soft); margin-left: 8px; }
.month-arrows { display: flex; gap: 4px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: none; cursor: pointer;
  color: var(--forest);
  transition: transform 200ms var(--ease-out), opacity 200ms;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(0.9); }
.icon-btn[disabled] { opacity: 0.25; cursor: default; }

.strip {
  position: relative;
  display: flex; gap: 6px;
  margin-inline: calc(-1 * var(--pad-x));
  padding: 4px var(--pad-x) 14px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--pad-x);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar { display: none; }
/* края ленты затенены маской; --strip-fade-r (ширина правой тени) читает и book.js — какие дни видны */
.strip {
  --strip-fade-r: var(--pad-x);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--pad-x), #000 calc(100% - var(--strip-fade-r)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--pad-x), #000 calc(100% - var(--strip-fade-r)), transparent);
}

.day {
  position: relative; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 58px; height: 92px;
  padding: 0; border: 0; border-radius: 3px;
  background: none; cursor: pointer;
  scroll-snap-align: start;
  isolation: isolate;
  color: var(--ink);
  transition: opacity 300ms var(--ease-out);
}
.day::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 3px;
  background: var(--forest);
  transform: scale(0.6); opacity: 0;
  transition: transform 260ms var(--ease-out), opacity 200ms;
}
.day-w { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.day-n { font-family: var(--serif); font-weight: 500; font-size: 31px; line-height: 1; font-variant-numeric: lining-nums; }
.day-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.day.is-off { opacity: 0.3; cursor: default; }
.day.is-off .day-dot { opacity: 0; }
.day.is-weekend .day-w { color: var(--green); }
.day.is-sel { color: var(--paper); }
.day.is-sel .day-w { color: rgba(250, 248, 243, 0.72); }
.day.is-sel .day-dot { background: var(--chai); }
.day.is-sel::before { transform: none; opacity: 1; animation: pop-soft 560ms var(--ease-spring); }
.day:not(.is-off):active { transform: scale(0.94); }
.day-month {
  position: absolute; top: -2px; left: 0; right: 0;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); text-align: center;
}
.day.is-sel .day-month { color: var(--chai); }

.day-head { margin: 26px 0 6px; }
.day-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 8.4vw, 2.6rem); line-height: 1.08; color: var(--forest);
  margin: 0;
}
.day-title::first-letter { text-transform: uppercase; }
.tz-note { margin: 6px 0 0; font-size: 13px; color: var(--ink-faint); }

/* ---------- время: чипы ---------- */

.tgroup { margin-top: 22px; }
.tgroup-k { margin: 0 0 12px; }
.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 10px;
}
.chip {
  position: relative;
  min-height: 54px;
  border: 0; border-radius: 3px;
  background: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 17px; font-weight: 500; font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0.01em;
  color: var(--forest);
  cursor: pointer;
  isolation: isolate;
  transition: transform 160ms var(--ease-out);
}
.chip::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 3px;
  background: var(--forest);
  transform: scale(0.5); opacity: 0;
  transition: transform 260ms var(--ease-out), opacity 180ms;
}
.chip.is-sel { color: var(--paper); box-shadow: none; }
.chip.is-sel::before { transform: none; opacity: 1; animation: pop-soft 520ms var(--ease-spring); }
.chip:active { transform: scale(0.95); }
@media (hover: hover) { .chip:not(.is-sel):hover { box-shadow: inset 0 0 0 1px var(--green); } }

/* скелетоны загрузки — пульс прозрачностью */
.sk { background: rgba(46, 42, 36, 0.07); border-radius: 3px; animation: pulse 1200ms ease-in-out infinite alternate; }
.sk-day { width: 58px; height: 92px; flex: none; }
.sk-chip { height: 54px; }
.sk-line { height: 14px; margin: 10px 0; }

/* ---------- уведомления ---------- */

.notice {
  display: flex; gap: 14px; align-items: flex-start;
  margin: 0 0 22px; padding: 16px 0 16px 18px;
  border-left: 2px solid var(--chai);
  font-size: 15.5px; line-height: 1.5; color: var(--ink);
  animation: notice-in 620ms var(--ease-spring) both;
}
.notice b { display: block; font-weight: 600; margin-bottom: 2px; }
.notice.is-error { border-left-color: var(--error); }
.notice .btn, .notice .link-arrow { margin-top: 8px; }

.empty {
  padding: 8px 0 12px;
}
.empty-first { padding-top: 16px; }   /* пустой прайс: вместо заголовка шага — сразу этот блок */
.empty-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.08; color: var(--forest);
  margin: 0 0 14px;
}
.empty p { color: var(--ink-soft); }
.contact-btns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 24px; }
.contact-btns .btn { padding-inline: 18px; letter-spacing: 0.1em; }
@media (min-width: 520px) { .contact-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-btns .btn svg { width: 18px; height: 18px; flex: none; }
.contact-hint { margin: 18px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.contact-phone {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px;
  margin-top: 8px; padding: 4px 0 6px;
  border-bottom: 1px solid var(--line);
}
.contact-num {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2;
  color: var(--forest); text-decoration: none; white-space: nowrap;
}
.copy-btn {
  min-height: 44px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green);
}
.copy-btn.is-done { animation: pop-soft 420ms var(--ease-spring); }
/* SMS и Telegram — отдельные кнопки (раньше — ссылки в тексте высотой 19px) */
.contact-alt-k { margin: 18px 0 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.contact-alt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.alt-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 14px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 14px; font-weight: 500; color: var(--forest); text-decoration: none;
  transition: transform 160ms var(--ease-out), box-shadow 200ms;
}
.alt-btn svg { width: 18px; height: 18px; flex: none; color: var(--green); }
.alt-btn:active { transform: scale(0.97); }
@media (hover: hover) { .alt-btn:hover { box-shadow: inset 0 0 0 1px var(--green); } }
.contact-fallback { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-soft); }
.contact-fallback a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- контакты: форма ---------- */

.summary {
  margin: 0 0 34px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.summary-svc {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.45rem, 6.2vw, 1.8rem); line-height: 1.15; color: var(--forest);
  margin: 0 0 10px;
}
.summary-when { font-size: 16px; color: var(--ink); margin: 0 0 4px; }
.summary-when::first-letter { text-transform: uppercase; }
.summary-tot { font-size: 15px; color: var(--ink-soft); margin: 0; }
.summary-tot b { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--forest); }
.summary-edit { margin: 2px 0 -10px; min-height: 44px; font-size: 12px; }
.summary-edit::after { content: none; }
.nowrap { white-space: nowrap; }

.field { position: relative; margin: 0 0 30px; }
.field-label {
  display: block; margin-bottom: 4px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
}
.field-opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-faint); font-size: 12.5px; margin-left: 6px; }
.input {
  display: block; width: 100%;
  padding: 10px 0 12px;
  border: 0; border-radius: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font: inherit; font-size: 19px; line-height: 1.35; color: var(--ink);
  -webkit-appearance: none; appearance: none;
  outline: none;
}
.input::placeholder { color: rgba(46, 42, 36, 0.32); }
textarea.input { resize: none; min-height: 52px; font-size: 17px; line-height: 1.5; }
.field-line {
  position: absolute; left: 0; right: 0; height: 2px; margin-top: -2px;
  background: var(--green);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 460ms var(--ease-out);
  pointer-events: none;
}
.input:focus + .field-line { transform: scaleX(1); }
.field.has-error .input { border-bottom-color: var(--error); }
.field.has-error .field-line { background: var(--error); transform: scaleX(1); }
.field-err {
  display: block; margin-top: 8px;
  font-size: 14px; line-height: 1.4; color: var(--error);
  animation: rise 360ms var(--ease-out) both;
}
.field-hint { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ink-faint); }
.shake { animation: shake 420ms var(--ease-out); }

.seg {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin-top: 10px;
}
.seg-opt {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 16px;
  border: 0; border-radius: 3px;
  background: none;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 16px; font-weight: 500; color: var(--forest);
  text-align: left; cursor: pointer;
  isolation: isolate;
}
.seg-opt::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 3px;
  background: var(--forest);
  transform: scale(0.7); opacity: 0;
  transition: transform 280ms var(--ease-out), opacity 200ms;
}
.seg-opt svg { width: 20px; height: 20px; flex: none; color: var(--green); transition: color 200ms; }
.seg-opt.is-sel { color: var(--paper); box-shadow: none; }
.seg-opt.is-sel::before { transform: none; opacity: 1; animation: pop-soft 520ms var(--ease-spring); }
.seg-opt.is-sel svg { color: var(--cream); }
.seg-opt:active { transform: scale(0.97); }

.check {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start;
  margin: 6px 0 0; cursor: pointer;
  font-size: 15px; line-height: 1.5; color: var(--ink-soft);
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.check-box {
  position: relative; width: 26px; height: 26px; margin-top: -1px; border-radius: 3px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.check-box::before {
  content: ''; position: absolute; inset: 0; border-radius: 3px; background: var(--forest);
  transform: scale(0.4); opacity: 0;
  transition: transform 300ms var(--ease-spring), opacity 180ms;
}
.check-box svg {
  position: absolute; inset: 0; margin: auto; width: 15px; height: 15px; color: var(--paper);
  transform: scale(0); transition: transform 420ms var(--ease-spring) 60ms;
}
.check input:checked + .check-box::before { transform: none; opacity: 1; }
.check input:checked + .check-box svg { transform: scale(1); }
.check input:focus-visible + .check-box { outline: 2px solid var(--green); outline-offset: 3px; }
.field.has-error .check-box { box-shadow: inset 0 0 0 1.5px var(--error); }

/* honeypot: невидим для людей, но не display:none (некоторые боты это проверяют) */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.submit-zone { margin-top: 36px; }
.submit-note { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-soft); text-align: center; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dot 900ms ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 150ms; }
.dots i:nth-child(3) { animation-delay: 300ms; }

/* ---------- готово ---------- */

.done { padding-top: clamp(36px, 10vw, 64px); }
.done-mark {
  position: relative;
  width: 84px; height: 84px; margin-bottom: 30px;
}
.done-mark .ring, .done-mark .disc {
  position: absolute; inset: 0; border-radius: 50%;
}
.done-mark .ring { box-shadow: inset 0 0 0 1.5px var(--green); animation: ring-out 1400ms var(--ease-out) 300ms both; }
.done-mark .disc { background: var(--forest); animation: pop 700ms var(--ease-spring) 80ms both; }
.done-mark svg {
  position: absolute; inset: 0; margin: auto; width: 36px; height: 36px; color: var(--cream);
  animation: pop 640ms var(--ease-spring) 320ms both;
}
.done-title { font-size: clamp(2.7rem, 13vw, 4.4rem); margin-bottom: 18px; }
.done-lead { font-size: clamp(1.1rem, 4.6vw, 1.3rem); line-height: 1.5; color: var(--ink); max-width: 30rem; }
.done-lead span { color: var(--ink-soft); }

.details { margin: 34px 0 0; padding: 0; }
.details-row {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.details-row:last-child { border-bottom: 1px solid var(--line); }
.details dt {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); padding-top: 4px;
}
.details dd { margin: 0; font-size: 16.5px; color: var(--ink); }
.details dd.big { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; color: var(--forest); }
.details dd::first-letter { text-transform: uppercase; }

.aside-note { margin-top: 44px; }
.aside-note h3 {
  font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; color: var(--forest);
  margin: 0 0 8px;
}
.aside-note p { color: var(--ink-soft); font-size: 15.5px; }
.again { margin-top: 30px; }

/* ---------- загрузка и ошибки страницы ---------- */

.page-msg { padding: 18vh 0 64px; max-width: 36rem; }
.page-msg h1 { font-size: clamp(2.4rem, 11vw, 3.6rem); margin-bottom: 16px; }
.page-msg p { color: var(--ink-soft); }
.page-msg .btn { margin-top: 26px; }
.loading-line {
  display: block; width: 120px; height: 1px; margin-top: 30px; background: var(--green);
  transform-origin: left center; animation: load-line 1100ms var(--ease-signature) infinite;
}

/* ---------- подвал ---------- */

.foot {
  padding: 20px 0 calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-faint);
}
.foot-in { display: flex; flex-wrap: wrap; gap: 0 22px; align-items: center; justify-content: space-between; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--forest); }
.foot .brand { font-size: 20px; padding: 0; }

/* ============================================================
   Главная (список мастеров), политика, 404
   ============================================================ */

.rise-a { animation: rise 820ms var(--ease-out) both; animation-delay: calc(560ms + var(--i, 0) * 90ms); }

.home-hero { position: relative; padding: clamp(64px, 18vw, 132px) 0 clamp(40px, 10vw, 72px); }
.home-title {
  font-size: clamp(4.6rem, 27vw, 10rem); line-height: 0.9;
  letter-spacing: -0.035em;
  margin: 0 0 0.22em;
}
.home-title .w { display: inline-block; overflow: hidden; padding: 0.02em 0.04em 0.2em; margin: -0.02em -0.04em -0.2em; vertical-align: bottom; }
.home-title .wi { display: inline-block; animation: letter-up 1000ms var(--ease-out) both; animation-delay: calc(140ms + var(--i, 0) * 60ms); }
.home-lead { max-width: 30rem; margin: 0; }
.home-k { margin: 0 0 18px; }

.masters { list-style: none; margin: 0 0 clamp(64px, 16vw, 120px); padding: 0; }
.master {
  position: relative;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px;
  padding: 28px 0 30px;
  border-top: 1px solid var(--line);
  color: inherit; text-decoration: none;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.masters li:last-child .master { border-bottom: 1px solid var(--line); }
.master::before {
  content: ''; position: absolute; z-index: -1; inset: -1px calc(-1 * var(--pad-x));
  background: var(--sand); opacity: 0; transform: scaleY(0.94);
  transition: opacity 360ms var(--ease-out), transform 520ms var(--ease-out);
}
@media (hover: hover) { .master:hover::before { opacity: 1; transform: none; } }
.master:active::before { opacity: 1; transform: none; }
.master-idx { font-family: var(--serif); font-size: 22px; line-height: 1; padding-top: 0.55em; color: var(--green); font-variant-numeric: lining-nums; }
.master-body { display: block; min-width: 0; }
.master-name {
  display: block;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.7rem, 13vw, 4.6rem); line-height: 1; letter-spacing: -0.015em;
  color: var(--forest); margin: 0 0 14px; overflow-wrap: anywhere;
  transition: transform 520ms var(--ease-out);
}
@media (hover: hover) { .master:hover .master-name { transform: translateX(8px); } }
.master-about { display: block; color: var(--ink-soft); margin: 0 0 14px; max-width: 34rem; }
.master .link-arrow { min-height: 0; }
@media (hover: hover) { .master:hover .link-arrow::after { transform: translateX(6px); } }
.master-sk { padding: 30px 0 32px 54px; border-top: 1px solid var(--line); }
.master-sk:last-child { border-bottom: 1px solid var(--line); }
.masters-msg { padding: 28px 0 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.masters-msg p { color: var(--ink-soft); }

.how { margin: 0 0 clamp(56px, 14vw, 110px); }
.how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.how-i {
  align-content: start;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px;
  padding: 20px 0 22px; border-top: 1px solid var(--line);
}
.how-i:last-child { border-bottom: 1px solid var(--line); }
.how-n { grid-row: span 2; font-family: var(--serif); font-size: 22px; line-height: 1.25; color: var(--green); }
.how-t { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; color: var(--forest); margin: 0 0 6px; }
.how-i p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }

.doc { padding-block: clamp(40px, 10vw, 84px) clamp(48px, 12vw, 96px); }
.doc-head { margin-bottom: 8px; }
.doc-title { font-size: clamp(2.5rem, 11vw, 4.6rem); line-height: 1.02; margin-bottom: 18px; animation: rise 820ms var(--ease-out) 80ms both; }
.doc-meta { color: var(--ink-faint); font-size: 14px; margin-bottom: 34px; }
.doc-body { max-width: 40rem; animation: rise 820ms var(--ease-out) 220ms both; }
.doc-body h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 6.8vw, 2.2rem); line-height: 1.15; color: var(--forest);
  margin: 2em 0 0.6em; padding-top: 0.9em; border-top: 1px solid var(--line);
}
.doc-body h2 .n { color: var(--green); margin-right: 0.35em; }
.doc-body p, .doc-body li { color: var(--ink); font-size: 16.5px; line-height: 1.7; }
.doc-body ul { padding-left: 1.1em; margin: 0 0 1em; }
.doc-body li { margin-bottom: 0.4em; }
.doc-body li::marker { color: var(--green); }
.doc-body b { font-weight: 600; color: var(--forest); }
.ph {
  background: rgba(210, 171, 128, 0.25);
  padding: 0 0.25em; border-radius: 2px;
  font-weight: 500;
}
.doc-lead { font-size: clamp(1.1rem, 4.6vw, 1.3rem); color: var(--ink-soft); line-height: 1.6; padding-bottom: 6px; }
.back-link { text-decoration: none; margin-left: 0; margin-right: -10px; }

.nf { position: relative; padding-block: clamp(56px, 14vh, 140px) 80px; min-height: calc(100vh - var(--top-h)); }
.nf-num {
  display: block;
  font-size: clamp(8rem, 46vw, 16rem); line-height: 0.85;
  letter-spacing: -0.04em; margin: 0 0 18px;
}
.nf-num .w { display: inline-block; overflow: hidden; padding: 0.04em 0.02em 0.12em; margin: -0.04em -0.02em -0.12em; vertical-align: bottom; }
.nf-num .wi { display: inline-block; animation: letter-up 1000ms var(--ease-out) both; animation-delay: calc(100ms + var(--i, 0) * 90ms); }
.nf h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); margin-bottom: 14px; }
.nf p { color: var(--ink-soft); max-width: 30rem; }
.nf .btn { margin-top: 28px; }
.page-nf .orbs, .page-home .orbs { inset: -60px calc(50% - 50vw) -20px; }

/* ============================================================
   Широкий экран: журнальный разворот в две колонки
   ============================================================ */

@media (min-width: 720px) {
  :root { --pad-x: 40px; }
  .chips { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .seg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .details-row { grid-template-columns: 160px minmax(0, 1fr); }
}

@media (min-width: 980px) {
  :root { --top-h: 68px; }
  .layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(48px, 6vw, 96px);
    align-items: start;
  }
  .hero {
    position: sticky; top: calc(var(--top-h) + 8px);
    padding: 56px 0 40px;
  }
  .hero-name { font-size: clamp(4.2rem, 6.4vw, 6.2rem); }
  .orbs {
    inset: -80px -160px -40px -220px;
    -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 92%), linear-gradient(#000 60%, transparent);
    mask-image: linear-gradient(90deg, #000 55%, transparent 92%), linear-gradient(#000 60%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .page-nf .orbs, .page-home .orbs {
    inset: -60px calc(50% - 50vw) -20px;
    -webkit-mask-image: linear-gradient(#000 55%, transparent);
    mask-image: linear-gradient(#000 55%, transparent);
  }
  .strip {
    --strip-fade-r: 48px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--strip-fade-r)), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - var(--strip-fade-r)), transparent);
  }

  .home-hero { padding-bottom: 88px; }
  .home-hero .hero-in {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: end;
    grid-template-areas: "eb eb" "title lead" "rule rule";
  }
  .home-hero .eyebrow { grid-area: eb; }
  .home-title { grid-area: title; margin: 0 0 28px; }
  .home-lead { grid-area: lead; padding-bottom: 46px; }
  .home-hero .hero-rule { grid-area: rule; margin: 0; }
  .home-list, .how { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: 64px; align-items: start; }
  .home-k { padding-top: 34px; }
  .masters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .masters > li { border-top: 1px solid var(--line); }
  .masters li .master, .masters li:last-child .master { border: 0; }
  .masters { border-bottom: 1px solid var(--line); }
  .master { padding: 34px 0 38px; }
  .master-sk, .master-sk:last-child, .masters-msg { border: 0; }
  .how-list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
  .how-i, .how-i:last-child { grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); padding: 30px 0 34px; }
  .how-n { grid-row: auto; margin-bottom: 18px; }

  .doc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(48px, 6vw, 96px); align-items: start; }
  .doc-head { position: sticky; top: calc(var(--top-h) + 40px); }
  .doc-title { font-size: clamp(3rem, 4.4vw, 4rem); }
  .doc-body { padding-top: 6px; }
  .doc-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
  .aside-sum { display: block; margin-top: 34px; }
  .layout .flow { padding-top: 22px; }
  .step-first .step-head { padding-top: clamp(30px, 8vw, 54px); }
  .empty-first { padding-top: clamp(30px, 8vw, 54px); }
  .flow { padding-bottom: 64px; }
  .flow.no-bar { padding-bottom: 64px; }
  .opt::before, .master::before { inset: -1px -24px; }
  .opt::after { left: -24px; }
  .strip { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }

  /* на десктопе «Итого» — липкая панель в правой колонке */
  .bar {
    position: sticky; left: auto; right: auto; bottom: 0;
    margin-top: 36px;
    background: rgba(250, 248, 243, 0.94);
    box-shadow: 0 -1px 0 var(--line);
    transform: translateY(24px); opacity: 0; pointer-events: none;
    transition: transform 520ms var(--ease-out), opacity 360ms var(--ease-out);
  }
  .bar.is-on { transform: none; opacity: 1; pointer-events: auto; }
  .bar .shell { padding-inline: 0; }
  .bar-in { padding-block: 18px 22px; }
  .aside-sum-list { list-style: none; margin: 0; padding: 0; }
  .aside-sum-list li {
    display: flex; justify-content: space-between; gap: 18px;
    padding: 12px 0; border-top: 1px solid var(--line);
    font-size: 15px; color: var(--ink);
    animation: rise 520ms var(--ease-out) both;
  }
  .aside-sum-list li:last-child { border-bottom: 1px solid var(--line); }
  .aside-sum-list li span:last-child { color: var(--ink-soft); white-space: nowrap; }
  .aside-sum-list li span:first-child::first-letter { text-transform: uppercase; }
}

@media (max-width: 979px) {
  /* на телефоне шапка мастера только на первом шаге; при возврате — мягко проявляется */
  .layout.is-inner .hero { display: none; }
  .hero.calm { animation: fade-in 520ms var(--ease-out) both; }
  .topbar.is-inner .brand { display: none; }
  /* первый экран по ссылке из мессенджера: имя мастера и сразу прайс. Шапка ниже, «о себе» — под прайсом,
     «Шаг 1 из N» уже есть в верхней панели */
  .hero { padding: clamp(26px, 7vw, 56px) 0 clamp(22px, 6vw, 40px); }
  .hero-meta { margin-bottom: 0; }
  .hero-about { display: none; }
  .about-below { display: block; }
  .step-first .step-head .eyebrow { display: none; }
  .step-first .step-head { padding-bottom: 18px; }
}
@media (max-width: 979px) and (max-height: 700px) {
  .hero-name { font-size: clamp(3rem, 15vw, 5.6rem); }
  .hero .eyebrow { margin-bottom: 1.1em; }
  .step-first .step-title { font-size: clamp(2.1rem, 9.4vw, 3.2rem); }
}
@media (min-width: 980px) {
  .top-title { display: none; }
  .back { order: 3; margin-left: 0; }
  .top-spacer { order: 2; }
  .top-step { order: 4; margin-left: 18px; }
}

@media (max-width: 359px) {
  :root { --pad-x: 16px; }
  .bar .btn { padding-inline: 18px; letter-spacing: 0.08em; }
  .bar-price { font-size: 26px; }
  /* у допа нет кружка-отметки: его две колонки (название | цена с переключателем) не трогаем */
  .opt:not(.addon) { grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 10px; }
  .addon { column-gap: 10px; }
  .mark { width: 24px; height: 24px; }
  .seg-opt { padding: 0 12px; gap: 8px; font-size: 15px; }
  .details-row { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
  .day { width: 52px; }
}

/* ============================================================
   Ключевые кадры
   ============================================================ */

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes letter-up { from { transform: translateY(108%); } to { transform: none; } }
@keyframes line-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shine-win { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@keyframes shine-txt { from { transform: translateX(40%); } to { transform: translateX(-100%); } }
@keyframes step-in-fwd { from { opacity: 0; transform: translate3d(40px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes step-in-back { from { opacity: 0; transform: translate3d(-40px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes step-out-fwd { to { opacity: 0; transform: translate3d(-32px, 0, 0); } }
@keyframes step-out-back { to { opacity: 0; transform: translate3d(32px, 0, 0); } }
@keyframes pop { 0% { transform: scale(0.4); } 55% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes pop-soft { 0% { transform: scale(0.86); } 55% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes press { 0% { transform: scale(1); } 30% { transform: scale(0.985); } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: translateY(0); } 30% { transform: translateY(-7px) scale(1.06); } 100% { transform: none; } }
@keyframes pulse { from { opacity: 0.45; } to { opacity: 1; } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes notice-in { from { opacity: 0; transform: translateY(-12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes ring-out { 0% { opacity: 0.9; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes dot { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes load-line { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 50.01% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@keyframes drift-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-12%, 10%, 0) scale(1.12); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(14%, -8%, 0) scale(0.94); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .orb { animation: none !important; }
  .hero-name .shine-clip { display: none; }
  .sk { animation: none !important; opacity: 0.7; }
}
