/* ═══════════════════════════════════════════════════════════════════════════
   БЫСТРЫЙ ОТВЕТ НА ПЕРВОМ ЭКРАНЕ — пилот для 10 страниц с высокими отказами
   Стиль «Мастерской» (переменные из portal.css).
   ═══════════════════════════════════════════════════════════════════════════ */

.bo-box{
  margin:18px 0 24px;
  padding:20px 22px;
  background:#fff;
  border:1.5px solid var(--line);
  border-top:4px solid var(--hot);
  border-radius:var(--r);
  box-shadow:0 10px 28px rgba(34,32,27,.06);
  max-width:100%;
}

.bo-head{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px 16px;
  margin-bottom:14px;
}

.bo-head-txt{flex:1 1 280px;min-width:0}

.bo-tag{
  display:inline-block;
  font-family:'Caveat',cursive;
  font-size:21px;
  font-weight:600;
  line-height:1.1;
  color:var(--hot-d);
  margin-bottom:2px;
}

.bo-title{
  font-size:20px;
  font-weight:800;
  line-height:1.25;
  color:var(--ink);
  margin:0;
}

.bo-sub{
  font-size:15px;
  line-height:1.45;
  color:var(--muted);
  margin:4px 0 0;
}

.bo-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-top:14px;
}

.bo-btn,
.bo-btn-sec{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:9px 16px;
  border-radius:10px;
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  line-height:1.2;
  text-decoration:none;
  cursor:pointer;
  transition:background .16s,border-color .16s,color .16s,transform .12s;
}

.bo-btn{
  background:var(--hot);
  color:#fff;
  border:1.5px solid var(--hot);
}
.bo-btn:hover{background:var(--hot-d);border-color:var(--hot-d);color:#fff}
.bo-btn:active{transform:translateY(1px)}

.bo-btn-sec{
  background:#FDF6EE;
  color:var(--ink);
  border:1.5px solid var(--stroke);
}
.bo-btn-sec:hover{background:#F8E7D5;border-color:var(--hot);color:var(--ink)}

.bo-ico{
  width:17px;
  height:17px;
  flex:0 0 auto;
  display:inline-block;
}

/* ── Переключатели / чипы цветов ─────────────────────────────────────────── */
.bo-label{
  display:block;
  font-size:14px;
  font-weight:700;
  color:var(--muted);
  margin:0 0 8px;
}

.bo-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}

.bo-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:40px;
  padding:6px 12px;
  border-radius:999px;
  background:var(--bg);
  border:1.5px solid var(--line);
  color:var(--ink);
  font-family:inherit;
  font-size:15px;
  font-weight:600;
  line-height:1.2;
  cursor:pointer;
  transition:border-color .15s,background .15s,box-shadow .15s;
}
.bo-pill:hover{border-color:var(--stroke);background:#FDF6EE}
.bo-pill.is-on,
.bo-pill[aria-pressed="true"]{
  border-color:var(--hot);
  background:#FDF2E6;
  color:var(--ink);
  box-shadow:0 0 0 2px rgba(226,102,28,.16);
}

.bo-dot{
  width:16px;
  height:16px;
  border-radius:50%;
  flex:0 0 auto;
  border:1px solid rgba(34,32,27,.22);
}

.bo-mixer-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px 16px;
  margin-bottom:12px;
}

.bo-mixer-col{min-width:0}

.bo-quick-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px 8px;
  margin-top:10px;
  font-size:14px;
  color:var(--muted);
}

.bo-chip-link{
  background:none;
  border:1px dashed var(--stroke);
  border-radius:8px;
  padding:4px 10px;
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  color:var(--accent-dark);
  cursor:pointer;
}
.bo-chip-link:hover{background:#FDF6EE;border-style:solid;border-color:var(--hot)}

/* ── Карточка результата замеса ──────────────────────────────────────────── */
.bo-result{
  display:flex;
  align-items:stretch;
  gap:16px;
  padding:14px 16px;
  border-radius:12px;
  background:var(--bg);
  border:1.5px solid var(--line);
}

.bo-swatch{
  width:96px;
  min-height:84px;
  flex:0 0 96px;
  border-radius:10px;
  border:1.5px solid rgba(34,32,27,.18);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:8px 6px;
  font-size:13.5px;
  font-weight:700;
  text-align:center;
  line-height:1.15;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25);
}

.bo-res-body{flex:1 1 auto;min-width:0}

.bo-res-formula{
  font-size:18px;
  font-weight:800;
  line-height:1.25;
  color:var(--ink);
  margin:0 0 6px;
}

.bo-res-prop{
  font-size:15.5px;
  line-height:1.42;
  color:var(--ink-deep);
  margin:0 0 4px;
}

.bo-res-use{
  font-size:14.5px;
  line-height:1.4;
  color:var(--muted);
  margin:0;
}

/* ── Интерактивный круг Иттена ───────────────────────────────────────────── */
.bo-itten{
  display:grid;
  grid-template-columns:210px 1fr;
  gap:16px 20px;
  align-items:center;
}

.bo-wheel-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}

.bo-wheel-svg{
  width:200px;
  height:200px;
  max-width:100%;
  display:block;
}

.bo-wheel-svg .bo-seg{
  cursor:pointer;
  transition:opacity .15s,transform .15s;
}
.bo-wheel-svg .bo-seg:hover{opacity:.88}

.bo-itten-right{min-width:0}

.bo-itten-picked{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  font-size:17px;
  font-weight:800;
  color:var(--ink);
}

.bo-itten-cards{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
}

.bo-itten-card{
  background:var(--bg);
  border:1.5px solid var(--line);
  border-radius:10px;
  padding:9px 11px;
}

.bo-itten-card-h{
  font-size:13.5px;
  font-weight:700;
  color:var(--muted);
  margin:0 0 5px;
}

.bo-itten-swatches{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  align-items:center;
}

.bo-mini-sw{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:14px;
  font-weight:700;
  color:var(--ink);
}

.bo-mini-sw i{
  width:15px;
  height:15px;
  border-radius:50%;
  display:inline-block;
  border:1px solid rgba(34,32,27,.22);
  flex:0 0 auto;
}

/* ── Визуальная сетка выбора уроков (кошка, роза, собака, лицо) ──────────── */
.bo-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.bo-grid.bo-grid-4{grid-template-columns:repeat(4,1fr)}
.bo-grid.bo-grid-5{grid-template-columns:repeat(5,1fr)}

.bo-card{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  background:var(--bg);
  border:1.5px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  color:var(--ink);
  transition:transform .15s,border-color .15s,box-shadow .15s;
}
.bo-card:hover{
  transform:translateY(-2px);
  border-color:var(--hot);
  box-shadow:0 8px 18px rgba(34,32,27,.08);
  color:var(--ink);
}

.bo-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
  background:#fff;
  border-bottom:1px solid var(--line);
}

.bo-card-cap{
  padding:8px 9px 9px;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.bo-card-cap b{
  font-size:14.5px;
  font-weight:800;
  line-height:1.2;
  color:var(--ink);
}

.bo-card-cap span{
  font-size:13.5px;
  line-height:1.25;
  color:var(--muted);
}

/* ── Лента 6 шагов (медведь, букет) ──────────────────────────────────────── */
.bo-strip{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:8px;
}

.bo-step{
  display:flex;
  flex-direction:column;
  text-decoration:none;
  background:var(--bg);
  border:1.5px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  color:var(--ink);
  position:relative;
  transition:border-color .15s,transform .15s;
}
.bo-step:hover{border-color:var(--hot);transform:translateY(-2px);color:var(--ink)}

.bo-step-num{
  position:absolute;
  top:5px;
  left:5px;
  min-width:22px;
  height:22px;
  padding:0 5px;
  border-radius:999px;
  background:var(--hot);
  color:#fff;
  font-size:13px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 6px rgba(34,32,27,.22);
}

.bo-step img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
}

.bo-step span{
  padding:6px 6px 7px;
  font-size:13.5px;
  font-weight:700;
  line-height:1.2;
  text-align:center;
  color:var(--ink);
}

/* ── Компактные ориентиры (например, пропорции лица) ─────────────────────── */
.bo-mini-facts{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.bo-fact{
  background:#FDF6EE;
  border:1px solid var(--stroke);
  border-radius:8px;
  padding:5px 10px;
  font-size:14px;
  line-height:1.3;
  color:var(--ink);
}
.bo-fact b{color:var(--accent-dark)}

/* ── Сворачиваемое оглавление внутри <div class="toc"> ───────────────────── */
.toc .bo-toc-btn{
  width:100%;
  background:none;
  border:none;
  padding:2px 0;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-family:inherit;
  font-size:16.5px;
  font-weight:800;
  color:var(--ink);
  text-align:left;
}
.toc .bo-toc-btn::after{
  content:"▾";
  font-size:18px;
  color:var(--hot-d);
  transition:transform .18s;
  flex:0 0 auto;
}
.toc .bo-toc-btn[aria-expanded="true"]::after{transform:rotate(180deg)}
.toc .bo-toc-btn[aria-expanded="true"]{
  margin-bottom:12px;
  padding-bottom:10px;
  border-bottom:1px solid var(--line);
}
.toc .bo-toc-body[hidden]{display:none}

/* ── Адаптив для мобильных (360–640px) ───────────────────────────────────── */
@media (max-width:720px){
  .bo-box{margin:12px 0 18px;padding:14px 14px 15px}
  .bo-tag{font-size:19px}
  .bo-title{font-size:18px}
  .bo-sub{font-size:14px}
  .bo-mixer-grid{grid-template-columns:1fr;gap:8px}
  .bo-pills{gap:6px;margin-bottom:8px}
  .bo-pill{padding:5px 10px;font-size:14px;min-height:36px}
  .bo-result{flex-direction:row;align-items:center;gap:12px;padding:11px 12px}
  .bo-swatch{width:72px;min-height:72px;flex:0 0 72px;font-size:12.5px}
  .bo-res-formula{font-size:16px}
  .bo-res-prop{font-size:14.5px}
  .bo-res-use{font-size:14px}
  .bo-itten{grid-template-columns:1fr;gap:12px}
  .bo-wheel-svg{width:176px;height:176px}
  .bo-itten-cards{grid-template-columns:1fr 1fr;gap:7px}
  .bo-grid,
  .bo-grid.bo-grid-4,
  .bo-grid.bo-grid-5{grid-template-columns:repeat(2,1fr);gap:8px}
  .bo-card img{aspect-ratio:4/3}
  .bo-card-cap{padding:6px 8px 7px}
  .bo-card-cap b{font-size:14px}
  .bo-card-cap span{font-size:13px}
  .bo-strip{grid-template-columns:repeat(3,1fr);gap:6px}
  .bo-step span{font-size:13px;padding:5px 4px}
  .bo-actions{gap:7px;margin-top:11px}
  .bo-btn,.bo-btn-sec{width:100%;font-size:14.5px;min-height:42px;padding:9px 12px}
}
