/* Shared styles for native blocks in the canvas and on the public site. */
.wp-site-blocks{padding:0}.wp-site-blocks>.wp-block-template-part{margin:0}.wp-block-group{box-sizing:border-box}.wp-block-image{margin:0}.wp-block-image img{height:auto}.brand .wp-block-image img{width:87px;height:79px;object-fit:contain}.header-inner>.wp-block-navigation{margin-left:auto}.header-inner .wp-block-navigation__container{gap:27px}.header-inner .wp-block-navigation-item__content{font-size:12px;font-weight:500}.header-inner .wp-block-navigation__responsive-container-open{min-width:44px;min-height:44px;align-items:center;justify-content:center}.header-inner .wp-block-navigation__responsive-container.is-menu-open{padding:30px}.wp-block-button__link{display:inline-flex;align-items:center;justify-content:center;min-height:54px;border:0;border-radius:8px;background:var(--green);color:white;padding:15px 25px;font-size:13px;font-weight:600;text-decoration:none;line-height:1.5}.dc-white .wp-block-button__link{background:white;color:var(--green)}.wp-block-button__link:hover{background:var(--green-dark);color:white}.dc-white .wp-block-button__link:hover{background:var(--green-soft);color:var(--green)}.wp-block-button__link:focus-visible,.wp-block-navigation a:focus-visible{outline:3px solid #98672c;outline-offset:5px}.hero-visual .wp-block-image{width:100%;height:100%}.hero-visual .wp-block-image img{height:100%;width:100%;object-fit:cover;object-position:center 27%;border-radius:140px 18px 18px 18px}.hero-proof{display:block;font-size:11px;color:var(--muted)}.image-caption p{margin:0}.image-caption p+p{font-size:10px;color:#ffffffc9}.about-visual>.wp-block-image{width:100%;height:100%}.about-visual>.wp-block-image img{width:100%;height:100%;object-fit:cover;border-radius:15px 100px 15px 15px}.contact-item{display:block}.contact-item h3{margin-bottom:8px;font-size:15px}.contact-item>.dc-contact{color:var(--ink);font-size:18px}.dc-contact{white-space:pre-line}.appointment-panel .dc-contact>a{color:inherit}.appointment-hours{white-space:pre-line;font-size:12px;line-height:2}.appointment-details>.appointment-phone{font-size:27px}.footer-contact>.dc-contact:first-child{font-size:19px;color:var(--green)}.footer-bottom p{font-size:10px}.footer-links p{margin:0}.footer h2{font-size:32px;color:var(--green)}.doctor-sidebar .wp-block-post-featured-image img{width:100%;height:390px;object-fit:cover;object-position:center 15%;border-radius:15px}.dc-doctor-field>p{white-space:pre-line}.service-card h3,.document-link{overflow-wrap:anywhere}.entry-content .wp-block-post-featured-image img{max-height:520px;object-fit:cover}.editor-styles-wrapper{padding:0!important}.editor-styles-wrapper .wp-block{max-width:none}.editor-styles-wrapper .wp-block-post-content>.block-editor-block-list__layout{margin:0}.editor-styles-wrapper .block-editor-block-list__block{position:relative}.editor-styles-wrapper .header{position:relative;top:auto}.editor-styles-wrapper .doctor-sidebar{position:relative;top:auto}.editor-styles-wrapper .hero-visual:after{pointer-events:none}.editor-styles-wrapper .wp-block-dantist-publications,.editor-styles-wrapper .wp-block-dantist-doctors{min-height:50px}.editor-styles-wrapper .wp-block-dantist-contact{min-width:40px}.editor-styles-wrapper .wp-block-dantist-contact:empty:before{content:'Контакт клиники';color:#64716b}.editor-styles-wrapper .block-editor-server-side-render>div{width:100%}.editor-styles-wrapper .components-placeholder{min-height:60px}.wp-block-dantist-prices .search-field input{min-width:0}
@media(max-width:900px){.header-inner .wp-block-navigation__container{gap:16px}.header-inner .wp-block-navigation-item__content{font-size:10px}.header-phone{width:auto!important;max-width:130px;font-size:11px!important}.hero-visual .wp-block-image img{border-top-left-radius:95px}}
@media(max-width:767px){.header-inner{gap:14px;flex-wrap:nowrap}.brand .wp-block-image img{width:68px;height:65px}.header-inner>.brand{gap:10px;margin-right:0}.header-inner>.wp-block-navigation{margin-left:auto}.header-inner>.header-phone{display:none}.header-inner .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{font-size:18px;padding:10px}.hero-visual .wp-block-image img{border-radius:90px 14px 14px 14px}.appointment-details>.appointment-phone{font-size:25px}.footer-links{gap:10px}.doctor-sidebar .wp-block-post-featured-image img{height:auto}.about-visual>.wp-block-image img{border-top-right-radius:75px}.wp-block-button__link{font-size:12px;min-height:48px;padding:14px 20px}.hero-actions{display:flex;flex-wrap:wrap}}
.entry-content .wp-block-button__link{color:white;text-decoration:none}.entry-content .dc-white .wp-block-button__link{color:var(--green)}.section:has(.wp-block-dantist-publications:empty){display:none}.editor-styles-wrapper .section:has(.wp-block-dantist-publications:empty){display:block}
/* A backdrop-filter on the sticky header would trap WordPress's fixed mobile menu. */
.header{backdrop-filter:none}
.header,.header .wp-block-navigation__responsive-container.is-menu-open{background:#f8f9f6}
.header .brand .wp-block-image img{mix-blend-mode:multiply}
.benefit>.benefit-icon{display:flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;margin:0;padding:0;border-radius:10px;background:var(--green-soft)}
.benefit>.benefit-icon img{display:block;width:24px;height:24px}
.service-card.service-card-illustrated{padding:0;overflow:hidden;background:white}
.service-card-media{display:block;aspect-ratio:2/1;overflow:hidden;border-bottom:1px solid #e4ece3;background:var(--green-soft)}
.service-card-media img{display:block;width:100%;height:100%;object-fit:cover}
.service-card-body{display:flex;flex-direction:column;flex:1;min-width:0}
.service-card-illustrated .service-card-body{padding:24px 26px 22px}
.service-card-body p{max-width:none}
.service-card-body .card-link{margin-top:auto}
@media(max-width:540px){.service-card-illustrated .service-card-body{padding:22px 24px}.service-card-media{aspect-ratio:2.15/1}}
.header-inner .wp-block-navigation__responsive-container.is-menu-open{position:fixed;inset:0;min-height:100dvh;width:100%;overflow:auto}

/* Text navigation: a single underline indicates hover or the current section. */
.header-inner .wp-block-navigation__container{gap:14px}
.header-inner .wp-block-navigation-item__content{
    display:flex;align-items:center;justify-content:center;
    min-height:44px;padding:10px 8px;border:0;
    border-radius:0;color:var(--ink);font-size:12px;font-weight:600;
    line-height:1.4;text-align:center;white-space:normal;
    text-transform:uppercase;letter-spacing:.06em;
    text-decoration-thickness:2px;text-underline-offset:8px;
    transition:color .2s;
}
.header-inner .wp-block-navigation-item__content:hover,
.header-inner .wp-block-navigation-item__content:focus-visible,
.header-inner .wp-block-navigation-item__content[aria-current='location'],
.header-inner .wp-block-navigation-item__content[aria-current='page']{
    background:transparent;color:var(--green);text-decoration-line:underline;
}
.header-inner .wp-block-navigation-item.mobile-menu-phone{display:none}
.brand-caption{display:block;max-width:145px}
.section-heading h1{font-size:clamp(31px,3.2vw,44px)}
.section-heading:has(h1){display:block}
.wp-block-post-content>#services:first-child{padding-top:56px}
.clinic-map{overflow:hidden;border:1px solid var(--line);border-radius:15px;background:white;white-space:normal;align-self:start}
.clinic-map .clinic-location-scheme{border:0;border-radius:0;min-height:430px}
.clinic-location-scheme .map-marker{left:44%;top:38%}
.clinic-location-scheme .map-disclaimer{font-size:11px;line-height:1.5}
.clinic-location-scheme .map-open{font-size:13px;min-height:44px}
.clinic-location-scheme:focus-visible{outline-offset:-5px}
@media(max-width:540px){
    .clinic-map .clinic-location-scheme{min-height:380px}
    .clinic-location-scheme .map-marker{left:50%;top:28%}
    .clinic-location-scheme .map-open{bottom:48px;right:16px}
    .clinic-location-scheme .map-disclaimer{left:16px;bottom:15px}
}
.footer-main{grid-template-columns:minmax(180px,1fr) minmax(0,2fr);gap:48px}
.footer-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 24px}
.footer-main .footer-links p{margin:0;font-size:13px;line-height:1.6}
.footer-brand h2{margin:0;line-height:1.08}
.footer-main .footer-brand-type{margin:3px 0 0;font-size:11px;line-height:1.4;letter-spacing:.12em;text-transform:uppercase;color:var(--green)}
.footer-links a{min-height:44px;overflow-wrap:anywhere}
.footer-label-short{display:none}
@media(max-width:767px){.footer-label-full{display:none}.footer-label-short{display:inline}}
/* The template-part wrapper must stick; its nested header alone cannot. */
.wp-site-blocks>.wp-block-template-part:has(.header){position:sticky;top:0;z-index:40}
.wp-site-blocks>.wp-block-template-part:has(.header) .header{position:static}
html{scroll-padding-top:var(--navigation-offset,114px)}
body.admin-bar .wp-site-blocks>.wp-block-template-part:has(.header){top:32px}
@media(max-width:782px){body.admin-bar .wp-site-blocks>.wp-block-template-part:has(.header){top:46px}}
@media(max-width:600px){body.admin-bar .wp-site-blocks>.wp-block-template-part:has(.header){top:0}}
.wp-site-blocks :where(.wp-block-group,.wp-block-buttons,.wp-block-button,
    .dc-contact,.service-card,.doctor-card,.review-card){min-width:0}
.wp-block-button{max-width:100%}
.wp-block-button__link,.button{
    max-width:100%;height:auto;white-space:normal;overflow-wrap:break-word;text-align:center;
}
.wp-block-button__link{border:1px solid transparent}
.dc-contact.button{display:block;width:fit-content}
.dc-contact.button>a{display:block}
.dc-contact:not(.header-phone),.service-card p,.review-card p,
.price-row>span,.price-group summary>span:first-child,
.document-link>span:first-child{overflow-wrap:anywhere}
.trust-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
.trust-strip>div{min-width:0;flex-wrap:wrap;row-gap:6px}
.trust-strip p{font-size:13px;line-height:1.6;overflow-wrap:break-word}
.trust-strip .trust-number{font-size:33px;line-height:1.2;flex-shrink:0}
.document-link>span:first-child{min-width:0}
.document-link>span:last-child{flex:0 0 auto}
.publication-content .dc-price-link a,
.publication-content .dc-price-link a:hover,
.publication-content .dc-price-link a:focus-visible{text-decoration:none}
.price-row>span{min-width:0}
.price-row>strong{flex-shrink:0}
.appointment-panel{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
.appointment-phone{white-space:normal}
.map-address-card{display:flex}
.map-address-card p{color:var(--muted);font-size:14px;line-height:1.8}
.map-address-card .text-link{min-height:48px}
.topline-inner{height:auto;min-height:34px;gap:16px;padding-block:6px;flex-wrap:wrap}
.topline-inner>.dc-contact{font-size:11px}
@media(max-width:1100px){
    .header-inner>.header-phone{display:none}
    .header-inner .wp-block-navigation-item__content{font-size:12px;padding-inline:12px}
}
@media(max-width:900px){
    .header-inner .wp-block-navigation__responsive-container:not(.is-menu-open){display:none}
    .header-inner .wp-block-navigation__responsive-container-open:not(.always-shown){display:flex}
    .header-inner .wp-block-navigation__responsive-container.is-menu-open{padding:24px}
    .header-inner .is-menu-open .wp-block-navigation__responsive-container-content{
        align-items:stretch;padding-top:64px;
    }
    .header-inner .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container{
        width:100%;align-items:stretch;gap:12px;
    }
    .header-inner .is-menu-open .wp-block-navigation-item{width:100%}
    .header-inner .is-menu-open .wp-block-navigation-item__content{
        width:100%;min-height:52px;padding:14px 8px;font-size:16px;
        justify-content:flex-start;text-align:left;
    }
    .header-inner .is-menu-open .wp-block-navigation-item.mobile-menu-phone{
        display:flex;flex-direction:column;align-items:stretch;gap:8px;
        margin-top:12px;padding-top:24px;border-top:1px solid var(--line);
    }
    .header-inner .mobile-menu-phone:before{
        content:'Запись по телефону';color:var(--muted);font-size:14px;text-align:center;
    }
    .header-inner .is-menu-open .mobile-menu-phone .wp-block-navigation-item__content{
        background:var(--green);color:var(--white);font-size:20px;font-weight:600;
        border-radius:8px;justify-content:center;text-align:center;
        text-transform:none;letter-spacing:0;text-decoration:none;
    }
    .header-inner .is-menu-open .mobile-menu-phone .wp-block-navigation-item__content:hover{
        background:var(--green-dark);
    }
    .header-inner .wp-block-navigation__responsive-container-close{
        width:44px;height:44px;display:flex;align-items:center;justify-content:center;
    }
}
@media(max-width:767px){
    .brand-caption{max-width:120px}
    .wp-block-post-content>#services:first-child{padding-top:36px}
    .footer-main{grid-template-columns:minmax(0,1fr);gap:24px}
    .footer-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
    .hero-grid,.about-grid,.doctor-detail,.contacts-grid,.appointment-panel{
        grid-template-columns:minmax(0,1fr);
    }
    .trust-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
    .trust-strip>div{align-content:start;padding-left:12px}
    .trust-strip p{font-size:13px}
    .appointment-panel{padding:32px 24px}
    .appointment-panel h2{font-size:clamp(28px,8.5vw,36px)}
    .appointment-panel .eyebrow{font-size:10px;line-height:1.8}
    .appointment-panel>div>p{font-size:14px}
    .appointment-panel .dc-contact.button{width:100%;font-size:14px}
    .hero-actions{gap:12px}
    .hero-actions>.wp-block-buttons{max-width:100%;margin-block:0}
    .wp-block-button__link{font-size:14px;min-height:48px;padding:14px 18px}
    .service-card p,.about-copy .section-intro,.benefit p,.review-card p{font-size:14px}
    .contact-item>.dc-contact{font-size:16px}
    .transport{margin-left:0}
    .search-field input{font-size:16px;min-width:0}
    .price-group summary{align-items:flex-start}
    .price-group summary>span:last-child{flex-shrink:0}
    .document-body p,.doctor-bio p,.page-heading p{font-size:14px}
    .document-link span{font-size:14px}
    .experience{max-width:calc(100% - 34px);overflow-wrap:break-word}
}
@media(max-width:540px){
    .services-grid{grid-template-columns:minmax(0,1fr)}
    .service-card{padding:24px}
    .service-card h3{font-size:21px}
    .card-link{font-size:13px;min-height:44px}
    .hero-actions,.hero-actions>.wp-block-buttons,.hero-actions .wp-block-button,
    .hero-actions .wp-block-button__link{width:100%}
    .hero-actions .wp-block-button__link{min-height:52px}
    .hero h1{font-size:clamp(32px,10vw,49px);overflow-wrap:normal;word-break:normal}
    .price-row{flex-wrap:wrap;gap:6px 16px}
    .price-row>span{flex:1 1 180px}
    .price-row>strong{margin-left:auto}
    .price-banner .wp-block-buttons,.price-banner .wp-block-button,
    .price-banner .wp-block-button__link{width:100%}
    .footer-contact .wp-block-button__link{width:100%}
}
