:root {
	--mouo-container: 1280px;
	--mouo-sidebar-w: 280px;
	--mouo-topbar-h: 76px;
	--mouo-bg: #f4f6fa;
	--mouo-surface: #ffffff;
	--mouo-text: #1a2332;
	--mouo-muted: #5c6b7f;
	--mouo-line: #dde3ed;
	--mouo-primary: #1e3a5f;
	--mouo-primary-light: #2a5082;
	--mouo-accent: #c9a227;
	--mouo-accent-soft: rgba(201, 162, 39, 0.12);
	--mouo-success: #0d9488;
	--mouo-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
	--mouo-shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
	--mouo-shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
	--mouo-radius: 12px;
	--mouo-radius-sm: 8px;
	--mouo-transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
	--mouo-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	height: 100%;
	-webkit-text-size-adjust: 100%;
}

body.mouo-body {
	margin: 0;
	min-height: 100%;
	font-family: var(--mouo-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--mouo-text);
	background: var(--mouo-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--mouo-primary-light);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--mouo-accent);
}

#panel {
	position: relative;
	z-index: 10000;
}

.mouo-container {
	width: 100%;
	max-width: var(--mouo-container);
	margin: 0 auto;
	padding: 0 16px;
}

.mouo-app {
	display: flex;
	min-height: 100vh;
}

/* Sidebar */
.mouo-sidebar {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1100;
	display: flex;
	flex-direction: column;
	width: var(--mouo-sidebar-w);
	height: 100vh;
	height: 100dvh;
	background: linear-gradient(180deg, #12243d 0%, #1e3a5f 55%, #243f68 100%);
	color: #fff;
	box-shadow: var(--mouo-shadow-lg);
	transform: translateX(0);
	transition: transform var(--mouo-transition);
	overflow: hidden;
}

.mouo-sidebar__head {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 16px 16px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mouo-sidebar__head-label {
	font-size: 14px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.92);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mouo-sidebar__close {
	display: none;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.mouo-sidebar__org {
	padding: 12px 16px 0;
	font-size: 12px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.78);
}

.mouo-sidebar__org a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fde68a;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.mouo-sidebar__org a:hover {
	background: rgba(201, 162, 39, 0.16);
	border-color: rgba(201, 162, 39, 0.35);
	color: #fff;
}

.mouo-sidebar__org img {
	flex-shrink: 0;
}

.mouo-sidebar__nav {
	flex: 1;
	overflow: auto;
	padding: 14px 8px 14px 10px;
	-webkit-overflow-scrolling: touch;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
	scrollbar-color: rgba(201, 162, 39, 0.55) rgba(255, 255, 255, 0.06);
}

.mouo-sidebar__nav::-webkit-scrollbar {
	width: 6px;
}

.mouo-sidebar__nav::-webkit-scrollbar-track {
	margin: 6px 0;
	border-radius: 999px;
	background: linear-gradient(
		180deg,
		rgba(255, 255, 255, 0.02) 0%,
		rgba(255, 255, 255, 0.08) 50%,
		rgba(255, 255, 255, 0.02) 100%
	);
}

.mouo-sidebar__nav::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: linear-gradient(
		180deg,
		rgba(253, 230, 138, 0.85) 0%,
		rgba(201, 162, 39, 0.75) 100%
	);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 0 8px rgba(201, 162, 39, 0.25);
}

.mouo-sidebar__nav::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(
		180deg,
		rgba(253, 230, 138, 1) 0%,
		rgba(201, 162, 39, 0.95) 100%
	);
	box-shadow: 0 0 10px rgba(201, 162, 39, 0.4);
}

.mouo-sidebar__nav::-webkit-scrollbar-thumb:active {
	background: rgba(201, 162, 39, 1);
}

.mouo-sidebar__nav::-webkit-scrollbar-corner {
	background: transparent;
}

.mouo-sidebar__extras {
	padding: 12px 16px 18px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mouo-sidebar__projects {
	margin-bottom: 0;
}

.mouo-sidebar__projects-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	text-align: left;
}

.mouo-sidebar__projects-toggle:hover,
.mouo-sidebar__projects-toggle:focus-visible {
	color: rgba(255, 255, 255, 0.85);
}

.mouo-sidebar__projects-chevron {
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.mouo-sidebar__projects.is-expanded .mouo-sidebar__projects-chevron {
	transform: rotate(-135deg);
}

.mouo-sidebar__projects-list {
	display: none;
	flex-direction: column;
	gap: 10px;
	margin-top: 10px;
}

.mouo-sidebar__projects.is-expanded .mouo-sidebar__projects-list {
	display: flex;
}

@media (min-width: 1024px) {
	.mouo-sidebar__projects .mouo-sidebar__projects-list {
		display: flex;
	}

	.mouo-sidebar__projects.is-collapsed .mouo-sidebar__projects-list {
		display: none;
	}

	.mouo-sidebar__projects.is-collapsed .mouo-sidebar__projects-chevron {
		transform: rotate(45deg);
	}
}

.mouo-sidebar__project-item {
	margin: 0;
	padding: 0;
}

.mouo-sidebar__projects-list a,
.mouo-sidebar__project-item a {
	display: block;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	line-height: 0;
}

.mouo-sidebar__projects-list a:hover,
.mouo-sidebar__project-item a:hover {
	background: rgba(201, 162, 39, 0.14);
	border-color: rgba(201, 162, 39, 0.35);
	transform: translateY(-1px);
}

.mouo-sidebar__projects-list img,
.mouo-sidebar__project-item img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

.mouo-sidebar-overlay {
	position: fixed;
	inset: 0;
	z-index: 1050;
	background: rgba(10, 18, 32, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	cursor: pointer;
}

.mouo-main-wrap {
	flex: 1;
	min-width: 0;
	margin-left: var(--mouo-sidebar-w);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Top bar */
.mouo-topbar {
	position: sticky;
	top: 0;
	z-index: 900;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--mouo-line);
	box-shadow: var(--mouo-shadow-sm);
}

.mouo-topbar::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent 0%, var(--mouo-accent) 18%, var(--mouo-primary-light) 50%, var(--mouo-accent) 82%, transparent 100%);
	opacity: 0.65;
	pointer-events: none;
}

.mouo-topbar__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: var(--mouo-topbar-h);
	padding: 10px 0;
}

.mouo-topbar__brand {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: inherit;
}

.mouo-topbar__brand:hover {
	text-decoration: none;
}

.mouo-topbar__coat {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.mouo-topbar__names {
	min-width: 0;
}

.mouo-topbar__name {
	display: block;
}

.mouo-topbar__name--primary {
	font-size: clamp(13px, 1.5vw, 16px);
	font-weight: 700;
	line-height: 1.25;
	color: var(--mouo-primary);
}

.mouo-topbar__name--secondary {
	margin-top: 3px;
	font-size: clamp(11px, 1.2vw, 13px);
	font-weight: 600;
	line-height: 1.35;
	color: var(--mouo-muted);
}

.mouo-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--mouo-line);
	border-radius: var(--mouo-radius-sm);
	background: var(--mouo-surface);
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mouo-burger span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--mouo-primary);
	border-radius: 999px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.mouo-burger.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.mouo-burger.is-active span:nth-child(2) {
	opacity: 0;
}

.mouo-burger.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.mouo-topbar__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.mouo-topbar__icons {
	display: flex;
	align-items: center;
}

.mouo-quick-links {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px;
	border-radius: 999px;
	background: var(--mouo-bg);
	border: 1px solid var(--mouo-line);
}

.mouo-quick-links__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	color: var(--mouo-primary-light);
	background: transparent;
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mouo-quick-links__btn:hover {
	background: var(--mouo-accent-soft);
	color: var(--mouo-primary);
	transform: translateY(-1px);
}

.mouo-topbar__icons img {
	width: 14px;
	height: 14px;
}

/* Search bar under header */
.mouo-search-bar {
	background: linear-gradient(180deg, #eef2f8 0%, var(--mouo-bg) 100%);
	border-bottom: 1px solid var(--mouo-line);
	padding: 14px 0 16px;
}

.mouo-search {
	width: 100%;
}

.mouo-search__form {
	display: flex;
	align-items: stretch;
	gap: 10px;
	width: 100%;
}

.mouo-search__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mouo-search__field {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
}

.mouo-search__icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--mouo-muted);
	pointer-events: none;
}

.mouo-search__field input[type="text"],
.mouo-search__field .search-suggest {
	width: 100%;
	height: 48px;
	padding: 0 16px 0 46px;
	border: 1px solid var(--mouo-line);
	border-radius: 999px;
	background: var(--mouo-surface);
	color: var(--mouo-text);
	font: inherit;
	font-size: 15px;
	box-shadow: var(--mouo-shadow-sm);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mouo-search__field input[type="text"]:focus,
.mouo-search__field .search-suggest:focus {
	outline: none;
	border-color: var(--mouo-primary-light);
	box-shadow: 0 0 0 3px rgba(42, 80, 130, 0.12);
}

.mouo-search__submit {
	flex: 0 0 auto;
	height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--mouo-primary);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.mouo-search__submit:hover {
	background: var(--mouo-primary-light);
}

.mouo-search__submit:active {
	transform: translateY(1px);
}

/* Main layout */
.mouo-main {
	flex: 1;
	padding: 20px 0 28px;
}

.mouo-page-head {
	margin-bottom: 18px;
}

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

.mouo-breadcrumb {
	margin-bottom: 10px;
	font-size: 13px;
	color: var(--mouo-muted);
}

.mouo-page-body {
	background: var(--mouo-surface);
	border: 1px solid var(--mouo-line);
	border-radius: var(--mouo-radius);
	box-shadow: var(--mouo-shadow-sm);
	padding: clamp(16px, 3vw, 24px);
	min-height: 120px;
}

.mouo-page-body:empty {
	min-height: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
}

.mouo-gallery-strip {
	margin-top: 8px;
	padding-bottom: 8px;
	overflow: hidden;
}

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

.mouo-gallery-card__title {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mouo-muted);
}

.mouo-gallery-strip img {
	max-width: 100%;
	height: auto;
	border-radius: var(--mouo-radius-sm);
}

.mouo-gallery-strip table {
	width: 100% !important;
}

.mouo-gallery-strip td {
	padding: 4px;
}

/* Footer */
.mouo-footer {
	margin-top: auto;
	background: linear-gradient(180deg, #1a2940 0%, #0f1a2e 100%);
	color: rgba(255, 255, 255, 0.88);
	font-size: 13px;
	line-height: 1.55;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mouo-footer__inner {
	padding: 28px 16px 32px;
}

.mouo-footer-grid {
	display: grid;
	grid-template-columns: auto auto 1fr;
	gap: 24px 32px;
	align-items: start;
}

.mouo-footer__label {
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

.mouo-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mouo-footer__social-link {
	display: inline-flex;
	padding: 4px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
	line-height: 0;
}

.mouo-footer__social-link:hover {
	transform: translateY(-2px);
	background: rgba(201, 162, 39, 0.14);
	border-color: rgba(201, 162, 39, 0.35);
}

.mouo-footer__social-link img {
	display: block;
	border-radius: 8px;
}

.mouo-footer__metric {
	display: inline-block;
	line-height: 0;
	border-radius: 8px;
	overflow: hidden;
	opacity: 0.95;
	transition: opacity 0.2s ease;
}

.mouo-footer__metric:hover {
	opacity: 1;
}

.mouo-footer__brand {
	margin-bottom: 8px;
}

.mouo-footer__copy {
	font-size: 14px;
	font-weight: 700;
	color: #fff;
}

.mouo-footer__address {
	margin: 0 0 10px;
	font-style: normal;
	color: rgba(255, 255, 255, 0.72);
}

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

.mouo-footer__contacts a {
	color: #fde68a;
	font-weight: 700;
	text-decoration: none;
}

.mouo-footer__contacts a:hover {
	color: #fff;
}

.mouo-footer__sep {
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.25);
}

/* Back to top */
.mouo-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 800;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(42, 80, 130, 0.12);
	border-radius: 999px;
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
	color: var(--mouo-primary-light);
	box-shadow: var(--mouo-shadow-md);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mouo-to-top:hover {
	transform: translateY(-2px);
	box-shadow: var(--mouo-shadow-lg);
}

.mouo-to-top:focus {
	outline: none;
	box-shadow: 0 0 0 4px rgba(42, 80, 130, 0.18), var(--mouo-shadow-md);
}

/* Prose defaults for content pages */
.mouo-prose h1,
.mouo-prose h2,
.mouo-prose h3 {
	color: var(--mouo-primary);
	line-height: 1.25;
	margin: 0 0 0.75em;
}

.mouo-prose h1 { font-size: clamp(24px, 4vw, 32px); }
.mouo-prose h2 { font-size: clamp(20px, 3vw, 26px); }
.mouo-prose h3 { font-size: clamp(18px, 2.5vw, 22px); }

.mouo-prose p {
	margin: 0 0 1em;
}

.mouo-prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
	font-size: 14px;
}

.mouo-prose table td,
.mouo-prose table th {
	border: 1px solid var(--mouo-line);
	padding: 8px 10px;
}

.mouo-prose img {
	border-radius: var(--mouo-radius-sm);
}

body.mouo-sidebar-open {
	overflow: hidden;
}

/* Responsive */
@media (max-width: 1200px) {
	.mouo-footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.mouo-footer__col--info {
		grid-column: 1 / -1;
	}
}

@media (max-width: 1023px) {
	:root {
		--mouo-sidebar-w: min(320px, 88vw);
	}

	.mouo-sidebar {
		transform: translateX(-100%);
	}

	.mouo-sidebar.is-open {
		transform: translateX(0);
	}

	.mouo-sidebar__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.mouo-sidebar__head {
		display: flex;
	}

	.mouo-main-wrap {
		margin-left: 0;
	}

	.mouo-burger {
		display: inline-flex;
	}
}

@media (max-width: 640px) {
	.mouo-search__form {
		flex-direction: column;
	}

	.mouo-search__submit {
		width: 100%;
	}

	.mouo-topbar__name--secondary {
		display: none;
	}

	.mouo-topbar__coat {
		width: 44px;
		height: 44px;
	}

	.mouo-topbar__icons {
		display: none;
	}

	.mouo-page-body {
		padding: 14px;
	}

	.mouo-footer-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.mouo-page-head--card {
		padding: 14px;
	}
}

@media (min-width: 1024px) {
	.mouo-burger,
	.mouo-sidebar-overlay,
	.mouo-sidebar__close {
		display: none !important;
	}
}
