/*
Theme Name: Astra Child
Template: astra
*/

/* ============================================
   CUSTOM HEADER — mpravo24.ru
   Desktop nav + Mobile off-canvas (no plugins)
   ============================================ */

/* --- Header: плавающая карточка по центру, не на весь экран --- */
.mpr-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 99998;
	background: transparent;
	pointer-events: none;
}

.mpr-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 80px;
	gap: 60px;
	background: transparent; /* фон на ::before, не на самом элементе */
	pointer-events: auto;
	position: relative;
}

/* Фон + скругления + тень — на отдельном слое ПОЗАДИ контента.
   Контент (навигация, dropdown'ы) НЕ обрезается. */
.mpr-header__inner::before {
	content: '';
	position: absolute;
	inset: 0;
	background: #ffffff;
	clip-path: inset(0 round 0 0 90px 90px);
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
	z-index: -1;
	pointer-events: none;
}

/* --- Logo --- */
.mpr-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.mpr-header__logo img {
	display: block;
	height: 34px;
	width: auto;
}

/* --- Desktop Navigation --- */
.mpr-nav {
	font-family: "Montserrat", sans-serif;
	flex: 1;
	display: flex;
	justify-content: center;
}

.mpr-nav__list {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 36px;
}

.mpr-nav__link {
	color: #4d4c4c;
	font-size: 18px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: color .2s;
	outline: none;
}

.mpr-nav__link:hover {
	color: #0c6781;
}
.mpr-nav__link:focus {
	color: #4d4c4c;
	outline: none;
	text-decoration: none;
}
.mpr-nav__phone {
	color: #0c6781 !important;
	font-weight: 600;
	font-size: 17px;
}

.mpr-nav__arrow {
	font-size: 9px;
	margin-left: 4px;
	opacity: .5;
}

/* --- Dropdown (обычный absolute, не обрезается — clip-path только на ::before) --- */
.mpr-nav__item--dropdown {
	position: relative;
}

.mpr-nav__submenu {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(-8px);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	min-width: 230px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s, transform .2s, visibility 0s .2s;
	z-index: 100002;
}

.mpr-nav__item--dropdown:hover > .mpr-nav__submenu {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	transition: opacity .2s, transform .2s, visibility 0s 0s;
}

.mpr-nav__submenu li {
	margin: 0;
}

.mpr-nav__submenu a {
	display: block;
	padding: 10px 20px;
	color: #4d4c4c;
	font-size: 15px;
	font-weight: 400;
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: background .15s, border-color .15s;
}

.mpr-nav__submenu a:hover {
	background: #f5f8fa;
	border-left-color: #0c6781;
	color: #0c6781;
}

/* --- Mobile phone icon (visible on mobile only) --- */
.mpr-header__phone-mobile {
	display: none;
}

/* --- Burger button (visible on mobile only) --- */
.mpr-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	box-shadow: none;
}

.mpr-burger span {
	display: block;
	height: 2.5px;
	background: #333;
	border-radius: 2px;
	transition: transform .25s, opacity .2s;
}

/* --- Body offset: убрали padding-top, хедер наложен поверх hero --- */
body {
	padding-top: 0;
}

/* ============================================
   MOBILE OFF-CANVAS
   ============================================ */

.mpr-mobile-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	z-index: 100000;
	opacity: 0;
	transition: opacity .3s;
}

.mpr-mobile-overlay.open {
	display: block;
	opacity: 1;
}

.mpr-mobile-panel {
	position: fixed;
	top: 0;
	right: -320px;
	width: 300px;
	max-width: 85vw;
	height: 100%;
	background: #fff;
	z-index: 100001;
	overflow-y: auto;
	transition: right .3s ease;
	box-shadow: -4px 0 20px rgba(0,0,0,.15);
	display: flex;
	flex-direction: column;
}

.mpr-mobile-panel.open {
	right: 0;
}

.mpr-mobile-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
}

.mpr-mobile-panel__header img {
	height: 28px;
	width: auto;
}

.mpr-mobile-panel__close {
	background: none;
	border: none;
	font-size: 32px;
	color: #333;
	cursor: pointer;
	line-height: 1;
	padding: 0 4px;
	box-shadow: none;
}

/* --- Mobile nav links --- */
.mpr-mobile-nav {
	flex: 1;
	padding: 12px 0;
}

.mpr-mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mpr-mobile-nav a {
	display: block;
	padding: 14px 24px;
	color: #333;
	font-family: "Montserrat", sans-serif;
	font-size: 17px;
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid #f3f3f3;
	transition: background .15s;
}

.mpr-mobile-nav a:hover {
	background: #f5f8fa;
	color: #0c6781;
}

/* --- Mobile footer (phone) --- */
.mpr-mobile-panel__footer {
	padding: 20px 24px;
	border-top: 1px solid #eee;
	text-align: center;
}

.mpr-mobile-panel__phone {
	display: block;
	color: #0c6781;
	font-family: "Montserrat", sans-serif;
	font-size: 20px;
	font-weight: 600;
	text-decoration: none;
	margin-bottom: 4px;
}

.mpr-mobile-panel__note {
	font-size: 13px;
	color: #888;
}

/* ============================================
   RESPONSIVE: переключение Desktop ↔ Mobile
   ============================================ */

@media (max-width: 1024px) {
	/* Hide desktop nav */
	.mpr-nav {
		display: none;
	}

	/* Show burger + phone icon */
	.mpr-burger {
		display: flex;
	}

	.mpr-header__phone-mobile {
		display: flex;
		align-items: center;
		margin-left: auto;
	}

	/* Adjust header padding */
	.mpr-header__inner {
		padding: 4px 40px;
		max-width: 90%;
		gap: 26px;
	}

	.mpr-header__logo img {
		height: 26px;
	}

	body {
		padding-top: 0;
	}
}

/* ============================================
   CUSTOM FOOTER — mpravo24.ru
   ============================================ */

.mpr-site-footer {
	background: #3B3B3B;
	color: #fff;
	font-family: "Montserrat", sans-serif;
	border-radius: 37px 37px 0 0;
	margin-top: -30px; /* перекрывает нижнюю часть контента для плавного перехода */
	position: relative;
	z-index: 1;
}

/* --- Секция 1: Контакт-центр + Telegram --- */
.mpr-footer-top {
	padding: 70px 0 0;
}

.mpr-footer-top__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 60px;
}

.mpr-contact {
	display: flex;
	align-items: center;
	gap: 15px;
}

.mpr-photo {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
}

.mpr-phone {
	font-size: 21px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
}

.mpr-phone:hover,
.mpr-phone:focus,
.mpr-phone:active,
.mpr-phone:visited {
	color: #fff;
	outline: none;
	text-decoration: none;
}

.mpr-title {
	font-size: 21px;
	font-weight: 700;
}

.mpr-note {
	font-size: 10px;
	color: #fff;
	opacity: .5;
	margin-top: 5px;
}

.mpr-actions {
	display: flex;
	gap: 120px;
}

.mpr-action {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mpr-action img {
	width: 80px;
	height: 80px;
	border-radius: 12px;
	object-fit: cover;
}

.mpr-text {
	font-size: 21px;
	font-weight: 700;
}

.mpr-button-container {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-top: 5px;
}

.mpr-button {
	padding: 5px 12px;
	background: #fff;
	color: #000;
	border: none;
	border-radius: 30px;
	text-decoration: none;
	font-size: 10px;
	font-weight: 700;
}

.mpr-button:hover,
.mpr-button:focus,
.mpr-button:active {
	background: #fff;
	color: #000;
	outline: none;
	text-decoration: none;
}

.mpr-play {
	width: 25px !important;
	height: 25px !important;
	padding: 3px;
	background: #fff;
	border-radius: 50% !important;
}

/* --- Секции 2+3: Гос. учреждения (лево) + Юринфо (право) --- */
.mpr-footer-row {
	padding: 30px 20px 40px;
}

.mpr-footer-row__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 40px;
}

/* Левая колонка: гос. учреждения */
.mpr-government {
	flex-shrink: 0;
}

.mpr-agencies {
	display: flex;
	gap: 30px;
	flex-wrap: wrap;
	max-width: 500px;
}

.mpr-agency {
	text-align: center;
}

.mpr-agency img {
	height: 80px;
	display: block;
	margin: 0 auto;
}

.mpr-agency p {
	width: 110px;
	margin-top: 10px;
	font-size: 12px;
	color: #fff;
	margin-bottom: 0;
}

.mpr-government__title {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	margin-top: 15px;
	text-align: left;
}

/* Правая колонка: юридическая информация */
.mpr-footer-legal {
	text-align: right;
	flex: 1;
}

.mpr-legal {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.mpr-partner-btn {
	display: inline-block;
	margin-bottom: 10px;
	padding: 8px 14px;
	background: #fff;
	color: #3b3b3b;
	border-radius: 30px;
	text-decoration: none;
	font-size: 12px;
	font-weight: 700;
}

.mpr-partner-btn:hover,
.mpr-partner-btn:focus {
	color: #3b3b3b;
	text-decoration: none;
	outline: none;
}

.mpr-partner-btn span {
	font-weight: 400;
	font-size: 13px;
}

.mpr-link {
	color: #fff;
	font-size: 16px;
	text-decoration: underline;
}

.mpr-link:hover,
.mpr-link:focus,
.mpr-link:visited {
	color: #fff;
	outline: none;
}

#revokeConsentBtn {
	background: none;
	border: none;
	color: #fff;
	font-size: 16px;
	font-family: "Montserrat", sans-serif;
	cursor: pointer;
	padding: 0;
	text-align: right;
}

.mpr-copyright {
	font-size: 16px;
	line-height: 1.5;
	padding-top: 30px;
	color: #fff;
}

.mpr-copyright span {
	font-size: 17px;
	font-weight: 700;
}

/* Партнёры — popup */
.mpr-partners-wrap {
	display: inline-block;
	position: relative;
	cursor: pointer;
}

.mpr-partners-trigger {
	color: #fff;
	text-decoration: underline;
	font-size: inherit;
}

.mpr-partners-popup {
	display: none;
	position: absolute;
	bottom: calc(100% + 10px);
	right: 0;
	background: #fefefe;
	color: #1a1a1a;
	border-radius: 10px;
	padding: 18px 22px;
	min-width: 500px;
	box-shadow: 0 6px 24px rgba(0,0,0,.22);
	font-size: 13px;
	line-height: 1.2;
	z-index: 100;
	text-align: left;
}

.mpr-partners-popup::after {
	content: '';
	position: absolute;
	bottom: -8px;
	right: 28px;
	width: 16px;
	height: 16px;
	background: #fefefe;
	transform: rotate(45deg);
	box-shadow: 3px 3px 6px rgba(0,0,0,.08);
}

.mpr-partners-popup strong {
	display: block;
	font-size: 13px;
	margin-bottom: 6px;
	color: #0c6781;
}

/* Модалка отзыва согласия */
.modal {
	display: none;
	position: fixed;
	z-index: 200000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,.4);
	padding-top: 10%;
}

.modal-content {
	background: #fefefe;
	margin: 5% auto;
	padding: 30px 40px 20px 20px;
	width: 80%;
	max-width: 600px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0,0,0,.2);
	color: #000;
	line-height: 1.4;
}

.modal-content .close {
	float: right;
	font-size: 28px;
	cursor: pointer;
	color: #333;
}


/* --- Footer responsive --- */
@media (max-width: 900px) {
    #revokeConsentBtn {
        text-align: center;
    }
	.mpr-footer-top__inner {
		flex-direction: column;
		gap: 20px;
		align-items: center;
	}
	.mpr-footer-top {
		padding: 50px 0 0;
	}

	.mpr-actions {
		flex-direction: column;
		gap: 15px;
	}

	.mpr-photo,
	.mpr-action img {
		width: 50px;
		height: 50px;
	}

	.mpr-phone,
	.mpr-title,
	.mpr-text {
		font-size: 16px;
	}

	.mpr-footer-row__inner {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.mpr-agencies {
		justify-content: center;
		gap: 0;
	}

	.mpr-agency img {
		height: 60px;
	}

	.mpr-government__title {
		font-size: 16px;
		text-align: center;
	}

	.mpr-footer-legal {
		text-align: center;
	}

	.mpr-legal {
		align-items: center;
	}

	.mpr-link {
		justify-content: center;
	}

	.mpr-copyright {
		font-size: 14px;
		padding-top: 20px;
	}

	.mpr-copyright span {
		font-size: 14px;
	}

	.mpr-partners-popup {
		right: -10px;
		min-width: 260px;
		font-size: 11px;
	}
	.mpr-government {
	    display: flex;
	    flex-wrap:wrap;
	    justify-content: center;
	}
}
