/* Shared phone layout. Keep desktop rules and original content intact. */
@media(max-width:600px){
 body.page .native-content .cd-pricehub .cd-pricehub-hero{padding:30px 20px!important;background:linear-gradient(90deg,rgba(8,6,3,.93),rgba(8,6,3,.76)),url('https://permanent-makeup.ee/wp-content/uploads/2026/06/pusimeigi-stuudio-Tallinnas.jpg') center/cover no-repeat;border-radius:0}
 body.page .native-content .cd-pricehub .cd-pricehub-hero-grid{gap:20px;grid-template-columns:minmax(0,1fr)}
 body.page .native-content .cd-pricehub .cd-pricehub-visual .cd-pricehub-photo{display:none!important}
 body.page .native-content .cd-pricehub .cd-pricehub-visual{display:block;min-height:0;max-width:none}
}
@media(max-width:600px){
 body{overflow-wrap:break-word}
 main h1{font-size:30px!important;line-height:1.22!important}
 main h2{font-size:23px!important;line-height:1.3!important}
 main h3{font-size:18px!important;line-height:1.35!important}
 main p{font-size:14px;line-height:1.75}
 .cd-home .cd-source-hero{padding:28px 0!important;min-height:0!important;background-color:#080603!important;background-image:linear-gradient(90deg,rgba(8,6,3,.94) 0%,rgba(8,6,3,.76) 40%,rgba(8,6,3,.24) 100%),var(--cd-hero-image)!important;background-repeat:no-repeat!important;background-size:100% 100%,auto 700px!important;background-position:center,calc(50% + 45px) -180px!important}
 .cd-home .cd-source-hero>.wrap{padding-inline:20px!important}
 .cd-home .cd-source-hero .cd-hero-copy{width:100%!important;display:flex;flex-direction:column}
 .cd-home .cd-source-hero .cd-hero-copy:after{content:none;display:none}
 .cd-home .cd-source-hero .cd-hero-copy h1,.cd-home .cd-source-hero .cd-hero-description{position:relative;text-shadow:0 1px 5px #0009}
 .cd-home .cd-source-hero .cd-hero-description{order:2}
 .cd-home .cd-source-hero .cd-hero-actions{order:4}
 .cd-home .cd-source-hero .cd-hero-copy h1{font-size:30px!important;margin-bottom:16px}
 .cd-home .cd-source-hero .cd-hero-intro{font-size:14px;line-height:1.6;margin-bottom:14px}
 .cd-home .cd-source-hero .cd-hero-description{font-size:14px;line-height:1.75;margin-top:14px}
 .cd-home .cd-source-hero .cd-hero-actions{display:flex;flex-direction:column;gap:10px;align-items:stretch;margin-top:22px}
 .cd-home .cd-source-hero .cd-hero-actions .button{flex:0 0 auto!important;height:auto!important;min-height:48px!important;width:100%;padding:14px 12px!important;line-height:1.5;font-size:11px!important}
 .cd-home .cd-section{padding-block:28px!important}
 .cd-home .cd-proof{gap:16px 0;padding-block:20px}
 .cd-home .cd-proof dt{font-size:28px!important}
 .cd-home .cd-proof dd{font-size:12px;line-height:1.5}
 .cd-home #services .cd-service-body,.cd-home .cd-work-body{padding:18px!important;gap:12px}
 .cd-home #services .cd-service-body h3,.cd-home .cd-work-body h3{min-height:0!important;font-size:18px!important}
 .cd-home .cd-work-photo{aspect-ratio:1!important;height:auto!important}
 .cd-home .cd-faq{gap:20px}
 .cd-home .cd-faq-portrait{width:180px!important}
 .native-content .native-section,.native-content .native-widget{min-width:0}
 .native-content .gallery{min-width:0;max-width:100%}
 .native-content .gallery.cd-portfolio-slider>figure{min-width:0;max-width:100%}
 .native-content .gallery.cd-portfolio-slider>figure img{height:260px!important;max-height:260px!important;object-fit:contain!important}
 .cd-proof-pair{grid-template-columns:1fr!important;max-width:100%!important;padding:20px 0!important;gap:16px!important}
 .cd-proof-card{padding:18px!important;min-width:0}
 .cd-proof-card h2,.cd-proof-card h3,.cd-proof-card>p{min-height:0!important}
 #form.consultation .contact{grid-template-columns:1fr!important;gap:28px!important;padding-inline:20px!important}
 #form input:not([type=checkbox]),#form textarea{font-size:16px!important;max-width:100%}
 .cd-next-studio{margin:24px 0!important;padding:20px!important}
 .cd-next-options{grid-template-columns:1fr!important;grid-auto-rows:1fr;gap:12px!important}
 .cd-next-options>a{padding:16px 40px 16px 18px!important;gap:7px!important;min-height:142px;justify-content:flex-start}
 .cd-next-options strong{font-size:16px!important;line-height:1.4;display:block}
 .cd-next-options .cd-next-category{font-size:11px;line-height:1.5}
 .cd-next-options .cd-next-hint{font-size:12px;line-height:1.5;margin-top:auto}
 .cd-next-options .cd-next-arrow{top:16px;right:16px;font-size:20px}
 .cd-next-intro{margin-bottom:18px!important;gap:4px!important}
 .cd-next-intro h2{margin:8px 0 12px!important}
 .cd-next-studio .cd-pen-scene{height:108px}
 .cd-next-studio .cd-pmu-pen{top:0;scale:.75;transform-origin:50% 0}
 .cd-next-studio .cd-pen-trace{top:82px}
 .cd-next-studio .cd-pen-scene>span{font-size:10px;letter-spacing:.05em}
 .cd-next-option{padding:18px!important}
}


@media(max-width:600px){
 .cd-portfolio-controls{gap:6px!important;flex-wrap:nowrap!important;max-width:100%;padding-top:10px}
 .cd-portfolio-controls>button{width:30px!important;height:30px!important;min-width:30px;min-height:30px;padding:0!important;font-size:17px!important;flex:0 0 30px!important;color:#c89313}
 .cd-portfolio-dots{gap:2px!important;min-width:0;flex-shrink:1}
 .cd-portfolio-dots button{width:16px!important;min-width:0;height:26px!important;padding:6px!important;flex:0 1 16px}
 .cd-portfolio-dots button:after{width:4px!important;height:4px!important}
 .cd-portfolio-count{font-size:10px!important;white-space:nowrap;flex-shrink:0}
 .native-content button{max-width:100%;box-sizing:border-box}
}



/* Shared gold controls: CSS-drawn arrows avoid mobile emoji/native blue rendering. */
:is(.cd-gallery-controls,.cd-review-controls,.cd-portfolio-controls)>button,
.cd-review-controls>div>button,.site-header .submenu-toggle{
 -webkit-appearance:none;appearance:none;color:#c89313!important;-webkit-text-fill-color:#c89313;touch-action:manipulation;font-variant-emoji:text;
}
:is([data-work-prev],[data-work-next],[data-review-prev],[data-review-next],.cd-portfolio-controls>button){position:relative;font-size:0!important;color:#c89313!important;-webkit-text-fill-color:#c89313;line-height:1}
:is([data-work-prev],[data-work-next],[data-review-prev],[data-review-next],.cd-portfolio-controls>button)::before{content:'';position:absolute;width:16px;height:2px;left:calc(50% - 8px);top:calc(50% - 1px);background:currentColor}
:is([data-work-prev],[data-work-next],[data-review-prev],[data-review-next],.cd-portfolio-controls>button)::after{content:'';position:absolute;width:8px;height:8px;right:calc(50% - 8px);top:calc(50% - 4px);border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg);box-sizing:border-box}
:is([data-work-prev],[data-review-prev],.cd-portfolio-controls>button:first-child)::after{right:auto;left:calc(50% - 8px);transform:rotate(-135deg)}
.cd-next-arrow,.cd-editorial-link>span[aria-hidden]{color:#c89313!important;-webkit-text-fill-color:#c89313;font-size:0!important;width:16px;height:16px;display:inline-block;flex:0 0 16px;font-variant-emoji:text}
.cd-editorial-link>span[aria-hidden]{position:relative}
:is(.cd-next-arrow,.cd-editorial-link>span[aria-hidden])::before{content:'';position:absolute;width:16px;height:2px;background:currentColor;left:0;top:7px;transform:rotate(-45deg)}
:is(.cd-next-arrow,.cd-editorial-link>span[aria-hidden])::after{content:'';position:absolute;width:10px;height:10px;right:0;top:0;border-top:2px solid currentColor;border-right:2px solid currentColor;box-sizing:border-box}
main summary::marker,main summary::-webkit-details-marker{color:#c89313}
.cd-faq-list summary>span{color:#c89313}
@media(max-width:767px){
 :is([data-work-prev],[data-work-next],[data-review-prev],[data-review-next],.cd-portfolio-controls>button){width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;flex:0 0 44px!important;padding:0!important}
 .cd-portfolio-controls{display:flex;flex-wrap:wrap!important;gap:8px!important}
 .cd-portfolio-dots{max-width:calc(100% - 100px);flex-wrap:wrap;justify-content:center}
 .cd-portfolio-dots button{min-height:32px!important;height:32px!important}
 .cd-review-controls{gap:12px;flex-wrap:wrap}
 .cd-review-controls>span{font-size:12px;line-height:1.5}
 .cd-home .cd-editorial-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin-top:20px}
 .cd-home .cd-editorial-actions .button{width:100%;min-height:48px;font-size:11px}
 .cd-editorial-link{align-self:flex-start;min-height:44px}
 .cd-home .cd-editorial-portrait{aspect-ratio:4/5}
 .site-header .languages a{min-height:36px;display:inline-flex;align-items:center;justify-content:center}
}

/* Avoid logo/language/booking overlap on narrow phones. */
@media(max-width:380px){
 .site-header .header-row{grid-template-columns:64px minmax(0,1fr) 44px!important;gap:10px!important}
 .site-header .header-row>.brand{grid-area:1/1!important}
 .site-header .header-row>.languages{grid-area:1/2!important;justify-self:center;width:max-content;max-width:100%;margin:0!important}
 .site-header .header-row>.menu-toggle{grid-area:1/3!important;width:44px!important;min-width:44px!important}
 .site-header .header-row>.header-book{grid-area:2/1/auto/-1!important;width:100%;min-height:44px!important;margin:0!important}
 .site-header .header-row>.nav-shell{grid-area:3/1/auto/-1!important}
}

@media(max-width:380px){.cd-home .cd-editorial-copy h1{font-size:28px!important;line-height:1.2!important;overflow-wrap:normal;word-break:normal}}

body:is(.page-id-274,.page-id-1380,.page-id-1381) .native-content .gallery>figure img{width:100%!important;max-width:360px!important;height:auto!important;max-height:none!important;aspect-ratio:1/1!important;object-fit:cover!important;border-radius:12px!important;margin-inline:auto;display:block}
@media(max-width:600px){body:is(.page-id-274,.page-id-1380,.page-id-1381) .native-content .gallery>figure img{max-width:260px!important;height:260px!important}}
body:is(.page-id-274,.page-id-1380,.page-id-1381) .native-content #cd-portfolio-3d img[src*="3d-lips-4"]{object-position:center bottom}

/* Full lip technique photos, with no empty side bands. */
body:is(.page-id-843,.page-id-1404,.page-id-1402) .cd-detail-tech-grid .native-image img{width:100%!important;height:auto!important;aspect-ratio:1/1!important;max-height:none!important;object-fit:cover!important;display:block}
body:is(.page-id-843,.page-id-1404,.page-id-1402) .cd-detail-tech-grid .cd-node-7e4a29a3 .native-image img{aspect-ratio:1/1!important;object-position:center 48%!important}
