/* =========================================================
   ПРАВИЛА ДЕЛА — GLOBAL CUSTOM HEADER
   ========================================================= */

/* Скрываем только стандартную шапку Astra */
body.pdg-custom-header-active #masthead,
body.pdg-custom-header-active .site-header,
body.pdg-custom-header-active .ast-primary-header-bar,
body.pdg-custom-header-active .main-header-bar{
	display:none!important;
}

.pdg-header,
.pdg-header *{
	box-sizing:border-box;
}

.pdg-header{
	--pdg-forest:#124b3f;
	--pdg-gold:#c3a171;
	--pdg-ivory:#f8f4ec;
	--pdg-walnut:#3b2b21;
	--pdg-forest-hover:#0b3c33;
	--pdg-ink:#162d27;
	--pdg-text:#34473f;
	--pdg-muted:#6c766b;
	--pdg-line:rgba(94,81,60,.19);
	position:sticky;
	top:0;
	z-index:9999;
	width:100%;
	padding:12px 0;
	background:rgba(249,245,238,.94);
	border-bottom:1px solid rgba(181,150,99,.34);
	backdrop-filter:blur(18px);
	-webkit-backdrop-filter:blur(18px);
	font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
	transition:padding .22s ease,background .22s ease,box-shadow .22s ease;
}

body.admin-bar .pdg-header{
	top:32px;
}

.pdg-header.is-scrolled{
	padding:8px 0;
	background:rgba(251,248,241,.97);
	box-shadow:0 12px 38px rgba(51,44,31,.12);
}

.pdg-header a,
.pdg-header a:hover,
.pdg-header a:focus,
.pdg-header a:visited{
	text-decoration:none!important;
	box-shadow:none!important;
}

.pdg-header__shell{
	width:min(1240px,calc(100% - 40px));
	margin:0 auto;
	display:grid;
	grid-template-columns:auto 1fr auto;
	align-items:center;
	gap:22px;
}

/* BRAND */
.pdg-header__brand{
	display:flex;
	align-items:center;
	gap:11px;
	min-width:max-content;
	color:var(--pdg-ink)!important;
}

.pdg-header__logo{
	display:block;
	width:auto;
	max-width:205px;
	max-height:48px;
	object-fit:contain;
}

.pdg-header__brand-mark{
	width:44px;
	height:44px;
	display:grid;
	place-items:center;
	border-radius:14px;
	background:#fffaf1;
	color:var(--pdg-forest);
	border:1px solid rgba(185,151,90,.28);
	box-shadow:0 8px 24px rgba(60,51,34,.09);
}

.pdg-header__brand-mark svg{
	width:28px;
	height:28px;
}

.pdg-header__brand-text{
	font:700 27px/1 Georgia,"Times New Roman",serif;
	letter-spacing:-.04em;
	white-space:nowrap;
}

.pdg-header__brand-text strong{
	color:var(--pdg-forest);
}

/* CENTRAL FLOATING PILL */
.pdg-header__nav-wrap{
	display:flex;
	justify-content:center;
	min-width:0;
}

.pdg-header__nav{
	display:flex;
	align-items:center;
	gap:2px;
	padding:5px;
	border:1px solid rgba(83,71,48,.16);
	border-radius:999px;
	background:rgba(255,253,248,.91);
	box-shadow:
		0 10px 30px rgba(60,51,34,.07),
		inset 0 1px 0 rgba(255,255,255,.9);
}

.pdg-header__link{
	position:relative;
	display:flex;
	align-items:center;
	min-height:42px;
	padding:0 15px;
	border-radius:999px;
	color:var(--pdg-text)!important;
	font-size:14px;
	line-height:1;
	font-weight:650;
	white-space:nowrap;
	transition:background .18s ease,color .18s ease,transform .18s ease;
}

.pdg-header__link:hover,
.pdg-header__link.is-current{
	color:var(--pdg-forest)!important;
	background:#f0e8db;
}

/* SERVICES */
.pdg-header__services{
	position:relative;
}

.pdg-header__services-head{
	display:flex;
	align-items:center;
}

.pdg-header__services-link{
	padding-right:6px;
}

.pdg-header__services-toggle{
	width:30px;
	height:42px;
	display:grid;
	place-items:center;
	padding:0 5px 0 0;
	border:0;
	background:transparent;
	color:var(--pdg-text);
	cursor:pointer;
}

.pdg-header__services-toggle svg{
	width:13px;
	height:13px;
	transition:transform .2s ease;
}

.pdg-header__services:hover .pdg-header__services-toggle svg,
.pdg-header__services:focus-within .pdg-header__services-toggle svg,
.pdg-header__services.is-open .pdg-header__services-toggle svg{
	transform:rotate(180deg);
}

/* MEGA MENU */
.pdg-header__mega{
	position:absolute;
	top:calc(100% + 15px);
	left:50%;
	width:min(720px,80vw);
	padding:24px;
	opacity:0;
	visibility:hidden;
	pointer-events:none;
	transform:translate(-38%,10px);
	border:1px solid rgba(83,71,48,.16);
	border-radius:24px;
	background:rgba(251,247,239,.99);
	box-shadow:0 28px 70px rgba(34,40,28,.23);
	transition:opacity .2s ease,visibility .2s ease,transform .2s ease;
}

.pdg-header__services:hover .pdg-header__mega,
.pdg-header__services:focus-within .pdg-header__mega,
.pdg-header__services.is-open .pdg-header__mega{
	opacity:1;
	visibility:visible;
	pointer-events:auto;
	transform:translate(-38%,0);
}

.pdg-header__mega:before{
	content:"";
	position:absolute;
	left:0;
	right:0;
	top:-16px;
	height:16px;
}

.pdg-header__mega-head{
	display:grid;
	grid-template-columns:1fr auto;
	gap:30px;
	align-items:end;
	padding:2px 2px 20px;
	border-bottom:1px solid #e5d9c7;
}

.pdg-header__mega-eyebrow{
	display:block;
	margin-bottom:7px;
	color:var(--pdg-forest);
	font-size:11px;
	font-weight:800;
	letter-spacing:.15em;
	text-transform:uppercase;
}

.pdg-header__mega-title{
	max-width:500px;
	margin:0;
	color:var(--pdg-ink);
	font:700 22px/1.18 Georgia,"Times New Roman",serif;
	letter-spacing:-.025em;
}

.pdg-header__mega-all{
	display:inline-flex;
	align-items:center;
	gap:8px;
	color:var(--pdg-forest)!important;
	font-size:13px;
	font-weight:750;
	white-space:nowrap;
}

.pdg-header__mega-grid{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:10px;
	padding-top:14px;
}

.pdg-header__service-card{
	position:relative;
	min-height:142px;
	display:grid;
	grid-template-columns:34px 1fr;
	grid-template-areas:
		"num name"
		"num desc";
	align-content:start;
	gap:8px 10px;
	padding:17px;
	overflow:hidden;
	border:1px solid #e4d7c4;
	border-radius:17px;
	background:#fbf7ef;
	color:var(--pdg-ink)!important;
	transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease;
}

.pdg-header__service-card:hover{
	transform:translateY(-3px);
	border-color:rgba(185,151,90,.44);
	background:#f4eee3;
	box-shadow:0 14px 30px rgba(62,77,57,.10);
}

.pdg-header__service-num{
	grid-area:num;
	color:var(--pdg-forest);
	font-size:11px;
	font-weight:800;
	letter-spacing:.08em;
}

.pdg-header__service-name{
	grid-area:name;
	max-width:230px;
	font-size:15px;
	line-height:1.25;
	font-weight:800;
}

.pdg-header__service-desc{
	grid-area:desc;
	max-width:240px;
	color:var(--pdg-muted);
	font-size:12.5px;
	line-height:1.45;
}

.pdg-header__service-arrow{
	position:absolute;
	right:14px;
	top:13px;
	color:var(--pdg-forest);
	font-size:15px;
	opacity:.55;
	transition:transform .2s ease,opacity .2s ease;
}

.pdg-header__service-card:hover .pdg-header__service-arrow{
	opacity:1;
	transform:translate(2px,-2px);
}

/* CTA */
.pdg-header__cta{
	min-height:50px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:10px;
	padding:0 20px;
	border-radius:999px;
	background:var(--pdg-forest);
	color:#fffaf1!important;
	font-size:14px;
	font-weight:800;
	white-space:nowrap;
	box-shadow:0 12px 28px rgba(13,65,53,.20);
	transition:transform .2s ease,background .2s ease,box-shadow .2s ease;
}

.pdg-header__cta:hover{
	color:#fffaf1!important;
	background:var(--pdg-forest-hover);
	transform:translateY(-2px);
	box-shadow:0 16px 32px rgba(13,65,53,.25);
}

.pdg-header__cta-arrow{
	transition:transform .2s ease;
}

.pdg-header__cta:hover .pdg-header__cta-arrow{
	transform:rotate(45deg);
}

/* BURGER */
.pdg-header__burger{
	display:none;
	width:46px;
	height:46px;
	padding:0;
	border:1px solid rgba(83,71,48,.22);
	border-radius:50%;
	background:#fffaf1;
	box-shadow:0 8px 22px rgba(60,51,34,.07);
	cursor:pointer;
	align-items:center;
	justify-content:center;
	flex-direction:column;
	gap:5px;
}

.pdg-header__burger span{
	width:18px;
	height:1.5px;
	background:var(--pdg-ink);
	transition:transform .22s ease,opacity .22s ease;
}

.pdg-header__burger[aria-expanded="true"] span:nth-child(1){
	transform:translateY(6.5px) rotate(45deg);
}
.pdg-header__burger[aria-expanded="true"] span:nth-child(2){
	opacity:0;
}
.pdg-header__burger[aria-expanded="true"] span:nth-child(3){
	transform:translateY(-6.5px) rotate(-45deg);
}

/* MOBILE */
.pdg-header__mobile{
	display:none;
}

/* TABLET */
@media(max-width:1120px){
	.pdg-header__shell{
		width:min(1240px,calc(100% - 28px));
		gap:14px;
	}
	.pdg-header__logo{max-width:180px}
	.pdg-header__brand-text{font-size:23px}
	.pdg-header__link{padding:0 11px;font-size:13px}
	.pdg-header__cta{padding:0 16px;font-size:13px}
}

/* MOBILE */
@media(max-width:900px){
	.pdg-header{
		padding:8px 0;
	}
	.pdg-header__shell{
		grid-template-columns:1fr auto;
	}
	.pdg-header__nav-wrap,
	.pdg-header__shell > .pdg-header__cta{
		display:none;
	}
	.pdg-header__burger{
		display:flex;
	}
	.pdg-header__logo{
		max-width:190px;
		max-height:43px;
	}
	.pdg-header__brand-mark{
		width:40px;
		height:40px;
		border-radius:12px;
	}
	.pdg-header__brand-text{
		font-size:22px;
	}

	.pdg-header__mobile{
		position:absolute;
		top:100%;
		left:0;
		right:0;
		display:block;
		max-height:calc(100vh - 70px);
		overflow-y:auto;
		opacity:0;
		visibility:hidden;
		pointer-events:none;
		transform:translateY(-8px);
		background:rgba(251,247,239,.99);
		border-top:1px solid #e4d7c4;
		border-bottom:1px solid #e4d7c4;
		box-shadow:0 24px 50px rgba(23,32,51,.13);
		transition:opacity .2s ease,visibility .2s ease,transform .2s ease;
	}

	.pdg-header.is-mobile-open .pdg-header__mobile{
		opacity:1;
		visibility:visible;
		pointer-events:auto;
		transform:translateY(0);
	}

	.pdg-header__mobile-inner{
		width:min(650px,calc(100% - 30px));
		margin:0 auto;
		padding:12px 0 20px;
	}

	.pdg-header__mobile-link{
		display:flex;
		align-items:center;
		min-height:57px;
		border-bottom:1px solid #e4d7c4;
		color:var(--pdg-ink)!important;
		font-size:18px;
		font-weight:700;
	}

	.pdg-header__mobile-link.is-current{
		color:var(--pdg-forest)!important;
	}

	.pdg-header__mobile-services-head{
		display:grid;
		grid-template-columns:1fr 54px;
		border-bottom:1px solid #e4d7c4;
	}

	.pdg-header__mobile-services-head .pdg-header__mobile-link{
		border-bottom:0;
	}

	.pdg-header__mobile-sub-toggle{
		width:54px;
		padding:0;
		border:0;
		background:transparent;
		display:grid;
		place-items:center;
		cursor:pointer;
		color:var(--pdg-ink);
	}

	.pdg-header__mobile-sub-toggle svg{
		width:16px;
		height:16px;
		transition:transform .2s ease;
	}

	.pdg-header__mobile-services.is-open .pdg-header__mobile-sub-toggle svg{
		transform:rotate(180deg);
	}

	.pdg-header__mobile-sub{
		display:grid;
		grid-template-rows:0fr;
		transition:grid-template-rows .25s ease;
	}

	.pdg-header__mobile-services.is-open .pdg-header__mobile-sub{
		grid-template-rows:1fr;
	}

	.pdg-header__mobile-sub-inner{
		overflow:hidden;
		padding-left:14px;
	}

	.pdg-header__mobile-sub-inner a{
		display:block;
		padding:11px 0;
		color:var(--pdg-muted)!important;
		font-size:15px;
		line-height:1.35;
	}

	.pdg-header__mobile-sub-inner a.is-current{
		color:var(--pdg-forest)!important;
	}

	.pdg-header__mobile-cta{
		min-height:58px;
		display:flex;
		align-items:center;
		justify-content:space-between;
		margin-top:17px;
		padding:0 18px;
		border-radius:12px;
		background:var(--pdg-forest);
		color:#fffaf1!important;
		font-size:16px;
		font-weight:800;
	}
}

@media(max-width:782px){
	body.admin-bar .pdg-header{top:46px}
}

@media(max-width:460px){
	.pdg-header__shell{
		width:calc(100% - 22px);
	}
	.pdg-header__logo{
		max-width:165px;
	}
	.pdg-header__brand-text{
		font-size:20px;
	}
}

@media(prefers-reduced-motion:reduce){
	.pdg-header *,
	.pdg-header *:before,
	.pdg-header *:after{
		transition:none!important;
	}
}

/* English Private Legal Office — finishing details; scoped to custom header */
.pdg-header{
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.55);
}
.pdg-header.is-scrolled{
  border-bottom-color:rgba(179,143,82,.40);
}
.pdg-header__nav{
  border:1px solid rgba(155,124,75,.23);
  box-shadow:0 8px 26px rgba(48,43,33,.075),inset 0 1px 0 rgba(255,255,255,.83);
}
.pdg-header__link:hover,
.pdg-header__link.is-current{
  color:#0f4a3d!important;
  background:#ede7d9;
}
.pdg-header__cta,
.pdg-header__mobile-cta{
  border:1px solid rgba(198,162,100,.90);
  background:linear-gradient(125deg,#145345 0%,#0b3d33 100%);
  color:#fffaf1!important;
  box-shadow:inset 0 1px 0 rgba(239,218,169,.23),0 9px 20px rgba(16,62,49,.17);
}
.pdg-header__cta:hover,
.pdg-header__mobile-cta:hover{
  background:linear-gradient(125deg,#1a5d4d 0%,#103e34 100%);
  color:#fffaf1!important;
}
.pdg-header__mega{
  border:1px solid rgba(173,139,81,.40);
  box-shadow:0 26px 75px rgba(34,37,24,.19),0 0 0 1px rgba(255,255,255,.55) inset;
}
.pdg-header__mega-eyebrow,
.pdg-header__service-num,
.pdg-header__service-arrow{
  color:#9a7038;
}
.pdg-header__mega-all{
  color:#145345!important;
}
.pdg-header__service-card{
  border:1px solid rgba(175,151,113,.27);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.56);
}
.pdg-header__service-card:hover{
  border-color:rgba(171,126,61,.48);
  box-shadow:0 12px 28px rgba(42,58,43,.08);
}
.pdg-header__brand-mark{
  background:#f8f1e5;
  color:#9a7038;
}
.pdg-header__brand-text strong{
  color:#b3874b;
}
.pdg-header__mobile{
  background:#fbf7ef;
}
.pdg-header__mobile-link.is-current,
.pdg-header__mobile-sub-inner a.is-current{
  color:#0d5546!important;
}
.pdg-header__burger{
  background:#fbf7ef;
  border-color:rgba(168,132,74,.34);
}
.pdg-header :is(a,button):focus-visible{
  outline:2px solid #b78b49;
  outline-offset:3px;
}
@media(max-width:900px){
  .pdg-header__mobile{border-color:rgba(166,132,73,.32);}
}

/* Логотип WordPress без CSS-фильтров: оттенки меняются точечно без изменения рисунка. */
.pdg-header .pdg-header__logo,
.pdfoot-v1 .pdfoot-v1__logo { filter: none !important; }
