/* beauty_7: витрина услуг — большое фото выбранной услуги слева, список услуг и описание справа. */

:root{
  --bg:#efebe5;
  --ink:#1f1b18;
  --surface:color-mix(in srgb, var(--bg) 22%, #fff);
  --surface-2:color-mix(in srgb, var(--bg) 60%, #fff);
  --surface-3:color-mix(in srgb, var(--ink) 8%, var(--bg));
  --edge:color-mix(in srgb, var(--ink) 9%, transparent);
  --edge-strong:color-mix(in srgb, var(--ink) 18%, transparent);
  --muted:color-mix(in srgb, var(--ink) 62%, transparent);
  --faint:color-mix(in srgb, var(--ink) 40%, transparent);
  --accent:#e2582c;
  --accent-ink:#fff;
  --accent-soft:rgba(226, 88, 44, .08);
  --accent-edge:rgba(226, 88, 44, .5);
  --promo:linear-gradient(115deg, #9e1d18 0%, #d2401f 48%, #f08b3d 100%);
  --error:#b3261e;
  --foot:#1f1b18;
  --foot-ink:#f6f1ea;

  --font:"Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif:"Fraunces", Georgia, "Times New Roman", serif;
  --max:1560px;
  --pad:24px;
  --ease:cubic-bezier(.2, .8, .2, 1);
  --safe-b:env(safe-area-inset-bottom, 0px);
  --glass:rgba(34, 30, 28, .46);
  --glass-edge:rgba(255, 255, 255, .14);
  --pos:50%;
}

/* Тёмная картинка фона (data-bg-tone ставит main.js): карточки — тёмное стекло под светлый текст. */
html[data-bg-tone="dark"]{
  --surface:rgba(31, 27, 24, .72);
  --surface-2:rgba(31, 27, 24, .56);
  --surface-3:color-mix(in srgb, var(--ink) 10%, transparent);
}

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

html{
  -webkit-text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:24px;
}

body{
  margin:0;
  min-height:100vh;
  background:var(--page-bg-image, none) center / cover fixed, var(--bg);
  color:var(--ink);
  font-family:var(--font);
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

body.is-locked{ overflow:hidden; }

img{ display:block; max-width:100%; }

a{ color:inherit; }

button,
input{ font:inherit; color:inherit; }

button{ cursor:pointer; }

[hidden]{ display:none !important; }

:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

svg{
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

/* ---------- Первый экран: фото слева, услуги справа ---------- */

.app{
  display:grid;
  grid-template-columns:minmax(0, .92fr) minmax(0, 1fr);
  align-items:start;
  gap:clamp(24px, 3vw, 48px);
  max-width:var(--max);
  margin:0 auto;
  padding:var(--pad);
}

/* Большое фото */

.stage{
  position:sticky;
  top:var(--pad);
  height:calc(100vh - var(--pad) * 2);
  height:calc(100svh - var(--pad) * 2);
  min-height:560px;
  max-height:980px;
  overflow:hidden;
  border-radius:34px;
  background:#16120f;
  color:#fff;
  isolation:isolate;
  box-shadow:0 30px 70px -30px rgba(31, 27, 24, .45);
}

.stage__media{
  position:absolute;
  inset:0;
  touch-action:pan-y;
}

.stage__media.is-entering{ animation:stage-in .7s var(--ease); }

@keyframes stage-in{
  from{ opacity:0; transform:scale(1.04); }
  to{ opacity:1; transform:none; }
}

.stage__layer{
  position:absolute;
  inset:0;
  background:center / cover no-repeat;
}

/* «После» открывается слева направо вместе с ползунком */
.stage__layer--after{ clip-path:inset(0 calc(100% - var(--pos)) 0 0); }

.stage__line{
  position:absolute;
  top:0;
  bottom:0;
  left:var(--pos);
  width:2px;
  margin-left:-1px;
  background:linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 20%, #ffd2a8 70%, rgba(255, 160, 90, 0));
  box-shadow:0 0 18px 2px rgba(255, 138, 64, .75);
  pointer-events:none;
}

.stage__tag{
  position:absolute;
  top:78px;
  padding:4px 12px;
  border-radius:999px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  font-size:13px;
  font-weight:600;
  pointer-events:none;
}

.stage__tag--after{ left:20px; }

.stage__tag--before{ right:20px; }

.stage__shade{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0, 0, 0, .38) 0, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .55) 100%);
  pointer-events:none;
}

.stage__top{
  position:absolute;
  top:20px;
  left:20px;
  right:20px;
  display:flex;
  align-items:center;
  gap:8px;
  pointer-events:none;
}

.stage__top > *{ pointer-events:auto; }

/* Телефон и меню поверх фото на компьютере, имя мастера там не показываем */
.stage .top{ gap:8px; }

.stage .brand{ display:none; }

.stage .round{
  width:40px;
  height:40px;
  border-color:var(--glass-edge);
  background:var(--glass);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  color:#fff;
}

.stage .round svg{ width:18px; height:18px; }

.stage .menu{
  right:auto;
  left:0;
  color:var(--ink);
}

.chip--glass{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:38px;
  padding:0 16px;
  border:1px solid var(--glass-edge);
  border-radius:999px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
  font-size:14px;
  font-weight:500;
  white-space:nowrap;
}

.chip__dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ff7a45;
}

.is-live .chip__dot{ animation:pulse 1.8s ease-out infinite; }

@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(255, 122, 69, .7); }
  100%{ box-shadow:0 0 0 10px rgba(255, 122, 69, 0); }
}

/* Панель как у плеера */

.player{
  position:absolute;
  left:20px;
  right:20px;
  bottom:20px;
  padding:18px 20px 16px;
  border:1px solid var(--glass-edge);
  border-radius:26px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(22px) saturate(140%);
  backdrop-filter:blur(22px) saturate(140%);
}

.player__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.player__title{
  min-width:0;
  overflow:hidden;
  font-family:var(--serif);
  font-size:17px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.player__next{
  display:inline-flex;
  flex:none;
  align-items:center;
  gap:6px;
  padding:4px 0;
  border:0;
  background:none;
  color:rgba(255, 255, 255, .72);
  font-size:14px;
  transition:color .2s ease;
}

.player__next:hover{ color:#fff; }

.player__next svg{ width:16px; height:16px; }

.player__row{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:14px;
}

.player__play{
  display:flex;
  flex:none;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
  padding:0;
  border:0;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  box-shadow:0 10px 24px rgba(226, 88, 44, .45);
  transition:transform .2s var(--ease);
}

.player__play:hover{ transform:scale(1.06); }

.player__play svg{ width:20px; height:20px; }

.player__btn{
  display:flex;
  flex:none;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(255, 255, 255, .14);
  color:#fff;
}

.player__btn--ghost{
  margin-left:auto;
  border:1px solid rgba(255, 255, 255, .22);
  background:none;
}

.player__btn svg{ width:18px; height:18px; }

.player__meta{
  flex:1;
  min-width:0;
  overflow:hidden;
  color:rgba(255, 255, 255, .8);
  font-size:14px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

/* Ползунок «до/после» на месте прогресса видео */

.scrub{
  display:flex;
  flex:1;
  align-items:center;
  gap:12px;
  min-width:0;
  color:rgba(255, 255, 255, .78);
  font-size:13px;
}

.scrub__track{
  position:relative;
  flex:1;
  height:28px;
  cursor:pointer;
  touch-action:none;
}

.scrub__track::before,
.scrub__fill{
  content:"";
  position:absolute;
  top:50%;
  left:0;
  height:3px;
  border-radius:3px;
  transform:translateY(-50%);
}

.scrub__track::before{
  right:0;
  background:rgba(255, 255, 255, .25);
}

.scrub__fill{
  width:var(--pos);
  background:#fff;
}

.scrub__knob{
  position:absolute;
  top:50%;
  left:var(--pos);
  width:16px;
  height:16px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 0 0 4px rgba(255, 255, 255, .18), 0 2px 8px rgba(0, 0, 0, .3);
  transform:translate(-50%, -50%);
}

/* Правая колонка */

.side{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:0 0 8px;
}

.top{
  position:relative;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.round{
  display:flex;
  flex:none;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  padding:0;
  border:1px solid var(--edge);
  border-radius:50%;
  background:var(--surface);
  text-decoration:none;
}

.round svg{ width:20px; height:20px; }

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  margin-left:6px;
  text-decoration:none;
}

.brand__avatar{
  display:flex;
  flex:none;
  align-items:center;
  justify-content:center;
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--promo);
  color:#fff;
  font-family:var(--serif);
  font-size:20px;
}

.brand__text{
  display:flex;
  flex-direction:column;
  min-width:0;
  line-height:1.25;
}

.brand__name{
  overflow:hidden;
  font-size:calc(15px * var(--k, 1));
  font-weight:600;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.brand__tag{
  overflow:hidden;
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  display:none;
  flex-direction:column;
  min-width:250px;
  padding:8px;
  border:1px solid var(--edge);
  border-radius:22px;
  background:var(--surface);
  box-shadow:0 24px 60px -20px rgba(31, 27, 24, .35);
}

.top.is-open .menu{
  display:flex;
  animation:menu-in .25s var(--ease);
}

@keyframes menu-in{
  from{ opacity:0; transform:translateY(-6px); }
  to{ opacity:1; transform:none; }
}

.menu a{
  padding:12px 16px;
  border-radius:14px;
  font-size:15px;
  font-weight:500;
  text-decoration:none;
}

.menu a:hover{ background:var(--surface-3); }

.title{
  margin:14px 0 0;
  font-family:var(--serif);
  font-size:calc(clamp(34px, 3.3vw, 52px) * var(--k, 1));
  font-weight:400;
  line-height:1.06;
  letter-spacing:-.02em;
}

.intro{
  text-align:center;
}

.subtitle{
  max-width:54ch;
  margin:12px auto 0;
  color:var(--muted);
  font-size:calc(16px * var(--k, 1));
}

.stats{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:20px 0 0;
  padding:0;
  list-style:none;
}

.stat{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:40px;
  padding:0 16px;
  border:1px solid var(--edge);
  border-radius:999px;
  background:var(--surface);
  font-size:14px;
  font-weight:500;
}

.stat__star{
  width:17px;
  height:17px;
  fill:#ec6a30;
  stroke:none;
}

/* Вступление под первым экраном (на компьютере) */

.pages > .intro{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  padding-top:clamp(56px, 7vw, 96px);
  text-align:center;
}

.pages > .intro .title{
  margin:0;
  font-size:calc(clamp(40px, 4vw, 64px) * var(--k, 1));
}

.pages > .intro .subtitle{ margin:0; }

.pages > .intro .stats{ display:none; }

/* Список услуг */

.services{ margin-top:0; }

.side__h{
  margin:-6px 0 8px;
  line-height:1.2;
  font-family:var(--serif);
  font-size:26px;
  font-weight:400;
  letter-spacing:-.01em;
  text-align:center;
}

.svc-list{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}

.svc{
  display:grid;
  grid-template-columns:112px minmax(0, 1fr) auto;
  align-items:center;
  gap:18px;
  width:100%;
  padding:8px 14px 8px 8px;
  border:1px solid transparent;
  border-radius:24px;
  background:none;
  text-align:left;
  transition:background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.svc:hover{ background:color-mix(in srgb, var(--surface) 55%, transparent); }

.svc[aria-pressed="true"]{
  border-color:var(--edge);
  background:var(--surface);
  box-shadow:0 14px 34px -18px rgba(31, 27, 24, .3);
}

.svc__thumb{
  position:relative;
  display:block;
  aspect-ratio:4 / 3;
  overflow:hidden;
  border-radius:18px;
  background:var(--surface-3) center / cover no-repeat;
}

.svc__main{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.svc__name{
  font-family:var(--serif);
  font-size:19px;
  line-height:1.25;
}

.svc__desc-wrap{ position:relative; }

.svc__desc{
  display:-webkit-box;
  overflow:hidden;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}

.svc__desc.is-measuring,
.svc__desc.is-open{
  display:block;
  overflow:visible;
  -webkit-line-clamp:none;
  -webkit-box-orient:initial;
}

.svc__desc.is-clipped{ cursor:pointer; }

.svc__aside{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}

.svc__time{
  color:var(--muted);
  font-size:13px;
  font-weight:500;
  white-space:nowrap;
}

.svc__pill{
  padding:8px 16px;
  border:1px solid var(--edge);
  border-radius:999px;
  background:var(--surface);
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  transition:background-color .25s ease, color .25s ease;
}

.svc[aria-pressed="true"] .svc__pill{
  border-color:transparent;
  background:var(--accent);
  color:#fff;
}

.side__empty{
  margin:8px 0 0;
  color:var(--muted);
  font-size:15px;
}

/* Описание выбранной услуги */

.focus{
  position:relative;
  margin-top:24px;
  padding:26px 28px 26px;
  overflow:hidden;
  border-radius:30px;
  background:var(--promo);
  color:#fff;
  isolation:isolate;
  animation:focus-in .5s var(--ease);
}

.focus::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(420px 220px at 92% 110%, rgba(255, 196, 128, .75), transparent 70%),
    radial-gradient(360px 240px at 0% 0%, rgba(80, 6, 10, .55), transparent 70%);
}

@keyframes focus-in{
  from{ opacity:.4; transform:translateY(8px); }
  to{ opacity:1; transform:none; }
}

.focus__head{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}

.focus__chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.focus__chip{
  display:inline-flex;
  align-items:center;
  height:34px;
  padding:0 14px;
  border:1px solid rgba(255, 255, 255, .24);
  border-radius:999px;
  background:rgba(255, 255, 255, .14);
  font-size:13px;
  font-weight:500;
}

.focus__cta{
  height:42px;
  margin-left:auto;
  padding:0 20px;
  border:0;
  border-radius:999px;
  background:#fff;
  color:#1f1b18;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  box-shadow:0 10px 24px -10px rgba(60, 10, 0, .5);
  transition:transform .2s var(--ease);
}

.focus__cta:hover{ transform:translateY(-1px); }

.focus__title{
  margin:22px 0 8px;
  font-family:var(--serif);
  font-size:30px;
  font-weight:400;
  line-height:1.15;
  letter-spacing:-.01em;
}

.focus__text{
  max-width:62ch;
  margin:0;
  font-size:15.5px;
  line-height:1.55;
  white-space:pre-line;
  opacity:.94;
}

.focus__text.is-clamped{
  display:-webkit-box;
  overflow:hidden;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
}

.focus__more{
  margin-top:8px;
  padding:0;
  border:0;
  background:none;
  color:#fff;
  font-size:14px;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:4px;
}

.focus__slots-box{
  margin-top:22px;
  padding-top:18px;
  border-top:1px solid rgba(255, 255, 255, .22);
}

.focus__label{
  display:block;
  margin-bottom:10px;
  font-size:13px;
  opacity:.85;
}

.focus__slots{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

@media (min-width:1024px){
  .focus{
    margin-top:14px;
    padding:16px 18px 14px;
    border-radius:24px;
  }

  .focus__head{ gap:8px; }

  .focus__chip{
    height:28px;
    padding:0 12px;
    font-size:12px;
  }

  .focus__cta{
    height:36px;
    padding:0 16px;
    font-size:13px;
  }

  .focus__title{
    margin:10px 0 4px;
    font-size:24px;
  }

  .focus__text{
    font-size:14px;
    line-height:1.45;
  }

  .focus__text.is-clamped{
    -webkit-line-clamp:2;
    cursor:pointer;
  }

  .focus__more{ display:none; }

  .focus__slots-box{
    margin-top:12px;
    padding-top:10px;
  }

  .focus__label{ margin-bottom:8px; }

  .slot{
    min-width:64px;
    height:34px;
    padding:0 12px;
  }
}

.slot{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:72px;
  height:40px;
  padding:0 16px;
  border:1px solid rgba(255, 255, 255, .3);
  border-radius:999px;
  background:rgba(255, 255, 255, .14);
  color:#fff;
  font-size:15px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  transition:background-color .2s ease, color .2s ease;
}

.slot:hover{
  background:#fff;
  color:#1f1b18;
}

.slot--line{ background:none; }

.slot--wide{ padding:0 22px; }

.slot--ghost{
  width:72px;
  animation:ghost 1.2s ease-in-out infinite alternate;
}

@keyframes ghost{
  from{ opacity:.35; }
  to{ opacity:.8; }
}

/* ---------- Разделы ниже первого экрана ---------- */

.pages{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--pad);
}

.sec{ padding-top:clamp(56px, 7vw, 96px); }

.sec-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin-bottom:28px;
  text-align:center;
}

.sec-title{
  margin:0;
  font-family:var(--serif);
  font-size:calc(clamp(30px, 3vw, 44px) * var(--k, 1));
  font-weight:400;
  line-height:1.1;
  letter-spacing:-.02em;
}

.side__h em,
.sec-title em,
.sheet__title em{
  font-style:italic;
  background:linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 45%, transparent) 62%, color-mix(in srgb, var(--accent) 45%, transparent) 90%, transparent 90%);
}

.sec-note{
  max-width:54ch;
  margin:0 auto 14px;
  color:var(--muted);
  font-size:15px;
  line-height:1.5;
  text-align:center;
}

.sec-head .sec-note{ margin-bottom:0; }

/* О мастере и сертификат */

.master__grid{
  display:grid;
  grid-template-columns:minmax(0, 400px) minmax(0, 1fr);
  gap:clamp(24px, 4vw, 56px);
  align-items:center;
  max-width:960px;
  margin:0 auto;
}
.master.no-photo .master__grid{ grid-template-columns:minmax(0, 680px); justify-content:center; text-align:center; }
.master__photo{
  aspect-ratio:4 / 5;
  border-radius:24px;
  background:var(--muted) center / cover no-repeat;
}
.master__photo[hidden]{ display:none; }
.master__name{
  margin:0 0 14px;
  font-family:var(--serif);
  font-size:clamp(24px, 2.4vw, 34px);
  font-weight:400;
  line-height:1.15;
}
.master__text{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
  white-space:pre-line;
}
#certificate{ padding-top:clamp(56px, 7vw, 96px); }
@media (max-width:760px){
  .master__grid{ grid-template-columns:1fr; }
}

/* До и после */

.works{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
  gap:20px;
  margin:0;
  padding:0;
  list-style:none;
}

.work{
  padding:8px;
  border:1px solid var(--edge);
  border-radius:28px;
  background:var(--surface);
}

.work__media{
  position:relative;
  display:block;
  width:100%;
  aspect-ratio:4 / 5;
  overflow:hidden;
  padding:0;
  border:0;
  border-radius:22px;
  background:var(--surface-3);
}

.work__img{
  position:absolute;
  inset:0;
  background:center / cover no-repeat;
  transition:opacity .4s ease;
}

.work__img--before{ opacity:0; }

.work.is-before .work__img--before{ opacity:1; }

@media (hover:hover){
  .work__media:hover .work__img--before{ opacity:1; }
}

.work__tag{
  position:absolute;
  top:12px;
  left:12px;
  padding:4px 12px;
  border-radius:999px;
  background:var(--glass);
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
  color:#fff;
  font-size:13px;
  font-weight:600;
}

.work__caption{ padding:14px 12px 10px; }

.work__title{
  margin:0;
  font-family:var(--serif);
  font-size:20px;
  font-weight:400;
  line-height:1.25;
}

.work__price{
  display:block;
  margin-top:4px;
  color:var(--accent);
  font-size:14px;
  font-weight:600;
}

.work__text{
  display:-webkit-box;
  margin:8px 0 0;
  overflow:hidden;
  color:var(--muted);
  font-size:14px;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
}

.work__switch{ display:none; }

.work__meta{ display:none; }

/* Как проходит приём */

.steps{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:20px;
  margin:0;
  padding:0;
  list-style:none;
}

.step-card{
  display:flex;
  flex-direction:column;
  padding:8px 8px 22px;
  border:1px solid var(--edge);
  border-radius:28px;
  background:var(--surface);
}

.step-card__media{
  display:block;
  aspect-ratio:4 / 5;
  margin-bottom:18px;
  border-radius:22px;
  background:var(--surface-3) center / cover no-repeat;
}

.step-card__num{
  margin:0 14px;
  color:var(--accent);
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
}

.step-card__title{
  margin:6px 14px 0;
  font-family:var(--serif);
  font-size:calc(22px * var(--k, 1));
  font-weight:400;
  line-height:1.2;
}

.step-card__text{
  margin:8px 14px 0;
  color:var(--muted);
  font-size:calc(15px * var(--k, 1));
  white-space:pre-line;
}

@media (min-width:1024px){
  .steps{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:32px;
    max-width:76rem;
    margin-inline:auto;
  }

  .step-card{
    position:relative;
    height:30rem;
    padding:0;
    overflow:hidden;
    border:0;
    border-radius:18px;
    background:#f3f4f6;
    transition:filter .3s ease, transform .3s ease;
  }

  .steps.is-hover .step-card:not(.is-on){
    filter:blur(4px);
    transform:scale(.98);
  }

  .step-card__media{
    position:absolute;
    inset:0;
    aspect-ratio:auto;
    margin:0;
    border-radius:0;
  }

  .step-card__body{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:22px 18px;
    background:rgba(0, 0, 0, .5);
    opacity:0;
    transition:opacity .3s ease;
  }

  .step-card.is-on .step-card__body{ opacity:1; }

  .step-card__num{ display:none; }

  .step-card__title,
  .step-card__text{
    width:100%;
    min-width:0;
    margin:0;
    color:#fafafa;
    white-space:normal;
  }

  .step-card__title{
    align-self:flex-start;
    font-size:24px;
    font-weight:500;
    line-height:1.2;
    text-align:left;
  }

  .step-card__text{
    width:100%;
    max-width:100%;
    min-width:0;
    margin:0;
    color:#fafafa;
  }

  .step-card__clamp{
    display:-webkit-box;
    overflow:hidden;
    width:100%;
    max-width:100%;
    font-size:15px;
    line-height:1.45;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
    opacity:.92;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
  }

  .pages > #works{ min-width:0; }

  .works-scroll{
    position:relative;
    width:100vw;
    min-width:0;
    margin-left:calc(50% - 50vw);
  }

  .works-scroll::before,
  .works-scroll::after{
    content:"";
    position:absolute;
    z-index:2;
    top:0;
    bottom:0;
    width:88px;
    pointer-events:none;
    opacity:0;
    transition:opacity .35s var(--ease);
  }

  .works-scroll::before{
    left:0;
    background:linear-gradient(90deg, var(--bg) 0%, transparent 100%);
  }

  .works-scroll::after{
    right:0;
    background:linear-gradient(270deg, var(--bg) 0%, transparent 100%);
  }

  .works-scroll.is-scrollable::before,
  .works-scroll.is-scrollable::after{ bottom:40px; }

  .works-scroll.is-scrollable.is-scrolled::before{ opacity:1; }

  .works-scroll.is-scrollable:not(.is-end)::after{ opacity:1; }

  .works{
    display:flex;
    gap:32px;
    width:100%;
    min-width:0;
    margin:0;
    padding-inline:0;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scroll-padding-inline:0;
    scrollbar-width:none;
  }

  .works::-webkit-scrollbar{ display:none; }

  .work{
    flex:0 0 calc((min(100%, 76rem) - 64px) / 3);
    scroll-snap-align:start;
  }

  .work__media{
    height:30rem;
    aspect-ratio:auto;
  }

  .works-rail{
    position:relative;
    width:148px;
    height:2px;
    margin:26px auto 0;
    border-radius:999px;
    background:color-mix(in srgb, var(--ink) 14%, transparent);
  }

  .works-rail__bar{
    position:absolute;
    top:0;
    left:0;
    height:100%;
    border-radius:inherit;
    background:var(--accent);
  }
}

/* Отзывы */

.wall{
  max-width:76rem;
  margin:0 auto;
  padding:0;
  list-style:none;
  columns:2;
  column-gap:20px;
}

.review{
  margin-bottom:20px;
  padding:24px;
  border:1px solid var(--edge);
  border-radius:26px;
  background:var(--surface);
  break-inside:avoid;
}

.review__rating{
  color:var(--accent);
  letter-spacing:.12em;
}

.review__text{
  margin:10px 0 18px;
  font-size:15.5px;
  line-height:1.6;
  white-space:pre-line;
}

.review__who{
  display:flex;
  align-items:center;
  gap:12px;
}

.review__photo{
  width:44px;
  height:44px;
  border-radius:50%;
  object-fit:cover;
}

.review__name{
  display:block;
  font-size:15px;
  font-weight:600;
}

.review__date{
  display:block;
  color:var(--muted);
  font-size:13px;
}

.more{
  display:block;
  height:48px;
  margin:8px auto 0;
  padding:0 26px;
  border:1px solid var(--edge);
  border-radius:999px;
  background:var(--surface);
  font-size:15px;
  font-weight:600;
}

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

.foot{
  margin-top:clamp(64px, 7vw, 96px);
  padding:0 var(--pad) calc(var(--pad) + var(--safe-b));
}

.foot__inner{
  max-width:calc(var(--max) - var(--pad) * 2);
  margin:0 auto;
  padding:28px 32px 18px;
  border-radius:30px;
  background:var(--foot);
  color:var(--foot-ink);
}

.foot__grid{
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap:20px 40px;
  padding-bottom:20px;
}

.foot__col{
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}

.foot__salon{
  font-family:var(--serif);
  font-size:22px;
  line-height:1.25;
}

.foot__text{
  max-width:40ch;
  font-size:13px;
  line-height:1.5;
  opacity:.7;
}

.foot__title{
  font-size:12px;
  opacity:.6;
}

.foot__links{
  display:flex;
  flex-wrap:wrap;
  gap:0 18px;
}

.foot__row{
  font-size:14px;
  line-height:1.7;
  overflow-wrap:anywhere;
}

.foot__row a,
.foot__bottom a{ text-decoration:none; }

.foot__row a:hover,
.foot__bottom a:hover{
  text-decoration:underline;
  text-underline-offset:4px;
}

.foot__bottom{
  display:flex;
  flex-wrap:wrap;
  gap:4px 24px;
  padding-top:14px;
  border-top:1px solid color-mix(in srgb, currentColor 16%, transparent);
  font-size:12px;
  opacity:.7;
}

/* Кнопка записи, когда первый экран прокручен */

.float-book{
  position:fixed;
  right:24px;
  bottom:calc(24px + var(--safe-b));
  z-index:35;
  height:56px;
  padding:0 28px;
  border:0;
  border-radius:999px;
  background:var(--accent);
  color:var(--accent-ink);
  font-size:16px;
  font-weight:600;
  box-shadow:0 16px 40px -10px rgba(226, 88, 44, .6);
  opacity:0;
  transform:translateY(20px);
  pointer-events:none;
  transition:opacity .3s ease, transform .3s var(--ease);
}

body.is-past .float-book{
  opacity:1;
  transform:none;
  pointer-events:auto;
}

body.is-near-foot .float-book{
  opacity:0;
  transform:translateY(20px);
  pointer-events:none;
}

/* ---------- Панель записи ---------- */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:52px;
  padding:0 24px;
  border:1px solid transparent;
  border-radius:999px;
  background:none;
  font-size:15px;
  font-weight:600;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  transition:background-color .2s ease, opacity .2s ease;
}

.btn--solid{
  background:var(--accent);
  color:var(--accent-ink);
}

.btn--line{
  border-color:var(--edge-strong);
  background:var(--surface-2);
}

.btn--line:hover{ background:var(--surface-3); }

.btn--block{ width:100%; }

.btn:disabled{
  opacity:.35;
  cursor:not-allowed;
}

.sheet{
  position:fixed;
  inset:0;
  z-index:60;
  display:flex;
  justify-content:flex-end;
}

.sheet__backdrop{
  position:absolute;
  inset:0;
  background:rgba(20, 16, 14, .42);
  opacity:0;
  transition:opacity .35s ease;
}

.sheet__panel{
  position:relative;
  display:flex;
  flex-direction:column;
  width:min(540px, 100%);
  height:100%;
  border-left:1px solid var(--edge);
  background:var(--surface);
  color:var(--ink);
  box-shadow:-24px 0 60px rgba(31, 27, 24, .2);
  transform:translateX(100%);
  transition:transform .45s var(--ease);
  outline:none;
}

.sheet.is-open .sheet__backdrop{ opacity:1; }

.sheet.is-open .sheet__panel{ transform:none; }

.sheet__head{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:14px;
  padding:20px 22px 16px;
  border-bottom:1px solid var(--edge);
}

.sheet__heading{
  text-align:center;
}

.sheet__title{
  margin:0;
  font-family:var(--serif);
  font-size:28px;
  font-weight:400;
  line-height:1.1;
  letter-spacing:-.01em;
}

.sheet__close{
  display:flex;
  align-items:center;
  justify-content:center;
  width:46px;
  height:46px;
  padding:0;
  border:1px solid var(--edge);
  border-radius:50%;
  background:var(--surface-2);
}

.sheet__close:hover{ background:var(--surface-3); }

.sheet__close svg,
.cal__nav svg{ width:20px; height:20px; }

.ticket{
  grid-column:1 / -1;
  display:grid;
  grid-template-columns:minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr);
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}

.ticket button{
  display:flex;
  flex-direction:column;
  width:100%;
  min-width:0;
  padding:9px 14px;
  border:1px dashed var(--edge-strong);
  border-radius:16px;
  background:none;
  text-align:left;
}

.ticket li.is-set button{
  border:1px solid var(--accent-edge);
  background:var(--accent-soft);
}

.ticket__k{
  color:var(--muted);
  font-size:11px;
}

.ticket__v{
  overflow:hidden;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.ticket li:not(.is-set) .ticket__v{
  opacity:.5;
  font-weight:500;
}

.sheet__body{
  position:relative;
  flex:1;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  padding:0 22px calc(32px + var(--safe-b));
}

.step{
  padding:22px 0;
  border-bottom:1px solid var(--edge);
}

.step:last-child{ border-bottom:0; }

.step__title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
  font-size:15px;
  font-weight:600;
}

.step__n{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--surface-3);
  font-size:13px;
  font-weight:700;
}

.svc-pick{
  display:grid;
  gap:8px;
}

.svc-opt{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:4px 16px;
  width:100%;
  padding:14px 16px;
  border:1px solid var(--edge);
  border-radius:18px;
  background:var(--surface-2);
  text-align:left;
}

.svc-opt:hover{ border-color:var(--edge-strong); }

.svc-opt.selected{
  border-color:var(--accent-edge);
  background:var(--accent-soft);
}

.svc-opt__name{
  font-size:15px;
  font-weight:600;
  line-height:1.35;
}

.svc-opt__dur{
  grid-column:1;
  color:var(--muted);
  font-size:13px;
}

.svc-opt__price{
  grid-column:2;
  grid-row:1 / span 2;
  font-size:15px;
  font-weight:700;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

.cal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}

.cal__month{
  font-size:16px;
  font-weight:600;
}

.cal__month::first-letter{ text-transform:uppercase; }

.cal__nav{
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  padding:0;
  border:1px solid var(--edge);
  border-radius:50%;
  background:var(--surface-2);
}

.cal__nav:hover{ background:var(--surface-3); }

.cal__nav:disabled{
  opacity:.3;
  cursor:default;
}

.cal__weekdays,
.cal__days{
  display:grid;
  grid-template-columns:repeat(7, minmax(0, 1fr));
  gap:4px;
}

.cal__weekdays span{
  padding:4px 0;
  color:var(--faint);
  font-size:12px;
  text-align:center;
}

.day{
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio:1;
  max-height:52px;
  width:100%;
  padding:0;
  border:0;
  border-radius:50%;
  background:none;
  font-size:15px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
  cursor:default;
}

.day.disabled{ opacity:.25; }

.day.available{
  background:var(--surface-2);
  cursor:pointer;
}

.day.available:hover{ background:var(--surface-3); }

.day.today{ box-shadow:inset 0 0 0 1px var(--edge-strong); }

.day.selected,
.day.selected:hover{
  background:var(--accent);
  color:var(--accent-ink);
  box-shadow:none;
}

.cal__legend{
  display:flex;
  align-items:center;
  gap:8px;
  margin:12px 0 0;
  color:var(--muted);
  font-size:13px;
}

.cal__dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--surface-2);
  box-shadow:inset 0 0 0 1px var(--edge);
}

.slots-date{
  margin:0 0 12px;
  color:var(--muted);
  font-size:14px;
}

.time-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(84px, 1fr));
  gap:8px;
}

.time{
  min-height:46px;
  padding:0 8px;
  border:1px solid var(--edge);
  border-radius:999px;
  background:var(--surface-2);
  font-size:15px;
  font-weight:600;
  font-variant-numeric:tabular-nums;
}

.time:hover{ border-color:var(--edge-strong); }

.time.unavailable{
  border-style:dashed;
  background:none;
  color:var(--faint);
}

.time.selected,
.time.selected:hover{
  border:1px solid transparent;
  background:var(--accent);
  color:var(--accent-ink);
}

.time-legend{
  margin:12px 0 0;
  color:var(--muted);
  font-size:13px;
}

.booking-empty{
  grid-column:1 / -1;
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.fields{
  display:grid;
  gap:12px;
  margin-bottom:16px;
}

.field{
  display:grid;
  gap:6px;
}

.field__label{
  color:var(--muted);
  font-size:13px;
}

.field input{
  width:100%;
  min-height:54px;
  padding:0 18px;
  border:1px solid var(--edge);
  border-radius:16px;
  background:var(--surface-2);
  font-size:16px;
  outline:none;
  transition:border-color .2s ease;
}

.field input::placeholder{ color:var(--faint); }

.field input:focus{ border-color:var(--accent-edge); }

.booking-consent{
  display:grid;
  gap:10px;
  margin-bottom:16px;
}

.booking-consent-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
  cursor:pointer;
}

.booking-consent-item input{
  flex:none;
  width:18px;
  height:18px;
  margin:1px 0 0;
  accent-color:var(--accent);
}

.booking-error{
  margin:0 0 14px;
  padding:10px 16px;
  border-radius:14px;
  background:rgba(179, 38, 30, .08);
  color:var(--error);
  font-size:14px;
}

#confirmBtn{ min-height:56px; font-size:16px; }

.booking-note{
  margin:12px 0 0;
  color:var(--muted);
  font-size:13px;
  text-align:center;
}

.success{
  padding:40px 0 8px;
  text-align:center;
}

.success__mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:66px;
  height:66px;
  border-radius:50%;
  background:var(--accent);
  color:var(--accent-ink);
}

.success__mark svg{
  width:30px;
  height:30px;
  stroke-width:2;
}

.success__title{
  margin:20px 0 8px;
  font-family:var(--serif);
  font-size:30px;
  font-weight:400;
  letter-spacing:-.01em;
}

.success__hint{
  max-width:40ch;
  margin:0 auto 24px;
  color:var(--muted);
  font-size:15px;
}

.success__actions{
  display:grid;
  gap:10px;
}

.success__again{
  margin-top:20px;
  padding:8px 12px;
  border:0;
  background:none;
  font-size:15px;
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:4px;
}

/* ---------- Узкий ноутбук ---------- */

@media (max-width:1280px){
  .app{ grid-template-columns:minmax(0, .85fr) minmax(0, 1fr); }

  .svc{ grid-template-columns:92px minmax(0, 1fr) auto; gap:14px; }

  .wall{ columns:2; }
}

/* ---------- Планшет и телефон: шапка, фото, услуги лентой, описание ---------- */

@media (max-width:1023px){
  :root{ --pad:12px; }

  .app{
    display:flex;
    flex-direction:column;
    gap:16px;
    padding-top:calc(8px + 66px + 16px + env(safe-area-inset-top, 0px));
  }

  .side{ display:contents; }

  .top{
    position:fixed;
    top:calc(8px + env(safe-area-inset-top, 0px));
    left:8px;
    right:8px;
    z-index:40;
    order:1;
    width:auto;
    margin:0;
    justify-content:flex-start;
    gap:8px;
    padding:10px var(--pad);
  }

  .top::before{
    content:"";
    position:absolute;
    inset:0;
    z-index:-1;
    border-radius:16px;
    background:var(--header-bg, color-mix(in srgb, var(--surface) 72%, transparent));
    box-shadow:0 1px 0 color-mix(in srgb, var(--ink) 8%, transparent);
    -webkit-backdrop-filter:blur(16px);
    backdrop-filter:blur(16px);
  }

  .brand{
    order:-1;
    margin:0 auto 0 0;
  }

  .stage__tag{ display:none; }

  #stageNextSmall{ display:none; }

  .player{
    display:grid;
    grid-template-columns:44px minmax(0, 1fr) 44px;
    align-items:center;
    column-gap:8px;
    row-gap:12px;
    bottom:calc(20px - 2cm);
  }

  .player__head,
  .player__row{ display:contents; }

  #stagePrev{
    grid-area:1 / 1;
    justify-self:center;
    width:28px;
    height:28px;
    background:none;
    color:rgba(255, 255, 255, .72);
  }

  .player__title{
    display:flex;
    align-items:baseline;
    justify-content:center;
    gap:8px;
    grid-area:1 / 2;
    text-align:center;
  }

  .player__name{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .player__price{
    flex:none;
    font-family:var(--font);
    font-size:14px;
    font-weight:600;
  }

  .player__next{
    grid-area:1 / 3;
    justify-content:center;
    width:100%;
  }

  .player__next span{ display:none; }

  .player__play{ grid-area:2 / 1; }

  .scrub{ grid-area:2 / 2 / auto / -1; }

  .stage{
    order:3;
    position:relative;
    top:auto;
    height:auto;
    min-height:0;
    aspect-ratio:4 / 5;
    max-height:80svh;
    width:100%;
    overflow:visible;
    border-radius:28px;
  }

  .stage__media,
  .stage__shade{
    overflow:hidden;
    border-radius:inherit;
  }

  .intro{
    order:2;
    display:grid;
    gap:12px;
    padding:0 4px;
  }

  .title{ margin:8px 0 0; }

  .subtitle{ margin:0; }

  .stats{ display:none; }

  .services{ display:none; }

  .pages{
    display:flex;
    flex-direction:column;
  }

  .pages > #process{ order:1; }
  .pages > #works{ order:2; }
  .pages > #reviews{ order:3; }

  .sec{ padding-top:calc(clamp(56px, 7vw, 96px) + 5mm + 1cm); }

  #works,
  #reviews{ padding-top:calc((clamp(56px, 7vw, 96px) + 5mm + 1cm) / 2); }

  .work__tag{ display:none; }

  .work__meta{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    align-items:baseline;
    gap:6px 10px;
    margin:6px 0 0;
    color:var(--muted);
    font-size:13px;
    text-align:right;
  }

  .work__meta-price{
    color:var(--accent);
    font-size:18px;
    font-weight:600;
  }

  .work__switch{
    position:absolute;
    z-index:2;
    left:50%;
    bottom:12px;
    display:flex;
    gap:4px;
    padding:4px;
    border-radius:999px;
    background:var(--glass);
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    transform:translateX(-50%);
  }

  .work__switch-btn{
    min-width:64px;
    height:32px;
    padding:0 12px;
    border-radius:999px;
    color:#fff;
    font-size:13px;
    font-weight:600;
    line-height:32px;
    text-align:center;
  }

  .work__switch-btn.is-on{
    background:var(--accent);
    color:var(--accent-ink);
  }

  .work__media:hover .work__img--before{ opacity:0; }

  .work.is-before .work__media:hover .work__img--before{ opacity:1; }

  .side__h{ margin-top:0; }

  .focus{ display:none; }

  .side__h{ margin-left:0; }

  /* Услуги — горизонтальной лентой под фото */
  .svc-list{
    grid-auto-flow:column;
    grid-auto-columns:200px;
    gap:10px;
    margin:0 calc(var(--pad) * -1);
    padding:0 var(--pad) 6px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scroll-padding:0 var(--pad);
    scrollbar-width:none;
  }

  .svc-list::-webkit-scrollbar{ display:none; }

  .svc-list li{ scroll-snap-align:start; }

  .svc{
    grid-template-columns:minmax(0, 1fr);
    align-items:start;
    align-content:start;
    gap:10px;
    height:100%;
    padding:8px 8px 12px;
    border-color:var(--edge);
    background:color-mix(in srgb, var(--surface) 60%, transparent);
  }

  .svc__name{ font-size:17px; padding:0 4px; }

  .svc__desc{ display:none; }

  .svc__pill{
    justify-self:start;
    margin-left:4px;
    padding:5px 12px;
    font-size:13px;
  }

  .wall{ columns:2; }

  .foot__grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:18px 24px;
  }

  body{ padding-bottom:calc(84px + var(--safe-b)); }

  .float-book,
  body.is-past .float-book{
    left:12px;
    right:12px;
    bottom:calc(12px + var(--safe-b));
    background:color-mix(in srgb, var(--accent) 78%, transparent);
    box-shadow:0 16px 40px -10px rgba(226, 88, 44, .35);
    opacity:1;
    transform:none;
    pointer-events:auto;
  }

  body.is-near-foot .float-book{
    opacity:0;
    pointer-events:none;
  }
}

@media (max-width:640px){
  .stage{ aspect-ratio:3 / 4; }

  .stage__top{ top:14px; left:14px; right:14px; }

  .stage__tag{ top:64px; }

  .chip--glass{ height:34px; padding:0 12px; font-size:13px; }

  .player{
    left:10px;
    right:10px;
    bottom:calc(10px - 2cm);
    padding:14px 14px 12px;
    border-radius:22px;
  }

  .player__next span{ display:none; }

  .player__row{ gap:10px; margin-top:10px; }

  .player__play{ width:44px; height:44px; }

  .player__btn{ width:36px; height:36px; }

  .scrub{ gap:8px; font-size:12px; }

  .title{ font-size:calc(32px * var(--k, 1)); }

  .focus{ padding:22px 20px; border-radius:26px; }

  .focus__cta{ width:100%; margin-left:0; order:3; }

  .focus__title{ font-size:25px; margin-top:18px; }

  .works{
    grid-auto-flow:column;
    grid-template-columns:none;
    grid-auto-columns:88%;
    gap:12px;
    margin:0 calc(var(--pad) * -1);
    padding:0 var(--pad) 4px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scroll-padding:0 var(--pad);
    scrollbar-width:none;
  }

  .works::-webkit-scrollbar{ display:none; }

  .work{ scroll-snap-align:start; }

  .steps{
    grid-auto-flow:column;
    grid-template-columns:none;
    grid-auto-columns:88%;
    gap:12px;
    margin:0 calc(var(--pad) * -1);
    padding:0 var(--pad) 4px;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scroll-padding:0 var(--pad);
    scrollbar-width:none;
  }

  .steps::-webkit-scrollbar{ display:none; }

  .step-card{ scroll-snap-align:start; }

  .works-rail{
    position:relative;
    width:120px;
    height:3px;
    margin:14px auto 0;
    border-radius:999px;
    background:color-mix(in srgb, var(--ink) 14%, transparent);
  }

  .works-rail__bar{
    position:absolute;
    top:0;
    left:0;
    height:100%;
    border-radius:inherit;
    background:var(--accent);
  }

  .wall{ columns:1; }

  .review{ margin-bottom:12px; padding:20px; }

  .foot__inner{ padding:22px 20px 14px; border-radius:24px; }

  .foot__grid{ grid-template-columns:minmax(0, 1fr); gap:16px; }

  .foot__bottom{ flex-direction:column; gap:4px; }

  /* Панель записи выезжает снизу */
  .sheet{ align-items:flex-end; }

  .sheet__panel{
    width:100%;
    height:calc(100% - 24px);
    height:calc(100dvh - 24px);
    border-left:0;
    border-top:1px solid var(--edge);
    border-radius:26px 26px 0 0;
    box-shadow:0 -16px 48px rgba(31, 27, 24, .2);
    transform:translateY(100%);
  }

  .sheet__panel::before{
    content:"";
    position:absolute;
    top:8px;
    left:50%;
    width:40px;
    height:4px;
    margin-left:-20px;
    border-radius:4px;
    background:var(--edge-strong);
  }

  .sheet__head{ padding:22px 16px 14px; }

  .sheet__title{ font-size:24px; }

  .ticket button{ padding:8px 10px; border-radius:14px; }

  .ticket__v{ font-size:13px; }

  .sheet__body{ padding:0 16px calc(28px + var(--safe-b)); }

  .day{ font-size:14px; }

  .time-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); }

  .time{ min-height:44px; font-size:14px; padding:0 4px; }
}

@media (max-width:380px){
  .time-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
  .svc-list{ grid-auto-columns:172px; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }

  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    animation-delay:0s !important;
    transition-duration:.01ms !important;
  }
}

/* Запись во внешнем сервисе: свой календарь скрыт, кнопки записи ведут по ссылке мастера. */
html[data-booking-external] #booking,
html[data-booking-external] .focus__slots-box{
  display:none !important;
}

/* ---------- Оформление общих блоков (blocks/blocks.css) ---------- */
:root{
  --block-space:clamp(80px, 9vw, 136px);
  --sb-ink:var(--ink);
  --sb-muted:var(--muted);
  --sb-line:var(--edge-strong);
  --sb-surface:var(--surface);
  --sb-accent:var(--accent);
  --sb-radius:20px;
  --sb-font-title:var(--serif);
  --sb-font-body:var(--font);
}
/* Вид блока из админки рисуется общим вариантом (blocks/photos). */
#worksGrid.sb-variant,
#processTrack.sb-variant{ display:block; margin:0; padding:0; list-style:none; }
