:root {
  --bg: #12100E;
  --surface: #1A1714;
  --card: #12100E;
  --line: #2E2A24;
  --line-2: #3A352E;
  --text: #F1EADF;
  --muted: #A89F92;
  --soft: #C9C0B3;
  --brass: #D4A256;
  --brass-hi: #E8BE7A;
  --sel: #2A2319;
  --display: "Oswald", sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.5; }
a { color: var(--brass); }
a:hover { color: var(--brass-hi); }
button, input { font: inherit; }
h1, h2 { font-family: var(--display); font-weight: 600; text-transform: uppercase; margin: 0; line-height: 1.02; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 6px; font-weight: 600; text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: var(--brass); color: var(--bg); }
.btn-primary:hover { background: var(--brass-hi); color: var(--bg); }
.btn-primary:disabled { background: var(--line-2); color: #8C8377; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid #5A5246; font-weight: 500; }
.btn-ghost:hover { border-color: var(--brass); color: var(--text); }

/* шапка */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: .08em; color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 15px; }
.nav a:not(.btn) { color: var(--soft); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--text); }

/* лендинг */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding: 88px 24px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.eyebrow { font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); }
.hero h1 { font-size: clamp(48px, 7vw, 84px); line-height: .98; }
.lead { font-size: 19px; color: var(--soft); max-width: 520px; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.perks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; color: var(--soft); }
.perks li { display: flex; align-items: center; gap: 10px; }
.hero-art { flex: 1 1 420px; min-width: 0; min-height: 460px; border-radius: 10px; background:
  repeating-linear-gradient(135deg, #1C1915 0 22px, #201C17 22px 44px); border: 1px solid var(--line); display: flex; align-items: flex-end; padding: 28px; }
.hero-art .badge { background: var(--bg); border: 1px solid var(--line-2); border-radius: 8px; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; }
.hero-art .badge b { font-family: var(--display); font-size: 30px; font-weight: 500; color: var(--brass); }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding: 80px 24px; display: flex; flex-direction: column; gap: 36px; }
.section h2 { font-size: clamp(36px, 5vw, 56px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head p { margin: 0; color: var(--muted); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 18px; min-height: 140px; }
.svc-name { font-size: 18px; font-weight: 600; line-height: 1.35; }
.svc-meta { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.price { font-family: var(--display); font-size: 30px; font-weight: 500; color: var(--brass); }
.dur { font-size: 14px; color: var(--muted); }

.barber { display: flex; flex-direction: column; gap: 14px; }
.barber-photo { aspect-ratio: 4 / 5; border-radius: 8px; background: #1C1915; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 96px; color: #3A342C; }
.barber-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.barber-name { font-family: var(--display); font-size: 28px; font-weight: 500; }
.barber-role { color: var(--muted); font-size: 15px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.steps li { border-top: 2px solid var(--brass); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.steps b { font-family: var(--display); font-size: 40px; font-weight: 500; color: var(--brass); }
.steps strong { font-size: 18px; }
.steps span { color: var(--muted); font-size: 15px; }

.contacts { display: flex; flex-wrap: wrap; gap: 48px; }
.contacts dl { flex: 1 1 340px; margin: 0; display: flex; flex-direction: column; gap: 20px; font-size: 18px; }
.contacts dt { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contacts dd { margin: 4px 0 0; }
.map { flex: 1 1 480px; min-width: 0; min-height: 360px; border-radius: 10px; background: #1C1915; border: 1px dashed #4A443B; display: flex; align-items: center; justify-content: center; color: #8C8377; padding: 24px; text-align: center; }

.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; padding-bottom: 26px; font-size: 14px; color: var(--muted); }

/* запись */
.book { padding: 44px 24px 80px; display: flex; flex-direction: column; gap: 28px; }
.book h1 { font-size: clamp(36px, 5vw, 52px); }
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stepper li { padding: 8px 16px; border-radius: 999px; font-size: 14px; color: #8C8377; border: 1px solid var(--line); }
.stepper li.active { background: var(--brass); color: var(--bg); border-color: var(--brass); font-weight: 600; }
.stepper li.done { background: var(--sel); color: var(--brass-hi); border-color: var(--sel); }
.book-body { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.panel { flex: 999 1 600px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.panel h2 { font-family: var(--body); text-transform: none; font-size: 22px; }
.step[hidden] { display: none; }
.step { display: flex; flex-direction: column; gap: 22px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; padding: 18px 20px; border-radius: 8px; cursor: pointer; color: var(--text); background: var(--card); border: 1px solid var(--line); min-height: 44px; }
.choice:hover { border-color: #5A5246; }
.choice.selected { background: var(--sel); border-color: var(--brass); }
.choice .row { display: flex; justify-content: space-between; width: 100%; gap: 8px; font-size: 14px; }
.choice .p { color: var(--brass); font-weight: 600; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: #2A251F; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 20px; color: var(--brass); }
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.day { display: flex; flex-direction: column; align-items: center; min-width: 96px; padding: 10px 14px; border-radius: 8px; cursor: pointer; background: var(--card); color: var(--text); border: 1px solid var(--line-2); }
.day small { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.day.selected { background: var(--brass); color: var(--bg); border-color: var(--brass); }
.hint { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; border-radius: 6px; font-size: 16px; font-weight: 500; cursor: pointer; background: var(--card); border: 1px solid var(--line-2); color: var(--text); }
.slot:hover:not(:disabled) { border-color: var(--brass); }
.slot.selected { background: var(--brass); border-color: var(--brass); color: var(--bg); }
.slot:disabled, .busy-sample { background: transparent; border: 1px dashed var(--line-2); color: #6E665B; text-decoration: line-through; cursor: not-allowed; }
.busy-sample { display: inline-flex; align-items: center; gap: 4px; border: 0; }
.nav-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fields label, .field-label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--soft); }
.fields input { background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; padding: 14px 16px; color: var(--text); font-size: 16px; }
.fields input:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.pays { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.pay { min-height: 52px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; background: var(--card); border: 1px solid var(--line-2); color: var(--text); }
.pay.selected { background: var(--sel); border-color: var(--brass); color: var(--brass-hi); }
.error { color: #F0A08C; font-size: 15px; min-height: 1.5em; margin: 0; }
.empty { color: var(--muted); }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--brass); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.done h2 { font-family: var(--display); text-transform: uppercase; font-size: 44px; }
.summary { flex: 1 1 300px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.summary h2 { font-size: 24px; font-weight: 500; letter-spacing: .04em; }
.summary dl { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.summary dl div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; font-weight: 500; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total b { font-family: var(--display); font-size: 34px; font-weight: 500; color: var(--brass); }
