/* News section — list & detail */

.mouo-nashi-proekty-page .mouo-dropdown-nav {
	position: relative;
	margin: 0 0 20px;
}

.mouo-nashi-proekty-page .mouo-dropdown-nav__control {
	position: relative;
}

.mouo-nashi-proekty-page .mouo-dropdown-nav__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--mouo-line);
	border-radius: calc(var(--mouo-radius) + 2px);
	background: #fff;
	color: var(--mouo-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	box-shadow: var(--mouo-shadow-sm);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mouo-nashi-proekty-page .mouo-dropdown-nav__toggle:hover,
.mouo-nashi-proekty-page .mouo-dropdown-nav.is-open .mouo-dropdown-nav__toggle {
	border-color: var(--mouo-primary-light);
	box-shadow: var(--mouo-shadow-md);
}

.mouo-nashi-proekty-page .mouo-dropdown-nav__current {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--mouo-primary);
}

.mouo-nashi-proekty-page .mouo-dropdown-nav__icon {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	flex: 0 0 auto;
	width: 22px;
	height: 18px;
}

.mouo-nashi-proekty-page .mouo-dropdown-nav__icon-bar {
	display: block;
	width: 100%;
	height: 2px;
	border-radius: 999px;
	background: var(--mouo-primary);
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.mouo-nashi-proekty-page .mouo-dropdown-nav.is-open .mouo-dropdown-nav__icon-bar:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.mouo-nashi-proekty-page .mouo-dropdown-nav.is-open .mouo-dropdown-nav__icon-bar:nth-child(2) {
	opacity: 0;
}

.mouo-nashi-proekty-page .mouo-dropdown-nav.is-open .mouo-dropdown-nav__icon-bar:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

.mouo-nashi-proekty-page .mouo-dropdown-nav__panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	max-height: min(60vh, 420px);
	overflow: auto;
	border: 1px solid var(--mouo-line);
	border-radius: calc(var(--mouo-radius) + 2px);
	background: #fff;
	box-shadow: var(--mouo-shadow-md);
}

.mouo-nashi-proekty-page .mouo-dropdown-nav__list {
	margin: 0;
	padding: 8px;
	list-style: none;
}

.mouo-nashi-proekty-page .mouo-dropdown-nav__item + .mouo-dropdown-nav__item {
	margin-top: 4px;
}

.mouo-nashi-proekty-page .mouo-dropdown-nav__link {
	display: block;
	padding: 10px 12px;
	border-radius: var(--mouo-radius);
	color: var(--mouo-text);
	font-size: 13px;
	line-height: 1.35;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.mouo-nashi-proekty-page .mouo-dropdown-nav__link:hover {
	background: var(--mouo-bg-soft, #f4f7fb);
	color: var(--mouo-primary);
}

.mouo-nashi-proekty-page .mouo-dropdown-nav__link.is-active {
	background: var(--mouo-primary);
	color: #fff;
}

.mouo-news-filter {
	margin: 0 0 24px;
}

.mouo-news-filter__shell {
	overflow: hidden;
	border: 1px solid var(--mouo-line);
	border-radius: calc(var(--mouo-radius) + 2px);
	background: var(--mouo-surface);
	box-shadow: var(--mouo-shadow-sm);
}

.mouo-news-filter__toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 14px 18px;
	border: 0;
	background: linear-gradient(180deg, rgba(42, 80, 130, 0.06) 0%, rgba(42, 80, 130, 0.02) 100%);
	color: var(--mouo-primary);
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.3;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.mouo-news-filter__toggle:hover {
	background: linear-gradient(180deg, rgba(42, 80, 130, 0.1) 0%, rgba(42, 80, 130, 0.04) 100%);
	color: var(--mouo-accent);
}

.mouo-news-filter__toggle:focus-visible {
	outline: none;
	box-shadow: inset 0 0 0 2px var(--mouo-primary-light);
}

.mouo-news-filter--open .mouo-news-filter__toggle {
	border-bottom: 1px solid var(--mouo-line);
}

.mouo-news-filter__toggle-icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background: currentColor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/%3E%3C/svg%3E") center / contain no-repeat;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mouo-news-filter__toggle-text {
	flex: 1 1 auto;
	min-width: 0;
}

.mouo-news-filter__badge {
	flex: 0 0 auto;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(42, 80, 130, 0.12);
	color: var(--mouo-primary);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
}

.mouo-news-filter__toggle-chevron {
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	margin-top: -3px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease, margin 0.2s ease;
}

.mouo-news-filter--open .mouo-news-filter__toggle-chevron {
	margin-top: 3px;
	transform: rotate(-135deg);
}

.mouo-news-filter__panel {
	display: grid;
	gap: 16px;
	padding: 16px 18px 18px;
}

.mouo-news-filter__panel[hidden] {
	display: none;
}

.mouo-news-filter__hint {
	margin: 0;
	color: var(--mouo-muted);
	font-size: 14px;
	line-height: 1.5;
}

.mouo-news-filter__body {
	display: grid;
	gap: 14px;
}

.mouo-news-filter__field {
	display: grid;
	gap: 10px;
}

.mouo-news-filter__label {
	font-size: 14px;
	font-weight: 700;
	color: var(--mouo-text);
}

.mouo-news-filter__range {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: 12px;
	align-items: end;
}

.mouo-news-filter__range-item {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.mouo-news-filter__range-caption {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--mouo-muted);
}

.mouo-news-filter__range-sep {
	width: 16px;
	height: 2px;
	margin-bottom: 14px;
	border-radius: 999px;
	background: var(--mouo-line);
}

.mouo-news-filter__control {
	min-width: 0;
}

.mouo-news-filter__control--date {
	position: relative;
}

.mouo-news-filter__control--date input[type="text"],
.mouo-news-filter__control--date .mouo-news-filter__input {
	padding-right: 44px;
	cursor: pointer;
}

.mouo-news-filter__control .calendar-icon {
	display: inline-block !important;
	position: absolute;
	right: 4px;
	top: 50%;
	width: 32px;
	height: 32px;
	margin: -16px 0 0;
	padding: 6px;
	border: 0;
	border-radius: calc(var(--mouo-radius) - 2px);
	box-sizing: border-box;
	object-fit: contain;
	cursor: pointer;
	background-color: transparent;
	transition: background-color 0.15s ease, opacity 0.15s ease;
	opacity: 0.85;
}

.mouo-news-filter__control .calendar-icon:hover,
.mouo-news-filter__control .calendar-icon.calendar-icon-hover,
.mouo-news-filter__control .calendar-icon:focus {
	background-color: rgba(42, 80, 130, 0.1);
	opacity: 1;
	outline: none;
}

.mouo-news-filter__input,
.mouo-news-filter__control input[type="text"],
.mouo-news-filter__control select {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--mouo-line);
	border-radius: var(--mouo-radius);
	background: #fff;
	color: var(--mouo-text);
	font-size: 14px;
	line-height: 1.4;
	box-shadow: none;
}

.mouo-news-filter__input:focus,
.mouo-news-filter__control input[type="text"]:focus,
.mouo-news-filter__control select:focus,
.mouo-news-filter__control--date:focus-within input[type="text"] {
	outline: none;
	border-color: var(--mouo-primary-light);
	box-shadow: 0 0 0 3px rgba(42, 80, 130, 0.12);
}

.mouo-news-filter__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mouo-news-filter__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mouo-news-filter__btn--primary {
	background: var(--mouo-primary);
	color: #fff;
}

.mouo-news-filter__btn--primary:hover {
	background: var(--mouo-accent);
}

.mouo-news-filter__btn--ghost {
	border: 1px solid var(--mouo-line);
	background: #fff;
	color: var(--mouo-primary);
}

.mouo-news-filter__btn--ghost:hover {
	border-color: var(--mouo-accent);
	color: var(--mouo-accent);
}

.mouo-campaign-page .mouo-news-filter__shell {
	border-color: rgba(42, 80, 130, 0.16);
	background: linear-gradient(180deg, rgba(42, 80, 130, 0.04) 0%, #fff 100%);
}

.mouo-campaign-page .mouo-news-filter__toggle {
	background: linear-gradient(180deg, rgba(42, 80, 130, 0.08) 0%, rgba(42, 80, 130, 0.03) 100%);
}

@media (max-width: 640px) {
	.mouo-news-filter__range {
		grid-template-columns: 1fr;
	}

	.mouo-news-filter__range-sep {
		display: none;
	}

	.mouo-news-filter__actions {
		flex-direction: column;
	}

	.mouo-news-filter__btn {
		width: 100%;
	}
}

.mouo-news-filter + br {
	display: none;
}

.mouo-news-page {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mouo-news-page__toolbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* Section chips */
.mouo-news-sections {
	margin: 0 0 8px;
}

.mouo-news-sections__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 4px;
}

.mouo-news-sections__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	min-width: min-content;
}

.mouo-news-sections__link {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--mouo-surface);
	border: 1px solid var(--mouo-line);
	color: var(--mouo-text);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mouo-news-sections__link:hover {
	border-color: var(--mouo-primary-light);
	color: var(--mouo-primary);
}

.mouo-news-sections__item.is-active .mouo-news-sections__link {
	background: var(--mouo-primary);
	border-color: var(--mouo-primary);
	color: #fff;
}

.mouo-news-head {
	margin: 0 0 8px;
}

.mouo-news-head__title {
	margin: 0 0 8px;
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 800;
	line-height: 1.2;
	color: var(--mouo-text);
}

.mouo-news-head__desc {
	color: var(--mouo-muted);
	font-size: 15px;
}

/* News list cards */
.mouo-news-list__grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mouo-news-card {
	background: var(--mouo-surface);
	border: 1px solid var(--mouo-line);
	border-radius: var(--mouo-radius);
	box-shadow: var(--mouo-shadow-sm);
	padding: 18px;
}

.mouo-news-card__date {
	display: inline-block;
	margin-bottom: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--mouo-accent-soft);
	color: var(--mouo-primary);
	font-size: 12px;
	font-weight: 700;
}

.mouo-news-card__body {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 16px;
	align-items: start;
}

.mouo-news-card__thumb {
	display: block;
	overflow: hidden;
	border-radius: var(--mouo-radius-sm);
	border: 1px solid var(--mouo-line);
}

.mouo-news-card__thumb img {
	display: block;
	width: 120px;
	height: auto;
}

.mouo-news-card__title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.35;
}

.mouo-news-card__title a {
	color: var(--mouo-text);
	text-decoration: none;
}

.mouo-news-card__title a:hover {
	color: var(--mouo-primary-light);
}

.mouo-news-card__excerpt {
	margin: 0;
	color: var(--mouo-muted);
	font-size: 14px;
	line-height: 1.6;
}

.mouo-news-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid var(--mouo-line);
	flex-wrap: wrap;
}

.mouo-news-card__more {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--mouo-primary);
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease;
}

.mouo-news-card__more:hover {
	background: var(--mouo-primary-light);
	color: #fff !important;
}

.mouo-news-soc {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.mouo-news-soc__link {
	display: inline-flex;
}

.mouo-news-soc__icon {
	width: 24px;
	height: 24px;
	border: 0;
}

/* Pagination */
.mouo-news-list__pager {
	margin-top: 24px;
}

.mouo-news-list__pager--top {
	margin-top: 0;
	margin-bottom: 16px;
}

.mouo-news-pager,
.mouo-news-list__pager .modern-page-navigation {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.mouo-news-pager .modern-page-title {
	display: none;
}

.mouo-news-pager a,
.mouo-news-pager span,
.mouo-news-list__pager .modern-page-navigation a,
.mouo-news-list__pager .modern-page-navigation span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--mouo-line);
	background: var(--mouo-surface);
	color: var(--mouo-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mouo-news-pager .modern-page-current,
.mouo-news-list__pager .modern-page-current {
	background: var(--mouo-primary);
	border-color: var(--mouo-primary);
	color: #fff;
}

.mouo-news-pager a:hover,
.mouo-news-list__pager .modern-page-navigation a:hover {
	border-color: var(--mouo-primary-light);
	color: var(--mouo-primary);
}

.mouo-news-pager .modern-page-previous,
.mouo-news-pager .modern-page-next,
.mouo-news-list__pager .modern-page-previous,
.mouo-news-list__pager .modern-page-next {
	min-width: auto;
	padding: 0 16px;
}

/* Detail page */
.mouo-news-detail {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.mouo-news-detail__date {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--mouo-accent-soft);
	color: var(--mouo-primary);
	font-size: 12px;
	font-weight: 700;
}

.mouo-news-detail__title {
	margin: 0 0 12px;
	font-size: clamp(24px, 3.5vw, 32px);
	font-weight: 800;
	line-height: 1.25;
}

.mouo-news-detail__hero {
	margin: 0;
	text-align: center;
}

.mouo-news-detail__hero img {
	max-width: 100%;
	height: auto;
	border-radius: var(--mouo-radius);
	box-shadow: var(--mouo-shadow-md);
}

.mouo-news-detail__content {
	font-size: 16px;
	line-height: 1.7;
}

.mouo-news-detail__section-title {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 800;
}

.mouo-news-files {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mouo-news-files__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	border-radius: var(--mouo-radius-sm);
	border: 1px solid var(--mouo-line);
	background: var(--mouo-bg);
	text-decoration: none;
	color: var(--mouo-text);
}

.mouo-news-files__link:hover {
	border-color: var(--mouo-primary-light);
}

.mouo-news-files__name {
	font-weight: 600;
}

.mouo-news-files__meta {
	color: var(--mouo-muted);
	font-size: 13px;
	white-space: nowrap;
}

.mouo-news-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 12px;
}

.mouo-news-gallery__item {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	min-height: 112px;
	border-radius: var(--mouo-radius-sm);
	border: 1px solid var(--mouo-line);
	background: rgba(42, 80, 130, 0.04);
}

.mouo-news-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

/* Fancybox: global img { max-width:100%; height:auto } breaks slide navigation */
#fancybox-wrap #fancybox-img,
#fancybox-wrap #fancybox-content > img {
	width: auto !important;
	height: auto !important;
	max-width: min(calc(100vw - 40px), 1200px);
	max-height: min(calc(100vh - 80px), 900px);
	object-fit: contain;
}

.mouo-news-detail__footer {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--mouo-line);
}

.mouo-news-detail__short-label,
.mouo-news-detail__share-label {
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 700;
	color: var(--mouo-muted);
}

.mouo-news-detail__short-link {
	display: inline-block;
	padding: 0;
	border: 0;
	background: none;
	color: var(--mouo-primary-light);
	font: inherit;
	text-align: left;
	text-decoration: underline;
	cursor: pointer;
	word-break: break-all;
}

.mouo-news-detail__short-link:hover {
	color: var(--mouo-accent);
}

.mouo-news-detail__back {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--mouo-primary);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.mouo-news-detail__back:hover {
	background: var(--mouo-primary-light);
	color: #fff !important;
}

.mouo-copy-notification {
	position: fixed;
	z-index: 1200;
	padding: 12px 20px;
	border-radius: 8px;
	background: #036418;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	box-shadow: var(--mouo-shadow-md);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.mouo-copy-notification.is-visible {
	opacity: 1;
}

@media (max-width: 640px) {
	.mouo-news-card__body {
		grid-template-columns: 1fr;
	}

	.mouo-news-card__thumb img {
		width: 100%;
	}
}

/* Campaign layout: news inside enrollment prose wrapper */
.mouo-enrollment-page:has(.mouo-news-detail) .mouo-enrollment-head,
.mouo-enrollment-page:has(.mouo-news-detail) .mouo-enrollment-lead {
	display: none;
}

.mouo-enrollment-page__content.mouo-prose .mouo-news-list {
	margin-bottom: 28px;
}

.mouo-enrollment-page__content.mouo-prose .mouo-news-list,
.mouo-enrollment-page__content.mouo-prose .mouo-news-detail {
	max-width: none;
}

.mouo-enrollment-page__content.mouo-prose .mouo-news-card__title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.35;
	text-transform: none;
}

.mouo-enrollment-page__content.mouo-prose .mouo-news-card__title a {
	color: var(--mouo-primary);
	text-decoration: none;
}

.mouo-enrollment-page__content.mouo-prose .mouo-news-card__title a:hover {
	color: var(--mouo-accent);
}

.mouo-enrollment-page__content.mouo-prose .mouo-news-detail__title {
	margin: 0 0 12px;
	font-size: clamp(22px, 3vw, 28px);
	text-transform: none;
}

.mouo-enrollment-page__content.mouo-prose .mouo-news-detail__content img {
	max-width: 100%;
	height: auto;
}

.mouo-enrollment-page__content .mouo-news-gallery__item img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.mouo-enrollment-page__content.mouo-prose .mouo-news-list__pager .modern-page-navigation,
.mouo-enrollment-page__content.mouo-prose .mouo-news-list__pager .modern-page-navigation a,
.mouo-enrollment-page__content.mouo-prose .mouo-news-list__pager .modern-page-navigation span {
	font-family: inherit;
}
