/* ═══════════════════════════════════════════════════════════════════
   ESTERI · Booking widget · v2
   В ДНК сайта: coral/pink, Unbounded accents, большие скругления
   ═══════════════════════════════════════════════════════════════════ */

/* ⚠️ box-sizing на весь виджет. Без него `.bw-input` с width:100% и
   padding 16/18px оказывался ШИРЕ контейнера на сумму паддингов: на экране
   390px поле занимало 392px и уезжало правым краем за границу — на телефоне
   обрезались и рамка, и текст. Поймано скриншотом мини-аппа 20.09.2026.
   Правим в корне, а не у одного класса: та же мина заложена в любом
   .bw-* с процентной шириной и паддингом. */
.bw-root, .bw-root *, .bw-root *::before, .bw-root *::after { box-sizing: border-box; }

.bw-root{
  position:fixed; inset:0; z-index:9999;
  display:none; align-items:flex-end; justify-content:center;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--blue, #0f1f3f);
  --bw-coral: var(--coral, #e56b4f);
  --bw-pink:  var(--pink, #f1bdbf);
  /* Цвет цен — нежно-розовый из брендбука (как в подвале сайта),
     чуть притемнён для читаемости на светлом фоне виджета. */
  --bw-price: #d76f8a;
  --bw-blue:  var(--blue, #0f1f3f);
  --bw-cream: var(--cream, #faf5ef);
  --bw-ink:   #0a1429;
  --bw-muted: #7a7670;
  --bw-line:  #ede6de;
}
.bw-root.open{ display:flex; }

.bw-backdrop{
  position:absolute; inset:0;
  background: rgba(10, 20, 41, .72);
  backdrop-filter: blur(10px) saturate(110%);
  -webkit-backdrop-filter: blur(10px) saturate(110%);
  animation: bw-fade .28s ease;
}

.bw-panel{
  position:relative;
  width: 100%;
  max-width: 560px;
  max-height: 94vh;
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -30px 80px rgba(10, 20, 41, .35), 0 0 0 1px rgba(0,0,0,.04);
  display:flex; flex-direction:column;
  animation: bw-slide-up .36s cubic-bezier(.2,.9,.25,1);
  overflow:hidden;
  isolation: isolate;
}
@media (min-width: 720px){
  .bw-root{ align-items:center; padding: 40px 20px; }
  .bw-panel{ border-radius: 24px; max-height: 88vh; animation: bw-fade-scale .3s cubic-bezier(.2,.9,.25,1); }
}

.bw-body{
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.bw-body::-webkit-scrollbar{ width:8px; }
.bw-body::-webkit-scrollbar-thumb{ background: var(--bw-line); border-radius: 4px; }

.bw-close{
  position:absolute; top:14px; right:14px; z-index:3;
  width:40px; height:40px;
  border: 1px solid var(--bw-line);
  background: #fff;
  border-radius: 50%;
  color: var(--bw-blue);
  cursor: pointer;
  display:grid; place-items:center;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.bw-close:hover{
  background: var(--bw-pink);
  border-color: var(--bw-coral);
  color: var(--bw-coral);
  transform: rotate(90deg);
}

/* ════════ HEADER ════════ */
.bw-head{
  padding: 22px 28px 16px;
  border-bottom: 1px solid var(--bw-line);
  background: linear-gradient(180deg, #fff 0%, var(--bw-cream) 100%);
}
.bw-head-row{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.bw-back-btn{
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 6px 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--bw-coral);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.bw-back-btn:hover{
  background: #fff7f3;
  border-color: var(--bw-coral);
}
.bw-back-btn:active{ transform: translateX(-2px); }
.bw-back-btn svg{ flex-shrink: 0; }
.bw-back-btn span{ line-height: 1; }
@media (max-width: 480px){
  .bw-back-btn span{ display: none; }
  .bw-back-btn{ padding: 6px; }
}
.bw-steps{
  display:flex; align-items:center; gap:8px;
  font-size: 11px;
  color: var(--bw-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  margin-bottom: 14px;
  padding-right: 40px;
}
.bw-dot{
  width:24px; height:3px;
  background: var(--bw-line);
  border-radius: 2px;
  transition: background .3s ease, width .3s ease;
}
.bw-dot.done{ background: var(--bw-coral); }
.bw-dot.current{ background: var(--bw-coral); width: 36px; }
.bw-steps-count{ margin-left: auto; font-weight: 500; }

.bw-title{
  font-family: 'Unbounded', 'Fraunces', Georgia, serif;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--bw-blue);
}

/* ════════ SERVICE CHIP (на шаге времени, когда услуга выбрана) ════════ */
.bw-svc-chip{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  margin: 0 0 20px;
  background: var(--bw-cream);
  border: 1px solid var(--bw-line);
  border-radius: 16px 16px 6px 6px;  /* nail-shape: округлый сверху, прямой внизу */
  position: relative;
  flex-wrap: wrap;
}
.bw-svc-chip-info{
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 200px;
  min-width: 0;
}
.bw-svc-chip-label{
  font-size: 10px;
  color: var(--bw-coral);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
}
.bw-svc-chip-title{
  font-size: 15px;
  font-weight: 600;
  color: var(--bw-blue);
  line-height: 1.3;
  /* убрали ellipsis: даём словам переноситься */
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.bw-svc-chip-price{
  /* ⚠️ Не возвращать сюда Unbounded: у него ноль перечёркнут по
     рисунку, и сетка времени рябит — прямая правка Анны 19.09.2026.
     tabular-nums держит цифры в колонку одинаковой ширины. */
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 600;
  color: var(--bw-price);
  white-space: nowrap;
  flex: 0 0 auto;
}
.bw-svc-chip-change{
  background: transparent;
  border: 1px solid var(--bw-coral);
  color: var(--bw-coral);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .16s ease;
  flex: 0 0 auto;
  white-space: nowrap;
}
.bw-svc-chip-change:hover{
  background: var(--bw-coral);
  color: #fff;
}
@media (max-width: 480px){
  .bw-svc-chip{
    gap: 10px 14px;
    padding: 12px 14px;
  }
  .bw-svc-chip-info{
    flex: 1 1 100%;
  }
  .bw-svc-chip-price{
    font-size: 16px;
  }
  .bw-svc-chip-change{
    margin-left: auto;
  }
}

/* ════════ LOADING ════════ */
.bw-loading{
  padding: 80px 24px; text-align:center;
  color: var(--bw-muted); font-size:14px;
}
.bw-spinner{
  width:36px; height:36px;
  border: 2.5px solid var(--bw-pink);
  border-top-color: var(--bw-coral);
  border-radius:50%;
  margin: 0 auto 16px;
  animation: bw-spin .9s linear infinite;
}

/* ════════ CALENDAR ════════ */
.bw-time-wrap{ padding: 18px 28px 10px; }

.bw-cal-head{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 14px;
}
.bw-cal-title{
  font-family: 'Unbounded', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--bw-blue);
}
.bw-cal-nav{
  width:36px; height:36px; border-radius:50%;
  background: var(--bw-cream);
  border: 1px solid var(--bw-line);
  font-size: 20px; color: var(--bw-blue);
  cursor:pointer; display:grid; place-items:center;
  transition: all .16s ease;
}
.bw-cal-nav:hover{ background: var(--bw-pink); border-color: var(--bw-coral); color: var(--bw-coral); }

.bw-cal-dow{
  display:grid; grid-template-columns: repeat(7, 1fr);
  gap: 2px; margin-bottom: 8px;
  text-align:center;
  font-size: 10px; color: var(--bw-muted);
  text-transform: uppercase; letter-spacing: .1em;
  font-weight: 600;
}
.bw-cal-grid{
  display:grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.bw-cal-empty{}
.bw-cal-day{
  position:relative;
  aspect-ratio: 1;
  border: 1.5px solid transparent;
  background: transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bw-blue);
  cursor:pointer;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  padding: 0;
  transition: all .16s ease;
  font-family: inherit;
}
.bw-cal-day.has:hover{ background: var(--bw-pink); border-color: var(--bw-coral); }
.bw-cal-day.today{ border-color: var(--bw-pink); }
.bw-cal-day.sel{
  background: var(--bw-coral);
  color: #fff;
  border-color: var(--bw-coral);
  box-shadow: 0 6px 18px rgba(229, 107, 79, .3);
}
.bw-cal-day.sel .bw-cal-dot{ background: #fff; }
.bw-cal-day.past,
.bw-cal-day:disabled{ color: #ccc; cursor:default; opacity: .5; }
.bw-cal-day.past:hover,
.bw-cal-day:disabled:hover{ background: transparent; border-color: transparent; }
.bw-cal-num{ line-height: 1; }
.bw-cal-dot{
  position:absolute; bottom:6px;
  width:4px; height:4px; border-radius:50%;
  background: var(--bw-coral);
}

.bw-cal-slots{ margin-top: 22px; min-height: 88px; }
.bw-slot-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}
.bw-slot{
  padding: 14px 8px;
  border: 1.5px solid var(--bw-line);
  background: #fff;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--bw-blue);
  cursor:pointer;
  /* ⚠️ Не возвращать сюда Unbounded: у него ноль перечёркнут по
     рисунку, и сетка времени рябит — прямая правка Анны 19.09.2026.
     tabular-nums держит цифры в колонку одинаковой ширины. */
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  transition: all .16s ease;
}
.bw-slot:hover{
  background: var(--bw-coral);
  color: #fff;
  border-color: var(--bw-coral);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 107, 79, .25);
}
.bw-muted{ color: var(--bw-muted); font-size:13px; margin:0; }
.bw-hint{ text-align:center; padding: 20px 0; }

/* ════════ EMPTY / ERROR STATE ════════ */
.bw-empty{
  padding: 12px 28px 28px;
  display: flex; flex-direction: column;
}
.bw-empty-eyebrow{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bw-coral);
  margin-bottom: 10px;
}
.bw-empty-title{
  font-family: 'Unbounded', serif;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--bw-blue);
}
.bw-empty-lead{
  font-size: 15px;
  line-height: 1.5;
  color: var(--bw-muted);
  margin: 0 0 24px;
  text-wrap: pretty;
  max-width: 46ch;
}
.bw-empty-actions{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.bw-chip{
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--bw-line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--bw-blue);
  transition: all .16s ease;
  font-family: inherit;
}
.bw-chip > svg{
  grid-row: 1 / 3;
  color: var(--bw-coral);
}
.bw-chip-label{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bw-muted);
  line-height: 1;
}
.bw-chip-value{
  font-size: 14px;
  font-weight: 600;
  color: var(--bw-blue);
  line-height: 1.2;
  margin-top: 4px;
}
.bw-chip:hover{
  background: var(--bw-pink);
  border-color: var(--bw-coral);
  transform: translateY(-1px);
}
.bw-chip:hover .bw-chip-value{ color: var(--bw-coral); }

.bw-empty-retry{
  padding: 16px 22px;
  background: transparent;
  color: var(--bw-blue);
  border: 1.5px solid var(--bw-line);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  font-family: inherit;
  cursor: pointer;
  transition: all .16s ease;
  margin-top: auto;
}
.bw-empty-retry:hover{
  background: var(--bw-blue);
  color: #fff;
  border-color: var(--bw-blue);
}

@media (max-width: 540px){
  .bw-empty-actions{ grid-template-columns: 1fr; }
  .bw-empty-title{ font-size: 22px; }
}

/* ════════ SERVICES ════════ */
.bw-tabs{
  display:flex; gap: 8px;
  padding: 16px 28px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bw-tabs::-webkit-scrollbar{ display:none; }
.bw-tab{
  padding: 10px 18px;
  background: transparent;
  border: 1.5px solid var(--bw-line);
  border-radius: 999px;
  font-size: 13px; color: var(--bw-blue);
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all .16s ease;
}
.bw-tab:hover{ border-color: var(--bw-coral); color: var(--bw-coral); }
.bw-tab.is-active{
  background: var(--bw-blue);
  color: #fff;
  border-color: var(--bw-blue);
}

.bw-svc-list{
  padding: 12px 20px 24px;
  display:flex; flex-direction:column; gap: 10px;
}
.bw-svc{
  display:flex; align-items: flex-start; gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1.5px solid var(--bw-line);
  border-radius: 18px;
  cursor: pointer;
  text-align: left;
  transition: all .18s ease;
  width: 100%;
  font-family: inherit;
}
.bw-svc:hover{
  background: var(--bw-cream);
  border-color: var(--bw-coral);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10, 20, 41, .08);
}
.bw-svc-img{
  flex-shrink:0;
  width: 64px; height: 80px;
  border-radius: 32px 32px 6px 6px; /* nail-shape: округлый сверху, прямой снизу */
  background: var(--bw-pink) center/cover no-repeat;
  overflow: hidden;
  position: relative;
}
.bw-svc-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bw-svc-img--ph{
  position: relative;
  background: linear-gradient(160deg, var(--bw-pink) 0%, #FAEDDC 100%);
}
.bw-svc-img--ph::before{
  /* «капля» гель-лака сверху-слева — элегантный плейсхолдер вместо точек */
  content: '';
  position: absolute;
  left: 18%; top: 14%;
  width: 28%; height: 22%;
  border-radius: 50% 50% 45% 55% / 60% 50% 50% 40%;
  background: rgba(255, 255, 255, .55);
  filter: blur(.5px);
}
.bw-svc-img--ph::after{
  /* блик ниже, мягче */
  content: '';
  position: absolute;
  right: 22%; bottom: 28%;
  width: 16%; height: 10%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  filter: blur(2px);
}
.bw-svc-body{ flex:1; min-width:0; padding-top: 2px; }
.bw-svc-title{
  font-family: 'Unbounded', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--bw-blue);
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.bw-svc-desc{
  font-size: 12.5px;
  color: var(--bw-muted);
  margin: 0 0 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bw-svc-meta{ display:flex; align-items:center; gap:12px; }
.bw-svc-price{
  /* ⚠️ Не возвращать сюда Unbounded: у него ноль перечёркнут по
     рисунку, и сетка времени рябит — прямая правка Анны 19.09.2026.
     tabular-nums держит цифры в колонку одинаковой ширины. */
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 600;
  color: var(--bw-price);
  letter-spacing: -0.01em;
}
.bw-svc-arrow{
  flex-shrink:0;
  color: var(--bw-coral);
  font-size: 20px;
  align-self: center;
  opacity: .6;
  transition: all .16s ease;
}
.bw-svc:hover .bw-svc-arrow{ opacity: 1; transform: translateX(4px); }

/* ════════ CONTACT FORM + SUMMARY ════════ */
.bw-form{
  padding: 20px 28px 28px;
  display: flex; flex-direction: column; gap: 14px;
}

.bw-summary{
  padding: 16px 18px;
  background: var(--bw-cream);
  border: 1px solid var(--bw-line);
  border-radius: 16px;
  margin-bottom: 4px;
}
.bw-summary-row{
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: center;
}
.bw-summary-icon{
  width: 48px; height: 48px;
  background: var(--bw-coral);
  color: #fff;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: 'Unbounded', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  overflow: hidden;
}
.bw-summary-icon--photo{
  background: var(--bw-pink);
}
.bw-summary-icon--photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bw-summary-title{
  font-family: 'Unbounded', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--bw-blue);
  line-height: 1.25;
  margin-bottom: 4px;
}
.bw-summary-sub{
  font-size: 12.5px;
  color: var(--bw-muted);
  line-height: 1.4;
}
.bw-summary-sub b{ color: var(--bw-blue); font-weight: 700; }

/* ─── UPSELL ─── */
.bw-addon, .bw-first{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px dashed var(--bw-line);
  border-radius: 14px;
  cursor: pointer;
  transition: all .18s ease;
}
.bw-addon input, .bw-first input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.bw-addon.on{
  background: var(--bw-pink);
  border: 1.5px solid var(--bw-coral);
  border-style: solid;
}
.bw-first{
  background: linear-gradient(135deg, var(--bw-pink) 0%, #fff3ea 100%);
  border: 1.5px solid var(--bw-coral);
  border-style: solid;
}
.bw-addon-title, .bw-first-title{
  font-family: 'Unbounded', serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--bw-blue);
  display: block;
  line-height: 1.3;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.bw-addon-sub, .bw-first-sub{
  font-size: 12px;
  color: var(--bw-muted);
  line-height: 1.4;
  display: block;
}
.bw-first-sub b{ color: var(--bw-coral); font-weight: 700; }
.bw-addon-check, .bw-first-check{
  width: 24px; height: 24px;
  border: 1.5px solid var(--bw-line);
  border-radius: 7px;
  background: #fff;
  display: grid; place-items: center;
  transition: all .18s ease;
  position: relative;
}
.bw-addon-check::after, .bw-first-check::after{
  content: '';
  width: 10px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity .18s ease;
}
.bw-addon.on .bw-addon-check,
.bw-first.on .bw-first-check{
  background: var(--bw-coral);
  border-color: var(--bw-coral);
}
.bw-addon.on .bw-addon-check::after,
.bw-first.on .bw-first-check::after{ opacity: 1; }

/* ─── FIELDS ─── */
.bw-fields{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.bw-field{ display:flex; flex-direction:column; gap:6px; }
.bw-label{
  font-size: 11px;
  color: var(--bw-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}
.bw-input{
  width:100%;
  padding: 16px 18px;
  background: #fff;
  border: 1.5px solid var(--bw-line);
  border-radius: 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--bw-blue);
  transition: border-color .16s ease, background .16s ease;
  -webkit-appearance: none;
}
.bw-input:focus{
  outline: none;
  border-color: var(--bw-coral);
  background: var(--bw-cream);
}
.bw-input::placeholder{ color: #bdb6ad; }

/* Honeypot — скрыто, невидимо для человека.
   FIX-6: добавил opacity:0 + tabindex/aria-hidden чтобы screen-readers и tab-навигация
   тоже его не цепляли (бывают боты, которые имитируют tab-фокус). */
.bw-hp{
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0 !important;
  pointer-events: none;
}
.bw-hp input{ width: 1px; height: 1px; }

/* FIX-8: пустые слоты — fallback с чипами «позвонить / телеграм» */
.bw-slots-empty{
  padding: 16px 0 8px;
}
.bw-slots-empty-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bw-chip--sm{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ead8ce;
  color: #6b4d3e;
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .1s;
}
.bw-chip--sm:hover{
  background: #fff7f3;
  border-color: var(--bw-accent, #d96a4a);
  color: var(--bw-accent, #d96a4a);
}
.bw-chip--sm:active{ transform: translateY(1px); }
.bw-chip--sm svg{ flex-shrink: 0; }

.bw-err{
  padding: 12px 14px;
  background: #fff0ec;
  border: 1px solid #ffccc0;
  border-radius: 12px;
  font-size: 13px;
  color: #c43a1a;
  font-weight: 500;
}
.bw-agree{
  font-size: 11px;
  color: var(--bw-muted);
  margin: 0;
  line-height: 1.45;
}
/* Согласие на обработку ПДн — строкой под кнопкой, а не галочкой (20.09.2026).
   Обработка ради самой записи не требует отдельного согласия, поэтому клик
   был лишним. Мелко и приглушённо: это юридическая сноска, а не призыв. */
.bw-legal{
  font-size: 11px;
  color: var(--bw-muted);
  line-height: 1.45;
  text-align: center;
  padding: 0 4px 4px;
  margin: 0;
}
.bw-legal a,
.bw-agree a{
  color: var(--bw-coral);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(229, 107, 79, .3);
}

/* ─── CTA ─── */
.bw-cta{
  padding: 18px 24px;
  /* Главный CTA — КОРАЛЛОВЫЙ, не розовый (19.09.2026). Причина записана в
     брендбуке: «#F1B0BF приглушает главный CTA, и это вопрос конверсии, а не
     бренда». Розовый остаётся фоном и акцентами, кнопка действия — коралл. */
  background: var(--bw-coral);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Unbounded', serif;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all .18s ease;
  box-shadow: 0 6px 16px rgba(215, 111, 138, .3);
}
.bw-cta:hover:not(:disabled){
  background: #ea9fb0;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(215, 111, 138, .42);
}
.bw-cta:active:not(:disabled){ transform: translateY(0); }
.bw-cta:disabled{ cursor: default; opacity: .7; }
.bw-cta-label{ text-align: left; }
.bw-cta-price{
  font-size: 16px;
  opacity: .95;
  padding-left: 14px;
  border-left: 1px solid rgba(30, 66, 128, .25);
}
.bw-cta.is-loading .bw-cta-price{ display: none; }

/* ════════ FOOTER ════════ */
.bw-foot{ padding: 6px 28px 20px; }
.bw-back{
  background: transparent;
  border: none;
  padding: 8px 0;
  font-size: 13px;
  color: var(--bw-muted);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: color .14s ease;
}
.bw-back:hover{ color: var(--bw-coral); }

/* ════════ SUCCESS ════════ */
.bw-success{
  padding: 48px 28px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.bw-success-icon{
  width: 72px;
  height: 72px;
  color: var(--bw-coral);
  animation: bw-pop .5s cubic-bezier(.2,.9,.25,1.3);
}
.bw-success-icon svg{ width:100%; height:100%; }
.bw-success-icon svg circle{
  stroke-dasharray: 152;
  stroke-dashoffset: 152;
  animation: bw-draw-circle .5s ease .1s forwards;
}
.bw-success-icon svg path{
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: bw-draw .45s ease .5s forwards;
}
.bw-success-title{
  font-family: 'Unbounded', serif;
  font-size: 34px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--bw-blue);
}
.bw-success-lead{
  font-size: 14px;
  color: var(--bw-muted);
  line-height: 1.5;
  margin: -8px 0 0;
  max-width: 380px;
}
.bw-success-card{
  width: 100%;
  background: var(--bw-cream);
  border: 1px solid var(--bw-line);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.bw-success-row{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  font-size: 13px;
}
.bw-success-row span{
  color: var(--bw-muted);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
  font-weight: 600;
}
.bw-success-row b{
  font-weight: 600;
  color: var(--bw-blue);
  text-align: right;
  word-break: break-word;
}
.bw-success-note{
  font-size: 13px;
  color: var(--bw-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 420px;
}
.bw-success-actions{
  display: flex;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
  margin-top: 8px;
}
.bw-success-actions .bw-cta,
.bw-success-actions .bw-ghost{
  flex: 1;
  min-width: 140px;
  justify-content: center;
}
.bw-success-actions .bw-cta{ padding: 16px 22px; }
.bw-success-actions .bw-cta-price{ display: none; }
.bw-ghost{
  padding: 16px 22px;
  background: transparent;
  color: var(--bw-blue);
  border: 1.5px solid var(--bw-line);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', serif;
  letter-spacing: -0.005em;
  transition: all .16s ease;
}
.bw-ghost:hover{
  background: var(--bw-pink);
  border-color: var(--bw-coral);
  color: var(--bw-coral);
}

/* ════════ ANIMATIONS ════════ */
@keyframes bw-fade{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes bw-slide-up{
  from{ transform: translateY(100%); }
  to{ transform: translateY(0); }
}
@keyframes bw-fade-scale{
  from{ opacity: 0; transform: scale(.96) translateY(8px); }
  to{ opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes bw-spin{ to{ transform: rotate(360deg); } }
@keyframes bw-pop{
  0%{ transform: scale(0); opacity: 0; }
  60%{ transform: scale(1.15); opacity: 1; }
  100%{ transform: scale(1); opacity: 1; }
}
@keyframes bw-draw{ to{ stroke-dashoffset: 0; } }
@keyframes bw-draw-circle{ to{ stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce){
  .bw-panel, .bw-backdrop, .bw-success-icon,
  .bw-success-icon svg path, .bw-success-icon svg circle{
    animation: none !important;
  }
  .bw-success-icon svg circle,
  .bw-success-icon svg path{ stroke-dashoffset: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════════════
   COMPACT OVERRIDES · v3
   Уплотняем виджет, чтобы помещался в один экран без скроллов
   на десктопе и одно мобильное окно без растягивания.
   ═══════════════════════════════════════════════════════════════════ */

/* Фиксированный размер панели на десктопе — не растягивается под контент */
@media (min-width: 720px){
  .bw-panel{
    width: 520px;
    max-width: 520px;
    height: 640px;       /* fixed-size — никакого растягивания */
    max-height: 88vh;
    border-radius: 20px;
  }
  .bw-body{
    flex: 1 1 auto;
    min-height: 0;       /* для flex-scroll */
  }
}

/* Хедер компактнее */
.bw-head{
  padding: 18px 24px 12px;
}
.bw-head-row{ margin-bottom: 8px; gap: 10px; }
.bw-steps{ margin-bottom: 8px; padding-right: 36px; font-size: 10px; }
.bw-title{ font-size: 22px; line-height: 1.15; }
.bw-close{ width: 36px; height: 36px; top: 12px; right: 12px; }

/* Service chip — плотнее */
.bw-svc-chip{
  padding: 12px 14px;
  margin: 0 0 14px;
  border-radius: 14px 14px 6px 6px;
  gap: 12px;
}
.bw-svc-chip-title{ font-size: 14px; }
.bw-svc-chip-price{ font-size: 14px; }
.bw-svc-chip-change{
  padding: 5px 11px;
  font-size: 10.5px;
}

/* Chip image (новое — фото услуги в шаге 2) */
.bw-svc-chip{
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bw-cream);
  border: 1.5px solid var(--bw-line);
}
.bw-svc-chip-img{
  flex-shrink: 0;
  width: 40px; height: 50px;
  border-radius: 20px 20px 4px 4px;
  background: #fff center/cover no-repeat;
  overflow: hidden;
  position: relative;
}
.bw-svc-chip-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bw-svc-chip-img--ph{
  background: linear-gradient(160deg, #fff 0%, var(--bw-pink) 100%);
}
.bw-svc-chip-info{ flex: 1; min-width: 0; }
.bw-svc-chip-desc{
  font-size: 11px;
  color: var(--bw-muted);
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

/* Календарь — компактный */
.bw-time-wrap{ padding: 14px 24px 14px; }
.bw-cal-head{ margin-bottom: 10px; }
.bw-cal-title{ font-size: 15px; }
.bw-cal-nav{ width: 32px; height: 32px; font-size: 18px; }
.bw-cal-dow{ font-size: 9px; margin-bottom: 4px; }
.bw-cal-grid{ gap: 3px; }
.bw-cal-day{
  aspect-ratio: auto;          /* ломаем 1:1 — слишком много места по вертикали */
  height: 36px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}
.bw-cal-dot{ bottom: 4px; width: 3px; height: 3px; }

.bw-cal-slots{ margin-top: 14px; min-height: 60px; }
.bw-slot-grid{
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
}
.bw-slot{
  padding: 10px 6px;
  border-radius: 10px;
  font-size: 13px;
}

/* Шаги до календаря — список услуг плотнее */
.bw-svc-list{ padding: 10px 18px 18px; gap: 8px; }
.bw-svc{
  padding: 12px;
  border-radius: 14px;
  gap: 12px;
}
.bw-svc-img{ width: 56px; height: 70px; border-radius: 28px 28px 5px 5px; }
.bw-svc-title{ font-size: 14px; margin-bottom: 4px; }
.bw-svc-desc{ font-size: 12px; margin: 0 0 6px; }
.bw-svc-price{ font-size: 14px; }

/* Tabs */
.bw-tabs{ padding: 12px 24px 4px; gap: 6px; }
.bw-tab{
  padding: 8px 14px;
  font-size: 12px;
}

/* Form — плотнее */
.bw-form{ padding: 16px 24px 22px; gap: 12px; }
.bw-summary{ padding: 12px 14px; border-radius: 14px; }
.bw-summary-icon{ width: 42px; height: 42px; font-size: 18px; }
.bw-summary-title{ font-size: 14px; }

/* Mobile — ещё плотнее */
@media (max-width: 480px){
  .bw-head{ padding: 16px 18px 10px; }
  .bw-title{ font-size: 19px; }
  .bw-time-wrap{ padding: 12px 18px 12px; }
  .bw-svc-list{ padding: 8px 14px 16px; gap: 7px; }
  .bw-form{ padding: 14px 18px 20px; }
  .bw-cal-day{ height: 34px; font-size: 12.5px; border-radius: 8px; }
  .bw-slot{ padding: 9px 4px; font-size: 12.5px; }
  .bw-slot-grid{ grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
  .bw-svc-img{ width: 48px; height: 60px; }
  .bw-svc-title{ font-size: 13px; }
  .bw-svc-desc{ font-size: 11.5px; -webkit-line-clamp: 1; }
}

/* ═══════════════════════════════════════════════════════════════════
   UNIFIED BUTTON SYSTEM · v3
   Подгоняем под дизайн-код сайта Эстери:
   - coral primary CTA, square-ish (radius 4-12px), Unbounded weight 700
   - blue secondary, outline на coral/white
   - типографика — JetBrains Mono для лейблов uppercase
   ═══════════════════════════════════════════════════════════════════ */

/* Primary CTA — основа всех кнопок */
.bw-cta{
  background: var(--bw-pink);
  color: var(--bw-blue);
  border: none;
  border-radius: 4px;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 16px 22px;
  cursor: pointer;
  transition: background .18s ease, transform .12s ease;
}
.bw-cta:hover{ background: #ea9fb0; transform: translateY(-1px); }
.bw-cta:active{ transform: translateY(0); }
.bw-cta:disabled{ opacity: 0.5; cursor: not-allowed; transform: none; }

/* Secondary outline */
.bw-ghost,
.bw-empty-retry{
  background: transparent;
  color: var(--bw-blue);
  border: 1.5px solid var(--bw-blue);
  border-radius: 4px;
  font-family: 'Unbounded', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 11px;
  padding: 14px 20px;
}
.bw-ghost:hover{
  background: var(--bw-blue);
  color: #fff;
  border-color: var(--bw-blue);
}

/* Service chip "Сменить" — pill (контекстная кнопка, остаётся круглой) */
/* остаётся как было */

/* Кнопки навигации (back / cal-nav / close) — round-soft, неагрессивные */
/* остаются круглыми по умолчанию */

/* Tabs — squared chips в стиле сайта */
.bw-tab{
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 14px;
}
.bw-tab.is-active{
  background: var(--bw-coral);
  color: #fff;
  border-color: var(--bw-coral);
}

/* Calendar slot — squared в стиле слотов сайта */
.bw-slot{
  border-radius: 4px;
  /* ⚠️ Здесь Unbounded тоже НЕ возвращать: это правило идёт ниже базового
     и перебивало его каскадом — из-за него перечёркнутый ноль вернулся бы,
     даже если поправить только верхний .bw-slot. Правка Анны 19.09.2026. */
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0;
}
.bw-slot:hover{
  background: var(--bw-coral);
  color: #fff;
  border-color: var(--bw-coral);
}

/* Calendar day — оставляем slightly rounded, но square-ish */
.bw-cal-day{ border-radius: 4px; }
.bw-cal-day.sel{ border-radius: 4px; }

/* Бренд-лейблы (uppercase mono) — единый стиль */
.bw-svc-chip-label,
.bw-empty-eyebrow{
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
}
