:root {
	--rediz-shell-green: #008936;
	--rediz-shell-ink: #080f2c;
	--rediz-shell-muted: #39445e;
	--rediz-shell-border: #e2eae7;
}

.rediz-header,
.rediz-header *,
.rediz-footer,
.rediz-footer * {
	box-sizing: border-box;
	letter-spacing: 0 !important;
}

body.miro-rediz-default-shell {
	background: linear-gradient(110deg, #fff, #fbfdfd);
}

.rediz-header {
	position: relative;
	z-index: 80;
	background: #fff;
	border-bottom: 1px solid var(--rediz-shell-border);
	color: var(--rediz-shell-ink);
	font-family: Roboto, Arial, sans-serif;
}

.rediz-header .header-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: min(92.4%, 1400px);
	min-height: 80px;
	margin: 0 auto;
}

.rediz-header .brand {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 14px;
	color: #007327;
	font-size: 22px;
	font-weight: 900;
	line-height: 1.05;
	text-decoration: none;
}

.rediz-header .brand img {
	display: block;
	width: 60px;
	height: 49px;
	border-radius: 9px;
	object-fit: contain;
}

.rediz-header .miro-city-brand,
.rediz-footer .miro-city-brand {
	align-items: center;
	display: inline-flex;
	gap: 10px;
	text-decoration: none;
}

.rediz-header .miro-city-brand__mark,
.rediz-footer .miro-city-brand__mark {
	border-radius: 0 !important;
	display: block;
	flex: 0 0 52px;
	height: 52px;
	overflow: hidden;
	width: 52px;
}

.rediz-header .miro-city-brand .miro-city-brand__mark img,
.rediz-footer .miro-city-brand .miro-city-brand__mark img {
	border-radius: 0 !important;
	display: block !important;
	height: 52px !important;
	max-height: none !important;
	max-width: none !important;
	object-fit: fill !important;
	width: 156px !important;
}

.rediz-header .miro-city-brand__copy,
.rediz-footer .miro-city-brand__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	line-height: 0.98;
}

.rediz-header .miro-city-brand__name,
.rediz-footer .miro-city-brand__name {
	color: #080f2c;
	font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
	font-size: 26px;
	font-weight: 900;
	letter-spacing: -0.045em;
	white-space: nowrap;
}

.rediz-header .miro-city-brand__city,
.rediz-footer .miro-city-brand__city {
	color: #008936;
	font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-top: 4px;
	white-space: nowrap;
}

.rediz-header > .header-inner > nav {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-width: 0;
	margin: 0;
	font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
}

.rediz-header .rediz-main-menu,
.rediz-header .rediz-main-menu ul {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 20px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rediz-header .rediz-main-menu li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rediz-header .rediz-main-menu > li > a,
.rediz-header .rediz-main-menu > li > .menu-current {
	position: relative;
	display: flex;
	align-items: center;
	gap: 7px;
	height: 56px;
	padding: 0 2px;
	border-bottom: 2px solid transparent;
	color: var(--rediz-shell-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
}

.rediz-header .rediz-main-menu > li.current-menu-item > a,
.rediz-header .rediz-main-menu > li.current-menu-item > .menu-current,
.rediz-header .rediz-main-menu > li.current-menu-ancestor > a,
.rediz-header .rediz-main-menu > li.current-menu-ancestor > .menu-current,
.rediz-header .rediz-main-menu > li > a:hover,
.rediz-header .rediz-main-menu > li > a:focus-visible {
	border-bottom-color: var(--rediz-shell-green);
	color: var(--rediz-shell-green);
}

.rediz-header .rediz-main-menu > li.menu-item-has-children > a::after {
	width: 6px;
	height: 6px;
	margin: -3px 0 0 2px;
	border: solid currentColor;
	border-width: 0 1.5px 1.5px 0;
	content: "";
	transform: rotate(45deg);
}

.rediz-header .rediz-main-menu .sub-menu {
	position: fixed;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + 80px);
	left: 50vw;
	z-index: 90;
	display: none;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 2px 10px;
	width: min(1240px, calc(100vw - 40px));
	max-height: min(70vh, 620px);
	margin: 0;
	padding: 16px;
	overflow: auto;
	border: 1px solid var(--rediz-shell-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 28px #102d1d20;
	transform: translateX(-50%);
}

.rediz-header .rediz-main-menu li:hover > .sub-menu,
.rediz-header .rediz-main-menu li:focus-within > .sub-menu {
	display: grid;
}

.rediz-header .rediz-main-menu .sub-menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 9px 10px;
	border-radius: 6px;
	color: var(--rediz-shell-ink);
	font-size: 15px;
	line-height: 1.35;
	text-decoration: none;
	white-space: normal;
}

.rediz-header .rediz-main-menu .sub-menu a:hover,
.rediz-header .rediz-main-menu .sub-menu a:focus-visible {
	background: #eaf8f1;
	color: var(--rediz-shell-green);
}

.rediz-header .rediz-main-menu .sub-menu a > svg {
	display: block;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	color: var(--rediz-shell-green);
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rediz-header .header-actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 14px;
	margin: 0;
}

.rediz-header .header-actions .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 45px;
	padding: 0 20px;
	border: 1px solid var(--rediz-shell-green);
	border-radius: 8px;
	background: var(--rediz-shell-green);
	box-shadow: 0 4px 12px #00893620;
	color: #fff;
	font-family: "Roboto Condensed", Roboto, Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.rediz-header .header-actions .button.outline {
	background: #fff;
	box-shadow: none;
	color: var(--rediz-shell-green);
}

.rediz-header .header-actions .button:hover {
	filter: brightness(0.96);
}

.rediz-header .mobile-menu {
	display: none;
	color: var(--rediz-shell-ink);
	font-size: 25px;
}

.rediz-footer {
	width: 100%;
	max-width: none;
	margin: 28px 0 0;
	border-top: 1px solid var(--rediz-shell-border);
	color: var(--rediz-shell-ink);
	font-family: Roboto, Arial, sans-serif;
}

.rediz-footer .footer-main-grid {
	display: grid;
	width: min(100% - 48px, 1400px);
	grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
	align-items: start;
	gap: 28px;
	padding: 28px 5px;
	margin: 0 auto;
}

.rediz-footer .footer-brand,
.rediz-footer .footer-widgets-grid > * {
	min-width: 0;
}

.rediz-footer .footer-brand .brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--rediz-shell-green);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.1;
	text-decoration: none;
}

.rediz-footer .footer-brand .brand img {
	width: 43px;
	height: 35px;
	object-fit: contain;
}

.rediz-footer .footer-brand p {
	margin: 10px 0;
	color: var(--rediz-shell-muted);
	font-size: 14px;
	line-height: 1.6;
}

.rediz-footer .footer-contact-links {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rediz-footer .footer-contact-links a {
	display: grid;
	flex: 0 0 42px;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
}

.rediz-footer .footer-contact-links svg {
	width: 23px;
	height: 23px;
}

.rediz-footer .footer-contact-telegram { background: #e8f6fc; color: #229ed9; }
.rediz-footer .footer-contact-email { background: #fff0ef; color: #e55353; }
.rediz-footer .footer-contact-phone { background: #edf2ff; color: #3468c8; }

.rediz-footer .footer-widgets,
.rediz-footer .footer-widgets-grid { display: contents; }

.rediz-footer .widget--footer { min-width: 0; margin: 0; }

.rediz-footer .widget--footer .widget__title {
	margin: 0 0 12px;
	color: var(--rediz-shell-ink);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.4;
}

.rediz-footer .widget--footer p,
.rediz-footer .widget--footer li,
.rediz-footer .widget--footer a {
	color: var(--rediz-shell-muted);
	font-size: 14px;
	line-height: 1.8;
}

.rediz-footer .widget--footer ul { margin: 0; padding: 0; list-style: none; }
.rediz-footer .widget--footer li { margin: 0; }
.rediz-footer .telegram-channel-links {
	display: grid;
	gap: 8px;
	margin: 0;
}

.rediz-footer .telegram-channel-links a {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rediz-footer .telegram-channel-links i { color: #229ed9; }

.rediz-footer .footer-bottom {
	display: flex;
	width: min(100% - 48px, 1400px);
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	padding: 20px 4px;
	margin: 0 auto;
	border-top: 1px solid var(--rediz-shell-border);
	color: var(--rediz-shell-muted);
	font-size: 13px;
	line-height: 1.6;
}

.rediz-footer .rediz-city-network,
.rediz-footer .rediz-city-network ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rediz-footer .rediz-city-network b { color: var(--rediz-shell-ink); white-space: nowrap; }

.rediz-footer .rediz-city-network ul { gap: 12px 16px; }

.rediz-footer .rediz-city-network button {
	appearance: none;
	align-items: center;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	display: inline-flex;
	font-family: inherit;
	font-size: inherit;
	font-weight: 400;
	height: auto !important;
	line-height: 1.6;
	margin: 0 !important;
	min-height: 0 !important;
	padding: 0;
	color: inherit;
	cursor: pointer;
	text-align: left;
	text-decoration: none;
	vertical-align: middle;
}

.rediz-footer .rediz-city-network button:hover { color: var(--rediz-shell-green); }

.miro-rediz-legacy-content {
	padding: 24px 0;
}

.miro-rediz-legacy-content > .container {
	width: min(100% - 48px, 1120px);
	margin: 0 auto;
}

@media (max-width: 1100px) {
	.rediz-header .header-inner { width: calc(100% - 40px); gap: 12px; }
	.rediz-header .brand { gap: 8px; font-size: 18px; }
	.rediz-header .brand img { width: 50px; height: 42px; }
	.rediz-header .rediz-main-menu,
	.rediz-header .rediz-main-menu ul { gap: 12px; }
	.rediz-header .rediz-main-menu > li > a,
	.rediz-header .rediz-main-menu > li > .menu-current { font-size: 13px; }
	.rediz-header .header-actions { gap: 8px; }
	.rediz-header .header-actions .button { min-height: 40px; padding: 0 12px; font-size: 13px; }
	.rediz-footer .footer-main-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
	.rediz-footer .footer-brand { grid-row: span 2; }
}

@media (max-width: 800px) {
	.rediz-header .header-inner { min-height: 72px; }
	.rediz-header > .header-inner > nav { display: none; }
	.rediz-header .header-inner.menu-open > nav {
		position: absolute;
		top: 100%;
		left: -20px;
		right: -20px;
		z-index: 90;
		display: flex;
		width: auto;
		padding: 10px 20px;
		border-top: 1px solid var(--rediz-shell-border);
		background: #fff;
		box-shadow: 0 8px 18px #102d1d18;
	}
	.rediz-header .header-inner.menu-open .rediz-main-menu {
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 4px 18px;
	}
	.rediz-header .header-inner.menu-open .rediz-main-menu > li > a,
	.rediz-header .header-inner.menu-open .rediz-main-menu > li > .menu-current { height: 42px; }
	.rediz-header .rediz-main-menu .sub-menu { position: absolute; top: 100%; left: 0; width: min(560px, calc(100vw - 40px)); transform: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rediz-header .header-actions .button.outline { display: none; }
	.rediz-header .mobile-menu { display: block; padding: 6px; }
	.rediz-footer .footer-main-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rediz-footer .footer-brand { grid-row: span 2; }
}

@media (max-width: 540px) {
	.rediz-header .header-inner { width: calc(100% - 32px); min-height: 64px; gap: 8px; }
	.rediz-header .brand { gap: 7px; font-size: 16px; line-height: 1.05; }
	.rediz-header .brand img { width: 42px; height: 35px; }
	.rediz-header .miro-city-brand,
	.rediz-footer .miro-city-brand { gap: 7px; }
	.rediz-header .miro-city-brand__mark,
	.rediz-footer .miro-city-brand__mark { flex-basis: 40px; height: 40px; width: 40px; }
	.rediz-header .miro-city-brand .miro-city-brand__mark img,
	.rediz-footer .miro-city-brand .miro-city-brand__mark img { height: 40px !important; width: 120px !important; }
	.rediz-header .miro-city-brand__name,
	.rediz-footer .miro-city-brand__name { font-size: 20px; }
	.rediz-header .miro-city-brand__city,
	.rediz-footer .miro-city-brand__city { font-size: 15px; margin-top: 3px; }
	.rediz-header .header-actions .button:not(.outline) { display: none; }
	.rediz-header .header-actions .button.outline { display: inline-flex; min-height: 36px; padding: 0 9px; font-size: 12px; }
	.rediz-footer { width: 100%; margin-top: 20px; }
	.rediz-footer .footer-main-grid { gap: 22px 16px; padding: 22px 0; }
	.rediz-footer .footer-main-grid,
	.rediz-footer .footer-bottom { width: calc(100% - 32px); }
	.rediz-footer .footer-brand { grid-column: 1 / -1; grid-row: auto; }
	.rediz-footer .widget--footer .widget__title { font-size: 14px; }
	.rediz-footer .widget--footer p,
	.rediz-footer .widget--footer li,
	.rediz-footer .widget--footer a { font-size: 12px; }
	.rediz-footer .footer-bottom { align-items: flex-start; flex-direction: column; }
	.rediz-footer .rediz-city-network ul { gap: 8px 12px; }
	.miro-rediz-legacy-content > .container { width: calc(100% - 32px); }
}
