/* ============================================================
   Каталог юристов и адвокатов (/lawyers/)
   Фильтры, карточки, премиум-продвижение, модалка контактов
   ============================================================ */

.ld-hero {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 6px;
}

.ld-hero h1 {
	font-size: 34px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.25;
	letter-spacing: 0.01em;
}

.ld-lead {
	font-size: 15px;
	color: #7a7a7a;
	line-height: 1.6;
	max-width: 760px;
}

/* ---------- Раскладка: сайдбар фильтров + список ---------- */
.ld-layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	align-items: start;
	gap: 24px;
	width: 100%;
}

.ld-sidebar {
	position: sticky;
	top: 110px;
}

.ld-main {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

/* ---------- Панель фильтров ---------- */
.ld-filters {
	background: #fff;
	border-radius: 20px;
	padding: 20px;
	border: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ld-filter {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	width: 100%;
}

.ld-filter-label {
	font-size: 12px;
	font-weight: 700;
	color: #7a7a7a;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ld-select {
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	color: #1a1a1a;
	background: #fafaf9;
	border: 1px solid #e8e6e3;
	border-radius: 10px;
	padding: 10px 12px;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a7a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
	transition: border-color 0.2s, background-color 0.2s;
}

.ld-select:hover,
.ld-select:focus {
	border-color: rgba(0, 196, 255, 0.5);
	outline: none;
	background-color: #f0f9ff;
}

.ld-city-wrap {
	position: relative;
}

.ld-city-input {
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	color: #1a1a1a;
	background: #fafaf9;
	border: 1px solid #e8e6e3;
	border-radius: 10px;
	padding: 10px 12px;
	width: 100%;
	transition: border-color 0.2s, background-color 0.2s;
}

.ld-city-input:focus {
	border-color: rgba(0, 196, 255, 0.5);
	outline: none;
	background-color: #fff;
}

.ld-city-list {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	width: 100%;
	min-width: 260px;
	background: #fff;
	border: 1px solid #e8e6e3;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	max-height: 300px;
	overflow-y: auto;
	z-index: 60;
	display: none;
	padding: 6px;
}

.ld-city-list.open {
	display: block;
}

.ld-city-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 9px 10px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	cursor: pointer;
	transition: background 0.15s;
}

.ld-city-item:hover {
	background: #f0f9ff;
	color: #0088cc;
}

.ld-city-item .city-region {
	font-size: 12px;
	color: #9a9a9a;
	font-weight: 400;
}

.ld-check-group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ld-chip {
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	background: #fafaf9;
	border: 1px solid #e0e0e0;
	border-radius: 20px;
	padding: 7px 14px;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
}

.ld-chip:hover {
	border-color: rgba(0, 196, 255, 0.4);
	color: #0088cc;
}

.ld-chip.active {
	background: #00c4ff;
	border-color: #00c4ff;
	color: #fff;
}

.ld-filter-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	border-top: 1px solid #f0f0f0;
	padding-top: 14px;
}

.ld-reset-btn {
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #7a7a7a;
	background: none;
	border: none;
	padding: 8px 4px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color 0.2s;
}

.ld-reset-btn:hover {
	color: #ff3b30;
}

.ld-reset-btn svg {
	width: 15px;
	height: 15px;
}

/* ---------- Инфо-бар списка ---------- */
.ld-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 0 4px;
}

.ld-total {
	font-size: 14px;
	color: #7a7a7a;
}

.ld-total strong {
	color: #1a1a1a;
}

.ld-sort {
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #444;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	padding: 8px 12px;
	cursor: pointer;
}

/* ---------- Сетка карточек ---------- */
.ld-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
}

.ld-card {
	position: relative;
	background: #fff;
	border-radius: 20px;
	padding: 24px;
	border: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02);
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.ld-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
	border-color: rgba(0, 196, 255, 0.2);
}

.ld-card-premium {
	background: linear-gradient(135deg, #fff9ec 0%, #ffffff 40%);
	border: 1px solid #ffe1a8;
	border-left: 4px solid #ffb400;
	box-shadow: 0 6px 28px rgba(255, 180, 0, 0.12);
}

.ld-premium-label {
	position: absolute;
	top: -11px;
	left: 18px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
	background: linear-gradient(135deg, #ffb400, #ff8a00);
	border-radius: 8px;
	padding: 5px 12px;
	box-shadow: 0 3px 10px rgba(255, 138, 0, 0.35);
	z-index: 2;
}

.ld-premium-label svg {
	width: 13px;
	height: 13px;
}

.ld-card-top {
	display: flex;
	align-items: center;
	gap: 14px;
	position: relative;
}

.ld-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: 0.02em;
	overflow: hidden;
	background: linear-gradient(135deg, #00c4ff, #0088cc);
}

.ld-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ld-card-info {
	min-width: 0;
	flex: 1;
}

.ld-name {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
	margin: 0;
}

.ld-type {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 700;
	color: #0088cc;
	margin-top: 4px;
}

.ld-type svg {
	width: 14px;
	height: 14px;
}

.ld-meta {
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 12px 0;
	border-top: 1px solid #f4f4f3;
	border-bottom: 1px solid #f4f4f3;
}

.ld-meta-inline {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
}

.ld-meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #555;
}

.ld-meta-item svg {
	width: 16px;
	height: 16px;
	color: #00c4ff;
	flex-shrink: 0;
}

.ld-meta-item strong {
	color: #1a1a1a;
	font-weight: 700;
}

.ld-answers-count {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 700;
	color: #16b24b;
	background: #f0fdf4;
	border: 1px solid rgba(22, 178, 75, 0.2);
	border-radius: 6px;
	padding: 3px 9px;
}

.ld-specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ld-spec {
	font-size: 12px;
	font-weight: 600;
	color: #0088cc;
	background: #f0f9ff;
	border: 1px solid rgba(0, 196, 255, 0.2);
	border-radius: 6px;
	padding: 4px 9px;
	white-space: nowrap;
}

/* ---------- Пузырь «Обо мне» (стиль чата/Telegram) ---------- */
.ld-about-bubble {
	position: relative;
	background: #eef7ff;
	border: 1px solid #d8eaf6;
	border-radius: 14px;
	padding: 12px 14px;
	margin-top: 2px;
}

.ld-about-bubble::before {
	content: '';
	position: absolute;
	top: -7px;
	left: 22px;
	width: 14px;
	height: 14px;
	background: #eef7ff;
	border-left: 1px solid #d8eaf6;
	border-top: 1px solid #d8eaf6;
	transform: rotate(45deg);
	border-top-left-radius: 3px;
}

.ld-about-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #7a9db5;
	margin-bottom: 4px;
}

.ld-about-quote {
	display: block;
	text-align: right;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 56px;
	line-height: 0.75;
	font-weight: 800;
	color: #00c4ff;
	opacity: 0.5;
	pointer-events: none;
	margin: -2px 4px 6px 0;
}

.ld-about-bubble.premium .ld-about-quote {
	color: #ffb400;
	opacity: 0.7;
}

.ld-about-text {
	font-size: 13.5px;
	color: #333;
	line-height: 1.55;
	white-space: pre-wrap;
	word-break: break-word;
}

.ld-price {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
}

.ld-price .from {
	font-size: 12px;
	font-weight: 600;
	color: #9a9a9a;
	margin-right: 3px;
}

.ld-work-formats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.ld-wf {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	color: #777;
	background: #fafaf9;
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 3px 8px;
}

.ld-wf svg {
	width: 12px;
	height: 12px;
}

.ld-card-footer {
	margin-top: auto;
	display: flex;
}

.ld-view-btn {
	flex: 1;
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #00c4ff, #0088cc);
	border: none;
	border-radius: 10px;
	padding: 12px 16px;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 4px 14px rgba(0, 196, 255, 0.25);
	text-decoration: none;
	box-sizing: border-box;
}

.ld-view-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0, 196, 255, 0.35);
	background: linear-gradient(135deg, #00b3ee, #0077bb);
}

.ld-view-btn svg {
	width: 17px;
	height: 17px;
}

.ld-view-btn.gold {
	background: linear-gradient(135deg, #ffb400, #ff8a00);
	box-shadow: 0 4px 14px rgba(255, 180, 0, 0.35);
}

.ld-view-btn.gold:hover {
	background: linear-gradient(135deg, #ffa500, #f07f00);
	box-shadow: 0 6px 18px rgba(255, 180, 0, 0.45);
}

/* ---------- Скелетон ---------- */
.ld-skeleton {
	background: #fff;
	border-radius: 20px;
	padding: 24px;
	border: 1px solid rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ld-skeleton-top {
	display: flex;
	align-items: center;
	gap: 14px;
}

.ld-skeleton-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: shimmer 1.5s infinite;
	flex-shrink: 0;
}

.ld-empty {
	font-size: 15px;
	color: #7a7a7a;
	line-height: 1.6;
	text-align: center;
	padding: 40px 20px;
	background: #fff;
	border-radius: 20px;
	border: 1px solid rgba(0, 0, 0, 0.04);
}

/* ---------- Пагинация (переиспользуем .pagination) ---------- */
.ld-pagination-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}

.ld-pagination-wrap .pagination {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

.page-btn {
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	color: #444;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s;
	font-family: inherit;
}

.page-btn:hover:not(:disabled) {
	border-color: rgba(0, 196, 255, 0.4);
	color: #0088cc;
}

.page-btn.active {
	background: #00c4ff;
	border-color: #00c4ff;
	color: #fff;
	cursor: default;
}

.page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.page-btn-nav {
	font-weight: 700;
}

.page-dots {
	color: #b0b0b0;
	font-weight: 700;
	padding: 0 4px;
}

@keyframes shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ---------- Модалка контактов ---------- */
.ld-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s;
}

.ld-modal-overlay.open {
	opacity: 1;
	visibility: visible;
}

.ld-modal {
	background: #fff;
	border-radius: 20px;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px;
	position: relative;
	transform: translateY(20px);
	transition: transform 0.25s;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.ld-modal-overlay.open .ld-modal {
	transform: translateY(0);
}

.ld-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
}

.ld-modal-close:hover {
	background: #e0e0e0;
}

.ld-modal-close svg {
	width: 18px;
	height: 18px;
	stroke: #666;
}

.ld-modal-head {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
}

.ld-modal-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 22px;
	font-weight: 800;
	overflow: hidden;
	background: linear-gradient(135deg, #00c4ff, #0088cc);
}

.ld-modal-avatar img { width:100%; height:100%; object-fit:cover; display:block; }

.ld-modal-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ld-modal-name {
	font-size: 19px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
}

.ld-modal-sub {
	font-size: 13px;
	color: #7a7a7a;
	margin-top: 3px;
}

.ld-contacts {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ld-contact-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 14px;
	background: #fafaf9;
	border: 1px solid #f0f0f0;
	border-radius: 12px;
	text-decoration: none;
	color: #1a1a1a;
	transition: all 0.2s;
}

a.ld-contact-row:hover {
	border-color: rgba(0, 196, 255, 0.4);
	background: #f0f9ff;
}

.ld-contact-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eefcff;
	color: #00c4ff;
	flex-shrink: 0;
}

.ld-contact-icon svg {
	width: 19px;
	height: 19px;
}

.ld-contact-icon.green {
	background: #f0fdf4;
	color: #16b24b;
}

.ld-contact-icon.blue {
	background: #eef6ff;
	color: #2f7cf6;
}

.ld-contact-label {
	font-size: 12px;
	color: #9a9a9a;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.ld-contact-value {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	word-break: break-all;
}

.ld-contact-empty {
	font-size: 14px;
	color: #9a9a9a;
	text-align: center;
	padding: 24px 12px;
}

.ld-modal-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 40px 0;
	color: #7a7a7a;
	font-size: 14px;
}

.ld-modal-loader .spinner {
	width: 22px;
	height: 22px;
	border: 3px solid #e0e0e0;
	border-top-color: #00c4ff;
	border-radius: 50%;
	animation: ld-spin 0.7s linear infinite;
}

@keyframes ld-spin {
	to { transform: rotate(360deg); }
}

/* ---------- Правовой дисклеймер ---------- */
.ld-disclaimer {
	font-size: 12.5px;
	color: #9a9a9a;
	line-height: 1.6;
	text-align: center;
	max-width: 900px;
	margin: 8px auto 0;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
	.ld-layout {
		grid-template-columns: 1fr;
	}

	.ld-sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	.ld-hero h1 {
		font-size: 24px;
	}

	.ld-filters {
		padding: 16px;
	}

	.ld-card {
		padding: 20px;
	}

	.ld-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}
}