/* ===== Модуль «Онлайн-запись» — современный стиль ===== */
:root {
  --primary: #b9865b;        /* тёплый золотой */
  --primary-2: #9a6a44;      /* глубже */
  --primary-soft: #f6ede3;
  --ink: #2b2523;
  --muted: #92877d;
  --line: #ede4d8;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(43, 37, 35, .07);
  --shadow-hover: 0 18px 44px rgba(154, 106, 68, .16);
  --grad: linear-gradient(135deg, #be8a5c, #a06a3f);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 100% -10%, #fdf4e9, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, #f3e7d7, transparent 55%),
    #faf6f0;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.bk-wrap { min-height: 100vh; }

/* --- Шапка --- */
.bk-header {
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(238, 228, 216, .8);
  position: sticky;
  top: 0;
  z-index: 50;
}
.bk-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bk-brand { display: flex; align-items: center; gap: 12px; }
.bk-brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
  box-shadow: 0 6px 16px rgba(154, 106, 68, .28);
}
.bk-brand-name { font-weight: 700; font-size: 19px; letter-spacing: -.2px; }
.bk-phone { color: var(--primary-2); text-decoration: none; font-size: 15px; font-weight: 600; transition: color .15s; }
.bk-phone:hover { color: var(--primary); }

/* --- Контент --- */
.bk-main { max-width: 900px; margin: 0 auto; padding: 34px 24px 70px; }

.bk-intro { text-align: center; margin-bottom: 28px; }
.bk-intro h1 {
  margin: 0 0 8px; font-size: 32px; letter-spacing: -.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bk-intro p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* --- Прогресс-шаги --- */
.bk-progress {
  display: flex; justify-content: center; gap: 8px;
  margin: 0 0 30px;
}
.bk-progress__dot {
  width: 34px; height: 4px; border-radius: 4px;
  background: var(--line); transition: background .25s;
}
.bk-progress__dot.done { background: var(--primary); }
.bk-progress__dot.active { background: var(--grad); transform: scaleY(1.3); }

/* --- Заголовки шага --- */
.bk-step-title {
  font-size: 20px; margin: 0 0 20px;
  display: flex; align-items: center; gap: 12px; font-weight: 700;
}
.bk-step-title span {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px rgba(154,106,68,.25);
}

/* --- Услуги --- */
.bk-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.bk-service {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px; text-align: left; cursor: pointer; font: inherit;
  transition: transform .18s, box-shadow .2s, border-color .18s;
  position: relative;
}
.bk-service::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(190,138,92,.10), transparent 55%);
  opacity: 0; transition: opacity .2s;
}
.bk-service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dfcbb2; }
.bk-service:hover::before { opacity: 1; }
.bk-service.is-selected {
  border-color: var(--primary); box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.bk-service.is-selected::after {
  content: "✓"; position: absolute; top: 12px; right: 14px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.bk-service__name { display: block; font-weight: 700; font-size: 16px; margin-bottom: 10px; position: relative; }
.bk-service__meta { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; position: relative; }
.bk-service__meta span { background: var(--primary-soft); color: var(--primary-2); border-radius: 6px; padding: 3px 8px; font-weight: 600; }

/* --- Специалисты --- */
.bk-specialists { display: flex; flex-direction: column; gap: 12px; }
.bk-specialist {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px 20px; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  transition: transform .18s, box-shadow .2s, border-color .18s;
}
.bk-specialist:hover { transform: translateX(4px); border-color: #dfcbb2; box-shadow: var(--shadow); }
.bk-specialist.is-selected { border-color: var(--primary); box-shadow: var(--shadow-hover); }
.bk-specialist__main { display: flex; align-items: center; gap: 14px; }
.bk-specialist__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-2);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
  border: 2px solid #fff; box-shadow: 0 4px 12px rgba(154,106,68,.15);
}
.bk-specialist.is-selected .bk-specialist__avatar { background: var(--grad); color: #fff; }
.bk-specialist__meta .bk-specialist__name { font-weight: 700; font-size: 16px; }
.bk-specialist__meta .bk-specialist__role { font-size: 13px; color: var(--muted); }

/* --- Даты и время --- */
.bk-slot-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.bk-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.bk-date {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 14px;
  padding: 12px 6px; text-align: center; cursor: pointer;
  transition: transform .15s, box-shadow .18s, border-color .15s;
}
.bk-date:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bk-date.is-selected { border-color: var(--primary); background: var(--grad); color: #fff; box-shadow: var(--shadow-hover); }
.bk-date.is-selected .bk-date__dow, .bk-date.is-selected .bk-date__mon { color: rgba(255,255,255,.85); }
.bk-date.is-disabled { opacity: .38; cursor: not-allowed; transform: none; box-shadow: none; }
.bk-date__dow { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.bk-date__num { font-size: 22px; font-weight: 800; line-height: 1.2; }
.bk-date__mon { font-size: 12px; color: var(--muted); }

.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.bk-time {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 11px;
  padding: 10px 6px; text-align: center; font-size: 14px; cursor: pointer; font-weight: 600;
  transition: transform .15s, box-shadow .18s, border-color .15s;
}
.bk-time:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.bk-time.is-selected { border-color: var(--primary); background: var(--grad); color: #fff; box-shadow: var(--shadow-hover); }
.bk-time.is-disabled { opacity: .32; cursor: not-allowed; transform: none; box-shadow: none; text-decoration: line-through; }
.bk-times-empty { color: var(--muted); padding: 26px; text-align: center; grid-column: 1 / -1; }

/* --- Сводка --- */
.bk-summary {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 20px; box-shadow: var(--shadow);
}
.bk-summary__row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; border-bottom: 1px dashed var(--line); }
.bk-summary__row:last-child { border-bottom: none; }
.bk-summary__row b { color: var(--primary-2); }

/* --- Форма --- */
.bk-form {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 26px; max-width: 520px; box-shadow: var(--shadow);
}
.bk-form-row { margin-bottom: 16px; }
.bk-form-row label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.bk-form-row input, .bk-form-row textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 12px; font-size: 15px; font-family: inherit; color: var(--ink);
  transition: border-color .15s, box-shadow .15s; background: #fdfbf8;
}
.bk-form-row input:focus, .bk-form-row textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(185,134,91,.15); background: #fff;
}
.bk-submit {
  width: 100%; padding: 14px; background: var(--grad); color: #fff;
  border: none; border-radius: 12px; font-size: 16px; cursor: pointer; font-weight: 700;
  box-shadow: 0 8px 22px rgba(154,106,68,.32);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.bk-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(154,106,68,.4); filter: brightness(1.04); }
.bk-submit:active { transform: translateY(0); }

/* --- Навигация (назад) --- */
.bk-nav { margin-top: 24px; display: flex; justify-content: center; }
.bk-back {
  background: var(--card); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 11px 22px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color .15s, border-color .15s; display: none; align-items: center; gap: 8px;
}
.bk-back:hover { color: var(--primary-2); border-color: var(--primary); }

/* --- Модалка --- */
.bk-modal { position: fixed; inset: 0; background: rgba(43,37,35,.5); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; backdrop-filter: blur(4px); }
.bk-modal.open { display: flex; animation: bkfade .2s; }
.bk-modal__box {
  background: var(--card); border-radius: 22px; padding: 34px; width: 100%; max-width: 400px;
  position: relative; text-align: center;
  box-shadow: 0 30px 70px rgba(43,37,35,.3);
  animation: bkpop .25s;
}
.bk-modal__check { width: 62px; height: 62px; border-radius: 50%; background: var(--grad); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; box-shadow: 0 10px 24px rgba(154,106,68,.35); }
.bk-modal__box h2 { margin: 0 0 8px; font-size: 21px; }
.bk-modal__box p { margin: 0; color: var(--muted); font-size: 15px; }
.bk-modal__close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; }

@keyframes bkfade { from { opacity: 0; } }
@keyframes bkpop { from { transform: scale(.92); opacity: 0; } }

@media (max-width: 700px) {
  .bk-slot-layout { grid-template-columns: 1fr; }
  .bk-intro h1 { font-size: 26px; }
  .bk-services { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .bk-services { grid-template-columns: 1fr; }
  .bk-header-inner { padding: 12px 18px; }
  .bk-main { padding: 24px 16px 60px; }
}