:root {
  --cream: #faf6f2;
  --cream-2: #f2e8e1;
  --ink: #2a2024;
  --ink-soft: #6c5d64;
  --plum: #5a3550;
  --plum-deep: #3b2235;
  --rose: #c5849b;
  --rose-soft: #e7c4cf;
  --blush: #f7e6ea;
  --gold: #b78b46;
  --gold-soft: #e3cb9d;
  --white: #fffdfb;
  --line: #ece0da;
  --shadow: 0 24px 60px -28px rgba(59, 34, 53, 0.5);
  --shadow-sm: 0 10px 30px -18px rgba(59, 34, 53, 0.45);
  --radius: 18px;
  --radius-lg: 26px;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--cream);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; margin: 0 0 .4em; color: var(--plum-deep); letter-spacing: .2px; }
h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
a { color: var(--plum); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rose); }
img { max-width: 100%; display: block; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.section { padding: 96px 0; }
.section-head { margin-bottom: 52px; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: .96rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .22s, box-shadow .22s, background .22s; font-family: var(--font-body);
}
.btn-lg { padding: 16px 38px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--plum), var(--rose)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border-color: var(--rose-soft); color: var(--plum); }
.btn-ghost:hover { background: var(--blush); color: var(--plum-deep); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: var(--plum-deep); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 242, .85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-text { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--plum-deep); }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--rose), var(--gold)); }
.brand-ava { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rose-soft); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--rose); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--plum); cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 100px; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(55% 55% at 82% 8%, var(--blush), transparent 62%),
    radial-gradient(48% 48% at 6% 92%, var(--cream-2), transparent 58%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 { margin-bottom: .2em; }
.hero .lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 32em; margin: 18px 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.stats { display: flex; gap: 38px; margin-top: 44px; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--plum); }
.stat span { font-size: .82rem; color: var(--ink-soft); letter-spacing: .02em; }

.hero-photo { position: relative; }
.photo-frame {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(160deg, var(--rose-soft), var(--plum) 135%); box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 8rem; }
.photo-card {
  position: absolute; left: 24px; bottom: -22px; background: rgba(255,255,255,.95); backdrop-filter: blur(6px);
  border-radius: 16px; padding: 14px 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.photo-card strong { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--plum-deep); }
.photo-card span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Price list ---------- */
.tinted { background: linear-gradient(180deg, var(--cream), var(--blush)); }
.price-block { margin-bottom: 46px; }
.cat-title {
  font-size: 2rem; color: var(--plum); margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--rose-soft); display: inline-block;
}
.price-list { display: grid; gap: 2px; }
.price-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 22px; border-radius: 14px; background: var(--white); border: 1px solid transparent;
  transition: border .18s, transform .18s, box-shadow .18s; color: var(--ink);
}
.price-row:hover { border-color: var(--rose-soft); transform: translateX(4px); box-shadow: var(--shadow-sm); color: var(--ink); }
.pr-main { display: flex; flex-direction: column; gap: 3px; }
.pr-name { font-weight: 700; font-size: 1.05rem; }
.pr-desc { font-size: .85rem; color: var(--ink-soft); }
.pr-meta { text-align: right; white-space: nowrap; }
.pr-price { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--gold); }
.pr-dur { font-size: .82rem; color: var(--ink-soft); }

/* ---------- Steps / channels ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; margin-bottom: 56px; }
.step { text-align: center; padding: 22px; }
.step .num {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-size: 1.6rem; color: #fff;
  background: linear-gradient(135deg, var(--plum), var(--rose));
}
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.channel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }
.channel .ico { font-size: 2.6rem; }
.channel h3 { margin: 12px 0 8px; font-size: 1.5rem; }

/* ---------- Forms / auth ---------- */
.form-wrap { max-width: 470px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 42px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--plum-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; background: var(--cream); color: var(--ink); transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px var(--blush); background: var(--white);
}
.field textarea { resize: vertical; min-height: 80px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-foot { text-align: center; margin-top: 18px; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Booking widget ---------- */
.booking-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.svc-list { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding-right: 6px; }
.svc-cat { font-family: var(--font-head); font-size: 1.3rem; color: var(--plum); margin: 14px 0 4px; }
.svc-cat:first-child { margin-top: 0; }
.svc-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 18px; transition: all .18s; background: var(--cream);
}
.svc-opt:hover { border-color: var(--rose-soft); }
.svc-opt.active { border-color: var(--rose); background: var(--blush); box-shadow: 0 0 0 3px var(--blush); }
.svc-opt .meta strong { display: block; }
.svc-opt .meta span { font-size: .82rem; color: var(--ink-soft); }
.svc-opt .p { font-family: var(--font-head); color: var(--gold); font-size: 1.2rem; font-weight: 700; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line); background: var(--cream); border-radius: 999px; padding: 9px 16px;
  cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--plum-deep); transition: all .15s;
}
.chip:hover { border-color: var(--rose-soft); }
.chip.active { background: linear-gradient(135deg, var(--plum), var(--rose)); color: #fff; border-color: transparent; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.empty-note { color: var(--ink-soft); font-size: .92rem; padding: 10px 0; }
.step-label { font-weight: 700; color: var(--plum-deep); margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.step-label:first-child { margin-top: 0; }
.step-label .n { width: 26px; height: 26px; border-radius: 50%; background: var(--blush); color: var(--plum-deep); display: grid; place-items: center; font-size: .85rem; }

.summary { position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.summary-row span:first-child { color: var(--ink-soft); }
.summary-row strong { color: var(--plum-deep); text-align: right; }

/* ---------- Alerts ---------- */
.alert { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; font-size: .95rem; }
.alert.ok { background: #e7f4ec; color: #2f6b46; border: 1px solid #bfe0cc; }
.alert.err { background: #fbe7ea; color: #99303f; border: 1px solid #f0c2cb; }
#book-msg:empty { display: none; }

/* ---------- Cabinet / tables ---------- */
.appt-list { display: flex; flex-direction: column; gap: 14px; }
.appt {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px;
}
.appt.dim { opacity: .62; }
.appt .when { font-family: var(--font-head); font-size: 1.25rem; color: var(--plum-deep); }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; }
.tag.active { background: var(--blush); color: var(--plum); }
.tag.cancelled { background: #f1e3e5; color: #9b4a57; }
.tag.done { background: #e6efe9; color: #3c7a55; }
.tag.web { background: #eef0fb; color: #4a55a6; }
.tag.telegram { background: #e3f1fb; color: #2b7bb9; }
.tag.vk { background: #e7eefb; color: #3a64a8; }
.tag.admin { background: #f7eede; color: #a07a2e; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.table tr:hover td { background: var(--cream); }
.inline-form { display: inline; }

.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.admin-nav a { padding: 9px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.admin-nav a.active { background: var(--plum); color: #fff; border-color: var(--plum); }
.day-switch { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.day-switch .d { font-family: var(--font-head); font-size: 1.5rem; color: var(--plum-deep); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* settings page */
.ava-preview { margin-bottom: 16px; }
.ava-preview img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--rose-soft); }
.ava-empty { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink-soft); font-size: .8rem; border: 2px dashed var(--line); }
.day-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.day-row .day-name { flex: 1; font-weight: 600; font-size: .92rem; }
.day-row .day-off { font-size: .85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.day-row input[type=time] { width: 110px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.day-row.off input[type=time] { opacity: .4; pointer-events: none; }

/* ---------- Footer ---------- */
.footer { background: var(--plum-deep); color: #f3e3ec; padding: 64px 0 30px; }
.footer a { color: var(--rose-soft); }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 1.4rem; }
.socials { display: flex; gap: 14px; margin-top: 16px; flex-wrap: wrap; }
.socials a { font-weight: 600; font-size: .9rem; padding: 7px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; opacity: .7; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .booking-grid, .grid-2, .row-2, .footer-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 420px; margin: 0 auto; }
  .summary { position: static; }
  .nav-links {
    position: absolute; top: 100%; right: 4%; flex-direction: column; align-items: flex-start;
    background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px;
    box-shadow: var(--shadow); display: none; min-width: 210px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .section { padding: 70px 0; }
}
