/* Архив решений */
.lex-solutions-archive {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
}

.lex-solutions-filters-wrap {
	margin-bottom: 2rem;
	padding: 1.25rem 1.5rem;
	background: #f6f7f7;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
}

.lex-solutions-filters-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 600;
}

.lex-solutions-filters {
	margin: 0;
}

.lex-solutions-filters-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 1rem 1.5rem;
	margin: 0;
}

.lex-solutions-filter-group {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.lex-solutions-filter-group label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: #1e1e1e;
}

.lex-solutions-filter-search {
	flex: 1;
	min-width: 200px;
}

.lex-solutions-search-input {
	width: 100%;
	max-width: 320px;
	padding: 0.5rem 0.75rem;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 1rem;
}

.lex-solutions-select {
	padding: 0.5rem 0.75rem;
	min-width: 160px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 1rem;
}

.lex-solutions-filter-submit .lex-solutions-filter-submit-label {
	visibility: hidden;
}

.lex-solutions-submit {
	padding: 0.5rem 1.25rem;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
}

.lex-solutions-submit:hover {
	background: #135e96;
}

.lex-solutions-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}

.lex-solution-card {
	margin: 0;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s;
}

.lex-solution-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.lex-solution-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
	height: 100%;
}

.lex-solution-card-thumb {
	aspect-ratio: 16/10;
	background: #e8e8e8;
	overflow: hidden;
}

.lex-solution-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.lex-solution-card-thumb-placeholder {
	background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.lex-solution-card-body {
	padding: 1rem;
}

.lex-solution-card-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
	line-height: 1.3;
}

.lex-solution-card-excerpt {
	font-size: 0.9rem;
	color: #555;
	margin-bottom: 0.75rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lex-solution-card-meta {
	font-size: 0.8rem;
	color: #777;
	margin-bottom: 0.5rem;
}

.lex-solution-card-badge {
	display: inline-block;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 600;
}

.lex-solution-badge-free {
	background: #e8f5e9;
	color: #2e7d32;
}

.lex-solution-badge-subscription {
	background: #fff3e0;
	color: #e65100;
}

.lex-solutions-pagination {
	margin-top: 1.5rem;
}

.lex-solutions-pagination a {
	margin-right: 0.5rem;
}

.lex-solutions-pagination a.current {
	font-weight: bold;
}

.lex-solutions-none {
	text-align: center;
	color: #666;
	padding: 2rem;
}

/* Одиночное решение */
.lex-solution-single {
	max-width: 720px;
	margin: 0 auto;
	padding: 1rem 1rem 2rem;
}

.lex-solution-header {
	margin-bottom: 1.5rem;
}

.lex-solution-title {
	margin: 0 0 0.5rem;
}

.lex-solution-meta {
	font-size: 0.9rem;
	color: #666;
}

.lex-solution-meta .lex-solution-badge {
	margin-left: 0.5rem;
}

.lex-solution-lock-notice {
	background: #fff3e0;
	border: 1px solid #ffcc80;
	border-radius: 6px;
	padding: 1rem;
	margin-bottom: 1.5rem;
}

.lex-solution-content {
	margin-bottom: 2rem;
}

.lex-solution-video,
.lex-solution-files,
.lex-solution-steps {
	margin-bottom: 2rem;
}

.lex-solution-video h2,
.lex-solution-files h2,
.lex-solution-steps h2 {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

.lex-solution-video-embed iframe {
	max-width: 100%;
}

.lex-solution-files-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lex-solution-file-item {
	margin-bottom: 0.5rem;
}

.lex-solution-file-item a {
	display: inline-block;
	padding: 0.35rem 0;
}

.lex-solution-element-locked,
.lex-solution-element-locked-wrap .lex-solution-element-locked {
	background: #f5f5f5;
	border: 1px dashed #ccc;
	border-radius: 6px;
	padding: 1rem;
	color: #666;
}

.lex-solution-step {
	margin-bottom: 1.5rem;
}

.lex-solution-step h3 {
	font-size: 1.05rem;
	margin-bottom: 0.5rem;
}

.lex-solution-step-content {
	margin-left: 0;
}
