/* ==========================================================================
   Личный кабинет мастера. Использует переменные и утилиты из site.css.
   Адаптив: mobile-first; десктоп (боковое меню) — @media (min-width:900px);
   мобильные шапка/нижняя навигация — @media (max-width:899px)
   (так их display не конфликтует с утилитами .only-* из site.css).
   ========================================================================== */

.cab-body { margin: 0; background: var(--bg); }

/* ------- Каркас ------- */
.cab-main { display: flex; flex-direction: column; min-height: 100vh; min-width: 0; flex: 1; }
.cab-content { flex: 1; }
.cab-page { padding: 20px 16px 104px; }

.cab-iconbtn {
  flex: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border);
  background: #fff; color: var(--text-muted); display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer;
}
.cab-iconbtn:hover { background: var(--tint-2); }

/* ------- Боковое меню (десктоп) ------- */
.cab-side {
  flex: none; width: 264px; min-height: 100vh; position: sticky; top: 0; align-self: flex-start;
  background: #fff; border-right: 1px solid var(--border-soft); flex-direction: column; padding: 20px 16px;
}
.cab-side__add { height: 48px; box-shadow: 0 6px 16px -8px rgba(181, 83, 46, .6); }
.cab-nav { margin-top: 18px; display: flex; flex-direction: column; gap: 3px; }
.cab-nav__group {
  margin: 14px 0 4px; padding: 0 12px; font: 600 11px 'Golos Text';
  letter-spacing: .13em; text-transform: uppercase; color: #A79F92;
}
.cab-nav__group:first-child { margin-top: 6px; }
.cab-nav__item {
  display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 11px;
  text-decoration: none; color: #55524C; font: 500 14.5px 'Golos Text';
}
.cab-nav__item .ic { color: #8A857C; }
.cab-nav__item:hover { background: var(--tint-2); }
.cab-nav__item.is-active { background: var(--tint); color: var(--accent-deep); font-weight: 600; }
.cab-nav__item.is-active .ic { color: var(--accent); }

.cab-account {
  margin-top: auto; display: flex; align-items: center; gap: 11px; padding-top: 16px;
  border-top: 1px solid #EFEBE3;
}
.cab-account__logo, .cab-top__logo {
  flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font: 700 14px 'Golos Text'; letter-spacing: .02em;
}
.cab-account__text, .cab-top__text { min-width: 0; flex: 1; }
.cab-account__name, .cab-top__name { display: block; font: 600 14.5px/1.1 'Golos Text'; color: var(--text); }
.cab-account__sub, .cab-top__sub { display: block; margin-top: 2px; font: 400 12px/1 'Golos Text'; color: var(--text-faint); }

/* ------- Мобильная шапка ------- */
.cab-top {
  position: sticky; top: 0; z-index: 12; height: 64px; align-items: center; gap: 12px; padding: 0 16px;
  background: rgba(250, 249, 247, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-soft);
}

/* ------- Мобильная нижняя навигация ------- */
.cab-bottom {
  position: sticky; bottom: 0; z-index: 12; height: 76px; align-items: stretch; padding: 0 4px;
  background: #fff; border-top: 1px solid #E7E2DA; box-shadow: 0 -6px 20px -8px rgba(31, 30, 28, .12);
}
.cab-bottom__item {
  flex: 1; text-decoration: none; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; padding: 8px 2px 0; color: var(--text-faint);
  font: 500 10.5px 'Golos Text';
}
.cab-bottom__item .ic { color: var(--text-faint); }
.cab-bottom__item.is-active, .cab-bottom__item.is-active .ic { color: var(--accent); }
.cab-bottom__item.is-active { font-weight: 600; }
.cab-bottom__center { flex: none; width: 64px; display: flex; align-items: center; justify-content: center; }
.cab-bottom__add {
  width: 56px; height: 56px; margin-top: -14px; border-radius: 18px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  border: 3px solid var(--bg); box-shadow: 0 8px 18px -6px rgba(181, 83, 46, .6);
}
.cab-bottom__add:active { background: var(--accent-deep); }

/* ------- «Мои проекты» ------- */
.projects__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.projects__title { margin: 0; font: 700 24px/1.1 'Golos Text'; color: var(--text); letter-spacing: -.015em; }
.projects__count { margin-top: 6px; font: 400 13.5px 'Golos Text'; color: var(--text-faint); }
.projects__add { flex: none; height: 44px; padding: 0 17px; }

.projects__group { margin-top: 24px; display: flex; align-items: center; gap: 9px; }
.projects__group-label { font: 600 11px 'Golos Text'; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep); }
.projects__group-label--muted { color: #A79F92; }
.projects__group-line { flex: 1; height: 1px; background: #EAE5DC; }
.projects__group-num { font: 500 11px 'Golos Text'; color: #A79F92; }
.projects__grid { margin-top: 14px; display: grid; grid-template-columns: 1fr; gap: 14px; }

/* ------- Карточка проекта ------- */
.pcard {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden; box-shadow: 0 1px 3px rgba(31, 30, 28, .05);
}
.pcard:hover { border-color: #D7B9AC; box-shadow: 0 6px 20px -10px rgba(31, 30, 28, .25); }
.pcard--draft { background: #FBFAF8; border-color: #E7E2DA; }
.pcard__cover {
  position: relative; aspect-ratio: 16/10;
  background: repeating-linear-gradient(135deg, #EDE7DF 0 11px, #E6DFD5 11px 22px);
}
.pcard--draft .pcard__cover { filter: saturate(.7); opacity: .86; }
.pcard__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard__rating {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px;
  font: 600 12.5px 'Golos Text'; color: #2E7D53; background: #E4F1E9; border: 1px solid #C5E3D2;
  border-radius: 999px; padding: 5px 10px 5px 9px; box-shadow: 0 1px 3px rgba(31, 30, 28, .1);
}
.pcard__collect {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px;
  font: 500 12px 'Golos Text'; color: var(--accent-deep); background: rgba(255, 255, 255, .94);
  border: 1px solid #E7D9CF; border-radius: 999px; padding: 5px 11px 5px 10px; box-shadow: 0 1px 3px rgba(31, 30, 28, .08);
}
.pcard__body { padding: 14px 15px 13px; }
.pcard__status {
  display: inline-flex; align-items: center; gap: 5px; font: 600 11px 'Golos Text'; color: #2E7D53;
  background: #E9F3ED; border-radius: 999px; padding: 4px 9px 4px 8px;
}
.pcard__status .pcard__dot { width: 6px; height: 6px; border-radius: 50%; background: #3B9A62; }
.pcard__status--draft { color: #8A857C; background: #F1EDE6; }
.pcard__status--draft .pcard__dot { background: #B7AF9F; }
.pcard__title { margin-top: 11px; font: 600 17px/1.25 'Golos Text'; color: var(--text); }
.pcard--draft .pcard__title { color: #4A4740; }
.pcard__meta { margin-top: 5px; display: flex; align-items: center; gap: 5px; font: 400 13px 'Golos Text'; color: var(--text-faint); }
.pcard__sep { color: #D8D1C5; }
.pcard__desc { margin-top: 9px; font: 400 13.5px/1.45 'Golos Text'; color: #5E5A52; }
.pcard--draft .pcard__desc { color: var(--text-faint); }
.pcard__main { flex: 1 1 auto; display: block; text-decoration: none; color: inherit; }
.pcard__foot {
  padding: 12px 15px 13px; border-top: 1px solid #EFEBE3;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pcard__action { display: inline-flex; align-items: center; gap: 7px; font: 600 13px 'Golos Text'; color: var(--accent-deep); text-decoration: none; }
.pcard__action:hover { text-decoration: underline; }
.pcard__open { display: inline-flex; align-items: center; gap: 5px; font: 500 13px 'Golos Text'; color: var(--text-faint); text-decoration: none; }
.pcard__waiting {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px;
  font: 500 12px 'Golos Text'; color: #7A756B; background: rgba(255, 255, 255, .94);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 11px; box-shadow: 0 1px 3px rgba(31, 30, 28, .08);
}
.pcard__waiting .ic { color: #B0A99B; }

/* ------- Пустое состояние ------- */
.empty-state {
  margin-top: 8px; min-height: 46vh; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 32px 24px;
}
.empty-state__icon {
  width: 64px; height: 64px; border-radius: 18px; background: #F1ECE4; color: #B0A99B;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.empty-state__title { font: 600 19px 'Golos Text'; color: var(--text); }
.empty-state__text { margin: 8px 0 20px; max-width: 34ch; font: 400 14.5px/1.55 'Golos Text'; color: var(--text-faint); }

/* ------- Вход ------- */
.login { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.login__card {
  width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--border); border-radius: 22px;
  padding: 28px 26px; box-shadow: var(--shadow-card); text-align: center;
}
.login__logo {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 12px; background: var(--accent); color: #fff; font: 700 17px 'Golos Text'; letter-spacing: .02em;
}
.login__title { margin: 16px 0 0; font: 700 22px 'Golos Text'; color: var(--text); }
.login__sub { margin: 6px 0 0; font: 400 14px 'Golos Text'; color: var(--text-faint); }
.login__error {
  margin-top: 18px; padding: 11px 13px; border-radius: 12px; background: #FBEDED; border: 1px solid #F3D6D6;
  font: 500 13.5px 'Golos Text'; color: #C43D3D; text-align: left;
}
.login__form { margin-top: 20px; text-align: left; }
.login__label { display: block; font: 600 12.5px 'Golos Text'; color: #55524C; margin-bottom: 7px; }
.login__label + .login__input { margin-bottom: 14px; }
.login__input {
  width: 100%; height: 50px; border: 1px solid var(--border); border-radius: 13px; background: #fff;
  padding: 0 15px; font: 500 15px 'Golos Text'; color: var(--text);
}
.login__input:focus { border-color: var(--accent); outline: none; }
.login__submit { margin-top: 8px; height: 52px; }
.login__hint { margin-top: 16px; font: 400 13px 'Golos Text'; color: var(--text-faint); text-align: center; }

/* ==========================================================================
   Мобильный (< 900px): показ шапки и нижней навигации
   ========================================================================== */
@media (max-width: 899px) {
  .cab-top { display: flex; }
  .cab-bottom { display: flex; }
}

/* ==========================================================================
   Десктоп (≥ 900px): боковое меню, сетка, отступы
   ========================================================================== */
@media (min-width: 900px) {
  .cab { display: flex; align-items: flex-start; }
  .cab-side { display: flex; }
  .cab-page { max-width: 1100px; margin: 0 auto; padding: 28px 40px 48px; }
  .cab-page.projects { margin: 0; }  /* «Мои проекты» — по левому краю, не по центру */
  .projects__title { font-size: 28px; }
  .projects__grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* ==========================================================================
   Форма проекта (добавление/редактирование)
   ========================================================================== */
.form-head { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.form-back {
  flex: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border);
  background: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.form-back:hover { background: var(--tint-2); }
.form-back .ic { transform: rotate(180deg); }
.form-head__title { margin: 0; font: 700 24px/1.1 'Golos Text'; color: var(--text); letter-spacing: -.015em; }

.pform { max-width: 640px; }

.field { margin-bottom: 16px; }
.field .field { margin-bottom: 0; }
.field__label { display: block; font: 600 12.5px 'Golos Text'; color: #55524C; margin-bottom: 7px; }
.field__hint { font-weight: 400; color: #9E998F; }
.field__sublabel { display: block; font: 500 12px 'Golos Text'; color: var(--text-faint); margin-bottom: 6px; }
.field__input {
  width: 100%; height: 50px; border: 1px solid var(--border); border-radius: 13px; background: #fff;
  padding: 0 15px; font: 500 15px 'Golos Text'; color: var(--text);
}
.field__area {
  width: 100%; min-height: 150px; resize: vertical; border: 1px solid var(--border); border-radius: 13px;
  background: #fff; padding: 13px 15px; font: 400 14.5px/1.6 'Golos Text'; color: var(--text);
}
.field__input:focus, .field__area:focus { border-color: var(--accent); outline: none; }
.field__err { margin-top: 6px; font: 500 12.5px 'Golos Text'; color: #C43D3D; }
.field-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* Редактор «ключевых фактов» — динамические пары ключ→значение */
.facts-ed { display: flex; flex-direction: column; gap: 9px; }
.facts-ed__row { display: flex; align-items: center; gap: 8px; }
.facts-ed__k { flex: 0 0 40%; }
.facts-ed__v { flex: 1 1 auto; min-width: 0; }
.facts-ed__del {
  flex: none; width: 42px; height: 50px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; color: var(--text-faint); font: 400 22px/1 'Golos Text'; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all .12s;
}
.facts-ed__del:hover { background: #FBF1EC; border-color: #E3C3B6; color: var(--accent-deep); }
.facts-ed__foot { margin-top: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.facts-ed__add {
  display: inline-flex; align-items: center; gap: 6px; border: 1px dashed #D3B7A9; border-radius: 12px;
  padding: 9px 14px; background: #fff; color: var(--accent-deep); font: 600 13px 'Golos Text'; cursor: pointer;
  transition: background .12s;
}
.facts-ed__add:hover { background: var(--tint); }
.facts-ed__add .ic { color: var(--accent); }
.facts-ed__hint { font: 400 12.5px 'Golos Text'; color: var(--text-faint); }

.pform__photos-soon {
  border: 1.5px dashed #D3B7A9; border-radius: 13px; background: #FBF6F3; padding: 16px;
  font: 400 13px/1.5 'Golos Text'; color: var(--accent-deep);
}

.form-actions__publish .ic { color: #fff; }

/* десктоп: действия инлайн */
.form-actions { margin-top: 28px; gap: 12px; align-items: center; justify-content: space-between; }
.form-actions .btn { height: 52px; }
/* auto-margin забирает свободное место: «Удалить» уходит влево, остальные вправо */
.form-actions .btn-del { margin-right: auto; }

/* мобильный: липкая панель действий.
   position:fixed, а не sticky с отрицательными полями: форма ограничена
   max-width 640px, поэтому на планшетных ширинах панель не дотягивалась до
   правого края экрана. Привязка к вьюпорту даёт полную ширину при любом экране.
   Фон — цвет страницы (не белый, иначе читается как плашка), но непрозрачный,
   чтобы контент не просвечивал под кнопками. */
.form-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 12;
  flex-direction: column; gap: 10px;
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--border-soft);
  box-shadow: 0 -6px 20px -10px rgba(31, 30, 28, .10);
}
.form-sticky__row { display: flex; gap: 10px; }
.form-sticky .btn { flex: 1; height: 52px; }
.form-sticky .form-actions__publish { flex: 1.3; }
.form-sticky .btn-del { align-self: center; padding: 4px 0; }

@media (max-width: 899px) {
  .form-sticky { display: flex; }
  /* Панель фиксированная — резервируем под неё место, иначе она накрывает
     низ формы (104px из .cab-page мало: строка «Удалить проект» подросла). */
  .npflow { padding-bottom: 150px; }
}
@media (min-width: 900px) {
  .form-actions { display: flex; }
  .field-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Поток «Новый проект»: ввод → запись → обработка → форма
   ========================================================================== */
.npflow__top { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.npflow__step { margin-left: auto; font: 500 12.5px 'Golos Text'; color: #A79F92; }
.form-back { cursor: pointer; }

.np-hint {
  display: flex; gap: 11px; background: var(--tint); border: 1px solid #EBD9CF; border-radius: 14px;
  padding: 13px 15px; font: 400 14px/1.5 'Golos Text'; color: #6B5E55; margin-bottom: 20px;
}
.np-hint .ic { flex: none; margin-top: 1px; }
/* Плашка «только чтение» (у проекта есть отзыв) — зелёная. */
.np-hint--lock { background: #E4F1E9; border-color: #C5E3D2; color: #2E7D53; }
.np-hint--lock .ic { color: #2E7D53; }

.np-input-grid { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.np-input-left { display: flex; flex-direction: column; }

/* Микрофон */
.np-mic-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 1px 3px rgba(31,30,28,.05); }
.np-mic { width: 88px; height: 88px; border-radius: 50%; background: var(--accent); border: none; cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px -8px rgba(181,83,46,.6); }
.np-mic:hover { background: var(--accent-deep); }
.np-mic__ic { width: 36px; height: 36px; }
.np-mic__title { margin-top: 12px; font: 600 16.5px 'Golos Text'; color: var(--text); }
.np-mic__sub { margin-top: 3px; font: 400 13px 'Golos Text'; color: #A79F92; }
.np-micerr { margin-top: 12px; display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-radius: 12px; background: #FBEDE9; border: 1px solid #EBD9CF; color: #9E4526; font: 500 13px/1.4 'Golos Text'; }
.np-micerr[hidden] { display: none; }  /* чтобы атрибут hidden перебивал display:flex */
.np-micerr .ic { flex: none; }

/* ======= Экран «Как рассказать об этом проекте?» (поверх паузы) ======= */
.np-howtell { position: fixed; inset: 0; z-index: 30; background: var(--accent); color: #fff; display: flex; flex-direction: column; }
.np-howtell[hidden] { display: none; }   /* hidden перебивает display:flex */

.ht-top { flex: none; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.ht-back { flex: none; width: 40px; height: 40px; border-radius: 11px; border: none; background: rgba(255, 255, 255, .14); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ht-back .ic { transform: rotate(180deg); }  /* ci-chev смотрит вправо — разворачиваем на «назад» */
.ht-top__title { font: 700 17px 'Golos Text'; color: #fff; }
.ht-top__step { margin-left: auto; font: 600 13px 'Golos Text'; color: rgba(255, 255, 255, .7); }

.ht-body { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 16px 8px; }
.ht-title { margin: 0 0 22px; font: 700 26px/1.14 'Golos Text'; letter-spacing: -.02em; color: #fff; }
.ht-group { margin-bottom: 22px; }
.ht-label { margin-bottom: 10px; font: 600 12.5px 'Golos Text'; color: rgba(255, 255, 255, .82); }

/* Сегменты «От чьего имени» */
.ht-seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .15); }
.ht-seg__opt { flex: 1; min-width: 0; border: none; background: transparent; cursor: pointer; border-radius: 11px; padding: 9px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: 'Golos Text'; }
.ht-seg__t { font: 600 14px 'Golos Text'; color: rgba(255, 255, 255, .92); }
.ht-seg__s { font: 400 11.5px 'Golos Text'; color: rgba(255, 255, 255, .6); }
.ht-seg__opt.is-on { background: #fff; box-shadow: 0 1px 3px rgba(31, 30, 28, .18); }
.ht-seg__opt.is-on .ht-seg__t { color: var(--accent-deep); }
.ht-seg__opt.is-on .ht-seg__s { color: #B07A63; }

/* Карточки «Тон рассказа» */
.ht-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ht-card { display: flex; align-items: flex-start; gap: 11px; text-align: left; border-radius: 15px; padding: 12px; cursor: pointer; font-family: 'Golos Text'; background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .3); }
.ht-card__radio { flex: none; margin-top: 1px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); position: relative; }
.ht-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ht-card__t { font: 600 13px 'Golos Text'; color: #fff; white-space: nowrap; }
.ht-card__s { font: 400 12.5px/1.3 'Golos Text'; color: rgba(255, 255, 255, .72); }
.ht-card.is-on { background: #fff; border-color: #fff; }
.ht-card.is-on .ht-card__radio { border-color: var(--accent); }
.ht-card.is-on .ht-card__radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.ht-card.is-on .ht-card__t { color: var(--text); }
.ht-card.is-on .ht-card__s { color: var(--text-faint); }

/* Длина */
.ht-len { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ht-len__opt { display: flex; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 15px; cursor: pointer; font: 600 15px 'Golos Text'; background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .3); color: #fff; }
.ht-len__ic { width: 20px; height: 20px; flex: none; }
.ht-len__opt.is-on { background: #fff; border-color: #fff; color: var(--accent-deep); }

/* Продолжить — на мобайле прибита к низу */
.ht-foot { flex: none; padding: 12px 16px calc(16px + env(safe-area-inset-bottom)); }
.ht-continue { width: 100%; height: 54px; border: none; border-radius: 14px; background: #fff; color: var(--accent-deep); font: 700 16px 'Golos Text'; cursor: pointer; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .28); }
.ht-continue:active { transform: translateY(1px); }

@media (min-width: 900px) {
  .np-howtell { left: 264px; overflow-y: auto; }
  .ht-body { flex: none; overflow: visible; padding: 28px 36px 12px; }
  .ht-top { height: 64px; padding: 0 36px; }
  .ht-title { font-size: 30px; margin-bottom: 26px; }
  .ht-group { max-width: 900px; }
  .ht-cards { grid-template-columns: 1fr 1fr 1fr; }
  .ht-foot { padding: 14px 36px 28px; max-width: 900px; }
}

.np-or { margin: 16px 0 14px; display: flex; align-items: center; gap: 12px; font: 500 13px 'Golos Text'; color: var(--text-faint); }
.np-or span { flex: 1; height: 1px; background: #E7E2D9; }

.np-text { min-height: 150px; }
.np-tip { margin-top: 9px; display: flex; align-items: flex-start; gap: 7px; font: 400 12.5px/1.45 'Golos Text'; color: #A79F92; }
.np-tip .ic { flex: none; margin-top: 1px; color: #C4BDB0; }
.np-process { width: 100%; height: 54px; margin-top: 16px; font-size: 16.5px; }

/* План-вопросы */
.np-plan__label { font: 600 12.5px 'Golos Text'; color: #55524C; margin-bottom: 11px; }
.np-plan { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 6px 15px; box-shadow: 0 1px 2px rgba(31,30,28,.04); }
.np-q { display: flex; gap: 12px; padding: 12px 0; }
.np-q__n { flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--tint); color: var(--accent); display: flex; align-items: center; justify-content: center; font: 700 12.5px 'Golos Text'; }
.np-q__t { font: 500 14.5px/1.45 'Golos Text'; color: var(--text); padding-top: 2px; }
.np-q__hint { font-weight: 400; color: #9E998F; }
.np-plan__foot { margin-top: 11px; text-align: center; font: 400 13px 'Golos Text'; color: #A79F92; }

/* Запись */
.np-rec-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 1px 3px rgba(31,30,28,.05); }
.np-rec__badge { display: inline-flex; align-items: center; gap: 8px; font: 600 13px 'Golos Text'; color: #C43D3D; background: #FBEDED; border: 1px solid #F3D6D6; border-radius: 999px; padding: 7px 14px 7px 12px; }
.np-rec__dot { width: 9px; height: 9px; border-radius: 50%; background: #D64545; animation: np-dot 1s ease-in-out infinite; }
.np-rec__timer { margin-top: 20px; font: 700 44px/1 'Golos Text'; color: var(--text); font-variant-numeric: tabular-nums; }
.np-wave { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 4px; height: 56px; }
.np-wave__bar { width: 5px; height: 48px; border-radius: 3px; background: var(--accent); transform: scaleY(.3); animation: np-wf .9s ease-in-out infinite; }
.np-rec__actions { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 320px; }
.np-stop { width: 100%; height: 56px; border-radius: 14px; background: #1F1E1C; border: none; color: #fff; cursor: pointer; font: 600 16.5px 'Golos Text'; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.np-stop:hover { background: #000; }
.np-stop__sq { width: 16px; height: 16px; border-radius: 4px; background: #fff; }
.np-cancel { width: 100%; height: 38px; background: none; border: none; cursor: pointer; font: 500 14px 'Golos Text'; color: #A79F92; }

/* Обработка */
.np-proc { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.np-spinner { position: relative; width: 88px; height: 88px; }
.np-spinner__ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid #EEE4DC; }
.np-spinner__arc { position: absolute; inset: 0; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--accent); animation: np-spin .9s linear infinite; }
.np-spinner__ic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--accent); animation: np-pulse 1.6s ease-in-out infinite; }
.np-proc__title { margin-top: 26px; font: 700 22px/1.2 'Golos Text'; color: var(--text); }
.np-proc__sub { margin-top: 8px; font: 400 15px/1.5 'Golos Text'; color: var(--text-faint); max-width: 32ch; }
.np-proc__steps { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 280px; text-align: left; }
.np-step { display: flex; align-items: center; gap: 11px; }
.np-step__mark { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #F1ECE4; color: #B0A99B; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.np-step__mark::after { content: '·'; }
.np-step.is-active .np-step__mark { background: var(--tint); color: var(--accent); }
.np-step.is-done .np-step__mark { background: #E4F1E9; color: #2E7D53; }
.np-step.is-done .np-step__mark::after { content: '✓'; }
.np-step__label { font: 500 14.5px 'Golos Text'; color: #A79F92; }
.np-step.is-active .np-step__label { color: var(--text); font-weight: 600; }
.np-step.is-done .np-step__label { color: var(--text); }

@keyframes np-wf { 0%, 100% { transform: scaleY(.28); } 50% { transform: scaleY(1); } }
@keyframes np-spin { to { transform: rotate(360deg); } }
@keyframes np-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: .92; } }
@keyframes np-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

@media (min-width: 900px) {
  .np-input-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
}

/* ------- Фотографии проекта ------- */
.pform__error {
  margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: #FBEDED;
  border: 1px solid #F3D6D6; font: 500 13.5px/1.45 'Golos Text'; color: #C43D3D;
}
.ph-hint { margin: 5px 0 14px; font: 400 12.5px/1.45 'Golos Text'; color: #A79F92; }
.ph-blocks { display: flex; flex-direction: column; gap: 18px; }
.ph-block__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ph-block__label { font: 600 14.5px 'Golos Text'; color: var(--text); }
.ph-badge { font: 600 10.5px 'Golos Text'; border-radius: 999px; padding: 3px 9px; }
.ph-badge--req { color: var(--accent); background: var(--tint); }
.ph-badge--opt { color: #8A857C; background: #F1ECE4; }
.ph-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.ph-thumb { position: relative; width: 120px; height: 120px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.ph-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ph-thumb__del {
  position: absolute; top: 7px; right: 7px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(31, 30, 28, .55); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 17px; line-height: 1;
}
.ph-thumb__del input { position: absolute; opacity: 0; width: 0; height: 0; }
.ph-thumb:has(input:checked) { opacity: .45; outline: 2px solid #C43D3D; outline-offset: -2px; }
.ph-thumb:has(input:checked) .ph-thumb__del { background: #C43D3D; }
.ph-add {
  width: 120px; height: 120px; border-radius: 14px; border: 1.5px dashed #D3B7A9; background: #FBF6F3;
  color: var(--accent); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; cursor: pointer; font: 600 11.5px 'Golos Text';
}
.ph-add:hover { background: #F6EBE4; }

/* ------- Тост «Проект опубликован» ------- */
.toast { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 24px; }
.toast__overlay { position: absolute; inset: 0; background: rgba(31, 30, 28, .5); }
.toast__card {
  position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 22px;
  padding: 24px 20px 20px; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .4); text-align: center;
}
.toast__check {
  width: 60px; height: 60px; border-radius: 50%; background: #E4F1E9; color: #2E7D53;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.toast__title { font: 700 21px 'Golos Text'; color: var(--text); }
.toast__text { margin: 7px 0 0; font: 400 14.5px/1.55 'Golos Text'; color: var(--text-faint); }
.toast__primary { margin: 18px 0 10px; height: 52px; }
.toast .btn--block + .btn--block { margin-top: 10px; }
.toast__card .btn--ghost { height: 48px; }

/* Лёгкий success-бар «Изменения сохранены» — сам появляется и гаснет (CSS). */
.savedbar {
  position: fixed; top: 20px; left: 50%; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  background: #E4F1E9; border: 1px solid #C5E3D2; color: #2E7D53;
  padding: 11px 18px; border-radius: 12px; font: 600 14px 'Golos Text';
  box-shadow: 0 8px 24px -10px rgba(31, 30, 28, .25);
  animation: savedbar 3.4s ease forwards;
}
.savedbar .ic { flex: none; }
@keyframes savedbar {
  0% { opacity: 0; transform: translate(-50%, -12px); }
  8% { opacity: 1; transform: translate(-50%, 0); }
  85% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -12px); visibility: hidden; }
}

/* ------- Поп-ап описания фото ------- */
.ph-thumb__del { border: none; padding: 0; }  /* класс используется и на label, и на button */
.ph-thumb--staged { outline: 2px solid var(--tint); outline-offset: -2px; }

.ph-modal { position: fixed; inset: 0; z-index: 42; display: flex; align-items: flex-end; justify-content: center; }
.ph-modal[hidden] { display: none; }
.ph-modal__overlay { position: absolute; inset: 0; background: rgba(31, 30, 28, .62); }
.ph-modal__card {
  position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 22px 22px 0 0;
  padding: 16px 16px 20px; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .4);
}
.ph-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ph-modal__title { font: 700 17px 'Golos Text'; color: var(--text); }
.ph-modal__x {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: #fff;
  color: var(--text-muted); font-size: 18px; line-height: 1; cursor: pointer;
}
.ph-modal__preview {
  width: 100%; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden; border: 1px solid var(--border);
  background: #F2EFEA;
}
.ph-modal__preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-modal__label { margin-top: 16px; }
.ph-modal__note { margin-top: 7px; font: 400 14px/1.4 'Golos Text'; color: #A79F92; }
.ph-modal__actions { margin-top: 16px; display: flex; gap: 10px; }
.ph-modal__actions .btn { flex: 1; height: 52px; }
.ph-modal__actions .btn--accent { flex: 1.2; }

/* --- Удаление проекта: кнопка-надпись в ряду действий + поп-ап подтверждения --- */
.btn--danger { background: #C43D3D; border-color: #C43D3D; color: #fff; }
.btn--danger:hover { background: #AC3232; border-color: #AC3232; }
.btn--danger:disabled { background: #E4C2C2; border-color: #E4C2C2; cursor: not-allowed; }

/* Не .btn — это текстовая кнопка без заливки и рамки. */
.btn-del {
  background: none; border: none; padding: 0; cursor: pointer;
  font: 600 14px 'Golos Text'; color: #C43D3D; white-space: nowrap;
}
.btn-del:hover { color: #A93434; text-decoration: underline; }

.delm__name { margin-top: 4px; font: 600 17px/1.3 'Golos Text'; color: var(--text); }
.delm__list { margin: 12px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.delm__list li { font: 400 14px/1.45 'Golos Text'; color: var(--text-muted); }
.delm__ack { margin-top: 16px; }

@media (min-width: 900px) {
  .ph-modal { align-items: center; padding: 24px; }
  .ph-modal__card { border-radius: 22px; }
}

/* ------- Страница «Ссылка для отзыва» ------- */
.rl-card { max-width: 640px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm); }
.rl-eyebrow { font: 600 11px 'Golos Text'; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep); }
.rl-project { margin-top: 6px; font: 700 20px/1.2 'Golos Text'; color: var(--text); }
.rl-text { margin: 12px 0 0; font: 400 14.5px/1.6 'Golos Text'; color: #5E5A52; }
.rl-row { margin-top: 18px; display: flex; gap: 10px; }
.rl-input { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text-muted); }
.rl-copy { flex: none; height: 50px; }
.rl-open { margin-top: 14px; display: inline-flex; align-items: center; gap: 7px; font: 600 14px 'Golos Text'; color: var(--accent-deep); text-decoration: none; }
.rl-open:hover { text-decoration: underline; }

@media (max-width: 899px) {
  .rl-row { flex-direction: column; }
  .rl-copy { height: 50px; }
}

/* ==========================================================================
   Раздел «Отзывы»
   ========================================================================== */
.reviews__title { margin: 0; font: 700 24px/1.1 'Golos Text'; color: var(--text); letter-spacing: -.02em; }

/* Статистика */
.rvstats { margin-top: 18px; max-width: 520px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px 18px; box-shadow: var(--shadow-sm); }
.rvstats__top { display: flex; align-items: center; gap: 16px; }
.rvstats__avg { flex: none; text-align: center; }
.rvstats__avg-num { font: 700 44px/1 'Golos Text'; color: var(--text); letter-spacing: -.02em; }
.rvstats__avg-stars { margin-top: 7px; display: flex; gap: 2px; color: #E0912F; justify-content: center; }
.rvstats__dist { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.rvstats__row { display: flex; align-items: center; gap: 8px; }
.rvstats__n { width: 9px; font: 500 11px 'Golos Text'; color: #A79F92; text-align: right; }
.rvstats__bar { flex: 1; height: 6px; border-radius: 3px; background: #EEE8DF; overflow: hidden; }
.rvstats__bar span { display: block; height: 100%; background: #E0912F; border-radius: 3px; }
.rvstats__foot { margin-top: 16px; padding-top: 15px; border-top: 1px solid #EFEBE3; display: flex; }
.rvstats__stat { flex: 1; text-align: center; }
.rvstats__stat-num { font: 700 19px 'Golos Text'; color: var(--text); }
.rvstats__stat-num--accent { color: var(--accent); }
.rvstats__stat-label { display: block; margin-top: 3px; font: 400 12.5px 'Golos Text'; color: #8A857C; }
.rvstats__vdiv { width: 1px; background: #EFEBE3; }

/* Группы и сетка */
.reviews__group { margin-top: 28px; display: flex; align-items: center; gap: 9px; }
.reviews__group-label { font: 600 11px 'Golos Text'; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep); }
.reviews__group-label--muted { color: #A79F92; }
.reviews__group-line { flex: 1; height: 1px; background: #EAE5DC; }
.reviews__group-num { font: 500 11px 'Golos Text'; color: #A79F92; }
.reviews__note { margin-top: 10px; font: 400 12.5px/1.45 'Golos Text'; color: #A79F92; }
.reviews__grid { margin-top: 14px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.reviews__empty { margin-top: 14px; background: #fff; border: 1px dashed var(--border); border-radius: 16px; padding: 20px; font: 400 14.5px 'Golos Text'; color: var(--text-muted); }

/* Карточка отзыва */
.rvcard { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.rvcard__head { display: flex; align-items: center; gap: 11px; }
.rvcard__ava { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; font: 600 15px 'Golos Text'; text-transform: uppercase; }
.rvcard__id { min-width: 0; flex: 1; }
.rvcard__name { display: flex; align-items: center; gap: 6px; font: 600 15px/1.2 'Golos Text'; color: var(--text); }
.rvcard__verified { color: #2E7D53; }
.rvcard__loc { margin-top: 3px; display: flex; align-items: center; gap: 5px; font: 400 12.5px 'Golos Text'; color: #8A857C; }
.rvcard__stars { flex: none; display: flex; gap: 1px; }
.rvstar { color: #D6CFC4; display: inline-flex; }
.rvstar.is-on { color: #E0912F; }
.rvstar.is-on-muted { color: #C4BDB0; }
.rvcard__text { margin: 13px 0 0; font: 400 14.5px/1.55 'Golos Text'; color: var(--text-body); }
.rvcard__chips { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 7px; }
.rvcard__chip { font: 500 12px 'Golos Text'; color: var(--accent-deep); background: var(--tint); border-radius: 999px; padding: 5px 11px; }
.rvcard__photos { margin-top: 13px; display: flex; gap: 8px; }
.rvcard__photo { width: 68px; height: 68px; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.rvcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.rvcard__foot { margin-top: auto; padding-top: 15px; border-top: 1px solid #EFEBE3; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rvcard__text { margin-bottom: 2px; }
.rvcard__date { font: 400 12.5px 'Golos Text'; color: #A79F92; }
.rvcard__actions { display: flex; align-items: center; gap: 7px; }
.rvcard__help { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #E7E2DA; background: #fff; color: #A79F92; cursor: pointer; font: 700 13px 'Golos Text'; display: inline-flex; align-items: center; justify-content: center; }
.rvcard__help:hover { background: #F1ECE4; }
.rvcard__hide { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 10px; border: 1px solid #E7E2DA; background: #fff; color: #55524C; cursor: pointer; font: 600 12.5px 'Golos Text'; }
.rvcard__hide .ic { color: #8A857C; }
.rvcard__hide:hover { background: #F1ECE4; }

/* Скрытая карточка */
.rvcard--hidden { background: #F6F4F0; border-color: #E7E2DA; opacity: .92; }
.rvcard__ava--muted { background: #ECE7DF; color: #8A857C; }
.rvcard__name--muted { color: #6B675F; }
.rvcard__text--muted { color: #8A857C; }
.rvcard__hidden-note { display: inline-flex; align-items: center; gap: 6px; font: 400 12px 'Golos Text'; color: #A79F92; }
.rvcard__form { display: inline; }
.rvcard__show { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 10px; border: 1px solid #D7B9AC; background: #fff; color: var(--accent-deep); cursor: pointer; font: 600 12.5px 'Golos Text'; }
.rvcard__show:hover { background: var(--tint); }

/* Поп-апы раздела отзывов */
.rvpop { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; }
.rvpop[hidden] { display: none; }
.rvpop__overlay { position: absolute; inset: 0; background: rgba(31, 30, 28, .5); }
.rvpop__card { position: relative; width: 100%; max-width: 420px; background: #fff; border-radius: 22px; padding: 24px 22px 20px; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .4); }
.rvpop__head { display: flex; align-items: center; gap: 12px; }
.rvpop__head--between { justify-content: space-between; align-items: flex-start; }
.rvpop__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #F1ECE4; color: #8A857C; display: flex; align-items: center; justify-content: center; }
.rvpop__title { font: 700 19px/1.25 'Golos Text'; color: var(--text); }
.rvpop__x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--text-muted); font-size: 18px; line-height: 1; cursor: pointer; }
.rvpop__text { margin: 14px 0 0; font: 400 14px/1.55 'Golos Text'; color: #55524C; }
.rvpop__actions { margin-top: 18px; display: flex; gap: 10px; }
.rvpop__actions .btn { flex: 1; height: 50px; }
.rvpop__form { flex: 1.2; }
.rvpop__confirm { width: 100%; height: 50px; border-radius: 13px; background: #1F1E1C; border: 1px solid #1F1E1C; color: #fff; }
.rvpop__confirm:hover { background: #000; }
.rvhelp { margin-top: 14px; display: flex; flex-direction: column; gap: 11px; }
.rvhelp__item { display: flex; gap: 10px; align-items: flex-start; font: 400 13.5px/1.5 'Golos Text'; color: var(--text-body); }
.rvhelp__dot { flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--tint); position: relative; margin-top: 1px; }
.rvhelp__dot::after { content: ''; position: absolute; inset: 0; margin: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.rvhelp__note { margin-top: 16px; padding: 12px 13px; background: #F6F4F0; border-radius: 12px; font: 400 13px/1.5 'Golos Text'; color: #6B675F; }

/* ==========================================================================
   Отзывы — десктоп (по левому краю, 3 карточки в ряд)
   ========================================================================== */
@media (min-width: 900px) {
  .cab-page.reviews { max-width: 1100px; margin: 0; }  /* блоки по левому краю, не по центру */
  .reviews__title { font-size: 30px; }
  .rvstats { padding: 22px 24px; }
  .rvstats__top { gap: 26px; }
  .rvstats__avg-num { font-size: 52px; }
  .reviews__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 899px) {
  .rvpop { align-items: flex-end; padding: 0; }
  .rvpop__card { max-width: 100%; border-radius: 22px 22px 0 0; }
}

/* Обрезка длинного текста отзыва + «Читать полностью» */
.rvcard__textwrap { position: relative; margin-top: 13px; }
.rvcard__textwrap .rvcard__text { margin: 0; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rvcard__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff); pointer-events: none; opacity: 0; }
.rvcard__textwrap.is-clamped .rvcard__fade { opacity: 1; }
.rvcard__more { margin-top: 8px; margin-bottom: 12px; display: inline-flex; align-items: center; gap: 5px; background: none; border: none; padding: 0; cursor: pointer; font: 600 12.5px 'Golos Text'; color: var(--accent-deep); }
.rvcard__more[hidden] { display: none; }
.rvcard__more:hover { text-decoration: underline; }

/* Поп-ап «Полный отзыв» */
.rvpop__card--review { max-width: 480px; }
.rvmore__head { display: flex; align-items: center; gap: 12px; }
.rvmore__id { min-width: 0; flex: 1; }
.rvmore__stars { margin-top: 14px; display: flex; gap: 2px; }
.rvmore__text { margin: 12px 0 0; font: 400 15px/1.6 'Golos Text'; color: var(--text-body); max-height: 46vh; overflow-y: auto; }
.rvmore__chips { margin-top: 14px; }
.rvmore__chips[hidden] { display: none; }
.rvmore__project { margin-top: 16px; display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--tint); border-radius: 12px; color: var(--text-body); font: 600 13.5px 'Golos Text'; }
.rvmore__project .ic { color: var(--accent-deep); }
.rvmore__project span { flex: 1; min-width: 0; }

/* ============ ОБЗОР (дашборд) ============ */
.ov { max-width: 640px; margin: 0; padding: 20px 16px 104px; }

/* приветствие + статус сайта */
.ov-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ov-hello { margin: 0; font: 700 24px/1.12 'Golos Text'; color: var(--text); letter-spacing: -.02em; }
.ov-status { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px 6px 10px; box-shadow: 0 1px 2px rgba(31,30,28,.04); }
.ov-status__state { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px 'Golos Text'; white-space: nowrap; }
.ov-status__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.ov-status__state--draft { color: #9A7B2E; }
.ov-status__state--draft .ov-status__dot { background: #C79A2B; }
.ov-status__state--live { color: #2E7D53; }
.ov-status__state--live .ov-status__dot { background: #3B9A62; }
.ov-status__sep { flex: none; width: 1px; height: 12px; background: #E7E2DA; }
.ov-status__url { font: 400 12.5px 'Golos Text'; color: var(--text-faint); white-space: nowrap; }
.ov-whatsnew { display: inline-flex; align-items: center; gap: 6px; font: 500 13.5px 'Golos Text'; color: var(--accent-deep); text-decoration: none; }
.ov-whatsnew:hover { text-decoration: underline; }

/* быстрые действия */
.ov-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ov-act { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 14px 15px; text-decoration: none; }
.ov-act__ic { flex: none; display: inline-flex; }
.ov-act__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ov-act__title { font: 600 15.5px 'Golos Text'; color: var(--text); }
.ov-act__sub { margin-top: 2px; font: 400 12.5px 'Golos Text'; color: var(--text-faint); }
.ov-act__trail { flex: none; display: inline-flex; color: var(--text-faint); }
.ov-act__trail--accent { color: var(--accent); }
.ov-act--site { grid-column: 1 / -1; background: var(--accent); border: 1px solid var(--accent); box-shadow: 0 6px 16px -8px rgba(181,83,46,.55); }
.ov-act--site:hover { background: var(--accent-deep); }
.ov-act--site .ov-act__ic { color: #fff; }
.ov-act--site .ov-act__title { color: #fff; }
.ov-act--site .ov-act__sub, .ov-act--site .ov-act__trail { color: #F3DCD1; }
.ov-act--tg { grid-column: 1 / -1; background: #fff; border: 1px solid var(--border); box-shadow: 0 1px 2px rgba(31,30,28,.04); }
.ov-act--tg:hover { background: var(--tint-2); }
.ov-act--tg .ov-act__title { font-size: 14.5px; }
.ov-act__ic--tg { width: 38px; height: 38px; border-radius: 11px; background: #EAF2F9; color: #3390D0; display: flex; align-items: center; justify-content: center; }

/* плитки (Поделиться, Скачать визитку) */
.ov-tile { display: flex; flex-direction: column; gap: 9px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 15px; text-decoration: none; cursor: pointer; text-align: left; font-family: 'Golos Text'; box-shadow: 0 1px 2px rgba(31,30,28,.04); }
.ov-tile:hover { background: var(--tint-2); }
.ov-tile__ic { width: 38px; height: 38px; border-radius: 11px; background: var(--tint); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.ov-tile__label { font: 600 14px 'Golos Text'; color: var(--text); }

/* тело: чеклист + статистика */
.ov-body { margin-top: 26px; display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }

/* чеклист «Запуск сайта» */
.ov-check { background: #fff; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 3px rgba(31,30,28,.05); }
.ov-check__head { padding: 18px 18px 15px; }
.ov-check__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ov-check__title { font: 700 17px 'Golos Text'; color: var(--text); white-space: nowrap; }
.ov-check__count { flex: none; font: 600 13px 'Golos Text'; color: var(--accent-deep); white-space: nowrap; }
.ov-check__bar { margin-top: 12px; height: 7px; border-radius: 4px; background: #EEE8DF; overflow: hidden; }
.ov-check__bar span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.ov-check__lead { margin-top: 10px; font: 400 13px/1.45 'Golos Text'; color: var(--text-faint); }
.ov-step { display: flex; align-items: center; gap: 13px; padding: 15px 18px; border-top: 1px solid #EFEBE3; text-decoration: none; background: #fff; }
.ov-step:hover { background: var(--tint-2); }
.ov-step__mark { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid #D8D1C5; color: #fff; display: flex; align-items: center; justify-content: center; }
.ov-step__label { flex: 1; min-width: 0; font: 500 15px/1.3 'Golos Text'; color: var(--text); }
.ov-step__chev { flex: none; display: inline-flex; color: var(--accent); }
.ov-step.is-done { background: #FBFAF8; }
.ov-step.is-done .ov-step__mark { background: #2E7D53; border-color: #2E7D53; }
.ov-step.is-done .ov-step__label { color: #A79F92; font-weight: 400; text-decoration: line-through; }

/* статистика */
.ov-stats__head { display: flex; align-items: center; gap: 9px; }
.ov-stats__eyebrow { font: 600 11px 'Golos Text'; letter-spacing: .13em; text-transform: uppercase; color: var(--accent-deep); }
.ov-stats__line { flex: 1; height: 1px; background: #EAE5DC; }
.ov-stats__grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ov-stat { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 16px; text-decoration: none; box-shadow: 0 1px 2px rgba(31,30,28,.04); }
.ov-stat:hover { background: var(--tint-2); }
.ov-stat__ic { width: 34px; height: 34px; border-radius: 10px; background: var(--tint); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.ov-stat__num { font: 700 28px/1 'Golos Text'; color: var(--text); }
.ov-stat__num--sm { font-size: 18px; }
.ov-stat__label { margin-top: 6px; font: 400 12.5px 'Golos Text'; color: var(--text-faint); }
.ov-stat--wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 13px; padding: 15px; }
.ov-stat--wide .ov-stat__ic { margin-bottom: 0; }
.ov-stat__ic--muted { flex: none; width: 38px; height: 38px; border-radius: 11px; background: #F1ECE4; color: #B0A99B; }
.ov-stat__wbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ov-stat__wbody .ov-stat__label { margin-top: 3px; }
.ov-stat__cta { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--accent); color: #fff; font: 600 12.5px 'Golos Text'; }

/* поп-ап «Поделиться» */
.ov-share { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.ov-share[hidden] { display: none; }
.ov-share__overlay { position: absolute; inset: 0; background: rgba(31,30,28,.5); }
.ov-share__sheet { position: relative; width: 100%; max-width: 100%; background: #fff; border-radius: 22px 22px 0 0; padding: 22px; box-shadow: 0 24px 60px -12px rgba(0,0,0,.4); }
.ov-share__grip { display: block; width: 44px; height: 5px; border-radius: 3px; background: #DAD4C9; margin: -6px auto 16px; }
.ov-share__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ov-share__eyebrow { font: 600 11px/1 'Golos Text'; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); }
.ov-share__title { margin-top: 6px; font: 700 19px 'Golos Text'; color: var(--text); }
.ov-share__x { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: #726E66; font-size: 18px; line-height: 1; cursor: pointer; }
.ov-share__qr { margin: 16px auto 0; width: 172px; height: 172px; border-radius: 18px; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; padding: 14px; }
.ov-share__qr svg { width: 100%; height: 100%; }
.ov-share__row { margin-top: 14px; display: flex; gap: 8px; align-items: center; }
.ov-share__input { flex: 1; min-width: 0; height: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); padding: 0 14px; font: 600 14.5px 'Golos Text'; color: var(--text); }
.ov-share__copy { flex: none; height: 48px; padding: 0 16px; border: none; border-radius: 12px; background: var(--accent); color: #fff; font: 600 14px 'Golos Text'; cursor: pointer; }
.ov-share__copy:hover { background: var(--accent-deep); }
.ov-share__copy.is-copied { background: #2E7D53; }

/* десктоп */
@media (min-width: 900px) {
  .ov { max-width: 1040px; padding: 32px 36px 48px; }
  .ov-hello { font-size: clamp(22px, 2.4vw, 30px); }
  .ov-whatsnew { padding-top: 8px; }
  .ov-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ov-act--tg { grid-column: auto; }
  .ov-body { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 340px); gap: 22px; }
  .ov-body--full { grid-template-columns: 1fr; }
  .ov-share { align-items: center; padding: 24px; }
  .ov-share__sheet { max-width: 400px; border-radius: 22px; }
}

/* ==========================================================================
   Раздел «Поддержка» — FAQ с поиском + контакты (Веха: поддержка v1)
   Значения перенесены 1:1 из дизайна «Кабинет — Поддержка».
   ========================================================================== */
.rv-scroll::-webkit-scrollbar { width: 0; height: 0; }
.rv-scroll { scrollbar-width: none; }

.sup__h1 { font: 700 26px/1.1 'Golos Text'; color: var(--text); letter-spacing: -.02em; }
.sup__sub { margin-top: 8px; font: 400 14.5px/1.5 'Golos Text'; color: var(--text-faint); }

/* Поиск */
.sup-search { margin-top: 22px; position: relative; }
.sup-search__ic { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: #A79F92; display: inline-flex; pointer-events: none; }
.sup-search__input { width: 100%; height: 56px; border: 1.5px solid var(--border); border-radius: 15px; background: #fff; padding: 0 48px; font: 400 16px 'Golos Text'; color: var(--text); outline: none; }
.sup-search__input:focus { border-color: var(--accent); }
.sup-search__clear { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: none; background: #F1ECE4; color: var(--text-muted); font-size: 18px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

/* Чипы */
.sup-chips { margin-top: 16px; display: flex; flex-wrap: nowrap; gap: 9px; overflow-x: auto; padding-bottom: 2px; }
.sup-chip { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: #55524C; font: 500 13.5px 'Golos Text'; cursor: pointer; white-space: nowrap; }
.sup-chip:hover { border-color: #D7B9AC; }
.sup-chip.is-active { background: var(--tint); border-color: #EBD9CF; color: var(--accent-deep); font-weight: 600; }

/* Список FAQ */
.sup-list { margin-top: 20px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; }
.sup-row + .sup-row { border-top: 1px solid #F0ECE4; }
.sup-row.is-hidden { display: none; }
.sup-row__q { width: 100%; display: flex; align-items: flex-start; gap: 14px; padding: 15px 16px; background: none; border: none; text-align: left; cursor: pointer; }
.sup-row__qt { flex: 1; font: 600 14.5px/1.4 'Golos Text'; color: var(--text); }
.sup-row__chev { flex: none; margin-top: 2px; color: #A79F92; display: inline-flex; transition: transform .2s ease; }
.sup-row.is-open .sup-row__chev { transform: rotate(180deg); }
.sup-row__a { display: none; }
.sup-row.is-open .sup-row__a { display: block; }
.sup-row__ai { padding: 0 16px 16px; font: 400 13.8px/1.6 'Golos Text'; color: #5E5A52; max-width: 70ch; }

/* Контакты */
.sup-contacts { margin-top: 30px; }
.sup-contacts.is-hidden { display: none; }
.sup-contacts__title { font: 600 17px 'Golos Text'; color: var(--text); }
.sup-contacts__grid { margin-top: 14px; display: grid; grid-template-columns: 1fr; gap: 12px; }
.sup-contact { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--border); border-radius: 15px; padding: 14px 15px; text-decoration: none; box-shadow: var(--shadow-sm); }
.sup-contact:hover { border-color: #D7B9AC; }
.sup-contact__ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.sup-contact__body { min-width: 0; flex: 1; }
.sup-contact__title { display: block; font: 600 15px/1.2 'Golos Text'; color: var(--text); }
.sup-contact__val { display: block; margin-top: 2px; font: 500 13px/1.3 'Golos Text'; color: var(--accent-deep); }
.sup-contact__note { display: block; margin-top: 4px; font: 400 12px/1.4 'Golos Text'; color: #A79F92; }


/* Десктоп */
@media (min-width: 900px) {
  .cab-page.sup { max-width: 1000px; margin: 0; padding: 40px 44px 56px; }
  .sup__h1 { font-size: 33px; }
  .sup__sub { font-size: 16px; }
  .sup-search { max-width: 860px; }
  .sup-chips { flex-wrap: wrap; }
  .sup-list { max-width: 860px; }
  .sup-row__q { padding: 18px 22px; }
  .sup-row__qt { font-size: 16px; }
  .sup-row__ai { padding: 0 22px 18px; font-size: 15px; }
  .sup-contacts__grid { grid-template-columns: 1fr 1fr; max-width: 860px; }
}

/* фикс: элементы с атрибутом hidden не должны перебиваться display из классов */
.sup-search__clear[hidden] { display: none; }

/* ============ «Мой сайт» — редактор публичной главной ============ */
.ms { padding-bottom: 96px; }
.ms-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ms-head__title { margin: 0; font: 700 24px/1.1 'Golos Text'; color: var(--text); letter-spacing: -.015em; }
.ms-open { height: 40px; padding: 0 15px; }

.ms-form { display: flex; flex-direction: column; gap: 16px; }
.ms-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px 16px; box-shadow: 0 1px 2px rgba(31, 30, 28, .04); }
.ms-card__head { margin-bottom: 14px; }
.ms-card__head--row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ms-card__title { font: 700 17px 'Golos Text'; color: var(--text); }
.ms-card__sub { margin-top: 3px; font: 400 13.5px 'Golos Text'; color: var(--text-faint); }
.ms-card .field { margin-top: 14px; }
.ms-card .field:first-of-type { margin-top: 0; }

.ms-count { flex: none; font: 600 13px 'Golos Text'; color: var(--accent-deep); }
.ms-honesty { margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; background: var(--tint); font: 400 13.5px/1.45 'Golos Text'; color: #6B5E55; }

/* чипы доверия */
.ms-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-chip { position: relative; display: flex; align-items: center; gap: 11px; padding: 12px 13px; border-radius: 13px; background: #fff; border: 1.5px solid var(--border); cursor: pointer; }
.ms-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ms-chip__box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #D8D1C5; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.ms-chip__box .ic { opacity: 0; }
.ms-chip__label { font: 600 13.5px/1.25 'Golos Text'; color: var(--text); }
.ms-chip.is-on { background: #FBF3EF; border-color: var(--accent); }
.ms-chip.is-on .ms-chip__box { background: var(--accent); border-color: var(--accent); }
.ms-chip.is-on .ms-chip__box .ic { opacity: 1; }
.ms-chip.is-on .ms-chip__label { color: var(--accent-deep); }
.ms-chip.is-locked { opacity: .42; cursor: not-allowed; }
/* Одиночный чек-чип (вне набора чипов доверия): состояние берём от :checked,
   без JS — им не управляет скрипт лимита чипов. */
.ms-chip--solo { margin-top: 10px; }
.ms-chip--solo:has(input:checked) { background: #FBF3EF; border-color: var(--accent); }
.ms-chip--solo:has(input:checked) .ms-chip__box { background: var(--accent); border-color: var(--accent); }
.ms-chip--solo:has(input:checked) .ms-chip__box .ic { opacity: 1; }
.ms-chip--solo:has(input:checked) .ms-chip__label { color: var(--accent-deep); }

/* направления работ */
.ms-dirs { display: flex; flex-direction: column; gap: 8px; }
.ms-dir { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 8px 0 6px; border-radius: 11px; background: var(--tint-2); border: 1px solid var(--border-soft); }
.ms-dir.is-dragging { opacity: .65; background: var(--tint); border-color: var(--accent); }
.ms-dir__grip { flex: none; display: inline-flex; align-items: center; padding: 0 3px; color: #B0A99B; cursor: grab; touch-action: none; }
.ms-dir__grip:active { cursor: grabbing; }
.ms-dir__ic { flex: none; color: var(--accent); }
.ms-dir__input { flex: 1; min-width: 0; border: none; background: transparent; font: 500 14.5px 'Golos Text'; color: var(--text); outline: none; }
.ms-dir__del { flex: none; width: 28px; height: 28px; border: none; background: transparent; color: var(--text-faint); font-size: 20px; line-height: 1; cursor: pointer; border-radius: 8px; }
.ms-dir__del:hover { background: rgba(0, 0, 0, .05); color: var(--text); }
.ms-add { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 1px dashed #D7C4B6; border-radius: 12px; background: #fff; color: var(--accent-deep); font: 600 14px 'Golos Text'; cursor: pointer; }
.ms-add .ic { color: var(--accent); }

/* фото-дропзона */
.ms-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; padding: 20px; border-radius: 14px; border: 1.5px dashed #CBBBAE; background: #FBF7F2; cursor: pointer; text-align: center; position: relative; overflow: hidden; }
.ms-photo input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ms-photo__body { display: flex; flex-direction: column; align-items: center; }
.ms-photo__ic { width: 30px; height: 30px; margin-bottom: 8px; color: var(--accent); }
.ms-photo__title { font: 600 15px 'Golos Text'; color: var(--accent-deep); }
.ms-photo__note { margin-top: 3px; font: 400 12.5px 'Golos Text'; color: #A79F92; }
.ms-photo__preview { max-width: 100%; max-height: 220px; border-radius: 10px; margin-bottom: 12px; object-fit: cover; }
.ms-photo.is-set { background: #fff; border-style: solid; border-color: var(--border); }
.ms-photo.is-dragover { border-color: var(--accent); background: var(--tint); }

/* сохранить — липкая на мобайле */
.ms-save { position: sticky; bottom: 0; margin: 6px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(250, 249, 247, 0), var(--bg) 42%); }

@media (min-width: 900px) {
  .ms { max-width: 760px; margin: 0; }
  .ms-card { padding: 22px; }
  .ms-save { position: static; margin: 8px 0 0; padding: 0; background: none; }
  .ms-save .btn { width: auto; min-width: 220px; }
}
