/* Утверждённая палитра: глубокий бирюзовый */
:root{
  --page:#fbfcfa;
  --ink:#213033;
  --muted:#4d6264;
  --brand:#15545a;
  --brand-deep:#0e4146;
  --on-brand:#ffffff;
  --line:#b8cfce;
  --card:#ffffff;
  --soft:#eef5f4;
  --mist:#d7eaeb;
  --accent:#c28a3c;
}

body{background:var(--page);color:var(--ink)}
.test-notice{background:var(--mist);color:var(--ink)}
.phf-header{background:#fff;color:var(--ink);border-color:var(--line)}
.phf-header nav a,.phf-header>div>a{color:var(--ink)}
.phf-header nav a:hover,.phf-header nav a[aria-current="page"]{color:var(--brand);text-decoration-color:var(--accent)}
.phf-header button,.floating-booking,dialog button[type="submit"]{background:var(--brand);color:#fff}
.phf-header button:hover,.floating-booking:hover,dialog button[type="submit"]:hover{background:var(--brand-deep)}

.phf-brand{display:block;min-width:0;letter-spacing:0}
.site-logo-full{display:block;width:clamp(170px,18vw,255px);height:58px;object-fit:contain;object-position:left center}
.site-logo-mark{display:none;width:46px;height:46px;object-fit:contain}
.footer-logo .site-logo-mark{display:block;width:62px;height:62px;padding:5px;border-radius:12px;background:#fff}
.source-icon{display:inline-block!important;width:44px!important;height:44px!important;min-width:44px;object-fit:contain!important;vertical-align:middle;margin:0;border-radius:10px;background:#fff;padding:5px;box-sizing:border-box;box-shadow:0 3px 12px rgb(14 65 70 / .10)}
.source-icon--review{width:64px!important;height:64px!important;min-width:64px;padding:7px;border-radius:14px}
.source-icon--partner{width:150px!important;height:76px!important;min-width:150px;padding:10px 14px;border:1px solid var(--line);border-radius:12px}
.footer-logo-image{width:min(100%,255px);height:auto;max-height:110px;padding:8px 12px;border-radius:12px;background:#fff;object-position:center}
.external-source-link{align-items:center}
.external-source-link>.source-icon+span,.external-source-link>.source-icon+b,.external-source-link>.source-icon+strong{vertical-align:middle}
.contacts-page .pct-partner-logos a{grid-template-columns:1fr!important;justify-items:center;min-height:116px}

.phf-hero{background:var(--soft)}
.phf-location,.phf-kicker,.phf-heading>span,.phf-complex>div>span{color:var(--brand)}
.phf-service-grid>a,.phf-process li,.phf-proof a,.phf-partners>div:last-child a,.phf-articles>div:last-child a,.route-card,
.ppw-rule,.ppw-category,.ppw-guide nav a,.ppw-faq details{background:var(--card);border-color:var(--line)}
.phf-service-grid>a>span,.phf-service-grid a>b,.phf-partners strong,.phf-proof a>span,.phf-process li>b,
.ppw-category>div>p,.ppw-explain-list b{color:var(--brand)}
.phf-more,.phf-prices,.phf-contact{background:var(--soft)}
.phf-diabetes,.phf-doctor-facts span,.ppw-explain-list span{border-color:var(--line)}
.phf-warning{border-left-color:var(--accent);background:var(--soft)}

.phf-complex,.phf-footer,.ppw-final{background:var(--brand-deep);color:#fff}
.phf-complex :is(h1,h2,h3,p,span,li,a,strong,b),.phf-footer :is(a,span),.ppw-final :is(h1,h2,h3,p,span,a,strong,b){color:#fff}
.phf-complex button,.ppw-final button{background:var(--accent);color:#1f292a}
.phf-complex li{border-color:#6f9b9d}
.floating-booking{border-color:#6f9b9d}
.back-to-top{background:#fff;color:var(--ink);border-color:var(--line)}

dialog{background:var(--page);color:var(--ink);border-color:var(--line)}
dialog::backdrop{background:rgb(7 36 39 / .76)}
dialog .close{background:#fff;color:var(--ink);border-color:var(--line)}
form>input{background:#fff;color:var(--ink);border-color:#688184}
form>select{width:100%;padding:.8rem;border:1px solid #688184;border-radius:6px;background:#fff;color:var(--ink);font:inherit}
.booking-brand{display:flex;justify-content:center;margin:-.35rem 0 .2rem}
.booking-logo{display:block;width:82px;height:82px;object-fit:contain}
#booking-form input:invalid:not(:placeholder-shown),#booking-form select:invalid{border-color:#a74747}
#booking-form input:focus,#booking-form select:focus{outline:3px solid rgb(21 84 90 / .18);outline-offset:1px}

/* Единый фон и гарантированный контраст во всех старых шаблонах */
body>div[id^="podia-"]{background:var(--page)!important;color:var(--ink)!important;color-scheme:light}
body>div[id^="podia-"] main{background:var(--page)!important;color:var(--ink)!important}
body>div[id^="podia-"] :is(h1,h2,h3,h4,p,li,summary,label,strong,b,small,span,a){color:inherit}
body>div[id^="podia-"] :is([class*="hero"],[class*="section"],[class*="grid"],[class*="card"],[class*="faq"],[class*="price"]){border-color:var(--line)}
body>div[id^="podia-"] :is([class*="card"],details){background:#fff}
body>div[id^="podia-"] :is([class*="eyebrow"],[class*="label"],[class*="number"],[class*="-num"]){color:var(--brand)!important}
body>div[id^="podia-"] :is([class*="dark"],[class*="complex"],[class*="final"],[class*="cta"]){background:var(--brand-deep);color:#fff}
body>div[id^="podia-"] :is([class*="dark"],[class*="complex"],[class*="final"],[class*="cta"]) :is(h1,h2,h3,h4,p,li,summary,label,strong,b,small,span,a){color:#fff!important}
body>div[id^="podia-"] button{background:var(--brand);color:#fff}
body>div[id^="podia-"] :is([class*="dark"],[class*="complex"],[class*="final"],[class*="cta"]) button{background:var(--accent);color:#1f292a!important}

.site-visual-gallery{max-width:1160px;margin:0 auto;padding:4.5rem 1.5rem;color:var(--ink)}
.site-visual-gallery>div:first-child{max-width:680px;margin-bottom:1.75rem}
.site-visual-gallery>div:first-child>span{display:block;margin-bottom:.65rem;color:var(--brand);font-size:.875rem;letter-spacing:.08em}
.site-visual-gallery h2{color:var(--ink)!important}
.site-visual-gallery>div:last-child{display:grid;grid-template-columns:1.25fr .85fr .85fr;gap:1rem}
.site-visual-gallery figure{margin:0;overflow:hidden;border-radius:14px;background:#fff;border:1px solid var(--line)}
.site-visual-gallery img{width:100%;height:250px;object-fit:cover}
.site-visual-gallery figure:first-child img{height:310px}
.site-visual-gallery figcaption{padding:.8rem 1rem;color:var(--ink);font-size:.875rem}

@media(max-width:760px){
  .phf-header{min-height:68px;padding:.55rem 1rem}
  .phf-header .site-logo-full{display:block;width:150px;height:50px}
  .site-logo-mark{display:block;width:50px;height:50px}
  .phf-header .menu-toggle{background:#fff;color:var(--brand);border:1px solid var(--line)}
  .footer-logo .site-logo-mark{width:58px;height:58px}
  .source-icon{width:40px!important;height:40px!important;min-width:40px}
  .source-icon--review{width:56px!important;height:56px!important;min-width:56px}
  .source-icon--partner{width:132px!important;height:68px!important;min-width:132px}
  .site-visual-gallery{padding:3rem 1.2rem}
  .site-visual-gallery>div:last-child{grid-template-columns:1fr 1fr}
  .site-visual-gallery figure:first-child{grid-column:1/-1}
  .site-visual-gallery img,.site-visual-gallery figure:first-child img{height:210px}
}

/* Единая закреплённая шапка и временная разметка медиаматериалов */
.phf-header{
  position:sticky;
  top:0;
  z-index:1100;
  min-height:76px;
  background:rgb(255 255 255 / .96)!important;
  box-shadow:0 5px 20px rgb(15 65 70 / .10);
  backdrop-filter:blur(12px);
}
.lang-switch{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:44px;
  min-height:40px;
  padding:.45rem .65rem;
  border:1px solid var(--line);
  border-radius:8px;
  color:var(--brand);
  background:#fff;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.04em;
}
.logo-slot{
  display:grid;
  place-content:center;
  min-width:190px;
  min-height:54px;
  padding:.55rem .85rem;
  border:1px dashed #789b9d;
  border-radius:10px;
  background:#f3f8f7;
  color:var(--brand-deep)!important;
  text-align:center;
  line-height:1.15;
}
.logo-slot b{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:inherit!important}
.logo-slot small{margin-top:.25rem;font-size:.68rem;color:var(--muted)!important}
.media-slot{
  display:grid!important;
  place-content:center;
  gap:.35rem;
  width:100%;
  min-height:260px;
  padding:1.25rem;
  border:1px dashed #789b9d!important;
  border-radius:14px;
  background:linear-gradient(145deg,#e7f2f1,#f8fbfa)!important;
  color:var(--brand-deep)!important;
  text-align:center;
}
.media-slot--portrait{min-height:390px}
.media-slot span{font-weight:600;color:inherit!important}
.media-slot small{color:var(--muted)!important}
.portrait,.practice-photo,.detail-photo{display:block;width:100%;height:100%;object-fit:cover}
.thematic-figure{position:relative;margin:0;overflow:hidden;border-radius:16px;background:#e5efec}
.thematic-figure .detail-photo{min-height:320px;aspect-ratio:1.6/1}
.pcr-visual{max-width:1120px;margin:0 auto;padding:34px 24px 0}
.thematic-figure--wide .detail-photo{max-height:560px}
.thematic-figure figcaption{position:absolute;right:14px;bottom:14px;padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.9);color:#173f46;font-size:12px;font-weight:700;box-shadow:0 4px 14px rgba(15,50,54,.12)}
.service-card-image{position:relative;margin:0 0 18px;overflow:hidden;border-radius:12px;background:#e5efec}
.service-card-image img{display:block;width:100%;aspect-ratio:1.6/1;object-fit:cover}
.service-card-image figcaption{position:absolute;right:10px;bottom:10px;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.9);color:#173f46;font-size:11px;font-weight:700}
.phf-gallery img,.pct-photo-grid img,.pcm-gallery img,.psp-photo-grid img{display:block;width:100%;height:100%;object-fit:cover}
.source-icon-slot{
  display:grid!important;
  place-content:center;
  flex:0 0 auto;
  width:54px;
  min-width:54px;
  height:54px;
  padding:.25rem;
  border:1px dashed #789b9d;
  border-radius:12px;
  background:#f3f8f7;
  color:var(--brand-deep)!important;
  text-align:center;
}
.source-icon-slot small{font-size:.58rem;line-height:1.1;color:inherit!important}
.source-icon-slot--review{width:68px;min-width:68px;height:68px}
.source-icon-slot--partner{width:150px;min-width:150px;height:76px;border-radius:10px}
.external-source-link{display:flex!important;align-items:center!important;gap:.85rem}
.site-visual-gallery .media-slot{min-height:250px;border-radius:0}
.site-visual-gallery figure:first-child .media-slot{min-height:310px}
.site-visual-gallery img{display:none}

/* Акценты и исправленные карточки */
.phf-complex>div>span,.phfm-complex>span{
  display:block;
  margin-bottom:.7rem;
  color:#d9eeee!important;
  opacity:1!important;
  font-size:clamp(.95rem,1.35vw,1.15rem)!important;
  font-weight:600;
  letter-spacing:.1em;
}
#podia-ingrown-wireframe .piw-methods article b{
  display:block;
  margin-bottom:.65rem;
  font-family:'Source Serif 4',Georgia,serif;
  font-size:1.3rem;
  line-height:1.2;
}
#podia-ingrown-wireframe .piw-methods article span{display:block;line-height:1.6}
#podia-corns-wireframe .piw-complex-list,
#podia-diabetic-foot-wireframe .pdf-assessment-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.8rem;
  align-self:stretch;
}
#podia-corns-wireframe .piw-complex-list>span,
#podia-diabetic-foot-wireframe .pdf-assessment-list>article{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:112px;
  padding:1rem;
  border:1px solid #79a2a3!important;
  border-radius:14px;
  background:rgb(255 255 255 / .08)!important;
}
#podia-diabetic-foot-wireframe .pdf-assessment-list>article{
  background:#fff!important;
  border-color:var(--line)!important;
}

/* Расширенный единый футер */
.phf-footer.phf-footer--expanded{
  display:grid!important;
  grid-template-columns:1.35fr .7fr 1fr 1fr;
  gap:clamp(1.5rem,3vw,3.5rem);
  align-items:start;
  padding:3.5rem max(4%,calc((100% - 1180px)/2));
  background:var(--brand-deep);
  color:#fff;
  font-size:.88rem;
}
.phf-footer--expanded .logo-slot{max-width:250px;background:rgb(255 255 255 / .08);border-color:#80aaab;color:#fff!important}
.phf-footer--expanded .logo-slot small{color:#d8e9e9!important}
.footer-about p,.footer-booking p{line-height:1.65;color:#d8e9e9!important}
.footer-column{display:grid;gap:.7rem}
.footer-column>b{margin-bottom:.35rem;font-size:1rem;color:#fff!important}
.footer-column a{text-decoration:none;color:#eaf4f4!important}
.footer-column a:hover{text-decoration:underline;text-underline-offset:4px}
.footer-booking button{justify-self:start;background:var(--accent)!important;color:#1f292a!important}
.footer-bottom{grid-column:1/-1;display:flex;justify-content:space-between;gap:1rem;padding-top:1.4rem;border-top:1px solid #477579}

@media(max-width:1000px){
  .phf-footer.phf-footer--expanded{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .phf-header{top:0;min-height:66px;padding:.5rem .8rem}
  .logo-slot--header{min-width:116px;min-height:46px;padding:.35rem .5rem}
  .logo-slot--header b{font-size:.58rem}.logo-slot--header small{font-size:.55rem}
  .media-slot,.media-slot--portrait{min-height:240px}
  .source-icon-slot{width:50px;min-width:50px;height:50px}
  .source-icon-slot--review{width:60px;min-width:60px;height:60px}
  .source-icon-slot--partner{width:132px;min-width:132px;height:70px}
  .site-visual-gallery .media-slot,.site-visual-gallery figure:first-child .media-slot{min-height:210px}
  #podia-corns-wireframe .piw-complex-list,
  #podia-diabetic-foot-wireframe .pdf-assessment-list{grid-template-columns:1fr}
  .phf-footer.phf-footer--expanded{grid-template-columns:1fr;padding:2.5rem 1.2rem 6.5rem}
  .footer-bottom{grid-column:auto;flex-direction:column}
}

/* Mobile width safety: shared by every Russian page and legacy template. */
html,body{max-width:100%;overflow-x:hidden;overflow-x:clip}

@media(max-width:760px){
  body>div[id^="podia-"],
  body>div[id^="podia-"] :is(main,header,footer,nav,section,article,aside,div,form,fieldset,figure,ul,ol,li),
  .phf-header>*{min-width:0;max-width:100%}

  body>div[id^="podia-"] :is(h1,h2,h3,h4,p,a,b,strong,span,small,summary,label),
  .phf-footer :is(h1,h2,h3,h4,p,a,b,strong,span,small){overflow-wrap:anywhere;word-break:normal}

  body>div[id^="podia-"] :is(img,video,iframe,svg,canvas),
  .phf-footer :is(img,video,iframe,svg,canvas){max-width:100%}

  body>div[id^="podia-"] :is(button,input,select,textarea),
  .phf-footer :is(button,input,select,textarea){max-width:100%}

  body>div[id^="podia-"] :is(
    [class*="hero"],[class*="layout"],[class*="split"],[class*="intro"],
    [class*="author"],[class*="route"],[class*="contact"],[class*="final"]
  ){grid-template-columns:minmax(0,1fr)!important}

  body>div[id^="podia-"] :is([class*="actions"],[class*="price"],[class*="final"]),
  body>div[id^="podia-"] :is([class*="price"],[class*="rows"])>span{flex-wrap:wrap}

  body>div[id^="podia-"] :is([class*="price"],[class*="rows"]) strong{white-space:normal;margin-left:auto;text-align:right}
}

@media(max-width:480px){
  .phf-header{gap:.5rem;padding:.45rem .65rem}
  .phf-header .phf-brand{width:128px;flex:0 1 128px}
  .phf-header .site-logo-full{width:128px;height:44px}
  .phf-header .menu-toggle{padding:.6rem .75rem}
  .phf-header .lang-switch{min-width:40px;min-height:40px;padding:.4rem .5rem;margin-left:0}

  body>div[id^="podia-"] :is([class*="grid"],[class*="steps"],[class*="process"]){grid-template-columns:minmax(0,1fr)!important}
  body>div[id^="podia-"] :is([class*="section"],[class*="hero"],[class*="intro"],[class*="final"]){padding-left:1rem!important;padding-right:1rem!important}
  body>div[id^="podia-"] :is([class*="card"],details){padding-left:1rem!important;padding-right:1rem!important}

  .source-icon--partner,.source-icon-slot--partner{width:min(132px,100%)!important;min-width:0}
  .floating-actions{column-gap:.5rem}
  .back-to-top{min-width:88px;padding:.65rem .55rem}
}

/* Version 20: readable mobile layouts for dense desktop grids. */
@media(max-width:760px){
  body>div[id^="podia-"] :is(h1,h2,h3,h4,p,a,b,strong,span,small,summary,label,li),
  .phf-footer :is(h1,h2,h3,h4,p,a,b,strong,span,small){
    overflow-wrap:normal!important;
    word-break:normal!important;
    hyphens:none;
  }

  /* Numbered processes become spacious vertical rows. */
  .phf-process ol,
  .piw-process ol,
  .pdf-process ol,
  .pcr-route ol,
  .paf-steps,
  .pac-steps,
  .psp-principles .psp-four{
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
    border-top:0!important;
  }

  .phf-process li,
  .piw-process li,
  .pdf-process li,
  .pcr-route li,
  .paf-steps li,
  .pac-steps li,
  .psp-principles .psp-four article{
    min-width:0;
    padding:1.15rem 0!important;
    border:0!important;
    border-top:1px solid var(--line)!important;
    border-radius:0!important;
    background:transparent!important;
  }

  .phf-process li{display:grid;grid-template-columns:64px minmax(0,1fr);gap:1rem}
  .phf-process li>b{margin:0!important;font-size:3.2rem!important}
  .phf-process li>div{min-width:0}
  .phf-process li h3{margin:.2rem 0 .35rem}

  .piw-process li,
  .pdf-process li{
    display:grid!important;
    grid-template-columns:68px minmax(0,1fr)!important;
    grid-template-rows:auto auto;
    column-gap:1rem!important;
  }
  .piw-process li>b,
  .pdf-process li>b{grid-column:1;grid-row:1/3;margin:0!important;font-size:3.2rem!important}
  .piw-process li>strong,.piw-process li>span,
  .pdf-process li>strong,.pdf-process li>span{grid-column:2;min-width:0}

  .pcr-route li{
    display:grid!important;
    grid-template-columns:68px minmax(0,1fr)!important;
    grid-template-rows:auto auto;
    column-gap:1rem!important;
  }
  .pcr-route li>span{grid-column:1;grid-row:1/3;margin:0!important;font-size:3.1rem!important}
  .pcr-route li>b,.pcr-route li>p{grid-column:2;min-width:0}
  .pcr-route li>p{margin:.35rem 0 0!important}

  .paf-steps li,.pac-steps li{
    display:grid!important;
    grid-template-columns:68px minmax(0,1fr)!important;
    gap:1rem!important;
  }
  .paf-steps li>b,.pac-steps li>b{margin:0!important;font-size:3.1rem!important}
  .paf-steps li>div,.pac-steps li>div{min-width:0}

  .psp-principles .psp-four article{
    display:grid!important;
    grid-template-columns:68px minmax(0,1fr)!important;
    grid-template-rows:auto auto;
    column-gap:1rem!important;
  }
  .psp-principles .psp-four article>b{grid-column:1;grid-row:1/3;margin:0!important;font-size:3.1rem!important}
  .psp-principles .psp-four article>h3,
  .psp-principles .psp-four article>p{grid-column:2;min-width:0}
  .psp-principles .psp-four article>h3{margin:.2rem 0 .35rem}

  /* Cards with icons keep one readable text column. */
  .pct-messenger-grid,
  .psp-review-links,
  .pcv-platform-grid,
  .pcv-video-list,
  .phf-partners>div:last-child{
    grid-template-columns:minmax(0,1fr)!important;
  }

  #podia-contacts-wireframe .pct-messenger-grid a.external-source-link{
    display:grid!important;
    grid-template-columns:48px minmax(0,1fr)!important;
    gap:.25rem 1rem!important;
    padding:1.2rem 0!important;
  }
  #podia-contacts-wireframe .pct-messenger-grid a>img{grid-column:1;grid-row:1/5;align-self:start}
  #podia-contacts-wireframe .pct-messenger-grid a>:not(img){grid-column:2;min-width:0}
  #podia-contacts-wireframe .pct-messenger-grid h3{margin:0;font-size:1.3rem}
  #podia-contacts-wireframe .pct-messenger-grid p{min-height:0;margin:.25rem 0;font-size:.95rem}
  #podia-contacts-wireframe .pct-messenger-grid b{font-size:.85rem}

  #podia-contacts-wireframe .pct-partner-logos a.external-source-link{
    display:grid!important;
    grid-template-columns:86px minmax(0,1fr)!important;
    justify-items:stretch!important;
    gap:1rem!important;
    padding:1rem!important;
  }
  #podia-contacts-wireframe .pct-partner-logos img.source-icon--partner{
    width:86px!important;
    min-width:0!important;
    height:64px!important;
  }
  #podia-contacts-wireframe .pct-partner-logos a>div{min-width:0}

  #podia-specialist-wireframe .psp-review-links a.external-source-link{
    display:grid!important;
    grid-template-columns:56px minmax(0,1fr)!important;
    gap:.2rem 1rem!important;
  }
  #podia-specialist-wireframe .psp-review-links a>img{grid-column:1;grid-row:1/3}
  #podia-specialist-wireframe .psp-review-links a>:not(img){grid-column:2;min-width:0}

  #podia-complex-videos-wireframe .pcv-platform-grid a.external-source-link,
  #podia-complex-videos-wireframe .pcv-video-list a.external-source-link{
    display:grid!important;
    grid-template-columns:48px minmax(0,1fr)!important;
    gap:.3rem 1rem!important;
    padding:1.2rem 0!important;
  }
  #podia-complex-videos-wireframe :is(.pcv-platform-grid,.pcv-video-list) a>img{grid-column:1;grid-row:1/5;align-self:start}
  #podia-complex-videos-wireframe :is(.pcv-platform-grid,.pcv-video-list) a>:not(img){grid-column:2!important;min-width:0}
  #podia-complex-videos-wireframe .pcv-platform-grid h3{margin:.1rem 0;font-size:1.35rem}
  #podia-complex-videos-wireframe .pcv-platform-grid p{min-height:0;margin:.3rem 0}
  #podia-complex-videos-wireframe .pcv-video-list a>em{white-space:normal}
  #podia-complex-videos-wireframe .pcv-video-list a.pcv-channel-more{display:flex!important}

  .phf-partners a.external-source-link{
    display:grid!important;
    grid-template-columns:56px minmax(0,1fr)!important;
    gap:.5rem 1rem!important;
  }
  .phf-partners a.external-source-link>img{grid-column:1;grid-row:1/5;align-self:start}
  .phf-partners a.external-source-link>:not(img){grid-column:2;min-width:0}

  /* Galleries use full-width cards instead of narrow intrinsic columns. */
  #podia-contacts-wireframe .pct-photo-grid,
  #podia-specialist-wireframe .psp-photo-grid{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto!important;
  }
  #podia-contacts-wireframe .pct-photo-grid figure,
  #podia-contacts-wireframe .pct-photo-grid figure:first-child{
    grid-column:auto!important;
    min-width:0;
  }
  #podia-contacts-wireframe .pct-photo-grid img,
  #podia-contacts-wireframe .pct-photo-grid figure:first-child img,
  #podia-specialist-wireframe .psp-photo-grid img{
    width:100%!important;
    height:260px!important;
    min-height:0!important;
  }

  body{padding-bottom:6.5rem}
}

/* Version 21: article sidebars and author cards on mobile. */
@media(max-width:760px){
  .pai-content,
  .paf-layout,
  .pac-layout{
    gap:2.5rem!important;
    padding:2rem 1.25rem 3rem!important;
  }

  .pai-sidebar,
  .paf-sidebar,
  .pac-sidebar{
    position:static!important;
    gap:1rem!important;
    margin-top:1rem;
    padding-top:2rem;
    border-top:1px solid var(--line);
  }

  .pai-sidebar>div,
  .paf-sidebar>div,
  .pac-sidebar>div{
    min-width:0;
    padding:1.4rem!important;
    border:1px solid var(--line)!important;
    border-radius:14px!important;
    background:#fff!important;
  }

  .pai-sidebar>button,
  .paf-sidebar>button,
  .pac-sidebar>button{
    display:block!important;
    width:100%!important;
    min-height:52px;
    margin:0!important;
  }

  .pai-author,
  .paf-author,
  .pac-author{
    grid-template-columns:112px minmax(0,1fr)!important;
    gap:1rem!important;
    align-items:start!important;
    margin:0 1.25rem 3rem!important;
    padding:1.25rem!important;
    border:1px solid var(--line);
    border-radius:14px;
    background:#edf4f1!important;
  }

  .pai-author-photo,
  .paf-author-photo,
  .pac-author-photo{
    width:112px!important;
    height:152px!important;
    min-height:0!important;
    padding:0!important;
    border-radius:10px;
    object-fit:cover!important;
    object-position:center top!important;
  }

  .pai-author>div,
  .paf-author>div,
  .pac-author>div{min-width:0}

  .pai-author h2,
  .paf-author h2,
  .pac-author h2{
    margin:.25rem 0 .5rem;
    font-size:clamp(1.35rem,5.3vw,1.75rem);
  }

  .pai-author p,
  .paf-author p,
  .pac-author p{
    margin:.45rem 0;
    font-size:.9rem;
    line-height:1.5;
  }
}

@media(max-width:390px){
  .pai-author,
  .paf-author,
  .pac-author{grid-template-columns:92px minmax(0,1fr)!important}

  .pai-author-photo,
  .paf-author-photo,
  .pac-author-photo{width:92px!important;height:132px!important}
}
