/* === Анкета юриста (мобиль) === */

.urist_cards {
	background: #F1F3F8;
}
/* На этой странице своей шапки сайта нет (Site::setShowHeader(false)),
   а .main_block__mobile из main.css всё равно даёт margin-top:66px
   под неё — убираем именно на этой странице через :has(), не трогая
   остальные мобильные страницы */
.main_block__mobile:has(.urist_cards) {
	margin-top: 0;
}

/* --- Карточка/баннер --- */
/* .urist_mob_card несёт ещё и класс .profile__header (JS-хук anketa.js на
   data-user-id) — у .profile__header в main.css своё старое визуальное
   оформление (синий градиент, display:flex, height:88px и т.д.), составной
   селектор ниже перебивает его целиком */
.urist_mob_card.profile__header {
	position: relative;
	background: transparent;
	display: block;
	width: auto;
	height: auto;
	margin-top: 0;
	align-items: normal;
	justify-content: normal;
	padding: 0;
	box-sizing: border-box;
}
/* Значения ниже (высоты, отступы, radius, цвета) сняты с эталонного
   docs/mockups/preview.html — там тот же дизайн собран статичным HTML/CSS
   с точными пикселями. Непрозрачность баннера и цвет specialization —
   единственные два места, где сознательно оставлены значения из своих
   более ранних правок, а не из preview.html: там либо другая фоновая
   картинка (плейсхолдер), либо этот пункт уже был явно закрыт отдельным
   пиксель-замером по anketa_pc.png. */
.urist_mob_card__banner {
	position: relative;
	height: 138px;
	background: linear-gradient(180deg, rgba(5,33,86,0.35) 0%, rgba(5,33,86,0.5) 100%), url(/media/img/bg_anketa_mob.jpg) center 65% / cover no-repeat;
}
.urist_mob_card__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px 0 14px;
}
.urist_mob_card__back,
.urist_mob_card__menu {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: #0B2F70;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0,0,0,.12);
	cursor: pointer;
}
.urist_mob_card__back svg {
	fill: #0B2F70;
	stroke: #0B2F70;
	stroke-width: 1px;
}
.urist_mob_card__menu {
	font-size: 20px;
	font-weight: 700;
	line-height: 1;
}
.urist_mob_card__body {
	position: relative;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 6px 20px rgba(20,43,80,.08);
	margin: -50px 10px 0 10px;
	padding: 10px 12px 16px 12px;
}
.urist_mob_card__head {
	display: grid;
	grid-template-columns: 88px 1fr;
	gap: 10px;
	align-items: start;
}
.urist_mob_card__avatar_wrap {
	position: relative;
	margin-top: -42px;
}
.urist_mob_card__avatar_box {
	position: relative;
}
.urist_mob_card__avatar {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid #fff;
	display: block;
	background: #dfe6ee;
}
.urist_mob_card__online {
	position: absolute;
	right: 4px;
	bottom: 4px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #20B968;
	border: 3px solid #fff;
}
.urist_mob_card__status {
	width: 88px;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.25;
	color: #7B8394;
	text-align: center;
}
.urist_mob_card__status--on {
	color: #249641;
	font-weight: 500;
}
.urist_mob_card__avatar_edit {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #14203D;
	border: 2px solid #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.urist_mob_card__avatar_edit svg {
	fill: #fff;
}
.urist_mob_card__namecol {
	min-width: 0;
}
.urist_mob_card__name_row {
	display: flex;
	align-items: center;
	gap: 6px;
}
.urist_mob_card__name {
	font-size: 20px;
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -.25px;
	color: #12203F;
}
.urist_mob_card__verified {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
.urist_mob_card__verified svg {
	width: 18px;
	height: 18px;
	fill: #1677FF;
}
.urist_mob_card__actions {
	display: flex;
	gap: 7px;
	margin-top: 10px;
	flex-wrap: wrap;
}
.urist_mob_card__actions .btn {
	flex: 1 1 45%;
	min-height: 42px;
	text-align: center;
	font-size: 12.5px;
}
.urist_mob_card__admin_actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #FFC7C7;
}
.urist_mob_card__admin_actions__input {
	border: 1px solid #FFC7C7;
	background: #FFF3F3;
	border-radius: 6px;
	padding: 8px 10px;
	font-size: 13px;
	color: var(--black, #111111);
}
.urist_mob_card__complaint {
	position: absolute;
	top: 100px;
	right: 16px;
	color: #8B95AF;
	font-size: 22px;
	cursor: pointer;
}
.complaint__menu {
	display: none;
	position: absolute;
	right: 16px;
	top: 56px;
	background: #ffcbcb;
	border: 1px solid #ededed;
	z-index: 15;
	opacity: 0.9;
	border-radius: 10px;
	padding: 0 5px;
}

/* --- Аккордеон-секции тела анкеты ---
   Здесь намеренно стилизуются ОРИГИНАЛЬНЫЕ классы (subtitle_h2/cont-hide/
   profile__education_list и т.д.), а не новые — они общие с followers.twig/
   subscriptions.twig/contacts.twig (JS-хуки anketa.js: .subtitle_h2_header,
   data-block, #show-more-*), которые эти partial'ы используют без изменений.
   main.css ВСЁ ЖЕ подключается на этой странице (это общесайтовый файл,
   грузится всегда) — и там у .subtitle_h2 старое display:flex;
   flex-direction:column; align-items:flex-start (тот же класс делили со
   старым дизайном анкеты). align-items:flex-start сжимал дочерний блок
   по контенту вместо растяжения на всю ширину — отсюда был "отступ справа"
   у списков подписчиков/подписок. Явно перебиваем display:block ниже. */
.urist_cards .subtitle_h2 {
	display: block;
	background: #fff;
	border: 1px solid #E7EBF2;
	border-radius: 14px;
	margin: 2px 10px 2px 10px;
	padding: 12px;
}
.urist_cards .subtitle_h2_header {
	cursor: pointer;
	gap: 8px;
}
.urist_cards .subtitle_h2_header h2 {
	color: #12203F;
	font-size: 13px;
	font-weight: 700;
}
.urist_accordion_title {
	display: flex;
	align-items: center;
	gap: 8px;
	/* растягивается на всё свободное место в .subtitle_h2_header (flex,
	   justify-content:space-between из main.css) — иначе счётчик отзывов/
	   подписчиков оказывается в центре строки, а не перед стрелкой справа */
	flex: 1 1 auto;
	min-width: 0;
}
.urist_accordion_title svg {
	width: 16px;
	height: 16px;
	fill: #8B95AF;
	flex-shrink: 0;
}
.urist_cards .cont-hide {
	border-top: 1px solid #E7EBF2;
	margin-top: 10px;
	padding-top: 10px;
	width: auto;
}
.urist_cards .profile__education_list {
	background: #fff;
	border-radius: 10px;
	border: 1px solid #E7EBF2;
}
.urist_cards .profile__education_list div {
	font-size: 14px;
}
.urist_cards .profile__diploms__list {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	gap: 10px;
	overflow-x: auto;
	flex-wrap: wrap;
}
.urist_cards .profile__diploms__item img {
	width: 120px;
	height: 120px;
	border-radius: 12px;
	object-fit: cover;
}
/* график подписчиков (Chart.js): canvas имеет жёсткие width/height=400/200
   в HTML-атрибутах (templates/users/urists_subscribers_charts.twig), а
   .pageBlock нигде не стилизован на этой странице (его CSS — laws.css —
   тут не подключается) — без явной адаптивности контент справа обрезан/
   съезжает вместо того, чтобы вписаться в ширину карточки */
.urist_cards .pageBlock {
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}
.urist_cards .pageBlock canvas {
	width: 100% !important;
	height: auto !important;
	max-width: 100%;
}
/* строки подписчиков/подписок (answer_item__header, questions/user_info_block.twig)
   и списки "Последние консультации"/"Ответы" (list_questions.twig) — тоже
   унаследованы из старого дизайна без адаптации под новую узкую карточку */
.urist_cards #followers-list-cont,
.urist_cards #subscriptions-list-cont,
.urist_cards #answers-list-cont,
.urist_cards #questions-list-cont {
	width: 100%;
	box-sizing: border-box;
}
.urist_cards .answer_item__header {
	box-sizing: border-box;
}
.urist_cards .profile__stage {
	color: #4B4C56;
	font-size: 14px;
}

/* === Контакты/Донаты/Последние консультации - портированы с ПК (urist_pc.css,
   .urist_flat_section/.urist_right_card): там боковой отступ карточек даёт
   центральная колонка (content_center), на мобиле такой обёртки нет - добавляем
   сами, по образцу отступов соседних .subtitle_h2 (margin:10px 10px 0 10px) */
.urist_cards .urist_flat_section,
.urist_cards .urist_right_card {
	margin: 10px 10px 0 10px;
	padding: 16px;
}

/* ===== v2: карточки (2026-10-02) ===== */

/* шапка: бейджи и плитки статистики */
.urist_mob_card__badges { display: flex; flex-wrap: wrap; gap: 6px 2px; margin-top: 6px; align-items: center; }
.um_badge { background: #EEF3FA; color: #14203D; border-radius: 8px; padding: 4px 10px; font-size: 13px; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.um_badge--verified { background: transparent; padding: 0; font-weight: 400; font-size: 12px; line-height: 1.2; }
.um_badge--verified svg { fill: #249641; flex: 0 0 auto; }
.um_badge--verified small { color: #7B8394; font-size: 11px; }

.urist_mob_card__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.urist_mob_card__stat {
	/* <a>: сбрасываем подчёркивание и цвет ссылки */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 0;
	background: #fff;
	border: 1px solid #E7EBF2;
	border-radius: 14px;
	padding: 10px 4px;
	text-decoration: none;
	color: inherit;
}
.urist_mob_card__stat__top { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
.urist_mob_card__stat__top > svg { fill: #1e7bca; flex: 0 0 auto; }
.urist_mob_card__stat__top > .fill--yellow { fill: #F7B928; }
.urist_mob_card__stat__value { font-size: 16px; line-height: 1.2; font-weight: 700; color: #14203D; white-space: nowrap; }
.urist_mob_card__stat__label { font-size: 11px; line-height: 1.2; color: #7B8394; white-space: nowrap; text-align: center; }

.urist_mob_card__actions .btn { border-radius: 12px; min-height: 48px; font-size: 15px; font-weight: 500; display: flex; align-items: center; justify-content: center; }

/* лента карточек */
.um_feed { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 0; }

.um_card {
	background: #fff;
	border-radius: 16px;
	padding: 14px 16px;
	box-shadow: 0 1px 3px rgba(20, 32, 61, .06);
}
.um_card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.um_card__icon { fill: #1e7bca; flex: 0 0 auto; }
.um_card__icon.fill--yellow { fill: #F7B928; }
.um_card__title { font-size: 16px; font-weight: 700; color: #14203D; margin: 0; flex: 1 1 auto; min-width: 0; }
.um_card__link { color: #1e7bca; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.um_card__text { font-size: 15px; color: #3A4256; line-height: 1.45; }
.um_muted { color: #7B8394; font-size: 13px; }
.um_big { font-size: 18px; font-weight: 700; color: #14203D; }

.um_chips { display: flex; flex-wrap: wrap; gap: 8px; }
.um_chip { background: #EEF3FA; color: #14203D; border-radius: 18px; padding: 7px 14px; font-size: 14px; }
.um_chip--extra { display: none; }
.um_chip--extra.um_chip--shown { display: inline-block; }

.um_tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.um_tile {
	background: #fff;
	border-radius: 14px;
	padding: 10px;
	display: flex;
	gap: 6px;
	align-items: flex-start;
	box-shadow: 0 1px 3px rgba(20, 32, 61, .06);
	min-width: 0;
}
.um_tile > div { min-width: 0; }
.um_tile__icon { fill: #1e7bca; flex: 0 0 auto; margin-top: 2px; }
.um_tile__value { font-size: 14px; font-weight: 700; color: #14203D; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um_tile__label { font-size: 12px; line-height: 1.25; color: #7B8394; overflow-wrap: anywhere; }

.um_ok { margin-top: 8px; color: #249641; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.um_ok svg { fill: #249641; }

.um_flags { display: flex; gap: 18px; flex-wrap: wrap; }
.um_flag { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #3A4256; font-size: 13px; text-decoration: none; }
.um_flag img { width: 40px; height: 28px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }

.um_status_dot { width: 14px; height: 14px; border-radius: 50%; background: #C4CBD3; flex: 0 0 auto; }
.um_status_dot--on { background: #20B968; }
.um_online { color: #249641; font-weight: 500; }

.um_about { font-size: 15px; color: #3A4256; line-height: 1.45; max-height: 8.7em; overflow: hidden; }
.um_about--open { max-height: none; }
.js_um_about_more { display: inline-block; margin-top: 8px; }
.js_um_about_more[hidden] { display: none; }

.um_docs { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.um_doc img { width: 84px; height: 110px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px #E3E7EE; display: block; }
.um_doc--extra { display: none; }
.um_doc--extra.um_doc--shown { display: block; }
.um_docs__more { color: #7B8394; font-size: 14px; cursor: pointer; padding: 0 6px; }

.um_price { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; color: #3A4256; }
.um_price b { font-size: 17px; color: #14203D; white-space: nowrap; }

.um_list { display: flex; flex-direction: column; }
.um_list > * + * { border-top: 1px solid #EEF1F5; }
.urist_cards .um_list .urist_review_item { padding: 10px 0; text-decoration: none; color: inherit; display: flex; gap: 10px; cursor: pointer; }
.urist_cards .btn.um_more { display: block; margin-top: 10px; text-align: center; border-radius: 12px; }

.um_rating { display: flex; align-items: center; gap: 8px; font-size: 26px; color: #14203D; }
.um_rating .fill--yellow { fill: #F7B928; }
.um_rating__period { margin-top: 2px; }
.um_bars { margin: 10px 0 6px; display: flex; flex-direction: column; gap: 6px; }
.um_bar { display: grid; grid-template-columns: 34px 1fr 38px; align-items: center; gap: 8px; font-size: 13px; color: #3A4256; }
.um_bar__line { height: 8px; background: #EEF1F5; border-radius: 4px; overflow: hidden; }
.um_bar__fill { display: block; height: 100%; background: #F7B928; border-radius: 4px; }
.um_bar__pct { text-align: right; color: #7B8394; }

.um_review { padding: 12px 0; }
.um_review__head { display: flex; align-items: center; gap: 10px; }
.um_review__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.um_review__avatar--letter { display: flex; align-items: center; justify-content: center; background: #E85A8B; color: #fff; font-weight: 700; }
.um_review__who { flex: 1 1 auto; min-width: 0; }
.um_review__name { font-weight: 700; font-size: 15px; color: #14203D; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um_review__date { color: #7B8394; font-size: 13px; flex: 0 0 auto; }
.um_review__text { margin-top: 8px; font-size: 15px; color: #3A4256; line-height: 1.45; overflow-wrap: anywhere; }
.um_review__q { display: inline-block; margin-top: 8px; color: #1e7bca; font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none; }
.um_review_form { margin: 10px 0; }

.um_map { display: block; margin-top: 10px; border-radius: 12px; overflow: hidden; }
.um_map img { width: 100%; height: 120px; object-fit: cover; display: block; }

.um_rows { display: flex; flex-direction: column; border: 1px solid #EEF1F5; border-radius: 12px; overflow: hidden; }
.um_row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: #14203D; text-decoration: none; font-size: 15px; min-width: 0; }
.um_row + .um_row { border-top: 1px solid #EEF1F5; }
.um_row__ico { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #fff; font-size: 11px; font-weight: 700; }
.um_row__ico svg { fill: #fff; }
.um_row__ico--phone, .um_row__ico--mail { background: #1e7bca; }
.um_row__ico--telegram { background: #27A6E5; }
.um_row__ico--whatsapp { background: #25D366; }
.um_row__ico--viber { background: #7360F2; }
.um_row__ico--max { background: #14203D; }
.um_row__body { flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; display: flex; flex-direction: column; overflow: hidden; }
.um_row__body b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.um_row__body small { color: #7B8394; font-size: 12px; }
.um_row__name { width: 84px; flex: 0 0 auto; color: #3A4256; }
.um_row__url { color: #1e7bca; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.um_row__act { flex: 0 0 auto; background: none; border: 0; color: #7B8394; font-size: 18px; cursor: pointer; padding: 4px; }
.um_row__act--done { color: #249641; }

.um_cta { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 12px; }
.urist_cards .um_cta .btn { display: block; text-align: center; border-radius: 14px; padding: 14px; font-size: 16px; font-weight: 500; }
.urist_cards .um_cta .um_cta__sub { border: 1.5px solid #1e7bca; color: #1e7bca; background: #fff; }

/* хвостовые секции (вопросы, подписки, мои отзывы, донаты) — в карточном стиле */
.um_feed > .subtitle_h2,
.um_feed > .urist_flat_section { background: #fff; border-radius: 16px; margin: 0; box-shadow: 0 1px 3px rgba(20, 32, 61, .06); }
.um_review__answer { margin-top: 10px; }
.um_review__answer .review_answer__textarea { width: 100%; min-height: 60px; border: 1px solid #E3E7EE; border-radius: 10px; padding: 8px 10px; font-size: 15px; }
.um_review__complain { display: inline-block; margin-top: 8px; color: #C0392B; font-size: 13px; cursor: pointer; }

/* === ПК: та же лента карточек, в центральной колонке === */
.urist_cards--pc {
	max-width: 760px;
	margin: 0 auto;
}
.urist_cards--pc .urist_mob_card__body {
	margin: 0;
	padding-top: 16px;
}
/* на ПК баннера нет - аватар не должен вылезать за верх карточки */
.urist_cards--pc .urist_mob_card__avatar_wrap {
	margin-top: 0;
}
.urist_cards--pc.um_feed {
	padding: 12px 0 0;
}
.urist_cards--pc .urist_mob_card__actions {
	flex-wrap: wrap;
}
