/* Only adaptations required by the ACE data and new images.
   Keep original site.css, product-review.css and team-review.css unchanged
   except their already-localized font paths. */
.logo img{width:24px;height:27px;object-fit:contain;flex:none}
.logo span{width:auto}

.hero-bg .amb{object-position:38% 20%}
.hero-cta .price-t{max-width:235px}
/* Employee portraits are source cutouts with a different aspect ratio. */




#refuse .side-photo img{object-fit:contain;object-position:85% center}
#refuse .side-photo{background:radial-gradient(ellipse at 80% 38%,#43304E,transparent 69%)}
#refuse .who img{object-fit:contain;background:#fff;padding:8px}

#urgent .shade.c{background:linear-gradient(90deg,rgba(43,9,68,.9),rgba(43,9,68,.72) 40%,rgba(43,9,68,.15) 80%)}
#pricing .pbg img,#application .pbg img{object-fit:contain;object-position:80% 33%}
#pricing .pbg,#application .pbg{background:radial-gradient(ellipse at 65% 33%,#43304E,#2B0944 72%)}
/* Explicit source transparency on generated editorial illustrations. */
.scene-photo-note{position:absolute;right:24px;bottom:12px;z-index:2;color:rgba(255,255,255,.7);font-size:11px;line-height:1.3;max-width:250px;text-align:right;pointer-events:none}
.photo-provenance{margin-top:20px}
#who .scene-photo-note{position:absolute}
/* Radio tabs work with scripts disabled; visual attributes copy the source .seg button. */
.who-radio{position:absolute;left:10%;top:50%;width:1px;height:1px;margin:0;opacity:0;overflow:hidden;clip-path:inset(50%)}
#who .cat-bg{opacity:0;pointer-events:none}
#who .pane{display:none}
#who .seg label{all:unset;cursor:pointer;padding:12px 20px;border-radius:999px;font-size:var(--small);font-weight:500;color:rgba(255,255,255,.82);transition:.25s;white-space:nowrap;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
#who .seg label:hover{color:#fff}
#who:has(#who-radio-1:checked) label[for="who-radio-1"],#who:has(#who-radio-2:checked) label[for="who-radio-2"],#who:has(#who-radio-3:checked) label[for="who-radio-3"]{background:#FFFFFF;color:var(--ink)}
#who:has(#who-radio-1:focus-visible) label[for="who-radio-1"],#who:has(#who-radio-2:focus-visible) label[for="who-radio-2"],#who:has(#who-radio-3:focus-visible) label[for="who-radio-3"]{outline:3px solid #D9B9E6;outline-offset:2px}
#who:has(#who-radio-1:checked) #c1,#who:has(#who-radio-2:checked) #c2,#who:has(#who-radio-3:checked) #c3{display:block}
#who:has(#who-radio-1:checked) .cat-bg[data-c="c1"],#who:has(#who-radio-2:checked) .cat-bg[data-c="c2"],#who:has(#who-radio-3:checked) .cat-bg[data-c="c3"]{opacity:1}
#who .cat-bg img,#who .cat-bg[data-c="c2"]>img.sharp{inset:0!important;top:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:100% center!important;transform:none!important;scale:1!important;mask-image:none!important;-webkit-mask-image:none!important}
#who .cat-bg .soft img{filter:blur(18px) saturate(.9)}
.journal-brand{display:block;font-family:Georgia,serif;font-size:clamp(30px,3.5vw,46px);font-weight:700;letter-spacing:-.04em;color:#3c326d;line-height:1.05;border-bottom:3px solid #3c326d;padding-bottom:12px}
.journal .j-doi{overflow-wrap:anywhere}
.research-note{margin-top:24px;max-width:1080px}
#research .stat b{white-space:nowrap}
.ace-map{overflow:hidden}
.ace-map-inner{position:absolute;right:-2%;top:50%;transform:translateY(-50%);width:min(800px,62vw);aspect-ratio:1;overflow:visible}
.ace-map-tiles{position:absolute;inset:0;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);filter:saturate(.12) sepia(.2) contrast(.84);opacity:.79;border-radius:26px;overflow:hidden}
.ace-map-tiles img{display:block;width:100%;height:100%;object-fit:fill}
.real-map-pin{position:absolute;transform:translate(-50%,-50%);z-index:2}
.real-map-pin i{display:block;width:21px;height:21px;border-radius:50%;background:#680181;border:5px solid #E8D5EF;box-shadow:0 0 0 9px rgba(104,1,129,.24)}
.real-map-pin div{position:absolute;left:30px;top:-10px;min-width:185px;max-width:215px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#FFFFFF;box-shadow:0 14px 32px -20px rgba(47,46,54,.45);font-size:13px;line-height:1.3}
.real-map-pin:last-child div{left:auto;right:27px}
.real-map-pin b,.real-map-pin span{display:block}
.real-map-pin span{font-size:11px;color:var(--muted);margin-top:4px}
.map-credit{position:absolute;bottom:10px;right:16px;z-index:4;font-size:11px;color:#53515B;text-decoration:underline;background:#F4F4F4;padding:4px 8px;border-radius:6px}
#regions .btn{margin-top:26px}
#clinics .ace-service-tile{gap:4px;text-decoration:none;overflow:hidden}
#clinics .ace-service-tile img{height:20px;max-width:30px;object-fit:contain;filter:grayscale(1) sepia(.17) contrast(.8);flex-shrink:0}
#clinics .ace-service-tile b{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
#clinics .ace-service-tile:hover{background:#FFFFFF}
#team .doc img{filter:saturate(.92);object-position:50% 14%}
#team .doc[data-doc="delfontseva"] img,#team .doc[data-doc="hamidullina"] img{object-fit:contain;object-position:center top}
#docModal .ph img{background:#E2E2E2;object-fit:cover;object-position:50% 18%}
#docModal .bio{white-space:pre-line}
#docModal .tx .btn{margin-top:20px}
.ace-preview-form select{width:100%;padding:13px 20px;border-radius:999px;border:1px solid rgba(255,255,255,.3);background:#2B0944;color:#fff;font:inherit}
.ace-preview-form select option{color:#fff;background:#2B0944}
.ace-preview-form .fld{margin-top:14px}
.ace-preview-form .fl{margin-top:6px;margin-bottom:6px}
.ace-preview-note{color:rgba(255,255,255,.72);font-size:13px;margin-top:18px;line-height:1.4}
.ace-form-link{display:block;text-align:center;text-decoration:underline;font-size:14px;color:var(--w2);margin-top:14px}
.ace-preview-form input[type=email]{width:100%;padding:16px 20px;border-radius:999px;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.1);font-size:var(--body);color:white;outline:none}
.ace-preview-form input[type=email]:focus{border-color:#FFFFFF;background:rgba(255,255,255,.14)}
.ace-preview-form .consent{margin-top:16px}
#formModal .form{border:0;border-radius:0;background:none;backdrop-filter:none;box-shadow:none}
.ace-legal{margin-top:26px;max-width:850px}
#reports .rows2 a,#urgent .rows a{color:inherit;text-decoration:underline;text-underline-offset:3px}
footer .f-top>div:nth-child(3) p{margin-top:8px}
@media(max-width:1100px) and (min-width:901px){.head .pill{gap:22px}.head .nav{gap:14px}.head .tel{font-size:14px}}
@media(max-width:900px){
  .logo img{width:24px;height:27px}

  .hero-cta .price-t{max-width:none}


  #refuse .side-photo img{object-position:50% 5%}
  #who .seg label{display:flex;align-items:center;justify-content:center;min-height:50px;padding:8px 6px;border-radius:16px;font-size:13.5px;line-height:1.2;text-align:center;white-space:normal}
  #who .cat-bg[data-c="c1"] img{object-position:70% center!important}
  #who .cat-bg[data-c="c2"] img{object-position:88% center!important}
  #who .cat-bg[data-c="c3"] img{object-position:82% center!important}
  #pricing .pbg img,#application .pbg img{object-position:center 10%}

  #docModal .ph img{object-fit:contain}
  .ace-preview-form .fld{margin-top:12px}
  .scene-photo-note{right:20px;bottom:5px;font-size:10px}
  #research .stat b{font-size:clamp(32px,10.5vw,48px)}
  .map-credit{display:none}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}#who .cat-bg,#who .pane{transition:none;animation:none}}
/* Critical audit: local fixes, without changing the three source stylesheets. */
.ace-skip{position:fixed;top:8px;left:12px;z-index:100;transform:translateY(-180%);padding:12px 16px;background:#FFFFFF;color:#2F2E36;border-radius:12px}
.ace-skip:focus{transform:none}
#servicesMore[hidden]{display:none!important}
#servicesMore{margin-top:12px}
#ace-service-grid{scroll-margin-top:84px}
#clinics .ace-service-tile{min-height:82px}
#clinics .ace-service-tile b{display:block;overflow:visible;white-space:normal;word-break:normal;overflow-wrap:anywhere}
#refuse .q-title a,.ace-legal a{text-decoration:underline;text-underline-offset:3px}
.ace-preview-warning{margin:0 0 14px;padding:12px 14px;color:#FFFFFF;background:rgba(255,255,255,.08);border-radius:10px;border:1px solid rgba(255,255,255,.2)}
.ace-preview-form :disabled{cursor:not-allowed;opacity:.75;-webkit-text-fill-color:currentColor}
.ace-preview-form .consent input:disabled{cursor:not-allowed}
.ace-preview-form a.btn:focus-visible,.ace-preview-form a.ace-form-link:focus-visible{outline:3px solid #D9B9E6;outline-offset:3px}
html.a11y .ace-service-tile b{font-size:16px}
html.a11y .scene-photo-note{color:#fff;background:#2F2E36;padding:4px 6px;border-radius:5px}
html.a11y #research .research-note,html.a11y .ace-preview-note{font-size:17px}
@media(max-width:900px){#clinics .ace-service-tile{min-height:78px;height:auto}}

@media(prefers-reduced-motion:reduce){#who .pane{animation:none!important}}
/* Three separate staged scenes now use full-frame, warm backgrounds like the reference. */
#refuse .side-photo img{object-fit:cover;object-position:75% 18%}
#refuse .side-photo{background:none}
#pricing .pbg img,#application .pbg img{object-fit:cover;object-position:70% 18%}
#pricing .pbg,#application .pbg{background:none}
@media(max-width:900px){
  #refuse .side-photo img{object-position:78% 17%}
  #pricing .pbg img,#application .pbg img{object-position:83% 18%}
}

/* Visual browser audit: native radios near labels, no scroll jump. */
#who .seg{position:relative}
#who #who-radio-2{left:50%}
#who #who-radio-3{left:85%}
#who{overflow-anchor:none}
#clinics .ace-service-tile{gap:3px;padding:6px}
#clinics .ace-service-tile img{height:16px;max-width:24px}
#clinics .ace-service-tile b{font-size:12px;line-height:1.18;word-break:normal;overflow-wrap:normal}
#clinics .wall-grid{grid-auto-rows:82px}
@media(max-width:900px){#clinics .wall-grid{grid-auto-rows:minmax(78px,auto)}}
@media(min-width:901px) and (max-width:1100px){#clinics .ace-service-tile b{font-size:11.5px}}
#urgent .rows a{white-space:nowrap}
@media(max-width:900px){#urgent .rows a{display:inline-block}}
.ace-preview-warning{background:none;border:0;padding:0;color:var(--w2);margin:0 0 15px}
.ace-preview-form .ace-preview-note{margin-top:16px}
.ace-preview-form .ace-preview-warning{margin-top:0}
.ace-preview-form .form-h{margin-bottom:12px}
.ace-preview-form .ace-form-link{margin-top:12px}

/* Reframe regenerated reference-composition photographs. */
#urgent>section>.pbg img{transform:none!important;object-position:85% 50%!important}
#clinics .ace-service-tile b{overflow-wrap:anywhere;hyphens:auto}
#product .scene-photo-note{position:absolute;right:24px;bottom:10px}
@media(max-width:900px){#urgent>section>.pbg img{object-position:92% 50%!important}}

/* Match the reference positions after observing the new wider composition. */
.hero-bg .main{object-position:20% 14%}
@media(min-width:900.01px) and (max-aspect-ratio:5/4){.hero-bg .main{object-position:35% 14%}}
@media(max-width:900px){.hero-bg .main{object-position:24% 0}}

/* Preserve the source stat typography; allow long Russian words to break on narrow phones. */
#research .stat span{min-width:0;overflow-wrap:anywhere;hyphens:auto}
/* V5: compact related footer navigation while retaining all links. */
footer .footer-pair{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px}
footer .footer-pair a{display:inline;margin:0}
footer .footer-pair span{color:var(--muted)}
#research .stat span{min-width:0;overflow-wrap:anywhere}
#regions .m-route li small{line-height:1.4}
#regions .m-route li em{align-self:start;padding-top:4px}
#regions .ace-map-tiles{border-radius:0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 18%,#000 88%,transparent);mask-image:linear-gradient(90deg,transparent,#000 18%,#000 88%,transparent)}

/* V6: ACE identity; original site confirms #680181, #5E007D, #A400FC, #2B0944, #2F2E36, #F4F4F4, #FFFFFF, #686868. */
.btn{background:#680181;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 12px 30px -12px rgba(104,1,129,.55)}
.btn:hover{background:#5E007D;color:#fff}
.mmenu .btn{color:#fff}
.dark .btn,.chap .btn,.hero .btn,.m-bar .btn,.fmodal .btn{outline:1px solid rgba(255,255,255,.38);outline-offset:-1px}
#clinics .ace-service-tile img{filter:none}
#who .seg label{transition:background-color .15s,color .15s}
#who .pane{animation:none!important}
#who .cat-bg{transition:opacity .2s ease!important}
#who .seg label{position:relative;z-index:3}
html.a11y #clinics .wall-grid{grid-auto-rows:minmax(82px,auto)}
html.a11y #clinics .ace-service-tile{height:auto;min-height:82px}
/* Focus outline contrasts with the corresponding light or dark surface. */
:focus-visible{outline-color:#680181}
.hero :focus-visible,.dark :focus-visible,.chap :focus-visible,.modal :focus-visible{outline-color:#D9B9E6}
.nav a:hover,.f-top a:hover{color:#5E007D}

/* V11 review-only additions */
.cat-cta{margin-top:18px;max-width:100%;white-space:normal;text-align:center}.ace-review-source{font-size:13px;padding:8px 12px;line-height:1.5}.ace-review-source a{color:inherit;text-decoration:underline}.q-text{font:inherit}.q-text p{margin:0}.stats .stat{min-width:0}.stats .stat b{white-space:nowrap}.stats .stat span{overflow-wrap:anywhere}
@media(max-width:430px){.cat-cta{margin-top:12px}.stats .stat b{font-size:clamp(30px,8vw,54px)}}

/* The review cards are not a conversation: remove decorative chat tails. */
.msgs .m::before{display:none}

/* V12: image-specific crops; original pixels and staff faces preserved in published photographs. */
.hero-bg .amb{object-position:75% 30%}
.hero-bg .main{object-position:100% 15%}
@media(min-width:901px) and (max-aspect-ratio:5/4){.hero-bg .main{object-position:100% 20%}}
@media(max-width:900px){.hero-bg .main{object-position:100% 0}}
#product .p-col{--portrait-fade-height:calc(var(--portrait-head) * 1.15)}
#product #product-doctor .product-portrait img{top:calc(var(--portrait-fade-rise) + clamp(62px,5vw,92px));width:120%;left:-10%}
#product #product-manager .product-portrait img{top:calc(var(--portrait-fade-rise) + clamp(62px,5vw,92px));width:78%;left:11%}
#product .product-portrait picture{mask-image:linear-gradient(180deg,transparent 0,#000 calc(var(--portrait-fade-rise) + 24px));-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 calc(var(--portrait-fade-rise) + 24px))}
#who .cat-note{display:none}
#who:has(#who-radio-1:checked) .cat-note[data-c="1"],#who:has(#who-radio-2:checked) .cat-note[data-c="2"],#who:has(#who-radio-3:checked) .cat-note[data-c="3"]{display:block}
@media(min-width:901px){
#who .cat-bg[data-c="c1"]>img.sharp{inset:0 0 0 auto!important;width:58%!important;height:100%!important;object-fit:contain!important;object-position:right center!important;mask-image:linear-gradient(90deg,transparent 0,#000 18%)!important;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 18%)!important}
}
#refuse .side-photo img{object-position:50% 68%}
#urgent>section>.pbg img{object-position:84% center!important}
#pricing .pbg img{object-position:74% 44%}
#application .pbg img{object-position:83% center;filter:blur(2px) saturate(.95)}
@media(max-width:900px){
 #who .cat-bg[data-c="c1"] img{object-position:50% 10%!important}
 #refuse .side-photo img{object-position:50% 72%}
 #urgent>section>.pbg img{object-position:82% 50%!important}
 #pricing .pbg img{object-position:64% center}
 #product #product-doctor .product-portrait img{top:calc(var(--portrait-fade-rise) + 52px);width:116%;left:-8%}
 #product #product-manager .product-portrait img{top:calc(var(--portrait-fade-rise) + 55px);width:82%;left:9%}
}
/* Keep a photo credit legible, but not part of CTA. */
.scene-photo-note{z-index:3}
/* V12 final optical alignment: do not cover faces with the hero heading or names. */
@media(min-width:901px){
 .hero-bg .main{object-position:78% 15%;width:61%}
 #product #product-doctor .product-portrait img{top:calc(var(--portrait-fade-rise) + clamp(80px,6vw,112px));width:82%;left:9%}
 #product #product-manager .product-portrait img{top:calc(var(--portrait-fade-rise) + clamp(80px,6vw,112px));width:82%;left:9%}
}
@media(max-width:900px){
 #product #product-doctor .product-portrait img{top:calc(var(--portrait-fade-rise) + 65px);width:80%;left:10%}
 #product #product-manager .product-portrait img{top:calc(var(--portrait-fade-rise) + 65px);width:82%;left:9%}
}
