/* Shared refinement. Original hero/header and their visual identity are untouched. */
:root{--kl-gutter:24px;--kl-motion-ease:cubic-bezier(.16,1,.3,1)}
#main:not(.original-home-main) .wrap{
  width:calc(100% - var(--kl-gutter)*2);max-width:none;margin-inline:auto;
}
.original-home-main #original-content .psx-wrap{
  width:100%;max-width:none;padding-inline:var(--kl-gutter);box-sizing:border-box;
}
.original-home-main .pc-inner{
  width:100%;max-width:none;padding-inline:var(--kl-gutter);box-sizing:border-box;
}
.original-home-main .pnx-faq{max-width:none}
.original-home-main #services-more .pnx-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;
}
.original-home-main #services-more .pnx-grid>*{grid-column:auto!important}
.original-home-main #services-more .pnx-card{padding:20px;min-width:0}
.original-home-main .pnx-two{gap:20px}
.original-home-main .psx .pnx-pc{min-height:270px;padding:28px 24px}
.department-page .department-service-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.department-page .department-service{padding:16px;min-width:0;font-size:.94rem}

.ps-footer .ps-wrap{
  width:100%;max-width:none;margin-inline:auto;padding-inline:var(--kl-gutter);box-sizing:border-box;
}
.ps-footer .ps-grid{
  grid-template-columns:minmax(0,1.1fr) minmax(0,1.5fr) minmax(0,1.35fr) minmax(0,1.05fr);
  gap:28px;padding-block:32px;
}
.ps-footer .ps-grid>*,.ps-footer .ps-body,.ps-footer .ps-contact li>*{min-width:0}
.ps-footer .ps-list-2col,.ps-footer .ps-col .ps-body>.ps-list{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 14px;
  column-count:auto;column-gap:14px;
}
.ps-footer .ps-col .ps-list li+li{margin-top:0}
.ps-footer .ps-col .ps-list a{
  display:flex;align-items:center;min-height:44px;width:100%;
  font-size:.875rem;line-height:1.65;overflow-wrap:break-word;text-wrap:pretty;
}
.ps-footer .ps-body .ps-title[style]{margin-top:18px!important;margin-bottom:8px}
.ps-footer .ps-about,.ps-footer .ps-news{max-width:none}
.ps-footer .ps-about{line-height:1.85}
.ps-footer .ps-logo{max-width:100%}
.ps-footer .ps-logo-txt{font-size:clamp(1.35rem,1.6vw,1.6rem);line-height:1.5}
.ps-footer .ps-news .ps-btn{padding-inline:16px}
.ps-footer .ps-contact b{font-size:.88rem;overflow-wrap:anywhere}
.ps-footer .ps-contact .ps-ltr{max-width:100%}
.ps-footer .ps-map-sec{padding-block:32px}
.ps-footer .ps-map-h{font-size:1.25rem;line-height:1.6;margin-bottom:18px}
.ps-footer .ps-map-grid{gap:20px}
.ps-footer .ps-map-col{min-width:0}
.ps-footer .ps-map-col h3{font-size:.94rem;line-height:1.6;margin-bottom:8px}
.ps-footer .ps-map-col li a{
  display:flex;align-items:center;min-height:44px;padding-block:5px;
  font-size:.875rem;line-height:1.65;
}
.ps-footer .ps-quote-sec{padding-top:32px}
.ps-footer .ps-quote{gap:24px;padding:26px}
.ps-footer .ps-quote-txt{flex:1 1 300px;min-width:0}
.ps-footer .ps-quote-form{flex:1.4 1 540px;min-width:0}
.ps-footer .ps-quote-form>*{min-width:0}
.ps-footer .ps-why{padding-block:36px}
.ps-footer .ps-why-grid{gap:16px}
.ps-footer .ps-why-f{min-width:0}
.ps-footer .ps-why-t{line-height:1.8}
@media(min-width:701px){
  .ps-footer .ps-bottom .ps-wrap{padding-inline:84px}
}

/* Animations use a visible CSS resting state and release transforms after entry. */
@media(hover:hover) and (pointer:fine){
  :is(.ps-footer .ps-btn,.ps-footer .ps-ghost,.primary-button,.secondary-button){
    transition:translate .22s var(--kl-motion-ease),background-color .22s,border-color .22s;
  }
  :is(.ps-footer .ps-btn,.ps-footer .ps-ghost,.primary-button,.secondary-button):hover{translate:0 -2px}
  :is(.ps-footer .ps-btn,.primary-button,.secondary-button) svg{transition:translate .22s var(--kl-motion-ease)}
  :is(.ps-footer .ps-btn,.primary-button,.secondary-button):hover svg{translate:-3px 0}
  .product-image{overflow:hidden}
  .product-image img{transition:scale .45s var(--kl-motion-ease)}
  .product-image:hover img{scale:1.035}
  .ps-footer .ps-map-col a{transition:color .2s,translate .2s}
  .ps-footer .ps-map-col a:hover{translate:-3px 0}
}
@media(max-width:1100px) and (min-width:701px){
  .ps-footer .ps-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
  .ps-footer .ps-brand,.ps-footer .ps-contact-col{grid-column:1/-1}
  .ps-footer .ps-brand{display:grid;grid-template-columns:1fr 1fr;gap:0 32px;align-items:start}
  .ps-footer .ps-brand .ps-logo{grid-area:1/1}
  .ps-footer .ps-brand .ps-about{grid-area:2/1}
  .ps-footer .ps-brand #ps-news-form{grid-area:1/2/3/3}
  .ps-footer .ps-brand .ps-social{grid-column:1/-1;margin-top:8px}
  .ps-footer .ps-cc-body{display:grid;grid-template-columns:1fr 1fr;gap:24px}
  .ps-footer .ps-branch{margin-top:0}
  .ps-footer .ps-map-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  :root{--kl-gutter:16px}
  .original-home-main #services-more .pnx-grid{gap:10px}
  .original-home-main #services-more .pnx-card{padding:14px 12px}
  .original-home-main #services-more .pnx-card h3{font-size:.92rem;line-height:1.6}
  .original-home-main #services-more .pnx-card p{font-size:.8rem}
  .original-home-main #services-more .pnx-link{font-size:.84rem;gap:6px;min-height:44px;white-space:nowrap}
  .original-home-main #services-more .pnx-sub{padding:10px}
  .original-home-main #services-more .pnx-sub h3{font-size:.88rem;line-height:1.7}
  .original-home-main #services-more .pnx-sub p{font-size:.78rem;line-height:1.7}
  .department-page .department-service{padding:14px 12px;font-size:.85rem;line-height:1.7}
  .ps-footer .ps-grid{grid-template-columns:minmax(0,1fr);gap:0;padding-block:26px}
  .ps-footer .ps-brand{margin-bottom:20px}
  .ps-footer .ps-list-2col,.ps-footer .ps-col .ps-body>.ps-list{gap:4px 16px}
  .ps-footer .ps-map-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
  .ps-footer .ps-map-col h3{font-size:.85rem}
  .ps-footer .ps-map-col li a{font-size:.82rem}
  .ps-footer .ps-quote{padding:20px 16px}
  .ps-footer .ps-quote-form{flex-basis:100%;grid-template-columns:minmax(0,1fr)}
  .ps-footer .ps-cwrap{padding:20px 16px}
  .ps-footer .ps-why-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .ps-footer .ps-why-f{padding:16px}
  .ps-footer .ps-why-f b{font-size:.94rem;line-height:1.65}
  .ps-footer .ps-why-t{font-size:.82rem}
}
@media(prefers-reduced-motion:reduce){
  :is(.ps-footer .ps-btn,.ps-footer .ps-ghost,.primary-button,.secondary-button,.product-image img,.ps-footer .ps-map-col a){
    transition:none!important;translate:none!important;scale:none!important;
  }
}

/* Preserve original small visual cards; oversized uncontained cards are absent. */
.psh-hdr #psh-navbar .psh-mega .psh-fgrid{
  max-height:min(430px,55vh);
}
.psh-hdr #psh-navbar .psh-mega .psh-fgrid>.psh-mfc{
  min-width:0;max-width:100%;
}
.psh-hdr #psh-navbar .psh-mega .psh-mfc .psh-ph-img{
  min-width:0;max-width:100%;
}
.psh-hdr #psh-navbar .psh-mega .psh-mfc:hover b{
  color:var(--h-text);
}
.psh-hdr #psh-navbar .psh-mega .psh-mfc:focus-visible{
  outline:2px solid var(--h-text);outline-offset:-2px;
}
.psh-hdr #psh-navbar .psh-mega .psh-mfc.course .psh-crs-tag{
  color:var(--h-text);background:var(--h-bg2);
}
.psh-hdr #psh-navbar .psh-mega .psh-mfc.hide{display:none}
.psh-hdr #psh-navbar .psh-fgrid-wrap::after{display:none}
@media(max-width:700px){
  .psh-hdr #psh-navbar .psh-mega .psh-fgrid{
    max-height:none;overflow:visible;
  }
}
