/* =============================================================
   СОВЕТ ДИРЕКТОРОВ — знакомство, рождение, заседание.
   Одна колонка 640px, палитра раздела, шрифт Onest.
   ============================================================= */
#councilView {
  position: fixed; inset: 0; z-index: 9400;
  background: #0A0B14;
  overflow-y: auto; overflow-x: hidden;
  font-family: "Onest", system-ui, sans-serif;
  color: #EAECF5;
}
#councilView[hidden] { display: none; }
/* Свечение планеты, оставшееся от заставки, — фон следующих экранов */
#councilView::before {
  content: ""; position: fixed; left: 50%; bottom: -36vh; transform: translateX(-50%);
  width: 130vmin; height: 130vmin; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(111,168,255,.07), transparent 62%);
}

.cl-wrap {
  position: relative; width: 100%; max-width: 640px; margin: 0 auto;
  padding: 56px 20px 48px; min-height: 100vh; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: center;
  align-items: stretch;              /* всё по одной левой границе */
}
.cl-step, .cl-head { width: 100%; }
.cl-head { margin-bottom: 34px; }
.cl-h1 {
  font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -.02em; margin: 0;
}
.cl-sub { font-size: 16px; line-height: 24px; color: #8B90A8; margin: 12px 0 0; }
@media (min-width: 720px) { .cl-h1 { font-size: 36px; line-height: 44px; } }

.cl-step { animation: clIn .24s cubic-bezier(.2,0,0,1) both; }
.cl-step.out { animation: clOut .16s cubic-bezier(.2,0,0,1) both; }
@keyframes clIn  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }
@keyframes clOut { to { opacity: 0; transform: translateY(-6px); } }

.cl-q { font-size: 22px; line-height: 30px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 20px; }

.cl-input {
  width: 100%; box-sizing: border-box; margin-bottom: 12px;
  background: #12131F; border: 1px solid rgba(255,255,255,.07); border-radius: 14px;
  padding: 15px 16px; font-family: inherit; font-size: 16px; color: #EAECF5;
  min-height: 52px; transition: border-color .16s cubic-bezier(.2,0,0,1);
}
.cl-input::placeholder { color: #5A5F78; }
.cl-input:focus { outline: none; border-color: rgba(111,168,255,.5); }

.cl-hints { background: #12131F; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.cl-hints[hidden] { display: none; }
.cl-hint {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: #EAECF5; font-family: inherit; font-size: 14.5px; line-height: 20px;
  padding: 12px 16px; cursor: pointer; min-height: 44px;
}
.cl-hint:hover { background: rgba(255,255,255,.05); }

.cl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cl-tile {
  background: #12131F; border: 1px solid rgba(255,255,255,.07); border-radius: 14px;
  color: #EAECF5; font-family: inherit; font-size: 16px; font-weight: 500;
  padding: 20px 16px; cursor: pointer; min-height: 64px; text-align: left;
  transition: border-color .16s cubic-bezier(.2,0,0,1), background .16s cubic-bezier(.2,0,0,1);
}
.cl-tile:hover { border-color: rgba(255,255,255,.2); }
.cl-tile.on { border-color: #6FA8FF; }
@media (max-width: 420px) { .cl-tiles { grid-template-columns: 1fr; } }

.cl-rows { display: flex; flex-direction: column; gap: 10px; }
.cl-row {
  display: block; text-align: left; background: #12131F;
  border: 1px solid rgba(255,255,255,.07); border-radius: 14px;
  padding: 18px 18px; cursor: pointer; font-family: inherit; min-height: 60px;
  transition: border-color .16s cubic-bezier(.2,0,0,1);
}
.cl-row:hover { border-color: rgba(255,255,255,.2); }
.cl-row.on { border-color: #6FA8FF; }
.cl-row-t { display: block; font-size: 17px; font-weight: 500; color: #EAECF5; }
.cl-row-n { display: block; font-size: 14.5px; color: #8B90A8; margin-top: 4px; }

.cl-next {
  background: #6FA8FF; color: #0A0B14; border: none; border-radius: 999px;
  padding: 0 30px; min-height: 52px; font-family: inherit; font-size: 16px; font-weight: 500;
  cursor: pointer; margin-top: 8px;
  transition: transform .16s cubic-bezier(.2,0,0,1);
}
.cl-next:hover { transform: translateY(-1px); }
.cl-next:focus-visible, .cl-skip:focus-visible { outline: 2px solid #6FA8FF; outline-offset: 3px; }
.cl-pair { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cl-skip {
  background: none; border: none; color: #8B90A8; font-family: inherit; font-size: 16px;
  cursor: pointer; min-height: 44px; padding: 0 8px;
}
.cl-skip:hover { color: #EAECF5; }

.cl-dots { display: flex; gap: 7px; justify-content: center; margin-top: 40px; }
.cl-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.14); }
.cl-dots i.past { background: rgba(255,255,255,.3); }
.cl-dots i.on { background: #6FA8FF; width: 20px; border-radius: 3px; }

/* Анимация «Рождение Совета» удалена: после онбординга — прямой переход
   в Super Business, без заставки. */

@media (prefers-reduced-motion: reduce) {
  .cl-step { animation: none; }
  .cl-next:hover { transform: none; }
}

/* Обязательное поле: подсвечиваем, а не молчим */
.cl-input.bad { border-color: #FF8A8A; }

/* =============================================================
   ОНБОРДИНГ (новый): ниша, боль, согласие. Знаки — шестиугольники.
   Градиент #4DA6FF → #A855F7, стекло, свечения.
   ============================================================= */

/* Шестиугольный знак: форма через clip-path, заливка градиентом, свечение. */
.cl-g {
  --hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; color: #E6ECFF;
  background: linear-gradient(135deg, rgba(77,166,255,.20), rgba(168,85,247,.20));
  clip-path: var(--hex);
  filter: drop-shadow(0 0 9px rgba(77,166,255,.32));
}
.cl-g svg { width: 22px; height: 22px; display: block; }

/* Приветствие и финал — по центру, крупный знак сверху */
.cl-welcome { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cl-welcome-mark { margin-bottom: 16px; }
.cl-welcome-mark .cl-g {
  width: 68px; height: 68px;
  background: linear-gradient(135deg, rgba(77,166,255,.28), rgba(168,85,247,.28));
  filter: drop-shadow(0 0 22px rgba(77,166,255,.4)) drop-shadow(0 0 40px rgba(168,85,247,.28));
}
.cl-welcome-mark .cl-g svg { width: 32px; height: 32px; }
.cl-welcome .cl-next { margin-top: 26px; }

/* Крупная кнопка — под градиент проекта, со свечением */
.cl-next {
  background: linear-gradient(135deg, #4DA6FF, #A855F7); color: #fff;
  box-shadow: 0 10px 30px rgba(77,166,255,.28), 0 0 40px rgba(168,85,247,.18),
              inset 0 1px 0 rgba(255,255,255,.28);
}
.cl-next:hover { filter: brightness(1.06); }

/* Карточки ниш */
.cl-niches { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .cl-niches { grid-template-columns: 1fr; } }
.cl-niche {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: #12131F; border: 1px solid rgba(255,255,255,.07); border-radius: 16px;
  padding: 16px; cursor: pointer; font-family: inherit; min-height: 76px;
  transition: border-color .16s cubic-bezier(.2,0,0,1), transform .16s cubic-bezier(.2,0,0,1),
              background .16s cubic-bezier(.2,0,0,1);
}
.cl-niche:hover { border-color: rgba(255,255,255,.2); transform: translateY(-2px); }
.cl-niche.on { border-color: transparent; box-shadow: 0 0 0 1px rgba(77,166,255,.5),
  0 10px 30px rgba(77,166,255,.16); }
.cl-niche-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cl-niche-t { font-size: 15.5px; font-weight: 600; color: #EAECF5; letter-spacing: -.01em; }
.cl-niche-h { font-size: 13px; line-height: 18px; color: #8B90A8; }

/* Поле «Другое» */
.cl-other { margin-top: 12px; display: flex; gap: 10px; align-items: stretch; }
.cl-other[hidden] { display: none; }
.cl-other .cl-input { margin-bottom: 0; }
.cl-other .cl-next { margin-top: 0; white-space: nowrap; }

/* Пояснение под полями */
.cl-note { font-size: 13px; line-height: 19px; color: #8B90A8; margin: 2px 0 18px; }

/* Строка с шестиугольным знаком (боль) */
.cl-row-ico { display: flex; align-items: center; gap: 14px; }
.cl-row-ico .cl-row-t { margin: 0; }

/* Согласие 152-ФЗ */
.cl-check {
  display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start;
  background: #12131F; border: 1px solid rgba(255,255,255,.07); border-radius: 16px;
  padding: 18px; cursor: pointer; margin-bottom: 14px;
  transition: border-color .16s cubic-bezier(.2,0,0,1);
}
.cl-check.bad { border-color: #FF8A8A; }
.cl-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.cl-check-box {
  width: 24px; height: 24px; border-radius: 8px; margin-top: 1px;
  border: 1.5px solid rgba(255,255,255,.2); background: #0A0B14;
  display: grid; place-items: center; transition: all .16s cubic-bezier(.2,0,0,1);
}
.cl-check-box::after {
  content: ""; width: 11px; height: 6px; border-left: 2px solid #fff;
  border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0);
  margin-top: -2px; transition: transform .16s cubic-bezier(.2,0,0,1);
}
.cl-check input:checked + .cl-check-box {
  background: linear-gradient(135deg, #4DA6FF, #A855F7); border-color: transparent;
}
.cl-check input:checked + .cl-check-box::after { transform: rotate(-45deg) scale(1); }
.cl-check input:focus-visible + .cl-check-box { outline: 2px solid #6FA8FF; outline-offset: 2px; }
.cl-check-t { font-size: 14px; line-height: 21px; color: #B7BCce; }
.cl-check-t a { color: #6FA8FF; text-decoration: none; }
.cl-check-t a:hover { text-decoration: underline; }
.cl-err { font-size: 13.5px; color: #FF8A8A; margin: 0 0 12px; }
.cl-err[hidden] { display: none; }
