:root {
  color-scheme: light;
  --paper: #f2ebe0;
  --paper-2: #faf5ec;
  --ink: #241c17;
  --ink-soft: #6f6258;
  --copper: #a64b2a;
  --copper-2: #dfc0ae;
  --copper-3: #f0ddd0;
  --sage: #5e6b53;
  --gold: #b3853f;
  --danger: #9b3a2a;
  --line: rgba(36, 28, 23, 0.14);
  --line-strong: rgba(36, 28, 23, 0.28);
  --laid: rgba(36, 28, 23, 0.026);
  --shadow: 0 18px 40px rgba(36, 28, 23, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #191411;
  --paper-2: #221b16;
  --ink: #f1e7da;
  --ink-soft: #b6a695;
  --copper: #d98c69;
  --copper-2: #6e4a3a;
  --copper-3: #2e211b;
  --sage: #a9b79a;
  --gold: #d3a45e;
  --danger: #e08b77;
  --line: rgba(241, 231, 218, 0.15);
  --line-strong: rgba(241, 231, 218, 0.3);
  --laid: rgba(241, 231, 218, 0.028);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

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

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background-color: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body {
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 27px,
    var(--laid) 27px,
    var(--laid) 28px
  );
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; text-align: inherit; }
button:disabled { cursor: default; }
a { color: var(--copper); }

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- каркас */

.shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px calc(150px + var(--safe-bottom));
}

.hero {
  padding-top: calc(22px + var(--safe-top));
  animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.monogram {
  position: relative;
  flex: none;
  width: 58px;
  height: 58px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--copper);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.monogram-initials {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.monogram img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity { flex: 1; min-width: 0; }

.master-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.master-title {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.01em;
}

.icon-button {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--copper);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.icon-button:hover { border-color: var(--copper); background: var(--paper-2); }

.master-about {
  max-width: 46ch;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 13px;
}

.hero-meta a {
  color: var(--copper);
  text-underline-offset: 3px;
}

.tabs {
  display: flex;
  gap: 26px;
  margin-top: 22px;
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  padding: 12px 0 13px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}

.tab.is-active { color: var(--ink); }

.tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--copper);
}

.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 3px;
  border: 1px solid var(--copper);
  border-radius: 999px;
  color: var(--copper);
  font: 600 11px/1 var(--sans);
  vertical-align: 1px;
}

main { padding-top: 20px; }

/* ---------------------------------------------------------------- запись */

.booking {
  position: relative;
  padding-left: 14px;
  border-left: 1px solid var(--copper-2);
  animation: rise 0.5s 0.05s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.booking::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 2px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  background: var(--paper);
}

.section-label {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
}

.service-rail {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -2px 22px;
  padding: 0 2px;
}

.service-rail::-webkit-scrollbar { display: none; }

.service {
  flex: 0 0 auto;
  min-width: 174px;
  max-width: 240px;
  margin-right: 12px;
  padding: 10px 14px 11px 0;
  border-top: 1px solid transparent;
  border-bottom: 1px solid var(--line);
  scroll-snap-align: start;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.service:last-child { margin-right: 0; }
.service:hover { border-bottom-color: var(--line-strong); }
.service.is-active { border-top-color: var(--copper); border-bottom-color: var(--copper); }

.service.is-active .service-name::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 2px 0;
  background: var(--copper);
}

.service-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.service-meta {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
}

.service-price {
  display: block;
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.next-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  padding: 2px 0;
  color: var(--copper);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.next-hint::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--copper);
  flex: none;
}

.resched-banner {
  margin: 0 0 18px;
  padding: 11px 13px;
  border: 1px dashed var(--copper-2);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.resched-banner b { color: var(--ink); font-weight: 600; }
.resched-banner .button-link { margin-top: 6px; }

/* ---------------------------------------------------------------- календарь */

.calendar { margin-top: 4px; }

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.calendar-month {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-transform: capitalize;
}

.calendar-year {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.calendar-nav {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.calendar-nav:hover:not(:disabled) { border-color: var(--copper); color: var(--copper); }
.calendar-nav:disabled { opacity: 0.25; }

.calendar-hint {
  margin: 2px 0 13px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.weekday {
  padding: 6px 0 8px;
  color: var(--ink-soft);
  font-size: 11px;
  text-align: center;
}

.day {
  position: relative;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.14s ease, border-radius 0.14s ease;
}

.day:hover:not(:disabled) { background: var(--paper-2); }
.day:disabled { cursor: default; }
.day-num { position: relative; z-index: 1; line-height: 1; }

.day-mark {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--copper);
  transform: translateX(-50%);
}

.day--few .day-mark { background: var(--gold); }

.day--full .day-num {
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.day--off .day-num,
.day--closed .day-num { color: var(--ink-soft); opacity: 0.55; }

.day--past .day-num,
.day--out .day-num { color: var(--ink-soft); opacity: 0.3; }

.day--off .day-mark,
.day--closed .day-mark {
  width: 6px;
  height: 1px;
  border-radius: 0;
  background: var(--ink-soft);
  opacity: 0.45;
}

.day--past .day-mark,
.day--out .day-mark,
.day--full .day-mark { display: none; }

.day--today { box-shadow: inset 0 -2px 0 var(--copper-2); }

.day--selected {
  border-radius: 50%;
  background: var(--copper);
  color: var(--paper);
}

.day--selected .day-num { color: var(--paper); }
.day--selected .day-mark { bottom: 5px; background: var(--paper); }

.day--selected::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  opacity: 0.5;
  transform: rotate(-7deg);
  pointer-events: none;
}

.day--empty { visibility: hidden; }

.calendar-note {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 11.5px;
  line-height: 1.4;
}

/* ---------------------------------------------------------------- время */

.times-panel {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  animation: times-in 0.2s ease both;
}

.times-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.times-date {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.times-free {
  color: var(--ink-soft);
  font-size: 12px;
  white-space: nowrap;
}

.times-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.time {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.time:hover:not(:disabled) { border-color: var(--copper); }

.time.is-selected {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--paper);
}

.time:disabled {
  border-style: dashed;
  color: var(--ink-soft);
  opacity: 0.45;
  text-decoration: line-through;
}

.times-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.times-empty .button-link { margin-top: 8px; display: inline-block; }

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.button-primary {
  width: 100%;
  background: var(--copper);
  color: var(--paper);
}

.button-primary:hover:not(:disabled) { background: var(--ink); }
.button-primary:disabled { opacity: 0.55; }

.button-secondary {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.button-secondary:hover { border-color: var(--copper); color: var(--copper); }

.button-link {
  padding: 4px 0;
  color: var(--copper);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 20px calc(10px + var(--safe-bottom));
  background: var(--paper-2);
  border-top: 1px dashed var(--line-strong);
  box-shadow: 0 -14px 32px rgba(36, 28, 23, 0.06);
  animation: action-up 0.2s ease both;
}

.action-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 480px;
  margin: 0 auto;
}

.action-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.action-when {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.action-what {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-inner .button {
  flex: none;
  width: auto;
  min-width: 128px;
  padding: 0 16px;
}

/* ---------------------------------------------------------------- лист */

.sheet-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 16, 12, 0.45);
  border: 0;
  cursor: default;
}

.sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  max-height: 92dvh;
  background: var(--paper-2);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  animation: sheet-up 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.sheet-grip {
  flex: none;
  width: 38px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 2px;
  background: var(--line-strong);
}

.sheet-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
}

.sheet-close:hover { color: var(--ink); }

.sheet-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px calc(22px + var(--safe-bottom));
}

.sheet-kicker {
  margin: 4px 0 5px;
  color: var(--ink-soft);
  font-size: 12px;
}

.sheet-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.summary {
  margin: 2px 0 18px;
  border-top: 1px solid var(--line);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.summary-row dt { color: var(--ink-soft); }
.summary-row dd { margin: 0; text-align: right; font-weight: 500; }

.form-field { margin-top: 14px; }

.field-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
}

.field-input,
.field-textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.4 var(--sans);
}

.field-textarea { min-height: 84px; resize: vertical; }
.field-input:focus, .field-textarea:focus { border-color: var(--copper); outline: none; }
.field-hint { margin-top: 6px; color: var(--ink-soft); font-size: 12px; line-height: 1.4; }

.form-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--danger);
  background: rgba(155, 58, 42, 0.06);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.45;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.contact-list { margin: 0; border-top: 1px solid var(--line); }
.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.contact-row dt { color: var(--ink-soft); flex: none; }
.contact-row dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.contact-row a { text-underline-offset: 3px; }

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

.done {
  padding: 18px 0 10px;
  text-align: center;
  animation: rise 0.35s ease both;
}

.stamp {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 8px auto 18px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--copper);
  animation: stamp-in 0.42s cubic-bezier(0.2, 0.9, 0.2, 1.2) both;
}

.stamp::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--copper-2);
  border-radius: 50%;
}

.done-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.done-text {
  max-width: 34ch;
  margin: 0 auto 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.done-slip {
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px dashed var(--line-strong);
  text-align: left;
}

.done-slip .summary { margin: 0; border-top: 0; }
.done-slip .summary-row:last-child { border-bottom: 0; padding-bottom: 0; }
.done-slip .summary-row:first-child { padding-top: 0; }

.done-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------------------------------------------------------------- мои записи */

.my-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 10px;
}

.my-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.my-count { color: var(--ink-soft); font-size: 12px; }

.appt-list { border-top: 1px solid var(--line); }

.appt {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0 15px;
  border-bottom: 1px solid var(--line);
}

.appt-date {
  font-family: var(--serif);
  line-height: 1;
  padding-top: 2px;
}

.appt-day { display: block; font-size: 28px; font-variant-numeric: tabular-nums; }
.appt-month {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.appt-service { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.appt-time {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.appt-price { margin-top: 4px; font-family: var(--serif); font-size: 16px; }
.appt-comment {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.appt-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--sage);
  font-size: 11px;
}

.appt-state::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.appt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin-top: 8px;
}

.appt-action {
  padding: 4px 0;
  color: var(--copper);
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.appt-action--danger { color: var(--danger); }
.appt-action:disabled { color: var(--ink-soft); opacity: 0.5; text-decoration: none; }

.appt-lock {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
}

/* ---------------------------------------------------------------- пустые и загрузка */

.empty {
  padding: 26px 0 10px;
  border-top: 1px solid var(--line);
}

.empty-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
}

.empty-text {
  max-width: 38ch;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.skeleton {
  background: var(--paper-2);
  border-radius: 4px;
  animation: breathe 1.4s ease-in-out infinite;
}

.skeleton-hero { height: 74px; margin-bottom: 22px; }
.skeleton-line { height: 14px; margin: 10px 0; }
.skeleton-line--short { width: 46%; }
.skeleton-calendar { height: 300px; margin-top: 18px; }
.skeleton-times { height: 120px; margin-top: 16px; }

/* ---------------------------------------------------------------- тост */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--safe-bottom));
  z-index: 40;
  max-width: min(440px, calc(100vw - 40px));
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  animation: toast-in 0.18s ease both;
}

/* ---------------------------------------------------------------- анимации */

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes times-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes action-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sheet-up {
  from { transform: translateY(24px); }
  to { transform: translateY(0); }
}

@keyframes stamp-in {
  from { opacity: 0; transform: scale(0.82) rotate(-7deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 5px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------------------------------------------------------------- адаптив */

@media (max-width: 380px) {
  .shell { padding-left: 16px; padding-right: 16px; }
  .master-name { font-size: 31px; }
  .booking { padding-left: 11px; }
  .day { height: 44px; font-size: 16px; }
  .time { font-size: 13px; }
  .action-bar { padding-left: 16px; padding-right: 16px; }
  .sheet-body { padding-left: 16px; padding-right: 16px; }
  .appt { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
}

@media (min-width: 560px) {
  .shell { padding-left: 28px; padding-right: 28px; }
  .master-name { font-size: 38px; }
  .day { height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(36, 28, 23, 0.3);
    --line-strong: rgba(36, 28, 23, 0.55);
    --ink-soft: #554a42;
  }
}
