/* Трудовые будни — светлый стиль ближе к /letopis/ */
.budni-page {
	max-width: 1320px;
	margin: 0 auto;
	padding: 40px 15px 60px;
	color: #444;
}

.budni-head h1 {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 3vw, 2.1rem);
	line-height: 1.25;
	font-weight: 500;
	color: #333;
}

.budni-head p {
	margin: 0;
	color: #666;
	font-size: 1rem;
}

.budni-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 1.35rem 0 1.5rem;
}

.budni-tag[hidden] {
	display: none;
}

.budni-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border-radius: 4px;
	border: 1px solid #dce3ea;
	background: #fff;
	color: #444;
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 500;
}

.budni-tag:hover,
.budni-tag.is-active {
	border-color: #00b1ff;
	background: #eaf7ff;
	color: #0077b3;
}

.budni-status {
	margin: 0 0 1rem;
	color: #777;
}

.budni-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
}

@media (max-width: 991px) {
	.budni-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.budni-grid {
		grid-template-columns: 1fr;
	}
}

.budni-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e6ebf0;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.budni-card:hover {
	border-color: #c5d5e0;
	box-shadow: 0 8px 24px rgba(9, 66, 90, 0.08);
}

.budni-card:focus-visible {
	outline: 2px solid #00b1ff;
	outline-offset: 2px;
}

.budni-card-media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: #f0f4f7;
}

.budni-card-media img,
.budni-card-media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.budni-card-badge {
	position: absolute;
	left: 0.55rem;
	bottom: 0.55rem;
	padding: 0.2rem 0.5rem;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.92);
	color: #333;
	border: 1px solid #dce3ea;
	font-size: 0.72rem;
	font-weight: 600;
}

.budni-card-body {
	padding: 0.85rem 1rem 1.05rem;
	display: grid;
	gap: 0.4rem;
}

.budni-card-desc {
	margin: 0;
	font-size: 1rem;
	line-height: 1.4;
	color: #333;
	font-weight: 500;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	white-space: pre-line;
}

.budni-card-meta {
	font-size: 0.8rem;
	color: #888;
}

.budni-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
}

.budni-card-tags a {
	font-size: 0.75rem;
	font-weight: 500;
	text-decoration: none;
	color: #0077b3;
}

.budni-lightbox {
	--budni-stage-h: min(56vh, 544px);
	position: fixed;
	inset: unset;
	top: max(4.5rem, calc(50vh - 2.15rem - (var(--budni-stage-h) / 2)));
	right: 0;
	bottom: auto;
	left: 0;
	margin: 0 auto;
	border: 0;
	padding: 0;
	width: min(980px, calc(100vw - 1.25rem));
	max-width: min(980px, calc(100vw - 1.25rem));
	height: auto;
	max-height: calc(100dvh - 5rem);
	overflow: auto;
	background: #fff;
	color: #333;
	border-radius: 6px;
	box-shadow: 0 20px 50px rgba(9, 66, 90, 0.18);
}

.budni-lightbox::backdrop {
	background: rgba(9, 66, 90, 0.35);
}

.budni-lightbox-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.65rem 3.25rem 0.35rem 0.85rem;
}

.budni-lightbox-counter {
	font-size: 0.85rem;
	color: #777;
	margin: 0;
}

.budni-lightbox-swipe-hint {
	display: none;
	position: absolute;
	left: 50%;
	bottom: 0.65rem;
	z-index: 3;
	transform: translateX(-50%);
	align-items: center;
	justify-content: center;
	color: #9aa3ad;
	line-height: 0;
	opacity: 0.95;
	pointer-events: none;
}

.budni-lightbox-swipe-hint svg {
	display: block;
}

.budni-lightbox-swipe-hint.is-nudging {
	animation: budni-swipe-nudge 1.1s ease 1;
}

@keyframes budni-swipe-nudge {
	0% { transform: translateX(-50%); }
	25% { transform: translateX(calc(-50% - 7px)); }
	55% { transform: translateX(calc(-50% + 7px)); }
	80% { transform: translateX(calc(-50% - 3px)); }
	100% { transform: translateX(-50%); }
}

/* Как кнопки карусели «Наши клиенты»: FA angle + квадрат 40×40 */
.budni-lightbox-close,
.budni-lightbox-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 3px;
	background: #f0f0f0;
	color: #0080fe;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease, color 0.15s ease;
}

.budni-lightbox-close {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	z-index: 5;
}

.budni-lightbox-close:hover,
.budni-lightbox-nav:hover:not(:disabled) {
	transform: scale(1.06);
}

.budni-lightbox-close:active {
	transform: scale(0.9);
	opacity: 0.85;
}

.budni-lightbox-stage {
	position: relative;
	padding: 0 2.75rem;
	min-height: min(40vh, 336px);
	height: var(--budni-stage-h);
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	overflow: hidden;
}

.budni-lightbox-body {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.budni-lightbox-body img,
.budni-lightbox-body video {
	display: block;
	width: 100%;
	height: 100%;
	max-height: var(--budni-stage-h);
	object-fit: contain;
	background: transparent;
	opacity: 0;
	transition: opacity 0.22s ease;
}

.budni-lightbox-body img.is-ready,
.budni-lightbox-body video.is-ready {
	opacity: 1;
}

.budni-lightbox-caption {
	margin: 0;
	padding: 1rem 1rem 0.5rem 1rem;
	font-size: 0.85rem;
	line-height: 1.45;
	color: #444;
	background: #fff;
	min-height: 3.2em;
	max-height: 7.5rem;
	overflow: auto;
	white-space: pre-line;
	transition: opacity 0.18s ease;
}

.budni-lightbox-caption.is-fading {
	opacity: 0.35;
}

.budni-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
}

.budni-lightbox-nav:hover:not(:disabled) {
	transform: translateY(-50%) scale(1.06);
}

.budni-lightbox-nav:active:not(:disabled) {
	transform: translateY(-50%) scale(0.9);
	opacity: 0.85;
}

.budni-lightbox-nav:disabled {
	opacity: 0.35;
	cursor: default;
	color: #9aa8b3;
}

.budni-lightbox-nav:disabled:hover {
	transform: translateY(-50%);
}

.budni-lightbox-prev {
	left: 0.55rem;
}

.budni-lightbox-next {
	right: 0.55rem;
}

@media (min-width: 768px) {
	.budni-lightbox-nav {
		position: fixed;
		top: 50%;
		bottom: auto;
	}

	.budni-lightbox-prev {
		left: calc(50vw - min(490px, (100vw - 1.25rem) / 2) + 0.55rem);
		right: auto;
	}

	.budni-lightbox-next {
		right: calc(50vw - min(490px, (100vw - 1.25rem) / 2) + 0.55rem);
		left: auto;
	}
}

.budni-lightbox-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	padding: 0 1rem 1rem;
}

.budni-lightbox-tags a {
	font-size: 0.78rem;
	text-decoration: none;
	color: #0077b3;
	border: 1px solid #dce3ea;
	border-radius: 3px;
	padding: 0.15rem 0.45rem;
	background: #f7f9fb;
}

@media (max-width: 767px) {
	.budni-lightbox-nav {
		display: none;
	}

	.budni-lightbox-swipe-hint {
		display: inline-flex;
	}

	.budni-lightbox-close {
		width: 32px;
		height: 32px;
		font-size: 14px;
		top: 0.45rem;
		right: 0.45rem;
	}

	.budni-lightbox-bar {
		padding-right: 2.75rem;
	}

	.budni-lightbox-stage {
		padding: 0 0.75rem;
		touch-action: pan-y;
	}
}
