/* Шапка: плашка плавает над контентом при прокрутке (макет «Скролл №2»).
   Липнет обёртка template-part — у неё в потоке 104px (16 + 72 + 16), как у фрейма 564:91756. */
header.wp-block-template-part:has(> .dd-header){ position:sticky; top:var(--wp-admin--admin-bar--height, 0px); z-index:100; pointer-events:none; }
.dd-header{ display:flex; flex-direction:column; align-items:center; gap:12px; padding:16px var(--dd-gutter); }
.dd-header > *{ pointer-events:auto; }

.dd-header__bar{ display:flex; align-items:center; padding:4px; background:var(--wp--preset--color--white); box-shadow:inset 0 0 0 1px var(--wp--preset--color--black-100); /* обводка внутри 72px, как stroke в Figma */ border-radius:var(--wp--custom--radius--md); }
.dd-header__group{ display:flex; align-items:center; padding:4px; }
.dd-header__btn{ display:grid; place-items:center; width:56px; height:56px; padding:0; border:0; border-radius:var(--wp--custom--radius--md); background:transparent; color:var(--wp--preset--color--black); cursor:pointer; transition:background-color var(--wp--custom--transition--fast); }
@media (hover:hover){ .dd-header__btn:hover{ background:var(--wp--preset--color--black-50); } } /* на тач-экранах hover «залипал» после тапа */
.dd-header__btn--mark{ color:var(--wp--preset--color--orange); }
.dd-header__logo{ display:flex; align-items:center; justify-content:center; width:300px; padding:16px; color:var(--wp--preset--color--black); }
.dd-header__logo-img{ width:167px; height:32px; }

/* Баннер «Баннер сверху» (559:57098): оранжевая полоса 1232×28 над плашкой. */
.dd-header__banner{ position:relative; display:flex; align-items:center; justify-content:center; width:100%; max-width:var(--wp--style--global--content-size, 1232px); min-height:28px; border-radius:var(--wp--custom--radius--xs); background:var(--wp--preset--color--orange); color:var(--wp--preset--color--white); }
.dd-header__banner-link{ padding:4px 40px; border:0; background:none; color:inherit; font-size:var(--wp--preset--font-size--sm); line-height:1.3; cursor:pointer; text-decoration:none; }
.dd-header__banner-close{ position:absolute; right:6px; top:50%; transform:translateY(-50%); display:grid; place-items:center; width:24px; height:24px; padding:0; border:0; background:none; color:inherit; cursor:pointer; }
.dd-header__banner[hidden]{ display:none; }

/* Мобильная шапка (Figma 614:37096): белая полоса 64 без рамки — знак, логотип, бургер.
   Телефон и карта уходят в нижнюю панель (компонент «Нав бар» 717:46301). */
@media (max-width:760px){
	.dd-header{ gap:4px; padding:4px; background:var(--wp--preset--color--white); }
	.dd-header__wrap{ width:100%; }
	.dd-header__bar{ display:grid; grid-template-columns:48px 1fr 48px; align-items:center; width:100%; padding:4px; border-radius:var(--wp--custom--radius--md); box-shadow:none; }
	.dd-header__group{ display:contents; }
	.dd-header__btn{ width:40px; height:40px; margin:4px; }
	.dd-header__btn--mark{ grid-column:1; }
	.dd-header__btn--menu{ grid-column:3; grid-row:1; }
	.dd-header__group:last-child > .dd-header__btn{ display:none; }
	/* В SVG 167×32 буквы занимают середину (y 8…24), а в мобильном макете рамка логотипа 167×16 при p16: поля 8 + 8 «воздуха» SVG. */
	.dd-header__logo{ grid-column:2; grid-row:1; width:auto; padding:8px 16px; }
	.dd-header__logo-img{ width:167px; height:32px; }
	.dd-header__banner{ border-radius:var(--wp--custom--radius--xs); }
}

/* Нижняя панель (717:46301): 5 пунктов по 1/5, иконка 24 + подпись 10. Только на мобиле. */
.dd-tabbar{ display:none; }
@media (max-width:760px){
	body{ padding-bottom:calc(66px + env(safe-area-inset-bottom)); }
	.dd-tabbar{ position:fixed; left:0; right:0; bottom:0; z-index:90; display:flex; padding:4px 4px calc(4px + env(safe-area-inset-bottom)); background:var(--wp--preset--color--white); box-shadow:0 -1px 0 var(--wp--preset--color--black-50); pointer-events:auto; }
	.dd-tabbar__item{ flex:1 0 0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-width:0; padding:8px 0; border:0; border-radius:var(--wp--custom--radius--md); background:none; color:var(--wp--preset--color--black); font-size:10px; font-weight:500; line-height:1.3; letter-spacing:-.02em; text-decoration:none; cursor:pointer; -webkit-tap-highlight-color:transparent; }
	.dd-tabbar__item:active{ background:var(--wp--preset--color--black-50); }
	.dd-tabbar__item .dd-icon{ display:block; }
	.dd-tabbar__item[aria-current="page"]{ color:var(--wp--preset--color--orange); }
}

/* ── Меню (Figma 661:93272): панели 273×572 r16 в 6 px под плашкой, «Врачи» раскрывает вторую панель. ── */
.dd-header__wrap{ position:relative; }
.dd-header__btn--menu .dd-header__ico-close, .dd-header__btn--menu[aria-expanded="true"] .dd-header__ico-open{ display:none; }
.dd-header__btn--menu[aria-expanded="true"] .dd-header__ico-close{ display:block; }
.dd-header__btn > span{ line-height:0; }
.dd-menu{ position:absolute; left:0; top:calc(100% + 6px); z-index:2; display:flex; gap:4px; }
.dd-menu[hidden], .dd-menu__panel[hidden], .dd-menu-overlay[hidden]{ display:none; }
.dd-menu__panel{ display:flex; flex-direction:column; width:273px; height:572px; padding:8px; border-radius:var(--wp--custom--radius--md); background:var(--wp--preset--color--white); animation:dd-menu-in var(--wp--custom--transition--normal) var(--wp--custom--transition--ease); }
@keyframes dd-menu-in{ from{ opacity:0; transform:translateY(-6px); } }
.dd-menu__main{ justify-content:space-between; gap:24px; }
.dd-menu__list{ margin:0; padding:0; list-style:none; }
.dd-menu__item{ display:flex; align-items:center; min-height:48px; padding:12px; border-radius:var(--wp--custom--radius--sm); color:var(--wp--preset--color--black); font-size:var(--wp--preset--font-size--base); font-weight:500; line-height:1.4; letter-spacing:-.02em; text-decoration:none; transition:background-color var(--wp--custom--transition--fast); }
.dd-menu__item:hover, .dd-menu__item[aria-expanded="true"]{ background:var(--wp--preset--color--black-50); }
.dd-menu__item[aria-current="page"]{ color:var(--wp--preset--color--orange); }
.dd-menu__item-row{ display:flex; align-items:center; }
.dd-menu__item-row .dd-menu__item{ flex:1; }
.dd-menu__services-toggle,.dd-menu__mobile-services{ display:none; }
.dd-menu__services{ width:min(452px, calc(100vw - 440px)); padding:18px; gap:14px; overflow:hidden; }
.dd-menu__services-head{ display:flex; flex-direction:column; gap:4px; padding:2px 6px 0; }
.dd-menu__services-head strong{ color:var(--wp--preset--color--black); font-size:24px; line-height:28px; font-weight:600; letter-spacing:-.02em; }
.dd-menu__services-head span{ color:var(--wp--preset--color--black-600); font-size:14px; line-height:20px; }
.dd-menu__services-list{ display:flex; flex-direction:column; gap:6px; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.dd-menu__services-list a{ display:grid; grid-template-columns:78px minmax(0,1fr) 18px; align-items:center; gap:12px; min-height:88px; padding:8px; border-radius:var(--wp--custom--radius--sm); color:var(--wp--preset--color--black); text-decoration:none; transition:background-color var(--wp--custom--transition--fast); }
.dd-menu__services-list a:hover,.dd-menu__services-list a:focus-visible{ background:var(--wp--preset--color--black-50); }
.dd-menu__services-list img{ display:block; width:78px; height:70px; object-fit:cover; border-radius:var(--wp--custom--radius--sm); }
.dd-menu__services-list a span{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.dd-menu__services-list strong{ font-size:16px; line-height:20px; font-weight:600; }
.dd-menu__services-list small{ display:-webkit-box; overflow:hidden; -webkit-line-clamp:2; -webkit-box-orient:vertical; color:var(--wp--preset--color--black-600); font-size:12px; line-height:17px; }
.dd-menu__services-list .dd-icon{ color:var(--wp--preset--color--orange); transition:transform var(--wp--custom--transition--fast); }
.dd-menu__services-list a:hover .dd-icon{ transform:translate(2px,-2px); }
.dd-menu__services-all{ margin-top:auto; padding-top:8px; box-shadow:0 -1px 0 var(--wp--preset--color--black-100); }
.dd-menu__services-all a{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:10px 14px; border-radius:var(--wp--custom--radius--sm); background:var(--wp--preset--color--orange); color:var(--wp--preset--color--white); font-size:15px; font-weight:600; text-decoration:none; transition:background-color var(--wp--custom--transition--fast); }
.dd-menu__services-all a:hover{ background:var(--wp--preset--color--black); }
.dd-menu :is(a,button):focus-visible,.dd-tabbar__item:focus-visible{ outline:3px solid var(--wp--preset--color--orange); outline-offset:2px; }
.dd-menu__cta{ position:relative; display:flex; flex-direction:column; justify-content:space-between; align-items:flex-start; height:100px; padding:16px; overflow:hidden; border:0; border-radius:var(--wp--custom--radius--md); background:var(--wp--preset--color--orange); color:var(--wp--preset--color--white); font-size:var(--wp--preset--font-size--sm); font-weight:500; line-height:1.3; letter-spacing:-.02em; text-align:left; cursor:pointer; isolation:isolate; }
.dd-menu__cta-icon{ margin:2px; transition:transform var(--wp--custom--transition--fast); }
.dd-menu__cta:hover .dd-menu__cta-icon{ transform:translate(2px, -2px); }
/* Узор 807×805, повёрнут на 37.43° в рамке 1130 (left −247, центр на +416.82 ниже центра карточки), белый 40%. */
.dd-menu__cta-swirl{ position:absolute; left:calc(-247px + (1130px - 807px) / 2); top:calc(50% + 416.82px); z-index:-1; width:807px; max-width:none; height:805px; transform:translateY(-50%) rotate(37.43deg); pointer-events:none; }

.dd-menu__doctors{ position:relative; padding:0; overflow:hidden; }
.dd-menu__doctors-list{ display:flex; flex-direction:column; gap:24px; height:100%; padding:8px 8px 72px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.dd-menu__doctors-all{ position:absolute; left:0; right:0; bottom:0; padding:16px 8px 8px; background:linear-gradient(rgba(255,255,255,0), #fff 60%); }
.dd-menu__doctors-all a{ display:flex; align-items:center; justify-content:center; padding:8px 12px; border-radius:var(--wp--custom--radius--xl); background:var(--wp--preset--color--black); color:var(--wp--preset--color--white); font-size:12px; font-weight:500; line-height:24px; text-decoration:none; transition:background-color var(--wp--custom--transition--fast); }
.dd-menu__doctors-all a span{ padding:0 6px; }
.dd-menu__doctors-all a .dd-icon{ margin:3px; }
.dd-menu__doctors-all a:hover{ background:var(--wp--preset--color--black-800); }

.dd-mini-doctor{ display:flex; flex-direction:column; gap:12px; flex:none; }
.dd-mini-doctor__photo{ position:relative; height:280px; overflow:hidden; border-radius:var(--wp--custom--radius--sm); background:var(--wp--preset--color--black-50); }
.dd-mini-doctor__photo img{ position:absolute; top:0; left:-34.94%; width:176.31%; max-width:none; height:auto; aspect-ratio:1; object-fit:cover; }
.dd-mini-doctor__actions{ position:absolute; left:0; right:0; bottom:0; display:flex; gap:8px; padding:24px 12px 12px; background:linear-gradient(rgba(40,40,40,0), rgba(40,40,40,.24)); transform:translateY(100%); transition:transform var(--wp--custom--transition--normal) var(--wp--custom--transition--ease); }
.dd-mini-doctor:hover .dd-mini-doctor__actions, .dd-mini-doctor:focus-within .dd-mini-doctor__actions{ transform:none; }
.dd-mini-doctor__btn{ flex:1; display:flex; align-items:center; justify-content:center; padding:8px 18px; border:0; border-radius:var(--wp--custom--radius--xl); background:var(--wp--preset--color--white); color:var(--wp--preset--color--black); font-size:var(--wp--preset--font-size--sm); font-weight:500; line-height:24px; text-decoration:none; cursor:pointer; }
.dd-mini-doctor__btn--primary{ background:var(--wp--preset--color--orange); color:var(--wp--preset--color--white); }
.dd-mini-doctor__info{ display:flex; flex-direction:column; align-items:flex-start; gap:8px; padding-right:24px; }
.dd-mini-doctor__name{ font-size:var(--wp--preset--font-size--base); font-weight:500; line-height:1.2; letter-spacing:-.02em; color:var(--wp--preset--color--black); }
.dd-mini-doctor__position{ color:var(--wp--preset--color--black-600); font-size:var(--wp--preset--font-size--sm); line-height:20px; letter-spacing:-.02em; }
.dd-mini-doctor .dd-doctor__rating{ display:flex; align-items:center; font-size:var(--wp--preset--font-size--sm); font-weight:500; line-height:20px; }
.dd-mini-doctor .dd-doctor__score{ display:inline-flex; align-items:center; gap:2px; }
.dd-mini-doctor .dd-doctor__score .dd-icon{ margin:2px; }
.dd-mini-doctor .dd-doctor__reviews::before{ content:""; display:inline-block; width:2px; height:2px; margin:0 8px; border-radius:50%; background:var(--wp--preset--color--black-300); vertical-align:middle; }

.dd-menu-overlay{ position:fixed; inset:0; z-index:-1; background:rgba(40,40,40,.64); pointer-events:auto; animation:dd-fade-in var(--wp--custom--transition--normal) ease; }
html.dd-menu-open{ overflow:hidden; }
.dd-header .dd-header__wrap{ z-index:1; }

.dd-menu__cards{ display:contents; }
.dd-menu__call{ display:none; }

/* Мобильное меню (Figma 718:135002 «Меню бургер открыто»): белый экран под шапкой, пункты 18px,
   внизу две карточки 108 — «Записаться на прием» и «Позвонить». Нижняя панель на время меню скрыта. */
@media (max-width:760px){
	.dd-header__wrap{ width:100%; }
	.dd-menu{ position:fixed; left:0; right:0; top:calc(var(--wp-admin--admin-bar--height, 0px) + 64px); bottom:0; display:block; padding:0 16px calc(8px + env(safe-area-inset-bottom)); background:var(--wp--preset--color--white); }
	.dd-menu__main{ width:100%; height:100%; padding:0 0 12px; border-radius:0; background:none; overflow-y:auto; overscroll-behavior:contain; animation:dd-fade-in var(--wp--custom--transition--fast) ease; }
	.dd-menu__doctors{ display:none !important; }
	.dd-menu__services{ display:none !important; }
	.dd-menu__li--tabbar{ display:none; }
	.dd-menu__item{ min-height:46px; padding:8px 12px; font-size:18px; }
	.dd-menu__services-toggle{ display:grid; place-items:center; flex:none; width:44px; height:44px; margin-right:2px; padding:0; border:0; border-radius:var(--wp--custom--radius--sm); background:var(--wp--preset--color--black-50); color:var(--wp--preset--color--black); cursor:pointer; }
	.dd-menu__services-toggle .dd-icon{ transition:transform var(--wp--custom--transition--fast); }
	.dd-menu__services-toggle[aria-expanded="true"] .dd-icon{ transform:rotate(180deg); }
	.dd-menu__mobile-services:not([hidden]){ display:flex; flex-direction:column; gap:2px; margin:0 0 8px 14px; padding:4px 0 4px 12px; border-left:1px solid var(--wp--preset--color--black-100); list-style:none; }
	.dd-menu__mobile-services a{ display:flex; align-items:center; justify-content:space-between; min-height:40px; padding:7px 10px; border-radius:var(--wp--custom--radius--sm); color:var(--wp--preset--color--black); font-size:15px; line-height:22px; text-decoration:none; }
	.dd-menu__mobile-services a:hover,.dd-menu__mobile-services a:focus-visible{ background:var(--wp--preset--color--black-50); }
	.dd-menu__mobile-services li:first-child a{ color:var(--wp--preset--color--orange); font-weight:600; }
	.dd-menu__cards{ display:flex; gap:8px; }
	.dd-menu__cta{ flex:1 0 0; height:108px; font-size:13px; line-height:1.4; }
	.dd-menu__call{ display:flex; background:var(--wp--preset--color--black); color:var(--wp--preset--color--white); text-decoration:none; }
	.dd-menu__call small{ display:block; color:var(--wp--preset--color--black-600); font-size:13px; }
	.dd-menu__cta-icon{ width:18px; height:18px; margin:3px; }
	/* Узоры: оранжевая — рамка 1101 (left −238, +412.28), поворот 30°; тёмная — рамка 1139 (left −307, +421.7), −136.39°. */
	.dd-menu__cards .dd-menu__cta:first-child .dd-menu__cta-swirl{ left:calc(-238px + (1101.3px - 807px) / 2); top:calc(50% + 412.28px); transform:translateY(-50%) rotate(30deg); }
	.dd-menu__call .dd-menu__cta-swirl{ left:calc(-307px + (1139.5px - 807px) / 2); top:calc(50% + 421.7px); transform:translateY(-50%) rotate(-136.39deg); opacity:.4; }
	.dd-menu-overlay{ display:none !important; }
	html.dd-menu-open .dd-tabbar{ display:none; }
}

/* Фоны карточек меню из Figma (667:97759, 717:106663, 717:106667). */
.dd-menu__cta{ background:#FF690A url(../../assets/img/bg/menu-cta.webp) center / cover no-repeat; }
.dd-menu__cta-swirl{ display:none; }
@media (max-width:760px){
	.dd-menu__cards .dd-menu__cta:first-child{ background-image:url(../../assets/img/bg/menu-mobile-book.webp); }
	.dd-menu__call{ background:#24252C url(../../assets/img/bg/menu-mobile-call.webp) center / cover no-repeat; }
	.dd-menu__cards .dd-menu__cta-swirl{ display:none; }
}
