/* Дизайн-система — перенесена из barber-academy (globals.css + компоненты UI) */
:root {
  --black: #0a0a0b;
  --graphite: #16171a;
  --graphite-2: #1e2024;
  --line: #2c2e33;
  --white: #f4f4f2;
  --muted: #a2a3a6;
  --gold: #c9a45c;
  --gold-soft: #d8bd86;
  --gold-dim: rgba(201, 164, 92, 0.16);
  --danger: #e0715f;
  --danger-dim: rgba(224, 113, 95, 0.12);
  --ok: #7fbf8e;
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --gutter: 6vw;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; display: flex; flex-direction: column; line-height: 1.5; }
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--gold-dim); color: var(--white); }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Типографика / мелкие компоненты ---------- */
.kicker { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold); border-radius: 999px; padding: .4rem .9rem; white-space: nowrap;
}
.label { color: var(--gold); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.divider { height: 2px; width: 64px; background: var(--gold); }
.diamond-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.diamond-list li { position: relative; padding-left: 1.75rem; color: #e7e7e4; font-weight: 300; }
.diamond-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border: 1.5px solid var(--gold); transform: rotate(45deg);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; padding: .85rem 1.6rem; font-size: .9rem; font-weight: 500; letter-spacing: .02em;
  border: 1px solid transparent; text-decoration: none; transition: all .2s ease; min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-outline { border-color: var(--line); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-ghost { background: transparent; color: var(--muted); border: 0; }
.btn-ghost:hover { color: var(--white); }
.btn-danger { background: transparent; border-color: rgba(224,113,95,.4); color: var(--danger); }
.btn-danger:hover { background: var(--danger-dim); border-color: var(--danger); }
.btn-sm { padding: .5rem 1rem; min-height: 38px; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .55; pointer-events: none; transform: none; }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; }

.link-btn {
  background: none; border: 0; padding: 0; color: var(--gold); font-size: .88rem; text-decoration: none;
  transition: color .15s;
}
.link-btn:hover { color: var(--gold-soft); }
.link-btn[disabled] { color: var(--muted); cursor: default; }

/* ---------- Шапка / подвал ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem var(--gutter); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40; background: rgba(10,10,11,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; transition: transform .2s; }
.brand:hover { transform: scale(1.04); }
.brand-logo {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--white);
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
}
.brand-logo img { width: 30px; height: 30px; object-fit: contain; }
.brand-name { white-space: nowrap; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.brand:hover .brand-name { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone { color: var(--muted); text-decoration: none; font-size: .9rem; transition: color .15s; }
.header-phone:hover { color: var(--white); }

.site-footer { padding: 8vh var(--gutter) 4vh; border-top: 1px solid var(--line); margin-top: auto; }
.contacts { display: grid; gap: 1.5rem 2rem; margin: 2.5rem 0 3.5rem; max-width: 48rem; }
.contact-item { display: block; border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; text-decoration: none; transition: all .2s; }
.contact-item:hover { border-color: var(--gold); transform: scale(1.02); }
.contact-item .value { font-family: var(--font-display); font-size: 1.3rem; margin-top: .7rem; transition: color .2s; word-break: break-word; }
.contact-item:hover .value { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.5rem; font-size: .75rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 6vh var(--gutter) 7vh; display: grid; gap: 2.5rem; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 1.4rem; }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 9vw, 5.6rem); line-height: .98; letter-spacing: -.02em; margin: 0; }
.hero p.lead { color: var(--muted); font-weight: 300; max-width: 48ch; margin: 0; line-height: 1.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; padding-top: .5rem; }
.hero-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 1rem; overflow: hidden; border: 1px solid var(--line); max-height: 74vh; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .75rem; padding-top: .75rem; }
.fact { border-top: 1px solid var(--line); padding-top: .8rem; }
.fact b { display: block; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
.fact span { font-size: .72rem; color: var(--muted); letter-spacing: .04em; }

/* ---------- Секция записи ---------- */
.section { padding: 7vh var(--gutter); border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.section-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0; line-height: 1.1; }

.steps { display: flex; gap: .5rem; margin-bottom: 1.75rem; list-style: none; padding: 0; counter-reset: step; }
.steps li {
  flex: 1; display: flex; flex-direction: column; gap: .45rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.steps li::before { content: ""; height: 2px; background: var(--line); border-radius: 2px; transition: background .3s; }
.steps li.active, .steps li.done { color: var(--white); }
.steps li.active::before, .steps li.done::before { background: var(--gold); }

.card { background: var(--graphite); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-title h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin: 0; }

.booking-grid { display: grid; gap: 1rem; }

/* Календарь */
.cal-nav { display: flex; align-items: center; gap: .25rem; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; transition: all .15s; font-size: 1.1rem; line-height: 1;
}
.icon-btn:hover:not([disabled]) { border-color: var(--gold); color: var(--gold); }
.icon-btn[disabled] { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-wd { text-align: center; font-size: .66rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; padding: .3rem 0 .5rem; }
.cal-day {
  position: relative; aspect-ratio: 1 / 1; border-radius: .7rem; border: 1px solid transparent; background: transparent;
  display: grid; place-items: center; font-size: .95rem; font-weight: 500; transition: all .15s; min-height: 40px; padding: 0;
}
.cal-day.available { background: var(--graphite-2); border-color: var(--line); }
.cal-day.available:hover { border-color: var(--gold); color: var(--gold); }
.cal-day.available::after { content: ""; position: absolute; bottom: 18%; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.cal-day.today { box-shadow: inset 0 0 0 1px var(--muted); }
.cal-day.selected { background: var(--gold); color: var(--black); border-color: var(--gold); }
.cal-day.selected::after { background: var(--black); }
.cal-day.selected:hover { color: var(--black); }
.cal-day:disabled { color: #55575c; cursor: default; }
.cal-day.full:disabled { text-decoration: line-through; color: #6b6d72; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin-top: 1rem; font-size: .72rem; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.cal-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* Слоты */
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.slot {
  border: 1px solid var(--line); background: var(--graphite-2); border-radius: 999px; padding: .8rem .25rem; font-size: .95rem;
  font-weight: 500; transition: all .15s; min-height: 48px; font-variant-numeric: tabular-nums;
}
.slot:hover { border-color: var(--gold); color: var(--gold); }
.slot.selected { background: var(--gold); border-color: var(--gold); color: var(--black); }
.empty-state { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .92rem; }
.empty-state .display { color: var(--white); font-size: 1.15rem; margin-bottom: .4rem; }
.skeleton { background: linear-gradient(90deg, var(--graphite-2) 25%, #26282d 50%, var(--graphite-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 999px; height: 48px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.selection-bar {
  position: sticky; bottom: 0; z-index: 30; margin: 1rem calc(var(--gutter) * -1) 0; padding: .9rem var(--gutter) calc(.9rem + env(safe-area-inset-bottom));
  background: rgba(22,23,26,.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.selection-bar .sel-text { font-size: .85rem; line-height: 1.3; }
.selection-bar .sel-text b { display: block; font-family: var(--font-display); font-size: 1.1rem; }

/* Формы */
.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.input {
  width: 100%; border-radius: .6rem; border: 1px solid var(--line); background: rgba(10,10,11,.4);
  padding: .85rem 1rem; font-size: 1rem; color: var(--white); outline: none; transition: border-color .15s; min-height: 50px;
}
.input::placeholder { color: #6e7074; }
.input:focus { border-color: var(--gold); }
.field.invalid .input { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .78rem; min-height: 0; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }

.methods { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.method { position: relative; }
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method label {
  display: flex; flex-direction: column; gap: .2rem; border: 1px solid var(--line); border-radius: .8rem; padding: .85rem 1rem;
  cursor: pointer; transition: all .15s; background: rgba(10,10,11,.3); height: 100%;
}
.method label b { font-weight: 600; font-size: .95rem; color: var(--white); }
.method label span { font-size: .75rem; color: var(--muted); }
.method input:checked + label { border-color: var(--gold); background: var(--gold-dim); }
.method input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.method input:disabled + label { opacity: .4; cursor: not-allowed; }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1px solid var(--line); border-radius: .8rem; padding: .9rem 1rem; background: rgba(10,10,11,.35); margin-bottom: 1.25rem;
}
.summary b { font-family: var(--font-display); font-size: 1.1rem; display: block; }
.summary small { color: var(--muted); font-size: .78rem; }

.alert { border-radius: .7rem; padding: .85rem 1rem; font-size: .88rem; line-height: 1.45; }
.alert-error { background: var(--danger-dim); border: 1px solid rgba(224,113,95,.35); color: #f1b2a7; }
.alert-info { background: var(--gold-dim); border: 1px solid rgba(201,164,92,.35); color: var(--gold-soft); }

.code-input {
  text-align: center; font-size: 2rem; letter-spacing: .5em; padding-left: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums;
  font-family: var(--font-sans); min-height: 64px;
}
.timer { font-variant-numeric: tabular-nums; }
.fineprint { font-size: .74rem; color: var(--muted); line-height: 1.55; }

/* Успех */
.success { text-align: center; padding: 1.5rem .5rem .5rem; }
.success-mark {
  width: 76px; height: 76px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; margin: 0 auto 1.4rem;
  color: var(--gold); font-size: 2rem; background: var(--gold-dim); animation: pop .5s cubic-bezier(.2,1.4,.4,1);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 6vw, 2.2rem); margin: 0 0 .6rem; line-height: 1.15; }
.details { text-align: left; margin: 1.75rem 0; border-top: 1px solid var(--line); }
.details div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.details dt { color: var(--muted); }
.details dd { margin: 0; text-align: right; font-weight: 500; word-break: break-word; }

.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--gold); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.center { display: grid; place-items: center; padding: 2rem; }

.toast-wrap { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 420px); }
.toast { background: var(--graphite-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: .7rem; padding: .85rem 1rem; font-size: .88rem; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: toastIn .25s ease; }
.toast.error { border-left-color: var(--danger); }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } }

.fade-in { animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Адаптив ---------- */
@media (min-width: 640px) {
  .contacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card { padding: 1.75rem; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.1fr 1fr; gap: 4rem; padding-top: 8vh; padding-bottom: 9vh; }
  .section-head { flex-direction: row; align-items: baseline; gap: 1.25rem; }
  .booking-grid { grid-template-columns: 1.05fr 1fr; gap: 1.25rem; align-items: start; }
  .booking-narrow { max-width: 560px; }
  .selection-bar { position: static; margin: 1.25rem 0 0; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: 1rem; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cal-day { aspect-ratio: auto; height: 52px; }
}
@media (min-width: 1200px) { .slots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .header-phone { display: none; }
  .brand-name { font-size: .62rem; letter-spacing: .2em; }
  .hero-photo { aspect-ratio: 4 / 4.2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Админ-панель ---------- */
.admin-main { padding: 1.5rem var(--gutter) 4rem; width: 100%; max-width: 1200px; margin: 0 auto; }
.tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1.5rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: .55rem 1.1rem; font-size: .85rem; white-space: nowrap;
  color: var(--muted); transition: all .15s; min-height: 40px;
}
.tab:hover { color: var(--white); border-color: var(--muted); }
.tab.active { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; align-items: center; }
.toolbar .input { min-height: 42px; padding: .55rem .9rem; font-size: .9rem; width: auto; flex: 1 1 160px; }
.list { display: flex; flex-direction: column; gap: .6rem; }
.row {
  display: grid; grid-template-columns: 72px 1fr; gap: .25rem 1rem; align-items: start;
  background: var(--graphite); border: 1px solid var(--line); border-radius: .9rem; padding: 1rem;
}
.row .time { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.row .time small { display: block; font-family: var(--font-sans); font-size: .7rem; color: var(--muted); font-weight: 400; margin-top: .2rem; }
.row .who b { font-weight: 600; }
.row .who a { color: var(--muted); text-decoration: none; font-size: .86rem; display: inline-block; margin-right: .9rem; }
.row .who a:hover { color: var(--gold); }
.row .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.row.free { background: transparent; border-style: dashed; }
.row.free .time, .row.blocked .time, .row.past .time { color: var(--muted); }
.badge { display: inline-block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; padding: .2rem .55rem; border: 1px solid var(--line); color: var(--muted); vertical-align: middle; margin-left: .35rem; }
.badge.confirmed { color: var(--ok); border-color: rgba(127,191,142,.4); }
.badge.pending { color: var(--gold); border-color: rgba(201,164,92,.4); }
.badge.cancelled, .badge.expired { color: var(--danger); border-color: rgba(224,113,95,.35); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-bottom: 1.25rem; }
.stat { background: var(--graphite); border: 1px solid var(--line); border-radius: .9rem; padding: .9rem 1rem; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.1; }
.stat span { font-size: .72rem; color: var(--muted); }
.sched-row { display: grid; grid-template-columns: 1fr auto; gap: .6rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.sched-row .hours { grid-column: 1 / -1; display: flex; gap: .5rem; align-items: center; }
.sched-row .hours .input { min-height: 42px; padding: .5rem .8rem; }
.switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: var(--white); border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--gold); }
.switch input:checked + span::before { transform: translateX(20px); background: var(--black); }
.switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 80; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.modal { width: 100%; max-width: 480px; background: var(--graphite); border: 1px solid var(--line); border-radius: 1.2rem 1.2rem 0 0; padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto; animation: fadeIn .2s ease; }
.modal h3 { font-family: var(--font-display); font-size: 1.5rem; margin: .4rem 0 1.25rem; }
.cal-day .count { position: absolute; top: 4px; right: 6px; font-size: .6rem; color: var(--gold); font-weight: 600; }
.cal-day.admin { background: var(--graphite-2); border-color: var(--line); color: var(--white); cursor: pointer; }
.cal-day.admin.off { background: transparent; color: #6b6d72; }
.cal-day.admin.closed { background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(224,113,95,.12) 6px 12px); color: #9a9ca0; }
.cal-day.admin.selected { background: var(--gold); color: var(--black); }
.cal-day.admin.selected .count { color: var(--black); }
.cal-day.admin::after { display: none; }
@media (min-width: 640px) {
  .modal-back { align-items: center; padding: 1rem; }
  .modal { border-radius: 1.2rem; padding: 2rem; }
  .row { grid-template-columns: 90px 1fr auto; align-items: center; }
  .row .actions { grid-column: auto; margin-top: 0; justify-content: flex-end; }
  .sched-row { grid-template-columns: 160px auto 1fr; }
  .sched-row .hours { grid-column: auto; }
}
@media (min-width: 900px) {
  .admin-split { display: grid; grid-template-columns: 380px 1fr; gap: 1.25rem; align-items: start; }
}

/* ---------- Портфолио: бегущая лента (как в barber-academy) ---------- */
.hero-solo .hero-text { max-width: 760px; }
.section-head, .portfolio-head { align-items: flex-start; }
@media (min-width: 900px) {
  .hero-solo { grid-template-columns: 1fr; padding-top: 5vh; padding-bottom: 5vh; }
  .hero-solo h1 { font-size: clamp(3rem, 6vw, 4.6rem); }
  .portfolio { padding-top: 5vh; }
}
.portfolio { padding: 7vh 0 6vh; border-top: 1px solid var(--line); overflow: hidden; }
.portfolio-head { padding: 0 var(--gutter); display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.portfolio-head h2 { font-size: clamp(1.8rem, 5vw, 2.4rem); margin: 0; }
.marquee {
  position: relative; width: 100%; overflow: hidden; padding-bottom: 2rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track { display: flex; width: max-content; align-items: center; gap: 1.5rem; animation: marquee 36s linear infinite; }
.marquee-track:hover, .marquee-track:has(*:focus-visible) { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pf-card {
  position: relative; width: 240px; flex-shrink: 0; aspect-ratio: 3 / 4; border-radius: .5rem; overflow: hidden;
  border: 1px solid var(--line); transition: border-color .2s; background: var(--graphite);
}
.pf-card:hover { border-color: var(--gold); }
.pf-card.offset { transform: translateY(1.5rem); }
.pf-card img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .pf-card { width: 280px; } .portfolio-head { flex-direction: row; align-items: baseline; gap: 1.25rem; }
  .section-head { align-items: baseline; } }
@media (max-width: 640px) { .marquee-track { gap: 1rem; } .pf-card { width: 200px; } }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } }

/* ---------- Выбор услуги ---------- */
.services { display: flex; flex-direction: column; gap: .6rem; }
.service { position: relative; }
.service input { position: absolute; opacity: 0; pointer-events: none; }
.service label {
  display: grid; grid-template-columns: 22px 1fr auto; gap: .2rem .9rem; align-items: start;
  border: 1px solid var(--line); border-radius: .9rem; padding: 1rem 1.1rem; cursor: pointer;
  background: rgba(10,10,11,.3); transition: all .15s;
}
.service label:hover { border-color: var(--muted); }
.service .radio { grid-row: 1 / span 2; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted); margin-top: .15rem; position: relative; transition: all .15s; }
.service b { font-weight: 600; font-size: 1rem; }
.service .price { font-family: var(--font-display); font-weight: 700; color: var(--gold); white-space: nowrap; text-align: right; }
.service .desc { grid-column: 2 / -1; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.service input:checked + label { border-color: var(--gold); background: var(--gold-dim); }
.service input:checked + label .radio { border-color: var(--gold); }
.service input:checked + label .radio::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--gold); }
.service input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.service input:disabled + label { opacity: .45; cursor: not-allowed; }
.service input:disabled + label:hover { border-color: var(--line); }
.service .note { color: var(--danger); opacity: 1; }

/* ---------- Кнопка «Назад» ---------- */
.back-btn {
  display: inline-flex; align-items: center; gap: .45rem; background: none; border: 0; padding: .35rem 0; margin: -.25rem 0 .9rem;
  color: var(--gold); font-size: .95rem; font-weight: 600; letter-spacing: .02em; min-height: 40px; transition: color .15s, transform .15s;
}
.back-btn:hover { color: var(--gold-soft); transform: translateX(-3px); }

/* Кнопка «Записаться» на телефоне — по центру экрана */
@media (max-width: 640px) {
  .hero-cta { justify-content: center; }
  .hero-cta .btn { min-width: 240px; }
}

/* ---------- Финансы и клиенты ---------- */
.fin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.fin-nav { display: flex; align-items: center; gap: .6rem; }
.fin-nav b { font-family: var(--font-display); font-size: 1.15rem; min-width: 9ch; text-align: center; }
.seg { display: inline-flex; background: var(--graphite); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .85rem; padding: .5rem 1rem; border-radius: 999px; cursor: pointer; min-height: 38px; }
.seg button.active { background: var(--gold); color: var(--black); font-weight: 600; }
.seg-sm button { padding: .4rem .9rem; min-height: 34px; }
.fin-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fin-kpis .stat b { font-size: 1.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.gold-stat { border-color: rgba(201,164,92,.45); background: linear-gradient(160deg, rgba(201,164,92,.14), var(--graphite) 70%); }
.stat.gold-stat b { color: var(--gold); }
.stat.neg b, .neg-text { color: var(--danger); }
.fin-grid { display: grid; gap: 1.25rem; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 170px; }
.bar-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.bar { width: 100%; background: var(--gold); border-radius: 4px 4px 1px 1px; opacity: .85; transition: opacity .15s; }
.bar-col:hover .bar { opacity: 1; }
.bar-col.today .bar { background: var(--gold-soft); }
.bar-col span { font-size: .62rem; color: var(--muted); height: 1em; line-height: 1; white-space: nowrap; }
.svc-stats { display: flex; flex-direction: column; gap: .8rem; }
.svc-stat-top { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.svc-stat-bar { height: 6px; border-radius: 6px; background: var(--graphite-2); margin-top: .35rem; overflow: hidden; }
.svc-stat-bar i { display: block; height: 100%; background: var(--gold); border-radius: 6px; }
.fin-row .fin-actions { align-items: center; gap: .8rem; }
.fin-row .fin-actions b { font-size: 1rem; }
.who-name { color: var(--white); font-weight: 600; font-size: 1rem; text-align: left; }
.who-name:hover { color: var(--gold); }
.client-row { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; grid-template-columns: 1fr auto !important; align-items: center; }
.client-row:hover { border-color: var(--gold); }
.client-row .chev { font-size: 1.6rem; color: var(--muted); }
.client-history { max-height: 50vh; overflow-y: auto; }
@media (min-width: 700px) {
  .fin-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .fin-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
