/* StudioFlow — клиентские страницы. Дизайн-система из макета: одно
   семейство Jost, светлый фон, белые карточки с мягкой тенью, пудровый
   акцент. Габарит рассчитан на 390px внутри телеграма и тянется по ширине. */

:root {
  --bg: #F8F7F6;
  --surface: #FFFFFF;
  --line: #E9E9E9;
  --hair: #F0F0F0;
  --hair2: #F2F2F2;
  --control: #DEDEDE;
  --control2: #E4E4E4;
  --field: #FAFAFA;
  --soft: #F5F5F5;
  --ink: #111111;
  --mid: #4A4A4A;
  --muted: #6E6E6E;
  --faint: #8A8A8A;
  --ghost: #A3A3A3;
  --accent: #B98A7D;
  --olive: #8FA08A;
  --off: #DCDCDC;
  --card-shadow: 0 10px 26px -8px rgba(40, 40, 40, .20);
  --bar-shadow: 0 -12px 30px -12px rgba(40, 40, 40, .25);
  --pad: 20px;
}

* { box-sizing: border-box; }
/* display:flex у панелей и шитов перебивает атрибут hidden. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Jost, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

a { color: var(--ink); }
input, textarea, button, select { font-family: inherit; }
input::placeholder, textarea::placeholder { color: var(--ghost); }
input:focus, textarea:focus { outline: none; border-color: var(--ink); }

/* Горизонтальные ленты скроллятся без полосы — она съедает высоту. */
.strip, .peek, .tags, .wtags, .choices-row {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.strip::-webkit-scrollbar, .peek::-webkit-scrollbar,
.tags::-webkit-scrollbar, .wtags::-webkit-scrollbar { display: none; }

.wrap { max-width: 520px; margin: 0 auto; padding-bottom: 108px; }

/* ------------------------------------------------------------- шапка */

.head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 18px var(--pad) 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.head-row { display: flex; align-items: center; gap: 13px; }
.ava.letters {
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 500; color: var(--muted); letter-spacing: .02em;
}
.ava {
  width: 88px; height: 88px; flex: none;
  border-radius: 50%; overflow: hidden; background: #EDEDED;
}
.ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Логотип — не портрет: обрезать его по краям нельзя, иначе у широких
   марок пропадают буквы. Вписываем целиком в тот же круг. */
.ava.logo { background: transparent; }
.ava.logo img { object-fit: contain; }
/* По логотипу возвращаются на главную страницу — как по шапке сайта. */
a.ava { display: block; }

/* Связаться напрямую — рядом с описанием, до всех шагов записи.
   Значки вместо слов: две короткие кнопки не спорят с «Выбрать зал». */
.head-acts { display: flex; gap: 8px; padding-top: 4px; }
.iconbtn {
  flex: none; width: 42px; height: 42px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}
.iconbtn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--control); }
.iconbtn svg { display: block; }
.head-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.head h1 {
  margin: 0; font-size: 22px; font-weight: 500;
  line-height: 1.1; letter-spacing: -.01em;
}
.sub { margin: 0; font-size: 15.5px; color: var(--muted); }
.about { display: flex; flex-direction: column; gap: 10px; }
.about p { margin: 0; font-size: 16px; color: var(--mid); line-height: 1.55; text-wrap: pretty; }

/* Жанры — пилюли одной строкой, лишнее уезжает вбок. */
.tags { display: flex; gap: 6px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
.tags span {
  flex: none; height: 30px; padding: 0 14px;
  border: 1px solid var(--control2); border-radius: 999px;
  color: var(--mid); font-size: 14.5px;
  display: flex; align-items: center; white-space: nowrap;
}

/* ------------------------------------------------------------- работы */

.sec { padding: 20px var(--pad) 8px; display: flex; flex-direction: column; gap: 12px; }
.sec h2 { margin: 0; font-size: 21px; font-weight: 500; }
.step {
  margin: 0; font-size: 13px; color: var(--faint);
  letter-spacing: .14em; text-transform: uppercase;
}
.sechint { margin: 0; font-size: 15px; color: var(--muted); }

#works {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 18px 0 20px; gap: 12px;
}
/* Лента кадров идёт от края до края, а подпись под ней — по общему полю. */
#works > .fine { padding: 0 var(--pad); }
.works-head {
  padding: 0 var(--pad);
  display: flex; align-items: baseline; justify-content: space-between;
}
.works-head h2 {
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.more { font-size: 14px; color: var(--muted); border-bottom: 1px solid #C8C8C8; text-decoration: none; }
.peek { display: flex; gap: 10px; overflow-x: auto; padding: 0 var(--pad); }
.peek-card {
  flex: none; width: 150px; display: flex; flex-direction: column; gap: 7px;
  text-decoration: none;
}
.peek-card img {
  width: 150px; height: 186px; border-radius: 10px;
  object-fit: cover; background: #EDEDED; display: block;
}
.peek-card span { font-size: 14.5px; color: var(--mid); }

/* -------------------------------------------------- список пакетов */

.list {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow);
}
.row { border-bottom: 1px solid var(--hair); }
.row:last-child { border-bottom: none; }
/* Длинное название пакета переносится на две строки; по центру цена тогда
   встаёт напротив подписи и читается как её продолжение. */
.row-main {
  padding: 14px 16px; display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer;
}
.row-main .check, .row-main .plus { margin-top: 2px; }
.row.on .row-main { background: var(--soft); }
.check {
  width: 20px; height: 20px; flex: none; border-radius: 50%;
  border: 1.5px solid #D5D5D5; background: transparent;
  color: transparent; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.row.on .check,
.choice.on .check { border-color: var(--ink); background: var(--ink); color: #fff; }
.row-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-name { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.row-name .nm { min-width: 0; }
.row.on .row-name { font-weight: 500; }
.row-meta { font-size: 14.5px; color: var(--muted); }
.row-price { flex: none; font-size: 15.5px; font-weight: 500; white-space: nowrap; }

.plus {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: transparent;
  color: var(--faint); font-size: 17.5px; line-height: 1; cursor: pointer;
}
.row.open .plus, .choice.open .plus { color: var(--ink); border-color: var(--ink); }

.row-body { display: none; padding: 0 16px 16px 48px; }
.row.open .row-body { display: block; }
.row-body ul { margin: 0 0 12px; padding-left: 18px; color: var(--mid); font-size: 15.5px; line-height: 1.6; }
.pick {
  width: 100%; height: 44px; border: none; border-radius: 4px;
  background: var(--ink); color: #fff; font-size: 15.5px;
  letter-spacing: .03em; cursor: pointer;
}

/* -------------------------------------------------- студии и залы */

.choices { display: flex; flex-direction: column; gap: 12px; }
.choice {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow);
}
.choice-row {
  padding: 14px 16px; display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
}
.choice.on .choice-row { background: var(--soft); }
.choice-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.choice-name { display: flex; align-items: center; gap: 12px; font-size: 17.5px; }
.choice.on .choice-name { font-weight: 500; }
.choice-where { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14.5px; color: var(--muted); }
.choice-where a { color: var(--ink); border-bottom: 1px solid #C8C8C8; text-decoration: none; }
.choice-foot { font-size: 14.5px; color: var(--muted); }
/* Цена буднего и выходного дня — двумя строками: одной строкой через точку
   их читают как одну сумму и на выходных удивляются счёту. */
.rates { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.rates div { display: flex; gap: 6px; align-items: baseline; font-size: 14.5px; }
.rates b { font-weight: 500; color: var(--ink); }
.rates span { color: var(--muted); }
.rates .now b, .rates .now span { color: var(--accent); }
.rates em { font-style: normal; color: var(--faint); font-size: 13.5px; }
.choice-body { display: none; padding: 0 16px 16px; }
.choice.open .choice-body { display: block; }
.choice-about { margin: 10px 0 12px; font-size: 15.5px; color: var(--mid); line-height: 1.55; }

/* Обложка зала прямо в карточке: раскрывать «плюс», чтобы увидеть зал, —
   лишний шаг, а выбирают именно по картинке. */
.choice-cover { height: 170px; background: #EDEDED; cursor: zoom-in; position: relative; }
.choice-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.choice-cover .more-shots {
  position: absolute; right: 10px; bottom: 10px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  background: rgba(17, 17, 17, .55); color: #fff; font-size: 13px;
  display: flex; align-items: center; backdrop-filter: blur(3px);
}

.shots { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.shots img {
  flex: none; height: 150px; border-radius: 10px;
  object-fit: cover; background: #EDEDED;
}

/* --------------------------------------------------- дата и время */

.locked {
  background: var(--surface); border: 1px dashed #D5D5D5; border-radius: 12px;
  padding: 22px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.locked p { margin: 0; font-size: 15.5px; color: var(--muted); text-align: center; line-height: 1.5; }

.picker {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--card-shadow); padding: 16px;
  display: flex; flex-direction: column; gap: 16px;
}
.picked {
  margin: 0; font-size: 16.5px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.picked em { font-style: normal; font-size: 14.5px; font-weight: 400; color: var(--muted); }

.strip { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.d {
  flex: none; width: 52px; height: 58px; border-radius: 10px;
  border: 1px solid var(--control2); background: var(--surface); color: var(--ink);
  cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.d b { font-size: 17.5px; font-weight: 500; line-height: 1; }
.d i { font-style: normal; font-size: 13.5px; opacity: .75; }
.d u { text-decoration: none; font-size: 11px; letter-spacing: .1em; line-height: 1; color: var(--accent); }
.d.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.d.on u { color: rgba(255, 255, 255, .7); }

.parts { display: flex; flex-direction: column; gap: 16px; }
.tgroup { display: flex; flex-direction: column; gap: 9px; }
.tgroup-h {
  margin: 0; font-size: 13px; color: var(--faint);
  letter-spacing: .12em; text-transform: uppercase;
}
.times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.t {
  height: 40px; border-radius: 999px; border: 1px solid var(--control2);
  background: var(--surface); color: var(--ink); font-size: 16px; cursor: pointer;
}
.t.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.t[disabled] { background: var(--field); color: #BFBFBF; text-decoration: line-through; cursor: not-allowed; }

.note { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.empty { margin: 0; padding: 28px 4px; text-align: center; font-size: 16px; color: #7B7B7B; line-height: 1.6; }

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

.foot {
  margin-top: 24px; padding: 26px var(--pad) calc(32px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.foot p { margin: 0; }
.foot-cap {
  font-size: 12.5px; color: var(--faint);
  letter-spacing: .14em; text-transform: uppercase;
}
.foot-h { font-size: 21px; font-weight: 500; }
.foot-sub { font-size: 15.5px; color: var(--muted); }
.foot-phone { font-size: 15.5px; color: var(--muted); margin-top: 8px; }
.foot-phone a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
/* Кнопки в подвале одной ширины и в один ряд: два способа связи равны,
   и столбик из них занимал полэкрана. */
.foot-acts {
  display: flex; gap: 8px;
  width: 100%; max-width: 340px; margin-top: 12px;
}
.foot-acts .btn {
  flex: 1; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; height: 46px; padding: 0 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.foot .fine { margin-top: 12px; max-width: 340px; }

/* Тёмный подвал: страница светлая, и серый на сером не читался бы как
   отдельный блок. Кнопки внутри инвертированы. */
.foot.dark { background: var(--ink); border-top: none; color: #fff; }
.foot.dark .foot-cap { color: rgba(255, 255, 255, .45); }
.foot.dark .foot-h { color: #fff; }
.foot.dark .foot-sub,
.foot.dark .foot-phone { color: rgba(255, 255, 255, .65); }
.foot.dark .fine { color: rgba(255, 255, 255, .45); }
.foot.dark .btn { background: #fff; color: var(--ink); }
.foot.dark .btn.ghost {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35);
}

.fine { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.fine.center { text-align: center; }
.got { margin: 0; font-size: 16.5px; font-weight: 500; }

/* -------------------------------------------------------- нижняя панель */

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--surface); border-top: 1px solid var(--control2);
  box-shadow: var(--bar-shadow);
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
}
.bar-in { max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bar-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bar-txt strong { font-size: 18.5px; font-weight: 500; line-height: 1.1; }
.bar-txt span {
  font-size: 14.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.btn {
  height: 46px; padding: 0 24px; border: none; border-radius: 4px;
  background: var(--ink); color: #fff; font-size: 16px;
  letter-spacing: .04em; cursor: pointer;
}
.btn[disabled] { background: var(--off); color: var(--faint); cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--control); }
.btn.round { border-radius: 999px; }
.btn.small { height: 34px; padding: 0 16px; font-size: 14px; }
.btn.wide { width: 100%; height: 50px; padding: 0; }

/* --------------------------------------------------------------- шит */

.sheet {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(20, 20, 20, .35);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet-card {
  position: relative;
  width: 100%; max-width: 520px; max-height: 88%; overflow-y: auto;
  background: var(--surface); border-radius: 18px 18px 0 0;
  padding: 18px var(--pad) calc(22px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 16px;
  animation: rise .2s ease-out;
}
@keyframes rise { from { transform: translateY(20px); } to { transform: none; } }
.grip { display: none; }
.sheet-card h3 { margin: 0; font-size: 22px; font-weight: 500; }
.x {
  position: absolute; top: 18px; right: 18px;
  border: none; background: transparent; font-size: 20px; color: var(--muted);
  cursor: pointer; padding: 0; line-height: 1;
}
.recap {
  background: var(--soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 15px; font-size: 15.5px; color: var(--mid); line-height: 1.6;
}
.recap b { color: var(--ink); font-weight: 500; }

.f { display: flex; flex-direction: column; gap: 6px; }
.f > span {
  font-size: 13px; color: var(--faint);
  letter-spacing: .08em; text-transform: uppercase;
}
.f span em { font-style: normal; }
.f input, .f textarea {
  border: 1px solid var(--control); border-radius: 6px; background: var(--field);
  font-size: 16.5px; color: var(--ink); width: 100%;
  padding: 0 12px; height: 46px;
}
.f textarea { height: auto; padding: 12px 12px; resize: none; line-height: 1.5; font-size: 16px; }
.hintline { font-size: 13.5px; color: var(--faint); letter-spacing: 0; text-transform: none; }
.err {
  margin: 0; font-size: 15.5px; color: #B3261E;
  background: #FDF3F2; border-radius: 6px; padding: 10px 12px;
}

/* ------------------------------------------------------ экран «готово» */

.done {
  position: fixed; inset: 0; z-index: 50; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 28px 24px; gap: 20px;
}
.done-card { max-width: 520px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.tick {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
}
.done-t { margin: 0; font-size: 25px; font-weight: 500; line-height: 1.15; }
.done-b { margin: 0; font-size: 16px; color: var(--mid); line-height: 1.55; }

/* ---------------------------------------------------- страница работ */

.wtags {
  display: flex; gap: 7px; overflow-x: auto;
  padding: 14px var(--pad) 4px;
}
.wtag {
  flex: none; height: 32px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--control2); background: var(--surface);
  color: var(--mid); font-size: 14.5px; cursor: pointer; white-space: nowrap;
}
.wtag.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.wgrid { display: flex; flex-direction: column; gap: 14px; padding: 14px var(--pad) 0; }
.wcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: var(--card-shadow);
  display: flex; flex-direction: column;
}
/* Коллаж серии: три вертикальные плитки. Съёмки почти всегда вертикальные,
   и в горизонтальной рамке от кадра остаётся середина без голов. */
.wshots { position: relative; }
/* Лента листается вбок с прилипанием: три кадра в ряд, дальше по кругу. */
.reel {
  display: flex; gap: 2px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.reel::-webkit-scrollbar { display: none; }
.reel-cell {
  flex: 0 0 calc((100% - 4px) / 3); min-width: 0; cursor: zoom-in;
}
.wshots img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  background: #EDEDED; display: block; min-width: 0;
}
.reel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55); background: rgba(17, 17, 17, .38);
  color: #fff; font-size: 18.5px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(3px);
}
.reel-arrow.prev { left: 8px; }
.reel-arrow.next { right: 8px; }
/* Одиночный кадр не режем на треть — он занимает всю ширину карточки. */
/* Один-два кадра крутить незачем — просто показываем их шире. */
.wshots.one .reel-cell { flex: 0 0 100%; }
.wshots.one img { aspect-ratio: 4 / 5; }
.wshots.two .reel-cell { flex: 0 0 calc((100% - 2px) / 2); }
.wcard-count {
  font-size: 14.5px; color: var(--muted);
  border-bottom: 1px solid #C8C8C8; align-self: flex-start; cursor: pointer;
}
.wcard-h { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 11px; }
.wcard-t { display: flex; flex-direction: column; gap: 3px; }
.wcard-t b { font-size: 17.5px; font-weight: 500; }
.wcard-place { font-size: 14.5px; color: var(--muted); }
.wcard-about { margin: 0; font-size: 15.5px; color: var(--mid); line-height: 1.55; }
/* Кнопка тут вторична: главное — сами кадры, а не призыв под ними. */
.wcard-foot { display: flex; }
.wcard-foot .btn {
  height: 36px; padding: 0 18px; font-size: 15px; letter-spacing: .02em;
}

.whead {
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: 13px var(--pad) 11px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.whead .back { border: none; background: none; font-size: 16.5px; color: var(--ink); cursor: pointer; text-decoration: none; }
.whead .ttl { font-size: 15.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.whead .cnt { font-size: 14.5px; color: var(--muted); }

/* --------------------------------------------------------- просмотрщик */

/* Съёмку открывают, чтобы разглядеть кадры целиком: лента листается вбок,
   кадр вписывается в экран, по нажатию увеличивается. */
.viewer {
  position: fixed; inset: 0; z-index: 60; background: #0E0E0E;
  display: flex; flex-direction: column;
}
.viewer-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px calc(12px + env(safe-area-inset-top));
  color: #fff;
}
.viewer-head .cnt { font-size: 14.5px; color: rgba(255, 255, 255, .7); }
.viewer-head .ttl { font-size: 14.5px; color: #fff; }
.viewer-head button {
  border: none; background: none; color: #fff; font-size: 23px;
  line-height: 1; cursor: pointer; padding: 0 4px;
}
.viewer-body { flex: 1; position: relative; display: flex; min-height: 0; }
.viewer-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .35);
  color: #fff; font-size: 23px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.viewer-arrow.prev { left: 10px; }
.viewer-arrow.next { right: 10px; }
.viewer-strip {
  flex: 1; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.viewer-strip::-webkit-scrollbar { display: none; }
.viewer-shot {
  flex: none; width: 100%; height: 100%;
  scroll-snap-align: center; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center;
  overflow: auto;
}
.viewer-shot img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transition: transform .18s ease-out; transform-origin: center center;
  cursor: zoom-in;
}
.viewer-shot.zoom { align-items: flex-start; }
.viewer-shot.zoom img { max-width: none; max-height: none; width: 200%; cursor: zoom-out; }
.viewer-foot {
  flex: none; padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, .6); font-size: 13.5px; text-align: center;
}
/* Решение принимают прямо из просмотрщика — кнопки лежат под кадром. */
.viewer-foot { display: flex; gap: 8px; justify-content: center; }
.viewer-foot .btn.yes { height: 44px; padding: 0 18px; font-size: 14px; }
.viewer-foot .btn.ghostdark {
  height: 44px; padding: 0 18px; font-size: 14px;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
}
.viewer-foot .btn.share {
  height: 40px; padding: 0 20px; font-size: 15px;
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(4px);
}

.toast {
  position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%); z-index: 80;
  background: var(--ink); color: #fff; font-size: 14.5px;
  padding: 10px 16px; border-radius: 999px; box-shadow: var(--card-shadow);
  max-width: calc(100% - 32px); text-align: center;
}

/* Переход в телеграм — не ошибка, а последний шаг заявки: тёплая плашка,
   а не красное предупреждение. */
.handoff {
  background: var(--soft); border-radius: var(--r);
  padding: 16px; margin-bottom: 14px;
}
.handoff-t { margin: 0 0 6px; font-size: 16px; font-weight: 500; }
.handoff-b { margin: 0 0 12px; font-size: 14.5px; color: var(--mid); line-height: 1.55; }
.handoff .btn { height: 48px; }

/* ------------------------------------------------------- галерея студии */

/* Галерея устроена как страница работ фотографа, поэтому берёт её карточки.
   Своё здесь одно: заголовок зала, который делит ленту на группы. */
.gal-hall {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 18px var(--pad) 2px;
}
.gal-hall b { font-size: 19px; font-weight: 500; }
.gal-hall span { font-size: 13.5px; color: var(--muted); white-space: nowrap; }

/* Карточка зала предлагает и бронь, и пересылку — кнопки делят строку. */
.wcard-foot { gap: 8px; }
.wcard-foot .btn { flex: 1; padding: 0 12px; }

/* ------------------------------------------------------------- скелет */

.skeleton { padding: 20px var(--pad); display: flex; flex-direction: column; gap: 14px; }
.sk-line { height: 14px; border-radius: 6px; background: #ECECEC; }
.sk-line.w50 { width: 50%; }
.sk-line.w30 { width: 30%; }
.sk-strip { height: 88px; border-radius: 12px; background: #ECECEC; }
.sk-card { height: 120px; border-radius: 12px; background: #ECECEC; }
