/* ============================================================================
   Teazy — страница анкеты (mobile). Префикс .tzp-. Опирается на токены
   teazy-mobile.css (--tzm-*). Колонка совпадает с лентой (max 540px, по центру).
   ========================================================================== */

.tzp-body { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); }

/* ───────────────── Галерея (фото-карточка, стиль auto.ru) ───────────────── */
.tzp-gallery { position: relative; max-width: 540px; margin: 0 auto; }
.tzp-gallery__track {
  display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 14px;
  padding: 8px 14px 0; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tzp-gallery__track::-webkit-scrollbar { display: none; }
.tzp-slide {
  position: relative; flex: 0 0 calc(100% - 52px); aspect-ratio: 1 / 1;
  border-radius: var(--tzm-radius); overflow: hidden; background: #11131c;
  scroll-snap-align: start; cursor: zoom-in;
}
.tzp-slide:last-child { margin-right: 14px; }
.tzp-slide img { width: 100%; height: 100%; object-fit: cover; }
.tzp-slide.is-locked img { filter: blur(16px) brightness(0.75); transform: scale(1.08); }

/* Замок поверх закрытого фото */
.tzp-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; color: #fff; text-align: center; }
.tzp-lock__ico { width: 50px; height: 50px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); border: 1.5px solid rgba(255, 255, 255, 0.4); border-radius: 50%; backdrop-filter: blur(2px); }
.tzp-lock__ico svg { width: 24px; height: 24px; }
.tzp-lock__cost { font-size: 13.5px; font-weight: 800; padding: 6px 15px; border-radius: 999px; background: linear-gradient(120deg, var(--tzm-pink), var(--tzm-purple)); box-shadow: 0 6px 16px rgba(98, 66, 251, 0.4); }

/* Лёгкая «стеклянная» кнопка/счётчик поверх фото */
.tzp-gbtn { width: 38px; height: 38px; display: grid; place-items: center; border: none; border-radius: 50%; cursor: pointer; background: rgba(255, 255, 255, 0.92); color: var(--tzm-text); box-shadow: 0 2px 8px rgba(20, 23, 40, 0.18); }
.tzp-gbtn svg { width: 20px; height: 20px; }
.tzp-gallery__fav { position: absolute; top: 18px; right: 24px; z-index: 3; }
.tzp-gallery__fav.is-on { color: var(--tzm-pink-2); }
.tzp-gallery__fav.is-on svg { fill: currentColor; }
.tzp-gallery__expand { position: absolute; top: 18px; right: 70px; z-index: 3; }
.tzp-gallery__count { position: absolute; left: 24px; bottom: 14px; z-index: 3; font-size: 12.5px; font-weight: 700; color: #fff; padding: 4px 11px; border-radius: 999px; background: rgba(20, 22, 34, 0.5); backdrop-filter: blur(6px); }

/* Полноэкранный просмотр (галерея с выбором) */
.tzp-viewer { position: fixed; inset: 0; z-index: 90; background: #07080d; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 0.2s; }
.tzp-viewer.is-open { opacity: 1; visibility: visible; }
.tzp-viewer__bar { display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px; color: #fff; }
.tzp-viewer__count { font-size: 14px; font-weight: 700; }
.tzp-viewer__close { width: 40px; height: 40px; display: grid; place-items: center; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; cursor: pointer; }
.tzp-viewer__close svg { width: 22px; height: 22px; }
.tzp-viewer__track { flex: 1 1 auto; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tzp-viewer__track::-webkit-scrollbar { display: none; }
.tzp-viewer__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 0 8px; }
.tzp-viewer__slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tzp-viewer__dots { display: flex; justify-content: center; gap: 7px; padding: 16px 0 calc(env(safe-area-inset-bottom, 0px) + 18px); }
.tzp-viewer__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.tzp-viewer__dots span.is-on { background: #fff; width: 22px; border-radius: 3px; }

/* Точки-индикатор (под фото, на светлом фоне) */
.tzp-gallery__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.tzp-gallery__dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--tzm-muted-2); opacity: 0.4; transition: all 0.2s; }
.tzp-gallery__dots span.is-on { background: var(--tzm-purple); opacity: 1; width: 20px; border-radius: 3px; }

/* ───────────── Шапка анкеты: имя + чипы + спеки (единая карточка) ───────────── */
.tzp-head { background: var(--tzm-card); border-radius: var(--tzm-radius); box-shadow: var(--tzm-shadow); padding: 16px; margin-bottom: 12px; }

.tzp-ident__top { display: flex; align-items: center; justify-content: space-between; gap: 13px; }
.tzp-ident__ava { position: relative; flex: 0 0 auto; width: 70px; height: 70px; border-radius: 50%; padding: 2.5px; background: linear-gradient(135deg, var(--tzm-pink), var(--tzm-purple)); }
.tzp-ident__ava-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2.5px solid #fff; display: block; background: #f1f3f8; }
.tzp-ident__ava-dot { position: absolute; right: 2px; bottom: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--tzm-online); border: 2.5px solid #fff; }
.tzp-ident__main { flex: 1 1 auto; min-width: 0; }
.tzp-ident__name { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; }
.tzp-ident__sub { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--tzm-muted); }
.tzp-ident__sub svg { width: 14px; height: 14px; }
.tzp-ident__chev { color: var(--tzm-muted-2); }
.tzp-ident__more { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: none; border-radius: 50%; background: #f1f3f8; color: var(--tzm-muted); cursor: pointer; }
.tzp-ident__more svg { width: 22px; height: 22px; }

/* Чипы статуса (Онлайн / Проверена / VIP / ★) */
.tzp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tzp-ident__status { display: flex; align-items: flex-start; gap: 9px; margin: 20px 0 8px; padding: 12px 14px; border-radius: 14px; background: rgba(98, 66, 251, 0.055); border: 1px solid rgba(98, 66, 251, 0.10); color: var(--tzm-text); font-size: 13.5px; font-weight: 500; line-height: 1.45; }
.tzp-ident__status-ico { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 2px; color: var(--tzm-purple); opacity: 0.55; }
.tzp-chip { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 13px; border-radius: 11px; font-size: 13.5px; font-weight: 700; }
.tzp-chip svg { width: 15px; height: 15px; }
.tzp-chip--online { background: var(--tzm-online); color: #fff; }
.tzp-chip--ok { background: #e6f9ee; color: #16a34a; }
.tzp-chip--ok svg { color: var(--tzm-online); }
.tzp-chip--vip { background: linear-gradient(120deg, #ffd770, var(--tzm-amber)); color: #4a3100; }
.tzp-chip--stars { background: #fff; border: 1.5px solid var(--tzm-line); color: var(--tzm-text); }
.tzp-chip--stars svg { color: var(--tzm-amber); }

/* Сетка ключевых характеристик (иконка + значение + подпись) */
.tzp-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--tzm-line); }
.tzp-spec { display: flex; align-items: center; gap: 11px; }
.tzp-spec__ico { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; color: var(--tzm-muted); }
.tzp-spec__ico svg { width: 24px; height: 24px; }
.tzp-spec__txt { min-width: 0; }
.tzp-spec__val { display: block; font-size: 15px; font-weight: 700; line-height: 1.2; }
.tzp-spec__lbl { display: block; font-size: 12.5px; color: var(--tzm-muted); margin-top: 1px; }

/* Дополнение верхнего блока: доп.признаки + цели + краткое о себе */
.tzp-summary { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--tzm-line); }
.tzp-summary__lbl { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--tzm-muted-2); margin-bottom: 9px; }
.tzp-summary__goals { margin-top: 14px; }
.tzp-summary__about { margin-top: 16px; }

/* ───────────────────────── Контентные секции ───────────────────────── */
.tzp-body-wrap { padding-top: 14px; }
.tzp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding-top: 12px; font-size: 12.5px; color: var(--tzm-muted); margin-bottom: 4px; }
.tzp-crumbs a { color: var(--tzm-purple); font-weight: 600; }
.tzp-crumbs i { color: var(--tzm-muted-2); font-style: normal; }

.tzp-sec {
  background: var(--tzm-card); border-radius: var(--tzm-radius); box-shadow: var(--tzm-shadow);
  padding: 16px; margin-bottom: 12px;
}
/* .tzp-body — поднимаем специфичность над глобальным сбросом .tzm-body h2 {margin:0} */
.tzp-body .tzp-sec__h { margin: 0 0 12px; font-size: 16px; font-weight: 800; letter-spacing: -0.2px; display: flex; align-items: center; gap: 8px; }
.tzp-sec__cnt {
  font-size: 12px; font-weight: 800; color: var(--tzm-purple); background: var(--tzm-purple-tint);
  min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center;
}
/* Нет фото → компактная узкая плашка-заметка (над контактами). Не растягивается на всю
   ширину — inline-flex по содержимому, ненавязчивая. */
.tzp-photos-note {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px;
  padding: 13px 16px; border-radius: 14px; border: 1px dashed var(--tzm-line);
  background: var(--tzm-card); color: var(--tzm-muted);
  font-size: 13.5px; font-weight: 600; text-align: center;
}
.tzp-photos-note__ico { width: 17px; height: 17px; flex: 0 0 auto; color: var(--tzm-muted-2); }

/* Каноничная карточка-объявление (ad-card, «даю → хочу») — предложения и «Похожие» */
.tzp-body .tzp-offers__h { margin-bottom: 10px; }
/* Сводка «Предлагает: чипы» (все услуги человека) над карточками офферов */
.tzp-offers__provide { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 10px; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--tzm-line); }
.tzp-offers__provide-lbl { font-size: 12.5px; font-weight: 700; color: var(--tzm-muted); }
.tzp-offers__provide-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* ── Карточка объявления (предложения анкеты, ad-card.ejs) ─────────────
   Ритм отступов: head →12→ title →5→ text →14|14(divider)→ foot(gap 13). */
.tzp-ad { background: #fff; border: 1px solid var(--tzm-line); border-radius: 16px; padding: 15px; margin-bottom: 12px; transition: border-color .15s, box-shadow .15s; }
.tzp-ad:last-child { margin-bottom: 0; }
.tzp-ad:hover { border-color: #e0def5; box-shadow: 0 6px 22px rgba(40, 30, 90, 0.06); }

/* шапка: категория (слева) + данные показов/откликов (справа) */
.tzp-ad__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 10px; }
.tzp-ad__cat { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--tzm-purple-tint); color: var(--tzm-purple); }
.tzp-ad__cat-ico { font-size: 13px; }
.tzp-ad__stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12.5px; font-weight: 500; color: var(--tzm-muted-2); }
.tzp-ad__stat { display: inline-flex; align-items: center; gap: 5px; }
.tzp-ad__stat svg { width: 14px; height: 14px; }

/* тело: заголовок (без жирного выделения) + краткий текст */
.tzp-ad__title { margin: 12px 0 0; font-size: 16.5px; font-weight: 700; line-height: 1.3; letter-spacing: -0.1px; color: var(--tzm-text); }
.tzp-ad__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 5px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--tzm-muted); }

/* подвал: разделитель → «Взамен» → кнопка (равномерно через gap) */
.tzp-ad__foot { display: flex; flex-direction: column; gap: 13px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--tzm-line); }
.tzp-ad__foot .fc-deal { margin-top: 0; }
.tzp-ad__cta { display: flex; gap: 9px; }
.tzp-ad__cta .tzp-btn { flex: 1 1 0; height: 48px; }
.tzp-body .tzp-ad__cta .tzp-btn--solid { box-shadow: 0 8px 20px rgba(124, 52, 188, 0.22); }

/* акценты категорий */
.tzp-cat--pink { background: #ffe9f4; color: var(--tzm-pink-2); }
.tzp-cat--purple { background: var(--tzm-purple-tint); color: var(--tzm-purple); }
.tzp-cat--indigo { background: #e7e9fd; color: #4f46e5; }
.tzp-cat--amber { background: #fdf0d5; color: var(--tzm-amber); }
.tzp-cat--mint { background: #e3f7ec; color: #16a34a; }

/* Прошлые предложения — компактной строкой, приглушённо */
.tzp-offer__cat { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--tzm-purple-tint); color: var(--tzm-purple); }
.tzp-offer__cat-ico { font-size: 13px; }
.tzp-offers__past { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--tzm-line); }
.tzp-offers__pasth { margin: 0 0 11px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--tzm-muted-2); }
.tzp-offer--past { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; padding: 11px 13px; margin-bottom: 8px; background: #f8f9fc; border-color: transparent; }
.tzp-offer--past .tzp-offer__cat { font-size: 11px; padding: 3px 8px; }
.tzp-offer--past .tzp-offer__title { margin: 0; font-size: 14px; font-weight: 600; color: var(--tzm-text); }
.tzp-offer__past-want { font-size: 12.5px; color: var(--tzm-muted); margin-left: auto; }

/* О себе */
.tzp-about__text { font-size: 14.5px; line-height: 1.6; color: var(--tzm-text); white-space: pre-line; }
.tzp-about__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.tzp-about__more { margin-top: 9px; border: none; background: none; padding: 0; color: var(--tzm-purple); font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }

/* Параметры (словарь) */
/* Доп. признаки — лёгкие чипы (значение + тихая подпись), без таблицы */
.tzp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tzp-tag { display: inline-flex; align-items: baseline; gap: 5px; padding: 7px 12px; border-radius: 11px; background: #f4f6fb; font-size: 13.5px; font-weight: 700; color: var(--tzm-text); }
.tzp-tag i { font-style: normal; font-weight: 600; color: var(--tzm-muted-2); }
.tzp-tag--accent { background: var(--tzm-purple-tint); color: var(--tzm-purple); }
.tzp-params__goals { margin-top: 16px; }
.tzp-params__gh { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--tzm-muted-2); }

/* Блок действий: Написать + Показать телефон/телеграм + В избранное (вместо нижней панели) */
.tzp-actions__write { margin-bottom: 10px; }
.tzp-actions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tzp-actbtn {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 50px; padding: 8px 14px; cursor: pointer;
  border: 1.5px solid var(--tzm-line); border-radius: 13px; background: #fff; color: var(--tzm-text);
  font-family: inherit; font-size: 14px; font-weight: 700; text-align: left;
}
.tzp-actbtn svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--tzm-purple); }
.tzp-actbtn__lbl { flex: 1 1 auto; min-width: 0; }
.tzp-actions__grid .tzp-actbtn { flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 66px; text-align: center; }
.tzp-actions__grid .tzp-actbtn__lbl { flex: 0 0 auto; font-size: 13px; }
.tzp-actbtn--fav { margin-top: 10px; justify-content: center; color: var(--tzm-muted); }
.tzp-actbtn--fav .tzp-actbtn__lbl { flex: 0 0 auto; }
.tzp-actbtn--fav svg { color: var(--tzm-muted); }
.tzp-actbtn--fav.is-on { color: var(--tzm-pink-2); border-color: var(--tzm-pink); background: #fff5fa; }
.tzp-actbtn--fav.is-on svg { color: var(--tzm-pink-2); fill: currentColor; }

/* Попап-гейт (регистрация при действии) */
.tzp-gate { position: fixed; inset: 0; z-index: 95; display: flex; align-items: flex-end; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.2s; }
.tzp-gate.is-open { opacity: 1; visibility: visible; }
.tzp-gate__ovl { position: absolute; inset: 0; background: rgba(12, 14, 24, 0.5); }
.tzp-gate__box {
  position: relative; z-index: 1; width: 100%; max-width: 440px; margin: 0 8px 8px;
  background: var(--tzm-card); border-radius: 22px; padding: 26px 20px 20px; text-align: center;
  transform: translateY(12px); transition: transform 0.22s;
}
.tzp-gate.is-open .tzp-gate__box { transform: translateY(0); }
.tzp-gate__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: none; border-radius: 50%; background: #f1f3f8; color: var(--tzm-muted); font-size: 21px; line-height: 1; cursor: pointer; }
.tzp-gate__ico { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 16px; background: var(--tzm-purple-tint); color: var(--tzm-purple); }
.tzp-gate__ico svg { width: 27px; height: 27px; }
.tzp-gate__title { margin: 0 0 8px; font-size: 19px; font-weight: 800; }
.tzp-gate__text { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--tzm-muted); }
.tzp-gate__login { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--tzm-purple); }

/* Похожие — единая карточка листинга (.fc-card в .tzm-feed), стили из feed-card.css */
.tzp-similar { background: none; box-shadow: none; padding: 16px 14px; }

/* ───────────────────────── Кнопки ─────────────────────────
   Префикс .tzp-body — чтобы перебить .tzm-body a { color: inherit } (специфичность). */
.tzp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-size: 14.5px; font-weight: 700; cursor: pointer; font-family: inherit; }
.tzp-btn svg { width: 18px; height: 18px; }
.tzp-body .tzp-btn--solid { background: linear-gradient(120deg, var(--tzm-pink-2), var(--tzm-purple)); color: #fff; border: none; }
.tzp-body .tzp-btn--ghost { background: var(--tzm-purple-tint); color: var(--tzm-purple); border: none; }
.tzp-btn--lg { height: 46px; padding: 0 22px; font-size: 15px; }
.tzp-btn--block { width: 100%; height: 50px; font-size: 15.5px; }

/* Бейдж стоимости ★ внутри кнопки — полупрозрачный, контрастный к любому фону кнопки */
.tzp-cost { display: inline-flex; align-items: center; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.tzp-body .tzp-btn--solid .tzp-cost { background: rgba(255, 255, 255, 0.24); color: #fff; }
.tzp-body .tzp-btn--ghost .tzp-cost { background: rgba(98, 66, 251, 0.14); color: var(--tzm-purple); }
