/* Client refinements within the inherited layout and forest palette. */
.preview-price-note{font-size:12px;line-height:1.5;margin:8px 0 20px;color:#334e68}
.preview-media-note{font-size:11px;opacity:.75;padding-block:15px}
.reference-contact__placeholder{white-space:nowrap}
.site-header .header-call,.site-header .mobile-header-call{display:none!important}
.site-header--reference .header-phone{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex:0 0 auto;min-height:52px;padding:8px 14px;border-radius:10px;background:#0e7490;color:#fff;font:650 16px/1.25 var(--font-text);font-variant-numeric:tabular-nums;white-space:nowrap;text-decoration:none;transition:background-color .15s ease}
.site-header--reference a.header-phone:hover{background:#123b5d;color:#fff;text-decoration:none}
.site-header--reference a.header-phone:active{background:#102a43}
.site-header--reference a.header-phone:focus-visible{outline:2px solid #123b5d;outline-offset:3px}
.header-phone__copy{display:flex;flex-direction:column;gap:3px}
.header-phone__label{font-size:11px;font-weight:450;line-height:1.15}
.header-phone__icon{flex:0 0 22px}
.site-header--reference .header-phone--pending{color:#334e68}
.site-header--reference .reference-brand__emblem{width:46px;height:46px;flex-basis:46px}
.site-header--reference .reference-brand__name{letter-spacing:-.02em}
.footer__logo-mark{object-fit:contain;background:#f4f8fa;border-radius:10px;padding:5px}
@media(min-width:1200px){
  .site-header--reference .header__inner{gap:20px}
  .site-header--reference .main-nav,.site-header--reference .main-nav>ul{gap:14px}
  .site-header--reference .header-phone{order:3}
  .site-header--reference .main-nav{order:2}
}
@media(max-width:540px){
  .site-header--reference .header-phone{grid-column:2;grid-row:1;min-height:48px;padding:7px 8px;font-size:13px}
  .site-header--reference .header-phone__icon{display:none}
  .site-header--reference .header-phone__label{font-size:10px}
  .site-header--reference .reference-brand{min-width:0;gap:6px}
  .site-header--reference .reference-brand__emblem{width:32px;height:32px;flex-basis:32px}
  .site-header--reference .reference-brand__name{font-size:14px}
  .site-header--reference .reference-brand__city{font-size:9px;line-height:1.25}
}
@media(max-width:380px){
  .site-header--reference .header__inner{grid-template-columns:minmax(0,1fr) 44px;width:calc(100% - 24px);gap:8px}
  .site-header--reference .menu-button{grid-column:2}
  .site-header--reference .header-phone{grid-column:1/-1;grid-row:2;min-height:44px;font-size:15px}
  .site-header--reference .header-phone__copy{flex-direction:row;align-items:center;gap:10px}
  .site-header--reference .header-phone__icon{display:block;width:18px;height:18px;flex-basis:18px}
  .site-header--reference .header-phone__label{font-size:12px}
  .site-header--reference .main-nav{padding-top:128px}
}
@media(prefers-reduced-motion:reduce){
  .site-header--reference .header-phone{transition:none}
}
.modern-site [data-block-pattern]>.section-wallpaper{filter:none}
.modern-site [data-pattern-dark="true"]>.section-wallpaper{filter:invert(1)}
/* Client photos include credentials: show the whole near-square original. */
.modern-site .master[data-client-master]{display:flex;flex-direction:column;min-height:0}
.modern-site .master[data-client-master] .master__avatar{
  flex:none;width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:1;
  background:#edf4f7;
}
.modern-site .master[data-client-master] .master__avatar img{
  position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;object-position:center;
}
.modern-site .service-specialist .masters__grid:has(> .master[data-client-master]:only-child){max-width:420px}
@media(max-width:1024px){
  .modern-site .masters__grid:has(> .master[data-client-master]){
    grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;
    gap:24px;margin-inline:0;padding-inline:0;padding-bottom:0;overflow:visible;scroll-snap-type:none;
  }
}
@media(min-width:561px) and (max-width:1024px){
  .modern-site .masters__grid > .master[data-client-master]:last-child:nth-child(odd):not(:only-child){
    grid-column:1 / -1;justify-self:center;width:calc((100% - 24px) / 2);
  }
}
@media(max-width:560px){
  .modern-site .masters__grid:has(> .master[data-client-master]){grid-template-columns:minmax(0,1fr);gap:24px}
  .modern-site .master[data-client-master] h3{margin:18px 18px 6px;font-size:19px;line-height:1.3}
  .modern-site .master[data-client-master] .master__exp{margin:0 18px 18px;font-size:13px;line-height:1.5}
}

/* A continuous sequence replaces the homepage's three illustrated steps. */
.modern-site .home-workflow{padding-block:60px 64px;background:#f4f8fa;color:#123b5d;scroll-margin-top:100px}
.home-workflow__heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px 48px;margin-bottom:40px}
.modern-site .home-workflow h2{margin:0;max-width:19ch;font:700 clamp(28px,3vw,38px)/1.18 var(--font-display);letter-spacing:-.025em;text-wrap:balance;color:#123b5d}
.modern-site .home-workflow__heading>p{margin:0;max-width:38ch;font:400 16px/1.6 var(--font-text);color:#334e68}
.home-workflow__steps{--step-gap:32px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--step-gap);margin:0;padding:0;list-style:none}
.home-workflow__step{position:relative;min-width:0}
.home-workflow__step:not(:last-child)::before{content:"";position:absolute;top:24px;left:24px;width:calc(100% + var(--step-gap));height:1px;background:#cbd9e2}
.home-workflow__number{position:relative;display:grid;place-items:center;width:48px;height:48px;margin-bottom:24px;border-radius:50%;background:#0e7490;color:#fff;font:550 18px/1 var(--font-text);font-variant-numeric:tabular-nums}
.modern-site .home-workflow h3{margin:0 0 12px;max-width:22ch;color:#123b5d;font:600 20px/1.35 var(--font-display);letter-spacing:-.01em;text-wrap:balance}
.modern-site .home-workflow__text>p{margin:0;max-width:33ch;color:#334e68;font:400 15px/1.65 var(--font-text)}
.home-workflow ::selection{background:#0e7490;color:#fff}
@media(max-width:1000px) and (min-width:761px){
  .home-workflow__steps{--step-gap:22px}
  .modern-site .home-workflow h3{font-size:18px}
  .modern-site .home-workflow__text>p{font-size:14px}
}
@media(max-width:760px){
  .modern-site .home-workflow{padding-block:40px 44px;scroll-margin-top:88px}
  .home-workflow__heading{display:block;margin-bottom:30px}
  .modern-site .home-workflow h2{font-size:28px;max-width:20ch}
  .modern-site .home-workflow__heading>p{margin-top:14px;font-size:15px;max-width:38ch}
  .home-workflow__steps{display:block}
  .home-workflow__step{display:grid;grid-template-columns:40px minmax(0,1fr);gap:18px;padding-bottom:30px}
  .home-workflow__step:last-child{padding-bottom:0}
  .home-workflow__step:not(:last-child)::before{left:20px;top:48px;width:1px;height:calc(100% - 56px)}
  .home-workflow__number{width:40px;height:40px;margin:0;font-size:15px}
  .home-workflow__text{padding-top:7px}
  .modern-site .home-workflow h3{margin-bottom:8px;font-size:18px;max-width:none;text-wrap:pretty}
  .modern-site .home-workflow__text>p{font-size:15px;max-width:48ch;line-height:1.6}
}

/* Keep service documents and FAQ aligned to their existing 1180px page wrap.
   Override the inherited 880px inner limit and narrow document carousel only here. */
.modern-site .svc-preparations .section-head,
.modern-site .service-faq-v3 .section-head,
.modern-site .service-faq-v3 .faq-list{width:100%;max-width:none;margin-inline:0;text-align:left}
.modern-site .svc-preparations .certs__grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;
  gap:24px;width:100%;margin:0;padding:0;overflow:visible;scroll-snap-type:none;
}
.modern-site .svc-preparations .cert-card{min-width:0;margin:0}
.modern-site .svc-preparations .cert-card__zoom{
  display:grid;place-items:center;width:100%;aspect-ratio:2/3;padding:12px;
  border:1px solid #cbd9e2;border-radius:12px;background:#fff;box-shadow:none;
}
.modern-site .svc-preparations .cert-card__zoom img{
  display:block;width:100%;height:100%;min-height:0;aspect-ratio:auto;object-fit:contain;object-position:center;
}
.modern-site .svc-preparations .cert-card figcaption{margin-top:12px;line-height:1.4}
.modern-site .service-faq-v3 .faq-list summary{text-align:left}
@media(max-width:760px){
  .modern-site .svc-preparations .certs__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}
}
@media(max-width:440px){
  .modern-site .svc-preparations .certs__grid{gap:20px 12px}
  .modern-site .svc-preparations .cert-card__zoom{padding:8px}
}

/* Callback slots are whole values; native mobile and keyboard selection remain available. */
.modern-site .call-modal .call-time__input select{
  display:block;width:100%;min-width:0;min-height:44px;margin:0;
  padding:10px 38px 10px 16px;border:1px solid #b7cbd8;border-radius:8px;
  background-color:#fff;color:#123b5d;font:500 16px/1.4 var(--font-text);
  font-variant-numeric:tabular-nums;cursor:pointer;
}
.modern-site .call-modal .call-time__input select:focus-visible{
  outline:2px solid #0e7490;outline-offset:2px;border-color:#0e7490;
}
.modern-site .call-modal .call-time__result{font-size:12px;line-height:1.55;font-weight:500}

/* Touch phones keep a scrollable dialog inside the visible keyboard viewport,
   including landscape, where the CSS width can exceed the portrait breakpoint. */
@media(max-width:768px), (hover:none) and (pointer:coarse){
  .site-modal{place-items:start center}
  .site-modal .site-modal__dialog{min-height:0;scroll-padding-block:12px;overflow-anchor:none}
}
/* An unpublished rate is a short explanation, not an oversized numeric price. */
.modern-site #main .price-row--quote{grid-template-columns:minmax(0,1fr) minmax(0,auto)}
.modern-site #main .price-row--quote .price-row__price{font-size:16px;line-height:1.45;font-weight:550;white-space:normal;text-align:right}
@media(max-width:600px){
 .modern-site #main .price-row--quote{grid-template-columns:minmax(0,1fr);gap:7px}
 .modern-site #main .price-row--quote .price-row__price{text-align:left;color:#334e68;font-size:15px}
}
