/* === Анкета юриста (десктоп) === */

/* правая колонка (подписчики/подписки/отзывы) на этой странице стала полноценнее
   и текст в ней (имена/города) начал упираться в 240px из main.css - расширяем
   колонку и слегка ужимаем зазор между колонками за счёт центральной части.
   .body__no_header специфичен для этой страницы (см. master.twig/main.css),
   поэтому другие ПК-страницы с .content_right это не задевает */
.body__no_header .content__wrap {
	gap: 16px;
}
.body__no_header .content_right {
	width: 280px;
	min-width: 0;
	flex-shrink: 0;
}

.urist_sidebar {
	display: flex;
	flex-direction: column;
	width: 280px;
	flex-shrink: 0;
	order: 1; /* .content__wrap is flex-direction:row-reverse — без этого сайдбар (первый в DOM) окажется справа */
	min-height: calc(100vh - 20px);
	background: linear-gradient(180deg, rgba(14,27,58,0.85) 0%, rgba(20,40,79,0.9) 100%), url(/media/img/bg_anketa_pc.jpg) center / cover no-repeat fixed;
	border-radius: 16px;
	padding: 20px 16px;
	box-sizing: border-box;
	color: #fff;
}
.urist_sidebar__logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	margin-bottom: 24px;
}
.urist_sidebar__logo__icon {
	width: 36px;
	height: 36px;
}
.urist_sidebar__logo__title {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}
.urist_sidebar__logo__accent {
	color: #FFCD35;
}
.urist_sidebar__logo__subtitle {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.65);
}
.urist_sidebar__user {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	margin-bottom: 16px;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	text-decoration: none;
}
.urist_sidebar__user__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.urist_sidebar__user__name {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
}
.urist_sidebar__user__status {
	font-size: 12px;
	color: #1FA97A;
}
.urist_sidebar__login {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #4E8CFF;
	text-decoration: none;
	margin-bottom: 16px;
}
.urist_sidebar__nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.urist_sidebar__nav_item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	color: #C4CBDD;
	text-decoration: none;
	font-size: 14px;
}
.urist_sidebar__nav_item svg {
	fill: #C4CBDD;
}
.urist_sidebar__nav_item:hover {
	background: rgba(255, 255, 255, 0.06);
}
.urist_sidebar__nav_item__active {
	background: rgba(78, 140, 255, 0.18);
	color: #fff;
}
.urist_sidebar__nav_item__active svg {
	fill: #4E8CFF;
}
.urist_sidebar__nav_item__label {
	flex: 1 1 auto;
}
.urist_sidebar__nav_item__count {
	font-size: 12px;
	color: #8B95AF;
}
.urist_sidebar__nav_item__active .urist_sidebar__nav_item__count {
	color: #C4CBDD;
}
.urist_sidebar__spacer {
	flex: 1 1 auto;
}
.urist_sidebar__promo {
	display: block;
	background: #123A32;
	border-radius: 12px;
	padding: 16px;
	text-decoration: none;
	margin-bottom: 16px;
}
.urist_sidebar__promo__title {
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 6px;
}
.urist_sidebar__promo__text {
	color: #9FB0AA;
	font-size: 12px;
	line-height: 1.4;
	margin-bottom: 12px;
}
.urist_sidebar__promo__btn {
	display: inline-block;
	background: #1FA97A;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 8px;
}
.urist_sidebar__footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 11px;
}
.urist_sidebar__footer a {
	color: #6F7A96;
	text-decoration: none;
}

.complaint__menu {
	display: none;
	position: absolute;
	right: 20px;
	top: 50px;
	background: #ffcbcb;
	border: 1px solid #ededed;
	z-index: 15;
	opacity: 0.9;
	border-radius: 10px;
	padding: 0 5px;
}

/* === Плоские секции (донаты) === */
.urist_flat_section {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 16px;
}
.urist_flat_section__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 17px;
	font-weight: 600;
	color: #14203D;
	margin-bottom: 14px;
}
.urist_flat_section__title svg {
	fill: #8B95AF;
	flex-shrink: 0;
}

/* Иконка-переход в соответствующий раздел настроек, видна только владельцу анкеты */
.anketa_edit_btn {
	margin-left: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #F3F4F7;
	flex-shrink: 0;
}
.anketa_edit_btn svg {
	fill: #8B95AF;
}
.anketa_edit_btn:hover {
	background: #E7E9EF;
}
.anketa_edit_btn:hover svg {
	fill: #14203D;
}
.anketa_section__placeholder {
	font-size: 14px;
	color: #8B95AF;
	line-height: 1.5;
}

/* === Правая колонка ===
   .content_right используется и на других страницах (там из-за
   flex-direction:row-reverse у .content__wrap она обычно оказывается
   слева), но на этой странице (файл грузится только здесь) должна быть
   справа, а .urist_sidebar (order:1) — слева, main — по центру. */
.body__no_header .content_right {
	order: -1;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.urist_right_card {
	background: #fff;
	border-radius: 16px;
	padding: 20px;
}

.urist_review_item {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid #EDEFF3;
	text-decoration: none;
	color: inherit;
}
.urist_review_item:last-child {
	margin: 0;
	padding: 0;
	border: none;
}
.urist_review_item__avatar {
	flex-shrink: 0;
}
/* .urist_review_item__avatar - сам <img>, т.к. вся строка (отзыв или консультация)
   уже обёрнута в <a>, вложенный <a> внутри <a> невалиден */
.urist_review_item__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}
.urist_review_item__body {
	min-width: 0;
	flex: 1 1 auto;
}
.urist_review_item__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.urist_review_item__name {
	font-weight: 600;
	color: #14203D;
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.urist_review_item__date {
	flex-shrink: 0;
	color: #8B95AF;
	font-size: 12px;
}
.urist_answer_item__title {
	font-size: 13px;
	color: #4B4C56;
	margin-top: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.urist_answer_item__meta {
	font-size: 12px;
	color: #8B95AF;
	margin-top: 4px;
}
.urist_review_item__text {
	font-size: 13px;
	color: #4B4C56;
	margin-top: 4px;
	overflow: hidden;
	overflow-wrap: anywhere;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* === Контакты/Донаты: старые partial'ы (urist_info_contacts.twig/urist_info_donations.twig),
   общие с формой редактирования и с мобильной версией - у них нет своего font-size/line-height,
   текст идёт неизменным браузерным 16px вперемешку с редизайновским 13-15px вокруг ("колбасит").
   .df/.ml10/.m0/.p0 - утилитные классы с !important в components.css, их не трогаем,
   переопределяем только типографику */
.anketa-info > div {
	font-size: 14px;
	line-height: 1.6;
	color: #4B4C56;
}

/* === Контакты/Донаты - карточки-чипы (по мотивам docs/mockups/contacts_donations.png) === */
.urist_flat_section__title--badge {
	gap: 12px;
	margin-bottom: 18px;
}
.urist_badge_icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex-shrink: 0;
}
.urist_badge_icon svg {
	fill: #fff;
}

.urist_badge_icon--green {
	background: linear-gradient(135deg, #34C77B, #1FA97A);
}
.urist_contacts_grid,
.urist_donations_list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.urist_contact_chip {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 220px;
	min-width: 0;
	background: #F7F9FC;
	border-radius: 12px;
	padding: 10px 14px;
}
.urist_contact_chip--empty {
	opacity: 0.5;
}
.urist_contact_chip__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	flex-shrink: 0;
	background: #8B95AF;
}
.urist_contact_chip__icon svg {
	fill: #fff;
}
.urist_contact_chip__badge {
	color: #fff;
	font-size: 10px;
	font-weight: 700;
}
.urist_contact_chip__icon--phone,
.urist_contact_chip__icon--donation {
	background: #4E8CFF;
}
.urist_contact_chip__icon--telegram { background: #40B3E0; }
.urist_contact_chip__icon--whatsapp { background: #25D366; }
.urist_contact_chip__icon--viber { background: #7C529D; }
.urist_contact_chip__icon--mail,
.urist_contact_chip__icon--web { background: #8B95AF; }
.urist_contact_chip__icon--vk { background: #0077FF; }
.urist_contact_chip__icon--ok { background: #EE8208; }
.urist_contact_chip__icon--max { background: #6C5CE7; }
.urist_contact_chip__body {
	min-width: 0;
}
.urist_contact_chip__label {
	font-size: 12px;
	color: #8B95AF;
}
.urist_contact_chip__value {
	font-size: 14px;
	font-weight: 600;
	color: #14203D;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.urist_contact_chip__value a {
	color: inherit;
	text-decoration: none;
}
.urist_contact_chip__value a:hover {
	text-decoration: underline;
}
.urist_contact_chip__note {
	font-size: 12px;
	color: #1FA97A;
	margin-top: 2px;
}
.urist_donation_block {
	flex: 1 1 100%;
	background: #F7F9FC;
	border-radius: 12px;
	padding: 14px;
}
.urist_donation_block__title {
	font-size: 13px;
	font-weight: 600;
	color: #1FA97A;
	margin-bottom: 6px;
}
.urist_donation_block__text {
	font-size: 14px;
	line-height: 1.6;
	color: #4B4C56;
	white-space: pre-line;
}
.urist_donations_list p {
	font-size: 14px;
	line-height: 1.6;
	color: #4B4C56;
	margin: 0;
}

/* Облако тегов в правой колонке главной/юристов/тегов - оформляем в стиле
   тёмного сайдбара анкеты (.urist_sidebar), но это отдельный нефлекс-блок:
   .content_right тут физически слева из-за row-reverse у .content__wrap,
   а .urist_sidebar/order/min-height rules ему не подходят (не flex-item).
   Ширина колонки (280px) равна .urist_sidebar на анкете - референс.
   flex-shrink:0 обязателен: без него длинный список в content_center
   сжимал content_right (у него по умолчанию flex-shrink:1) до разной
   ширины в зависимости от контента страницы. */
.content_right:has(.tags_sidebar_box) {
	width: 280px;
	flex-shrink: 0;
}
.tags_sidebar_box {
	background: linear-gradient(180deg, rgba(14,27,58,0.85) 0%, rgba(20,40,79,0.9) 100%), url(/media/img/bg_anketa_pc.jpg) center / cover no-repeat fixed;
	border-radius: 16px;
	padding: 20px 16px;
	box-sizing: border-box;
}
.tags_sidebar_box .sidebar-list {
	background: transparent;
	padding: 0;
	line-height: 1.7;
}
.tags_sidebar_box .sidebar-list a {
	color: #C4CBDD;
	font-size: 14px;
	text-decoration: none;
}
.tags_sidebar_box .sidebar-list a:hover {
	color: #FFCD35;
}
