/*
Theme Name: Handyman SU
Description: Светлая инженерная блочная тема для Handyman SU.
Version: 0.2.33
Requires at least: 6.6
Requires PHP: 8.3
Text Domain: handyman-su
License: GPL-2.0-or-later
*/
:root{--hsu-rule:#dce5ec;--hsu-muted:#526678}
.wp-site-blocks{margin:0}
.hsu-header{border-bottom:1px solid var(--hsu-rule);position:relative;z-index:5}
.hsu-header .wp-block-site-logo img{max-width:172px;height:auto}
.hsu-brand:has(.wp-block-site-logo img) .wp-block-site-title{display:none}
.hsu-header .wp-block-navigation a{text-decoration:none}
.hsu-header .wp-block-navigation a:hover{text-decoration:underline;text-underline-offset:.25em}
.hsu-footer{border-top:1px solid var(--hsu-rule)}
.hsu-main{padding-block:1.25rem}
.hsu-main .wp-block-post-content{min-width:0}
.wp-block-post-content article>section,.wp-block-post-content>section{margin-block:clamp(1.2rem,3vw,2.8rem)}
.wp-block-post-content img{max-width:100%;height:auto;vertical-align:middle}
.wp-block-post-content iframe{max-width:100%;aspect-ratio:16/9;width:100%;height:auto;border:0}
.wp-block-post-content figure{margin:1.5rem 0}
.wp-block-post-content figcaption{font-size:.9rem;color:var(--hsu-muted);margin:.65rem 0}
.wp-block-post-content a[data-gallery-fullsize]{display:inline-block}
.wp-block-post-content table{width:100%;border-collapse:collapse;table-layout:auto}
.wp-block-post-content th,.wp-block-post-content td{padding:.65rem .85rem;border:1px solid var(--hsu-rule);text-align:left;overflow-wrap:anywhere}
.wp-block-post-content th{background:#f1f5f8;color:#18324f}
.wp-block-post-content ul,.wp-block-post-content ol{padding-left:1.4em}
.wp-block-post-content p,.wp-block-post-content li{overflow-wrap:break-word}
.hsu-grid .wp-block-post-template>li{min-width:0;border:1px solid var(--hsu-rule);border-radius:12px;padding:clamp(1rem,2vw,1.5rem);background:#fff}
.hsu-grid .wp-block-post-featured-image img{aspect-ratio:4/3;object-fit:cover;border-radius:8px}
.hsu-grid .wp-block-post-title{margin-top:.6rem}
.hsu-grid .wp-block-post-title a{text-decoration:none}
.hsu-grid .wp-block-post-title a:hover{text-decoration:underline}
.hsu-reviews .wp-block-post-template>li{break-inside:avoid}
.hsu-reviews .wp-block-post-content{font-size:.98rem;line-height:1.7}
.hsu-review-attribution{display:flex;align-items:center;gap:.8rem;margin:.8rem 0 1rem;color:var(--hsu-muted);font-weight:600}
.hsu-review-avatar{display:block;width:54px;height:54px;flex:0 0 54px;object-fit:cover;border-radius:50%;border:1px solid var(--hsu-rule);background:#f1f5f8}
.hsu-section-label{font-size:.82rem;letter-spacing:.09em;text-transform:uppercase;font-weight:650;color:#2878d0}
.hsu-card{border:1px solid var(--hsu-rule);border-radius:12px;padding:1.5rem}
.hsu-grid a:focus-visible,.wp-site-blocks a:focus-visible{outline:2px solid #2878d0;outline-offset:4px}
@media(max-width:700px){.hsu-header .wp-block-navigation{margin-inline-start:auto}.hsu-main{padding-block:.875rem}.hsu-grid .wp-block-post-template{grid-template-columns:1fr!important}.wp-block-post-content table{display:block;overflow:auto}.hsu-footer .wp-block-group.is-layout-flex{align-items:flex-start;flex-direction:column}}

/* Original catalog imagery and approved hero. No portrait crop. */
.hsu-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,0.96fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:center;margin-block:1rem 3rem}
.hsu-hero .hsu-hero-photo{margin:0;min-width:0}
.hsu-hero-photo img{display:block;width:100%;height:auto;object-fit:contain;border-radius:10px}
.hsu-article-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;margin-block:1rem 2.5rem}
.hsu-article-card{border:1px solid var(--hsu-rule);border-radius:12px;overflow:hidden;padding:1rem;min-width:0;background:#fff}
.hsu-article-card .wp-block-image{margin:0 0 1rem}
.hsu-article-card img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;background:#f1f5f8;border-radius:6px}
.hsu-article-card h3{font-size:1.1rem;margin:0 0 .6rem}
.hsu-article-card p{font-size:.92rem;line-height:1.5;color:var(--hsu-muted);margin:0}
.hsu-review-intro img{display:block;max-width:100%;height:auto}
@media(max-width:1000px){.hsu-article-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.hsu-hero,.hsu-article-cards{grid-template-columns:1fr}.hsu-hero .hsu-hero-copy{order:0}.hsu-hero-photo{order:1}}

/* Review headings: compact typography following the original site. */
.hsu-reviews .wp-block-post-title,
.single-hsu_testimonial .hsu-main .wp-block-post-title {
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.3333;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .hsu-reviews .wp-block-post-title,
  .single-hsu_testimonial .hsu-main .wp-block-post-title { font-size: 1.25rem; }
}

/* Compact review cards (no individual title links). */
.hsu-reviews .wp-block-post-template{gap:1rem}
.hsu-reviews .wp-block-post-template>li{padding:.875rem;border-radius:8px}
.hsu-reviews .wp-block-post-title{font-size:1.125rem;font-weight:400;line-height:1.35;margin:0;scroll-margin-top:5rem}
.hsu-reviews .hsu-review-attribution{gap:.625rem;margin:.5rem 0 .625rem;font-size:.875rem;font-weight:500}
.hsu-reviews .hsu-review-avatar{width:48px;height:48px;flex-basis:48px}
.hsu-reviews .wp-block-post-content{margin-top:.5rem;line-height:1.6}
.hsu-reviews .wp-block-post-content>:first-child{margin-top:0}
.hsu-reviews .wp-block-post-content>:last-child{margin-bottom:0}
@media(max-width:700px){.hsu-reviews .wp-block-post-title{font-size:1.0625rem}.hsu-reviews .wp-block-post-template>li{padding:.75rem}}

/* Testimonials: reference-style intro and author header. */
.hsu-main .hsu-reviews-intro-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,240px);gap:clamp(1rem,4vw,3rem);align-items:center;margin-block-end:1.75rem}
.hsu-reviews-intro-layout>.hsu-review-intro-copy,.hsu-reviews-intro-layout>.hsu-review-intro{min-width:0;margin:0}
.hsu-review-intro-copy>h1{margin:0 0 1rem}
.hsu-review-intro-copy>p{margin:.5rem 0 0}
.hsu-reviews-intro-layout>.hsu-review-intro{width:100%;max-width:240px;justify-self:end}
.hsu-reviews-intro-layout>.hsu-review-intro img{width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.hsu-reviews .hsu-review-card-head{display:grid;grid-template-columns:56px minmax(0,1fr);grid-template-rows:auto auto;column-gap:.75rem;row-gap:.25rem;min-height:56px;align-content:center;margin:0}
.hsu-reviews .hsu-review-card-head>.wp-block-post-title{grid-column:2;grid-row:1;align-self:end;margin:0;min-width:0}
.hsu-reviews .hsu-review-card-head>.hsu-review-attribution{display:contents}
.hsu-reviews .hsu-review-card-head .hsu-review-avatar{grid-column:1;grid-row:1 / 3;align-self:center;width:56px;height:56px;margin:0}
.hsu-reviews .hsu-review-card-head .hsu-review-attribution>span{grid-column:2;grid-row:2;align-self:start;margin:0;min-width:0;overflow-wrap:anywhere;font-size:.875rem;font-weight:400;color:var(--hsu-muted)}
@media(max-width:700px){.hsu-main .hsu-reviews-intro-layout{grid-template-columns:minmax(0,1fr) minmax(0,clamp(84px,24vw,150px));gap:.75rem;align-items:start}.hsu-reviews .hsu-review-card-head{grid-template-columns:48px minmax(0,1fr);min-height:48px;column-gap:.625rem}.hsu-reviews .hsu-review-card-head .hsu-review-avatar{width:48px;height:48px}}

/* Compact vertical spacing on testimonial archive only. */


.post-type-archive-hsu_testimonial .hsu-reviews .wp-block-query-pagination{margin-block-end:0}


/* Original brand and compact footer contacts. */
.hsu-footer .hsu-footer-brand{display:grid;grid-template-columns:88px minmax(0,1fr);column-gap:1rem;row-gap:.2rem;align-items:center;max-width:560px}
.hsu-footer-brand>.hsu-footer-round-logo{grid-row:1 / 3;margin:0;align-self:center;width:88px}
.hsu-footer-round-logo img{display:block;width:100%;height:auto}
.hsu-footer .hsu-footer-brand>.wp-block-site-title{grid-column:2;margin:0;align-self:end}
.hsu-footer .hsu-footer-brand>p{grid-column:2;margin:0;align-self:start}
.hsu-footer .hsu-footer-messengers{display:flex;flex-wrap:wrap;gap:.5rem;margin-block-start:.6rem;align-items:center}
.hsu-footer .hsu-messenger{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;color:#fff;text-decoration:none;transition:filter .15s ease}
.hsu-footer .hsu-messenger:hover{filter:brightness(.88)}
.hsu-footer .hsu-messenger:focus-visible{outline:2px solid #18324f;outline-offset:3px}
.hsu-footer .hsu-messenger svg{width:23px;height:23px;flex:none}
.hsu-footer .hsu-messenger-telegram{background:#1685b3}
.hsu-footer .hsu-messenger-whatsapp{background:#12804a}
@media(max-width:700px){.hsu-footer .hsu-footer-brand{grid-template-columns:64px minmax(0,1fr);column-gap:.75rem}.hsu-footer-brand>.hsu-footer-round-logo{width:64px}}

.hsu-footer .hsu-messenger-max{background:linear-gradient(135deg,#471aff,#9500ff)}
.hsu-footer .hsu-messenger-vk{background:#0077ff}
.hsu-footer .hsu-messenger-youtube{background:#c90000}

/* Compact site footer: preserve brand and all five contact buttons. */
.hsu-footer>.wp-block-group.alignwide{gap:.75rem 1.25rem;align-items:center}
.hsu-footer .hsu-footer-brand{grid-template-columns:64px minmax(0,1fr);column-gap:.75rem;row-gap:.15rem;line-height:1.3;flex:1 1 350px;max-width:560px}
.hsu-footer-brand>.hsu-footer-round-logo{width:64px}
.hsu-footer .hsu-footer-contact{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem 1rem}
.hsu-footer .hsu-footer-contact>p{margin:0;line-height:1.35;white-space:nowrap}
.hsu-footer .hsu-footer-contact>.hsu-footer-messengers{margin:0;gap:.375rem}
@media(max-width:700px){.hsu-footer>.wp-block-group.alignwide{gap:.55rem;align-items:flex-start}.hsu-footer .hsu-footer-brand{flex:0 1 auto;grid-template-columns:56px minmax(0,1fr);max-width:100%}.hsu-footer-brand>.hsu-footer-round-logo{width:56px}.hsu-footer .hsu-footer-contact{gap:.4rem .75rem;max-width:100%}}

/* Contact hours: restricted links still show a helpful notice on activation. */
a.hsu-contact-closed{filter:grayscale(.85);opacity:.68;cursor:pointer}
a.hsu-contact-closed:hover{filter:grayscale(.85) brightness(.9)}
.hsu-hours-dialog{box-sizing:border-box;width:min(90vw,420px);max-height:90vh;padding:1.5rem;border:1px solid #dce5ec;border-radius:14px;background:#fff;color:#263746;box-shadow:0 12px 42px #18324f33}
.hsu-hours-dialog::backdrop{background:rgba(20,35,52,.48)}
.hsu-hours-dialog h2{font-size:1.25rem;margin:0 0 .65rem;line-height:1.3;color:#18324f}
.hsu-hours-dialog p{font-size:1rem;line-height:1.5;margin:0 0 1rem}
.hsu-hours-dialog button{background:#18324f;color:#fff;border:0;border-radius:7px;padding:.65rem 1.15rem;font:inherit;cursor:pointer}
.hsu-hours-dialog button:focus-visible{outline:2px solid #2878d0;outline-offset:3px}
.hsu-hours-fallback{padding:.75rem 1rem;text-align:center;background:#f1f5f8}

/* Compact outer page spacing across every site template. Keep content spacing intact. */
.wp-site-blocks>main.hsu-main{margin-block:0}
.wp-site-blocks>footer.wp-block-template-part{margin-block-start:0}
.wp-site-blocks>main.hsu-main>:first-child,
.wp-site-blocks>main.hsu-main>.wp-block-post-content:first-child>:first-child{margin-block-start:0}
.wp-site-blocks>main.hsu-main>:last-child,
.wp-site-blocks>main.hsu-main>.wp-block-post-content:last-child>:last-child{margin-block-end:0}

/* Shared page width, compact illustrations and accessible picture viewer. */
.wp-site-blocks{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.wp-site-blocks>header,.wp-site-blocks>footer{flex:0 0 auto}
.wp-site-blocks>main.hsu-main{flex:1 0 auto;min-width:0}
body.admin-bar .wp-site-blocks{min-height:calc(100dvh - 32px)}
@media(max-width:782px){body.admin-bar .wp-site-blocks{min-height:calc(100dvh - 46px)}}
/* Article listing uses the same card geometry and typography as portfolio. */
.hsu-article-cards{gap:var(--wp--style--block-gap,1.25rem);margin-block:1rem 2rem;align-items:stretch}
.hsu-article-card{padding:clamp(1rem,2vw,1.5rem);overflow:visible}
.hsu-article-card .wp-block-image{margin:0}
.hsu-article-card img{aspect-ratio:4/3;object-fit:cover;border-radius:8px;background:none}
.hsu-article-card h3{font-size:var(--wp--preset--font-size--x-large,1.5rem);line-height:1.2;margin:.6rem 0 0;font-weight:650}
.hsu-article-card h3 a{text-decoration:none}
.hsu-article-card h3 a:hover{text-decoration:underline}
.hsu-article-card p{font-size:inherit;line-height:inherit;color:inherit;margin-block:.65rem 0}
@media(min-width:701px) and (max-width:1000px){.hsu-article-cards{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Preserve original section order, make one/two image galleries legible. */
.single-post .wp-block-post-content section[data-source-section^="gallery"] figure img{width:auto;max-width:min(100%,760px);max-height:520px;object-fit:contain}
.postid-1002 .wp-block-post-content section[data-source-section^="gallery"]{margin-block:1.1rem 1.5rem}
.postid-1002 .wp-block-post-content section[data-source-section^="gallery"] div:has(>div>figure){display:flex;gap:1rem 2rem;flex-wrap:wrap;align-items:flex-start;justify-content:flex-start}
.postid-1002 .wp-block-post-content section[data-source-section^="gallery"] div:has(>figure){flex:0 1 360px;min-width:0;max-width:100%}
.postid-1002 .wp-block-post-content section[data-source-section^="gallery"] figure{margin:0;max-width:360px;text-align:center}
.postid-1002 .wp-block-post-content section[data-source-section^="gallery"] figure img{display:block;width:auto;height:auto;max-width:100%;max-height:300px;object-fit:contain;margin-inline:auto}
.postid-1002 .wp-block-post-content section[data-source-section^="gallery"] figcaption{line-height:1.4;font-size:.875rem;text-align:left;margin:.45rem 0 0}
.hsu-image-viewer{padding:1rem;border:0;border-radius:12px;background:#fff;color:#18324f;max-width:96vw;max-height:94vh;max-height:94dvh;overflow:auto;box-shadow:0 16px 56px #0005}
.hsu-image-viewer::backdrop{background:#101722d9}
.hsu-image-viewer img{display:block;max-width:min(calc(96vw - 2rem),1600px);max-height:78vh;max-height:78dvh;width:auto;height:auto;object-fit:contain;margin:auto}
.hsu-image-viewer-close{display:block;margin:0 0 .5rem auto;padding:.45rem .85rem;background:#18324f;color:white;border:0;border-radius:6px;cursor:pointer;font:inherit}
.hsu-image-viewer-caption{font-size:.9rem;margin:.5rem 0 0;max-width:80vw}
.hsu-image-viewer-caption:empty{display:none}
.wp-block-post-content a[data-gallery-fullsize]{cursor:zoom-in}

.postid-1002 .wp-block-post-content section[data-source-section^="gallery"] a[data-gallery-fullsize]{display:block;max-width:100%}

/* Compact project and calculator disclosures, image-list reset and parent links. */
.hsu-disclosure{border:1px solid var(--hsu-rule);border-radius:12px;background:#fff;margin-block:1rem;overflow:hidden}
.hsu-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:clamp(.9rem,2vw,1.25rem);font-size:clamp(1rem,1.8vw,1.35rem);font-weight:650;color:#18324f;cursor:pointer;list-style:none}
.hsu-disclosure>summary::-webkit-details-marker{display:none}
.hsu-disclosure>summary:after{content:"＋";font-size:1.2em;font-weight:400;flex:none}
.hsu-disclosure[open]>summary:after{content:"−"}
.hsu-disclosure[open]>summary{border-bottom:1px solid var(--hsu-rule)}
.hsu-disclosure-body{padding:clamp(.75rem,2vw,1.5rem);min-width:0}
.hsu-disclosure-body>.hsu-tv-calculator{margin:0;max-width:none;width:100%}
.hsu-calc-intro{white-space:pre-line}
.hsu-parent-section{font-size:.95rem;margin-block:.25rem .8rem;color:var(--hsu-muted)}
.hsu-parent-section a{text-decoration:underline;text-underline-offset:.18em;color:inherit}
.hsu-parent-section a:hover{color:#2878d0}
main .wp-block-post-content li:has(img){list-style:none}
main .wp-block-post-content li:has(img)::marker{content:""}
main .wp-block-post-content ul:has(>li img):not(:has(>li:not(:has(img)))),main .wp-block-post-content ol:has(>li img):not(:has(>li:not(:has(img)))){padding-inline-start:0;list-style:none}
.hsu-travel-project section[data-type="slider"] ul:has(>li img){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;padding:0;margin:1rem 0}
.hsu-travel-project section[data-type="slider"] li{min-width:0;margin:0;list-style:none}
.hsu-travel-project section[data-type="slider"] img{max-height:400px;max-width:100%;width:auto;height:auto;object-fit:contain}
.hsu-max-dialog{max-width:min(92vw,480px);padding:1.25rem;border:0;border-radius:12px;color:#18324f;box-shadow:0 10px 40px #0005}
.hsu-max-dialog::backdrop{background:#101722c9}.hsu-max-dialog textarea{box-sizing:border-box;width:100%;min-height:100px;font:inherit;padding:.65rem;resize:vertical}
.hsu-max-dialog-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.8rem}
.hsu-max-dialog-actions a,.hsu-max-dialog-actions button{padding:.55rem .85rem;border:1px solid #18324f;border-radius:6px;background:white;color:#18324f;cursor:pointer;font:inherit;text-decoration:none}
.hsu-max-dialog-actions a{background:#18324f;color:white}
.hsu-image-original{display:inline-block;font-size:.85rem;margin-top:.5rem}
@media(max-width:700px){.hsu-travel-project section[data-type="slider"] ul:has(>li img){grid-template-columns:1fr}.hsu-disclosure-body{padding:.75rem}.hsu-disclosure>summary{padding:.85rem}}

.hsu-image-original[hidden]{display:none}

/* Handyman SU homepage redesign v1 (scoped to front page) */
body.home{background:#f6f7f7;color:#102535}.home .hsu-redesign-main{padding-top:14px!important;padding-bottom:24px!important}.hsu-redesign{--ink:#0e2435;--muted:#52636b;--petrol:#0b3545;--accent:#c7ed64;--teal:#007f79;--radius:18px;width:100%;color:var(--ink);font-family:Manrope,Inter,'Segoe UI',Arial,sans-serif;line-height:1.5}.hsu-redesign *{box-sizing:border-box}.hsu-redesign h1,.hsu-redesign h2,.hsu-redesign h3,.hsu-redesign p{margin:0}.hsu-redesign a{text-decoration:none;color:inherit}.hsu-redesign a:focus-visible{outline:3px solid #007f79;outline-offset:4px}.hsu-rhero-img img,.hsu-rservice-media img,.hsu-rproject>img,.hsu-rabout-photo img,.hsu-rarticle>img{width:100%;height:100%;display:block;object-fit:cover}.hsu-rhero{position:relative;display:grid;grid-template-columns:1fr 1.04fr;min-height:390px;overflow:hidden;border-radius:24px;background:#0b3040;color:#fff;isolation:isolate}.hsu-rhero-copy{padding:clamp(24px,4vw,50px);display:flex;flex-direction:column;justify-content:center;gap:13px;z-index:1}.hsu-rkicker{font-size:11px;font-weight:750;letter-spacing:.13em;color:#c6e7e5;display:flex;align-items:center;gap:9px}.hsu-rkicker span{width:8px;height:8px;border-radius:50%;background:var(--accent)}.hsu-rhero h1{font-size:clamp(37px,4.4vw,66px);line-height:1.035;letter-spacing:-.045em;font-weight:800;color:#fff}.hsu-rhero .hsu-rlead{font-size:clamp(17px,1.8vw,23px);color:#fff;font-weight:650;line-height:1.37;max-width:440px}.hsu-rhero-copy>p:not(.hsu-rkicker):not(.hsu-rlead){font-size:15px;color:#d2e0e5;max-width:440px}.hsu-ractions{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px}.hsu-rbutton{display:inline-flex;align-items:center;justify-content:center;gap:12px;font-size:14px;line-height:1.3;font-weight:750;min-height:46px;padding:13px 17px;border-radius:10px;border:1px solid transparent;transition:background .18s,transform .18s}.hsu-rbutton.primary{background:var(--accent);color:#132f2c}.hsu-rbutton.secondary{border-color:#b1c4cc;color:#fff}.hsu-rbutton.dark{background:#0b3545;color:#fff;align-self:flex-start}.hsu-rbutton:hover{transform:translateY(-2px)}.hsu-rbutton.primary:hover{background:#d9f59a}.hsu-rhero-img{position:relative;min-width:0;height:100%;overflow:hidden}.hsu-rhero-img img{position:absolute;inset:0;object-position:52% center}.hsu-rhero-img:after{position:absolute;inset:0;background:linear-gradient(90deg,#0b3040 0%,transparent 23%),linear-gradient(0deg,rgba(4,20,30,.65),transparent 32%);content:'';pointer-events:none}.hsu-rhero-img>span{position:absolute;bottom:18px;right:20px;z-index:1;color:#fff;font-size:11px;background:#112a36bf;border-radius:20px;padding:7px 12px}.hsu-rsection{margin-top:30px}.hsu-rsectionhead{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:0 0 15px}.hsu-rlabel{font-size:11px;font-weight:750;letter-spacing:.12em;color:var(--teal);margin-bottom:5px!important}.hsu-redesign h2{font-size:clamp(25px,3vw,38px);font-weight:790;letter-spacing:-.04em;line-height:1.13;color:var(--ink)}.hsu-rsectionhead>a{font-size:14px;color:var(--teal);font-weight:700;white-space:nowrap}.hsu-rservice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hsu-rservice{display:block;overflow:hidden;border-radius:var(--radius);background:#e7eff0;transition:transform .2s,box-shadow .2s}.hsu-rservice.tone1{background:#e7ecef}.hsu-rservice.tone2{background:#eeeae2}.hsu-rservice-media{height:clamp(125px,14vw,195px);overflow:hidden}.hsu-rservice-media img{transition:transform .35s;object-position:center}.hsu-rservice-body{position:relative;padding:14px 45px 17px 16px;min-height:94px}.hsu-rservice h3{font-size:clamp(16px,1.65vw,21px);color:var(--ink);font-weight:760;letter-spacing:-.025em;line-height:1.2}.hsu-rservice p{color:var(--muted);font-size:13px;line-height:1.4;margin-top:6px}.hsu-rarrow{position:absolute;right:14px;top:15px;color:#006f68;background:#ffffff9c;border-radius:50%;display:grid;place-items:center;width:30px;height:30px;font-size:19px}.hsu-rservice:hover,.hsu-rproject:hover,.hsu-rarticle:hover{transform:translateY(-3px);box-shadow:0 9px 24px #122e3b1c}.hsu-rservice:hover img,.hsu-rproject:hover img{transform:scale(1.035)}.hsu-rproject-grid,.hsu-rarticle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hsu-rproject,.hsu-rarticle{background:#fff;border-radius:var(--radius);overflow:hidden;transition:transform .2s,box-shadow .2s;border:1px solid #e1e7e7;min-width:0}.hsu-rproject>img{height:190px;transition:transform .3s}.hsu-rproject>div,.hsu-rarticle>div{padding:15px}.hsu-rproject span,.hsu-rarticle span{font-size:11px;color:var(--teal);font-weight:700}.hsu-rproject h3,.hsu-rarticle h3{color:var(--ink);font-size:19px;font-weight:730;line-height:1.25;margin-top:5px;letter-spacing:-.02em}.hsu-rproject h3 b{float:right;color:var(--teal)}.hsu-rabout{display:grid;grid-template-columns:1fr 1.15fr;gap:24px;background:#e9efef;overflow:hidden;border-radius:var(--radius);margin-top:30px;padding:20px;align-items:center}.hsu-rabout-photo{height:100%;min-height:220px;overflow:hidden;border-radius:12px}.hsu-rabout-photo img{object-position:60% center}.hsu-rabout>div:last-child{padding:7px 8px;display:flex;flex-direction:column;gap:12px}.hsu-rabout p:not(.hsu-rlabel){font-size:14px;color:var(--muted)}.hsu-rarticle>img{height:145px;object-fit:cover;background:#f0f4f4}.hsu-rarticle b{display:block;margin-top:12px;font-size:13px;color:var(--teal)}.hsu-rcontact{display:flex;align-items:center;justify-content:space-between;gap:22px;background:#0b3545;color:#dce8ea;padding:24px 28px;border-radius:var(--radius);margin-top:30px}.hsu-rcontact h2{color:white}.hsu-rcontact .hsu-rlabel{color:#b7eea4}.hsu-rcontact p:not(.hsu-rlabel){font-size:14px;max-width:750px;margin-top:7px}.hsu-rcontact .hsu-rbutton{flex:none}.home .hsu-header{background:#fff}.home .hsu-header .wp-block-navigation a{font-weight:650;color:#102535}.home .hsu-header .wp-block-navigation a:hover{color:#007f79}.home .hsu-header .wp-block-navigation-item:last-child>a{border:1px solid #007f79;border-radius:9px;padding:7px 11px;color:#007f79}.home .hsu-header .wp-block-navigation-item:last-child>a:hover{background:#e3f2f0;text-decoration:none}@media(max-width:850px){.hsu-rhero{grid-template-columns:1fr 1fr;min-height:360px}.hsu-rhero-copy{padding:26px}.hsu-rhero h1{font-size:44px}.hsu-rservice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hsu-rservice-media{height:170px}.hsu-rproject>img{height:145px}}@media(max-width:600px){.home .hsu-redesign-main{padding-top:8px!important}.hsu-rhero{grid-template-columns:1fr;border-radius:18px;min-height:0}.hsu-rhero-copy{padding:23px 20px 18px;gap:10px}.hsu-rhero h1{font-size:clamp(36px,10vw,46px);line-height:1.02}.hsu-rhero .hsu-rlead{font-size:18px}.hsu-rhero-copy>p:not(.hsu-rkicker):not(.hsu-rlead){font-size:13px}.hsu-ractions{gap:8px}.hsu-rbutton{font-size:13px;padding:10px 12px;min-height:43px}.hsu-rhero-img{height:190px}.hsu-rhero-img:after{background:linear-gradient(180deg,#0b3040 0%,transparent 22%),linear-gradient(0deg,#102a39a6,transparent 40%)}.hsu-rhero-img>span{bottom:8px;right:8px;font-size:10px}.hsu-rsection{margin-top:24px}.hsu-rsectionhead{align-items:center;gap:8px}.hsu-rsectionhead>a{font-size:12px;white-space:normal;text-align:right}.hsu-rservice-grid,.hsu-rproject-grid,.hsu-rarticle-grid{gap:9px}.hsu-rservice-media{height:112px}.hsu-rservice-body{padding:10px 12px 13px;min-height:88px}.hsu-rservice h3{font-size:16px}.hsu-rservice p{font-size:12px;padding-right:3px}.hsu-rarrow{display:none}.hsu-rproject-grid,.hsu-rarticle-grid{grid-template-columns:1fr}.hsu-rproject,.hsu-rarticle{display:grid;grid-template-columns:40% 1fr;align-items:center;min-height:110px}.hsu-rproject>img,.hsu-rarticle>img{height:100%;min-height:110px;max-height:146px}.hsu-rproject h3,.hsu-rarticle h3{font-size:17px}.hsu-rproject>div,.hsu-rarticle>div{padding:12px}.hsu-rabout{grid-template-columns:1fr;padding:13px;gap:8px;margin-top:24px}.hsu-rabout-photo{height:160px;min-height:0}.hsu-rabout>div:last-child{padding:7px 5px}.hsu-rcontact{flex-direction:column;align-items:flex-start;padding:20px;margin-top:24px}.hsu-rcontact p:not(.hsu-rlabel){font-size:13px}}@media(prefers-reduced-motion:reduce){.hsu-redesign *{transition:none!important;transform:none!important}}

/* v0.2.8 — integrated homepage masthead; internal pages unchanged */
body.home .wp-site-blocks>.hsu-rmasthead{width:100%;max-width:var(--wp--style--global--wide-size,1180px);margin:12px auto 0!important;background:#0b3040;border-radius:24px;color:#fff;position:relative;isolation:isolate;box-sizing:border-box;min-width:0}
.home .hsu-rmasthead>.wp-block-template-part{margin:0!important}.home .hsu-rmasthead .hsu-header{max-width:none!important;margin:0!important;background:transparent;border:0!important;padding:15px clamp(20px,3.5vw,50px)!important;color:#fff;border-radius:24px 24px 0 0}.home .hsu-rmasthead .hsu-header>.wp-block-group{margin:0!important;max-width:none!important;gap:18px}.home .hsu-rmasthead .hsu-brand{flex:none}.home .hsu-rmasthead .wp-block-site-logo{background:#fff;border-radius:10px;padding:6px 10px;line-height:0;margin:0!important}.home .hsu-rmasthead .wp-block-site-logo img{width:auto;max-width:min(172px,40vw);max-height:47px;height:auto;object-fit:contain}.home .hsu-rmasthead .wp-block-site-title,.home .hsu-rmasthead .wp-block-site-title a,.home .hsu-rmasthead .wp-block-navigation a{color:#fff}.home .hsu-rmasthead .wp-block-navigation a:hover{color:#c7ed64}.home .hsu-rmasthead .wp-block-navigation-item:last-child>a{color:#c7ed64;border-color:#9acaa7}.home .hsu-rmasthead .wp-block-navigation-item:last-child>a:hover{color:#0b3040;background:#c7ed64}.home .hsu-rmasthead .wp-block-navigation__responsive-container-open{color:#fff}.home .hsu-rmasthead .wp-block-navigation__responsive-container.is-menu-open{background:#fff!important;color:#102535!important}.home .hsu-rmasthead .wp-block-navigation__responsive-container.is-menu-open a,.home .hsu-rmasthead .wp-block-navigation__responsive-container.is-menu-open button{color:#102535!important}.home .hsu-rmasthead .hsu-rhero{border-radius:0 0 24px 24px;margin:0!important;min-height:350px}.home .hsu-rmasthead .hsu-rhero-copy{padding-top:24px}.home .hsu-redesign-main{padding-top:24px!important}.home .hsu-redesign-main .hsu-rsection:first-child{margin-top:0}
@media(max-width:600px){body.home .wp-site-blocks>.hsu-rmasthead{margin-top:6px!important;border-radius:18px}.home .hsu-rmasthead .hsu-header{padding:11px 20px!important;border-radius:18px 18px 0 0}.home .hsu-rmasthead .wp-block-site-logo img{max-height:38px}.home .hsu-rmasthead .hsu-rhero{border-radius:0 0 18px 18px;min-height:0}.home .hsu-rmasthead .hsu-rhero-copy{padding-top:14px}.home .hsu-redesign-main{padding-top:18px!important}}

/* Preserve full original banner logo: never use photo crop rules. */
.home .hsu-rmasthead .hsu-brand,.home .hsu-rmasthead .wp-block-site-logo,.home .hsu-rmasthead .custom-logo-link{flex-shrink:0;overflow:visible!important}.home .hsu-rmasthead .wp-block-site-logo{width:auto!important;max-width:none!important;padding:8px 14px!important;box-sizing:border-box!important}.home .hsu-rmasthead .custom-logo-link{display:block;line-height:0}.home .hsu-rmasthead .wp-block-site-logo img.custom-logo{display:block;width:clamp(145px,15vw,190px)!important;max-width:none!important;height:auto!important;max-height:none!important;aspect-ratio:564/122;object-fit:contain!important;object-position:center!important;clip-path:none!important;transform:none!important}
@media(max-width:600px){.home .hsu-rmasthead .wp-block-site-logo{padding:7px 10px!important}.home .hsu-rmasthead .wp-block-site-logo img.custom-logo{width:clamp(125px,38vw,160px)!important}}

/* Keep the original mark entirely visible on a rectangular background. */
.home .hsu-rmasthead .wp-block-site-logo{background:transparent!important;padding:0!important;border-radius:0!important;overflow:visible!important;clip-path:none!important}
.home .hsu-rmasthead .wp-block-site-logo .custom-logo-link{display:inline-block!important;background:#fff!important;padding:10px 14px!important;border-radius:9px!important;overflow:visible!important;box-sizing:content-box!important;clip-path:none!important;line-height:0!important}
.home .hsu-rmasthead .wp-block-site-logo img.custom-logo{width:clamp(145px,15vw,190px)!important;max-width:none!important;height:auto!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;border-radius:0!important;clip-path:none!important;margin:0!important;padding:0!important;display:block!important;overflow:visible!important}
@media(max-width:600px){.home .hsu-rmasthead .wp-block-site-logo .custom-logo-link{padding:8px 12px!important}.home .hsu-rmasthead .wp-block-site-logo img.custom-logo{width:clamp(125px,38vw,160px)!important}}

/* v0.2.11 — one common footer, no duplicate lower strip. */
.wp-site-blocks>footer.wp-block-template-part{width:100%;flex:0 0 auto;margin-block:0!important;padding-bottom:12px;box-sizing:border-box}.hsu-footer.hsu-footer-modern{width:100%;max-width:var(--wp--style--global--wide-size,1180px);margin:0 auto!important;box-sizing:border-box;background:#0b3545!important;color:#e3eef0!important;border:none;border-radius:24px;padding:24px 28px!important;font-family:Manrope,Inter,'Segoe UI',Arial,sans-serif}.hsu-footer-modern .hsu-modern-footer-grid{display:grid;grid-template-columns:minmax(110px,150px) minmax(0,1fr) minmax(234px,auto);gap:clamp(18px,2.5vw,30px);align-items:center;margin:0!important}.hsu-footer-modern .hsu-modern-footer-brand{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:0!important;min-width:0}.hsu-footer-modern .hsu-footer-round-logo{width:70px;max-width:100%;margin:0!important;flex:none}.hsu-footer-modern .hsu-footer-round-logo img{display:block;width:100%;height:auto;object-fit:contain}.hsu-footer-modern .wp-block-site-title,.hsu-footer-modern .wp-block-site-title a{font-size:15px;color:#fff;font-weight:700;line-height:1.3;text-decoration:none;margin:0!important}.hsu-footer-modern .hsu-modern-footer-brand p{font-size:12px;color:#b6ced4;margin:0!important}.hsu-footer-modern .hsu-modern-footer-copy{min-width:0;margin:0!important}.hsu-footer-modern .hsu-modern-footer-copy .hsu-modern-footer-label{font-size:11px;color:#b7eea4;letter-spacing:.09em;font-weight:700;line-height:1.2;margin:0 0 6px!important}.hsu-footer-modern .hsu-modern-footer-copy h2{font-size:clamp(24px,2.5vw,34px);line-height:1.14;color:#fff;margin:0 0 9px!important;letter-spacing:-.035em}.hsu-footer-modern .hsu-modern-footer-copy p:not(.hsu-modern-footer-label){font-size:13px;line-height:1.5;color:#d0e0e3;margin:0!important}.hsu-footer-modern .hsu-modern-footer-contact{display:flex;flex-direction:column;align-items:flex-end;gap:10px;margin:0!important}.hsu-footer-modern .hsu-modern-footer-phone{text-align:right;display:flex;flex-direction:column;gap:3px;margin:0}.hsu-footer-modern .hsu-modern-footer-phone>a{font-size:20px;font-weight:700;line-height:1.3;color:#fff;text-decoration:none;white-space:nowrap}.hsu-footer-modern .hsu-modern-footer-phone>a:hover{color:#c7ed64}.hsu-footer-modern .hsu-modern-footer-phone>span{font-size:12px;color:#c1d8de;white-space:nowrap}.hsu-footer-modern .hsu-footer-messengers{margin:0!important;gap:7px;justify-content:flex-end}.hsu-footer-modern .hsu-messenger{width:36px;height:36px;box-shadow:inset 0 0 0 1px #ffffff28}.hsu-footer-modern .hsu-messenger svg{width:20px;height:20px}.hsu-footer-modern .hsu-modern-footer-cta{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:#c7ed64;border-radius:9px;color:#132f2c;font-size:14px;line-height:1.3;font-weight:750;padding:10px 17px;text-decoration:none;margin:0!important}.hsu-footer-modern .hsu-modern-footer-cta:hover{background:#d9f59a;color:#132f2c}.hsu-footer-modern a:focus-visible{outline:2px solid #c7ed64!important;outline-offset:3px}.home .hsu-redesign-main{padding-bottom:26px!important}@media(max-width:850px){.hsu-footer-modern .hsu-modern-footer-grid{grid-template-columns:100px minmax(0,1fr);gap:18px}.hsu-footer-modern .hsu-modern-footer-contact{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;border-top:1px solid #ffffff24;padding-top:14px}.hsu-footer-modern .hsu-modern-footer-phone{text-align:left}}@media(max-width:600px){.wp-site-blocks>footer.wp-block-template-part{padding-bottom:7px}.hsu-footer.hsu-footer-modern{padding:19px!important;border-radius:18px}.hsu-footer-modern .hsu-modern-footer-grid{grid-template-columns:1fr;gap:15px}.hsu-footer-modern .hsu-modern-footer-brand{display:grid;grid-template-columns:56px 1fr;column-gap:10px;align-items:center;row-gap:0}.hsu-footer-modern .hsu-footer-round-logo{grid-row:1/3;width:56px}.hsu-footer-modern .wp-block-site-title{align-self:end}.hsu-footer-modern .hsu-modern-footer-brand p{align-self:start}.hsu-footer-modern .hsu-modern-footer-copy h2{font-size:26px}.hsu-footer-modern .hsu-modern-footer-contact{justify-content:flex-start;gap:12px}.hsu-footer-modern .hsu-modern-footer-phone{width:100%}.hsu-footer-modern .hsu-footer-messengers{justify-content:flex-start}.home .hsu-redesign-main{padding-bottom:20px!important}}

/* Handyman SU 0.2.12: shared page design (independent of stored content). */
.hsu-inner-masthead{box-sizing:border-box;width:calc(100% - 32px);max-width:1180px;margin:12px auto 0!important;background:linear-gradient(125deg,#092b39,#163d49);color:#fff;border-radius:24px;overflow:hidden;isolation:isolate}
.hsu-inner-masthead>.wp-block-template-part{margin:0!important;max-width:none!important}
.hsu-inner-masthead .hsu-header{margin:0!important;max-width:none!important;width:auto!important;background:transparent!important;border:0!important;padding:15px clamp(20px,3.5vw,42px)!important;color:#fff}
.hsu-inner-masthead .hsu-header>.wp-block-group{margin:0!important;max-width:none!important;gap:18px}
.hsu-inner-masthead .hsu-brand,.hsu-inner-masthead .wp-block-site-logo{max-width:none!important;overflow:visible!important}
.hsu-inner-masthead .wp-block-site-logo .custom-logo-link{display:inline-block!important;background:#fff!important;padding:9px 13px!important;border-radius:9px!important;line-height:0;overflow:visible!important}
.hsu-inner-masthead .wp-block-site-logo img.custom-logo{display:block;width:clamp(135px,16vw,190px)!important;max-width:none!important;height:auto!important;object-fit:contain!important;clip-path:none!important;border-radius:0!important}
.hsu-inner-masthead .hsu-header a,.hsu-inner-masthead .wp-block-navigation__responsive-container-open{color:#fff!important}
.hsu-inner-masthead .hsu-header .current-menu-item>a,.hsu-inner-masthead .hsu-header a:hover{color:#d1ed72!important}
.hsu-inner-masthead .wp-block-navigation__responsive-container.is-menu-open,.hsu-inner-masthead .wp-block-navigation__submenu-container{background:#092b39!important;color:white!important}
.hsu-inner-hero{box-sizing:border-box;border-top:1px solid #ffffff22;display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:22px;padding:clamp(20px,3vw,36px) clamp(20px,3.5vw,42px) clamp(24px,3.2vw,38px)}
.hsu-inner-hero.has-hero-image{grid-template-columns:minmax(0,1fr) minmax(185px,29%)}
.hsu-inner-crumb{font-size:13px;color:#b6c6cd;display:flex;flex-wrap:wrap;gap:9px;margin-bottom:12px;line-height:1.45}
.hsu-inner-crumb a{color:#d5e1e4!important;text-decoration:none}.hsu-inner-crumb a:hover{color:#d1ed72!important;text-decoration:underline}
.hsu-inner-copy h1{font-size:clamp(28px,4.2vw,49px)!important;line-height:1.08;letter-spacing:-.035em;font-weight:760!important;color:white!important;margin:0!important;overflow-wrap:anywhere}
.hsu-inner-copy p{font-size:clamp(15px,1.6vw,18px);color:#d4e1e5;line-height:1.45;margin:12px 0 0;max-width:66ch}
.hsu-inner-image{margin:0!important;min-width:0;height:clamp(112px,13vw,172px);display:flex;align-items:center;justify-content:center;border-radius:14px;overflow:hidden;background:#ffffff0d}
.hsu-inner-image img{display:block!important;max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important;object-fit:contain!important;border-radius:0!important;margin:0!important}
body:not(.home) .wp-site-blocks>main.hsu-main{padding-top:clamp(17px,2.4vw,27px)!important;padding-bottom:clamp(17px,2.4vw,27px)!important}
body:not(.home) .hsu-main h2{line-height:1.2;letter-spacing:-.018em}
body:not(.home) .hsu-main h3{line-height:1.3}
.single-post .hsu-main>.wp-block-post-content,.single-hsu_service .hsu-main>.wp-block-post-content,.single-hsu_portfolio .hsu-main>.wp-block-post-content{background:#fff;border:1px solid #e2e7e7;border-radius:16px;padding:clamp(16px,2.6vw,32px);box-sizing:border-box}
.hsu-article-card,.post-type-archive-hsu_portfolio .hsu-grid .wp-block-post-template>li,.tax-hsu_portfolio_category .hsu-grid .wp-block-post-template>li{border:1px solid #e1e8e8!important;border-radius:15px!important;background:#fff!important;box-shadow:0 4px 18px #12354209!important;overflow:hidden!important;padding:17px!important;transition:border-color .15s,box-shadow .15s}
.hsu-article-card:hover,.post-type-archive-hsu_portfolio .hsu-grid .wp-block-post-template>li:hover{border-color:#89adb0!important;box-shadow:0 6px 24px #12354214!important}
.hsu-article-card img{border-radius:10px!important;aspect-ratio:16/10!important;object-fit:contain!important;background:#f3f5f5!important}
.hsu-article-card h3{font-size:clamp(18px,1.7vw,22px)!important;line-height:1.24!important}
.page-id-1020 .wp-block-post-content:has(>.hsu-service-tile){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.page-id-1020 .wp-block-post-content>*{grid-column:1/-1;max-width:none!important;width:100%;margin-block:0!important;box-sizing:border-box}
.page-id-1020 .wp-block-post-content>.hsu-service-tile{grid-column:auto;align-self:stretch;background:white;border:1px solid #e1e8e8;border-radius:16px;padding:18px;overflow:hidden;min-width:0}
.hsu-service-tile-photo{width:100%!important;height:150px!important;object-fit:cover!important;border-radius:9px!important;margin:0 0 13px!important;display:block}
.hsu-service-tile h3{margin:0 0 9px!important;font-size:21px!important}.hsu-service-tile ul{margin:0!important;padding-inline-start:1.25rem;line-height:1.5}
.hsu-modern-footer-phone>.hsu-modern-footer-label{display:block;font-size:15px!important;line-height:1.4;font-weight:700!important;color:#e7eff0!important;letter-spacing:0!important;margin-bottom:4px!important;text-transform:none!important}
@media(max-width:760px){.hsu-inner-masthead{width:calc(100% - 20px);border-radius:18px;margin-top:6px!important}.hsu-inner-masthead .hsu-header{padding:12px 18px!important}.hsu-inner-hero.has-hero-image{grid-template-columns:minmax(0,1fr) minmax(90px,29%);gap:12px}.hsu-inner-hero{padding:17px 18px 22px}.hsu-inner-image{height:100px;border-radius:9px}.hsu-inner-copy h1{font-size:clamp(24px,5.3vw,35px)!important}.hsu-inner-crumb{margin-bottom:8px;font-size:12px}.page-id-1020 .wp-block-post-content:has(>.hsu-service-tile){grid-template-columns:1fr}.hsu-service-tile-photo{height:130px!important}}
@media(max-width:400px){.hsu-inner-hero.has-hero-image{grid-template-columns:1fr}.hsu-inner-image{height:110px;max-width:100%;justify-content:flex-start}.hsu-inner-image img{object-position:center}}
.hsu-article-cards>.hsu-article-card{margin-block:0!important;align-self:stretch}.post-type-archive-hsu_portfolio .wp-block-post-template>li{margin-block:0!important}.hsu-inner-masthead .hsu-header .wp-block-navigation-item__content[aria-current="page"]{color:#d1ed72!important}
.post-type-archive-hsu_portfolio .hsu-grid .wp-block-post-title,.tax-hsu_portfolio_category .hsu-grid .wp-block-post-title{font-size:clamp(20px,2vw,24px)!important;line-height:1.23!important;margin-block:12px 9px!important}.post-type-archive-hsu_portfolio .hsu-grid .wp-block-post-excerpt{margin-block:0!important;font-size:15px;line-height:1.5}.hsu-main .hsu-reviews-intro-layout{grid-template-columns:minmax(0,1fr) minmax(0,170px)!important;gap:20px!important}.hsu-main .hsu-reviews-intro-layout img{max-width:170px!important;height:auto!important;border-radius:10px}.single-post .hsu-main>.wp-block-post-content>:first-child,.single-hsu_service .hsu-main>.wp-block-post-content>:first-child,.single-hsu_portfolio .hsu-main>.wp-block-post-content>:first-child{margin-block-start:0!important}.page-id-1014 .wp-block-post-content{border-radius:16px;padding:24px;background:#f3f6f6;box-sizing:border-box}.page-id-1014 .wp-block-post-content>p:first-child{font-size:20px;font-weight:650}.page-id-1014 .wp-block-post-content>p:last-child:empty{display:none}.hsu-inner-masthead .wp-block-navigation .wp-block-navigation-item__content{white-space:normal}@media(max-width:600px){.hsu-main .hsu-reviews-intro-layout{grid-template-columns:minmax(0,1fr) minmax(0,94px)!important;gap:12px!important}.hsu-main .hsu-reviews-intro-layout img{max-width:94px!important}.page-id-1014 .wp-block-post-content{padding:18px}}
.post-type-archive-hsu_portfolio .hsu-grid .wp-block-post-excerpt__excerpt,.hsu-article-card>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.post-type-archive-hsu_portfolio .hsu-grid .wp-block-post-excerpt__more-link{display:inline-block;margin-top:8px}
/* Handyman SU: accessible tables, disclosure controls and mobile navigation */
.hsu-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;margin:1.25rem 0 1.6rem;border-radius:12px;outline-offset:4px;scrollbar-color:#79959e #edf3f5}
.wp-block-post-content .hsu-table-scroll table{display:table!important;width:100%;min-width:480px;border-collapse:separate;border-spacing:0;table-layout:auto;overflow:visible!important;margin:0;border:1px solid #cfdde1;border-radius:12px;background:#fff;font-size:clamp(.84rem,1.4vw,.98rem);line-height:1.5}
.hsu-table-scroll caption{caption-side:top;text-align:left;padding:0 0 .75rem;font-size:1rem;font-weight:700;color:#133640}
.wp-block-post-content table th,.wp-block-post-content table td{padding:.7rem .85rem;border:0;border-bottom:1px solid #dce6e9;text-align:left;vertical-align:top}
.wp-block-post-content table thead th{background:#103642;color:#fff;font-weight:650;border-bottom:0}
.wp-block-post-content table tbody th{font-weight:650;color:#153843}
.wp-block-post-content table tbody tr:nth-child(even){background:#f2f6f7}
.wp-block-post-content table tbody tr:last-child>*{border-bottom:0}
.wp-block-post-content .hsu-table-scroll table th:first-child{min-width:7.5rem}
main details>summary{box-sizing:border-box;display:flex!important;align-items:center;justify-content:space-between;gap:.75rem;list-style:none!important;cursor:pointer;padding:clamp(.9rem,2vw,1.25rem) 1.15rem!important;border:1px solid #c5d7dd!important;border-radius:12px;background:#edf4f5;color:#123642!important;font-size:clamp(1rem,1.7vw,1.25rem)!important;font-weight:650!important;line-height:1.35;text-align:left;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease}
main details>summary::-webkit-details-marker{display:none}main details>summary::marker{content:''}
main details>summary::before{content:'Развернуть';order:1;margin-inline-start:auto;color:#456874;font-size:.78rem;font-weight:600;white-space:nowrap}
main details>summary::after{content:''!important;order:2;display:block!important;box-sizing:border-box;width:11px;height:11px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);margin:0 .2rem 0 .1rem;flex:0 0 11px;transition:transform .18s ease}
main details>summary:hover{background:#e1ecef;border-color:#7c9da8!important;box-shadow:0 2px 10px #10364212}
main details[open]>summary{background:#123642;color:#fff!important;border-color:#123642!important;border-radius:12px 12px 8px 8px!important;margin-bottom:.8rem!important}
main details[open]>summary::before{content:'Свернуть';color:#d2e8eb}main details[open]>summary::after{transform:rotate(225deg) translateY(-2px)}
main details>summary:focus-visible{outline:3px solid #75a5b7;outline-offset:3px}.hsu-articles-other{margin:1.5rem 0 1.8rem}.hsu-articles-other .hsu-article-cards{margin-top:1rem}
@media(max-width:700px){.wp-block-navigation__responsive-container.is-menu-open{box-sizing:border-box!important;padding-left:20px!important;padding-right:20px!important}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content{box-sizing:border-box!important;padding-inline-end:8px!important;max-width:100%}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container{max-width:100%!important}.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content{max-width:100%;overflow-wrap:anywhere}.hsu-table-scroll{margin-inline:0}.wp-block-post-content .hsu-table-scroll table{font-size:.84rem}.wp-block-post-content table th,.wp-block-post-content table td{padding:.6rem .65rem}main details>summary{padding:.85rem .9rem!important;gap:.5rem}main details>summary::before{font-size:.68rem}}
@media(max-width:390px){main details>summary::before{content:'';display:none}main details>summary::after{margin-inline-start:auto}}
@media(prefers-reduced-motion:reduce){main details>summary,main details>summary::after{transition:none}}
.hsu-table-group-head th{text-align:center!important;font-size:1.08rem;background:#0c2e3b!important}.hsu-table-group-head th+th{border-left:2px solid #91afb9!important}.hsu-data-table:has(.hsu-table-group-head) tr>*:nth-child(3){border-left:2px solid #b6cbd2}.hsu-data-table:has(.hsu-table-group-head) tbody td{text-align:center}
/* Restored source galleries and swipeable portfolio carousels. */
main section[id^="gallery"] div:has(>div>figure):has(>div:nth-child(2)>figure),main section[data-type="gallery"] div:has(>div>figure):has(>div:nth-child(2)>figure),main section[id^="gallery"] div:has(>figure):has(>figure:nth-of-type(2)),main section[data-type="gallery"] div:has(>figure):has(>figure:nth-of-type(2)){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(.8rem,2vw,1.5rem);align-items:start;max-width:100%;margin-block:.6rem}
main section[id^="gallery"] div:has(>div>figure):has(>div:nth-child(2)>figure)>div,main section[data-type="gallery"] div:has(>div>figure):has(>div:nth-child(2)>figure)>div{min-width:0;width:100%;margin:0!important}
main section[id^="gallery"] div:has(>div>figure):has(>div:nth-child(2)>figure) figure,main section[data-type="gallery"] div:has(>div>figure):has(>div:nth-child(2)>figure) figure{margin:0!important;max-width:none!important;width:100%!important}
main section[id^="gallery"] div:has(>div>figure):has(>div:nth-child(2)>figure) img,main section[data-type="gallery"] div:has(>div>figure):has(>div:nth-child(2)>figure) img{max-width:100%;width:auto;height:auto;max-height:520px;object-fit:contain;display:block;margin:0 auto}
main section[data-type="slider"]{min-width:0;max-width:100%;margin-block:1.25rem}
main section[data-type="slider"] ul.hsu-carousel-track:has(>li img){display:flex!important;gap:1rem!important;grid-template-columns:none!important;align-items:flex-start;margin:0!important;padding:.25rem 0 .85rem!important;list-style:none!important;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#789aa4 #e9f1f3;max-width:100%;width:100%;box-sizing:border-box}
main section[data-type="slider"] ul.hsu-carousel-track>li{display:block!important;flex:0 0 100%;min-width:0;scroll-snap-align:start;list-style:none!important;margin:0!important;padding:.6rem!important;box-sizing:border-box;border:1px solid #d6e3e6;border-radius:12px;background:#f7fafb;line-height:1.5}
main section[data-type="slider"] ul.hsu-carousel-track>li::before,main section[data-type="slider"] ul.hsu-carousel-track>li::marker{content:none!important;display:none!important}
main section[data-type="slider"] ul.hsu-carousel-track>li img{width:100%!important;max-width:100%!important;height:auto!important;max-height:460px!important;object-fit:contain;display:block;margin-inline:auto;border-radius:8px;aspect-ratio:auto}
main section[data-type="slider"] ul.hsu-carousel-track>li>div>div+div{padding:.7rem .25rem .1rem;color:#304d58;font-size:.95rem}
@media(min-width:701px){main section[data-type="slider"] ul.hsu-carousel-track.hsu-carousel-double>li{flex-basis:calc((100% - 1rem)/2)}main section[data-type="slider"] ul.hsu-carousel-track.hsu-carousel-double>li img{max-height:370px!important}}
.hsu-carousel-controls{display:flex;align-items:center;justify-content:center;gap:1rem;margin:.25rem 0 1rem;min-width:0}.hsu-carousel-controls button{display:inline-grid;place-items:center;background:#103642;color:white;border:1px solid #103642;border-radius:50%;width:44px;height:44px;font-size:1.55rem;line-height:1;cursor:pointer;flex:none}.hsu-carousel-controls button:disabled{background:#e0eaed;border-color:#d0dee2;color:#67818a;cursor:default}.hsu-carousel-controls button:not(:disabled):hover{background:#1c5364}.hsu-carousel-controls button:focus-visible{outline:3px solid #7da6b4;outline-offset:3px}.hsu-carousel-count{font-size:.88rem;font-weight:650;white-space:nowrap;color:#426570;min-width:5.7rem;text-align:center}
@media(max-width:600px){main section[id^="gallery"] div:has(>div>figure):has(>div:nth-child(2)>figure),main section[data-type="gallery"] div:has(>div>figure):has(>div:nth-child(2)>figure),main section[id^="gallery"] div:has(>figure):has(>figure:nth-of-type(2)),main section[data-type="gallery"] div:has(>figure):has(>figure:nth-of-type(2)){grid-template-columns:minmax(0,1fr)}main section[data-type="slider"] ul.hsu-carousel-track>li img{max-height:340px!important}}
@media(prefers-reduced-motion:reduce){main section[data-type="slider"] ul.hsu-carousel-track{scroll-behavior:auto}}

/* Compact, true-proportion illustration previews; original opens in the lightbox. */
main .wp-block-post-content :is(article[data-source-route],section[data-source-section],section[data-type="gallery"]) figure{max-width:760px;margin:1rem auto 1.25rem!important}
main .wp-block-post-content :is(article[data-source-route],section[data-source-section],section[data-type="gallery"]) figure img{display:block;max-width:100%!important;width:auto!important;height:auto!important;max-height:420px!important;object-fit:contain;margin:0 auto}
main section[id^="gallery"] div:has(>div>figure):has(>div:nth-child(2)>figure) figure img,main section[data-type="gallery"] div:has(>div>figure):has(>div:nth-child(2)>figure) figure img{max-height:370px!important}
.hsu-zoom-link{display:table!important;position:relative;max-width:100%;width:fit-content!important;margin-inline:auto;cursor:zoom-in;line-height:0;border-radius:6px;overflow:hidden}
.hsu-zoom-link::after{content:'＋';position:absolute;right:8px;bottom:8px;width:30px;height:30px;border-radius:50%;background:#103642e8;color:white;display:grid;place-items:center;font-size:1.25rem;line-height:1;box-shadow:0 1px 6px #0003;pointer-events:none}
.hsu-zoom-link:focus-visible{outline:3px solid #75a5b7;outline-offset:4px}
@media(max-width:600px){main .wp-block-post-content :is(article[data-source-route],section[data-source-section],section[data-type="gallery"]) figure img{max-height:340px!important}main section[id^="gallery"] div:has(>div>figure):has(>div:nth-child(2)>figure) figure img,main section[data-type="gallery"] div:has(>div>figure):has(>div:nth-child(2)>figure) figure img{max-height:340px!important}}

/* Intrinsic placeholders for the new WebP illustrations prevent lazy-load collapse. */
main .hsu-zoom-link:has(img[src*="-socket.webp"]){display:block!important;width:min(100%,420px)!important;max-width:100%}
main .hsu-zoom-link:has(img[src*="-socket.webp"]) img{width:100%!important;height:auto!important;aspect-ratio:1/1;object-fit:contain}
main figure:has(img[src*="-diagram.webp"]) .hsu-zoom-link{display:block!important;width:min(100%,760px)!important}
main figure img[src*="-diagram.webp"]{width:100%!important;height:auto!important;object-fit:contain}

main .wp-block-post-content section figure a.hsu-zoom-link:has(img[src*="-socket.webp"]) img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:1/1!important;min-height:1px!important;object-fit:contain!important}
main .wp-block-post-content section figure a.hsu-zoom-link:has(img[src*="-diagram.webp"]) img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;object-fit:contain!important}

.hsu-zoom-link::after{content:''!important;width:34px;height:34px;border-radius:9px;background:#103642e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='5.8'/%3E%3Cpath d='M14.8 14.8 20 20'/%3E%3C/svg%3E") center/22px 22px no-repeat;box-shadow:0 1px 6px #0003;border:1px solid #ffffff3d;right:8px;bottom:8px}
.hsu-zoom-link:hover::after,.hsu-zoom-link:focus-visible::after{background-color:#123642}

/* Glossary epigraph */
.hsu-glossary-epigraph {
  margin-block: 1.25rem 1.75rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border-inline-start: 3px solid currentColor;
  border-radius: .25rem .75rem .75rem .25rem;
  background: rgba(128, 128, 128, .10);
}
.hsu-glossary-epigraph-label {
  margin-block-end: .5rem;
  font-size: .8em;
  font-weight: 650;
}
.hsu-glossary-epigraph blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-style: italic;
}

/* Electrical glossary */
body.postid-1002 main.hsu-main:has(article[data-source-route="article/glossary"]) {
  padding-block-start: clamp(.75rem, 2vw, 1.25rem);
}
body.postid-1002 main.hsu-main .entry-content:has(article[data-source-route="article/glossary"]) {
  padding-block-start: 0;
}
article[data-source-route="article/glossary"] > #text:first-child {
  margin-block-start: 0;
}
article[data-source-route="article/glossary"] .hsu-glossary-term {
  margin-block: 0 .45em;
  font-size: 1.17rem;
  font-weight: 650;
  line-height: 1.25;
}
article[data-source-route="article/glossary"] .hsu-glossary-subterm {
  font-size: 1.125em;
  font-weight: 650;
  line-height: 1.35;
}

/* Glossary navigation and page scroll control */
article[data-source-route="article/glossary"] > section:not(#text) h3 {
  font-size: clamp(1.25rem, 1.05rem + .65vw, 1.6rem);
  font-weight: 650;
  line-height: 1.25;
}
article[data-source-route="article/glossary"] > section[id] { scroll-margin-top: 1.25rem; }
.hsu-glossary-toc {
  margin-block: 1.75rem 1rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid #c9d9df;
  border-radius: 1rem;
  background: #f2f7f8;
  color: #163d49;
}
.hsu-glossary-toc h2 { margin: 0 0 .8rem; font-size: 1.35rem; }
.hsu-glossary-toc .hsu-glossary-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}
.hsu-glossary-toc-grid > li {
  margin: 0;
  padding: .85rem 1rem;
  border: 1px solid #d5e2e6;
  border-radius: .65rem;
  background: #fff;
  overflow-wrap: anywhere;
}
.hsu-glossary-toc .hsu-glossary-toc-section { font-weight: 700; }
.hsu-glossary-toc details { margin-top: .45rem; }
.hsu-glossary-toc summary { width: fit-content; cursor: pointer; font-size: .9em; }
.hsu-glossary-toc summary span { margin-inline-start: .25em; }
.hsu-glossary-toc details ul { margin: .5rem 0 0; padding-inline-start: 1.2em; }
.hsu-glossary-toc details li { margin-block: .3em; }
.hsu-back-to-top {
  position: fixed;
  z-index: 30;
  inset-inline-end: max(.85rem, env(safe-area-inset-right));
  inset-block-end: max(.85rem, env(safe-area-inset-bottom));
  min-height: 44px;
  padding: .5rem .85rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #163d49;
  color: #fff;
  box-shadow: 0 .2rem .75rem #10232d40;
  font: 650 .875rem/1.2 system-ui, sans-serif;
  cursor: pointer;
}
.hsu-back-to-top[hidden] { display: none; }
.hsu-back-to-top:hover { background: #245261; }
.hsu-back-to-top:focus-visible { outline: 2px solid #163d49; outline-offset: 2px; }
body:has(dialog[open], .wp-block-navigation__responsive-container.is-menu-open) .hsu-back-to-top { visibility: hidden; }

.hsu-glossary-toc details a { display: block; }

/* Keep glossary cards and disclosure labels aligned at each available width. */
.hsu-glossary-toc { container: glossary-toc / inline-size; }
.hsu-glossary-toc .hsu-glossary-toc-grid { grid-template-columns: minmax(0, 1fr); }
@container glossary-toc (min-width: 33rem) {
  .hsu-glossary-toc .hsu-glossary-toc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container glossary-toc (min-width: 60rem) {
  .hsu-glossary-toc .hsu-glossary-toc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hsu-glossary-toc .hsu-glossary-toc-section { display: block; min-block-size: 2.8em; line-height: 1.4; }
}
.hsu-glossary-toc .hsu-glossary-toc-grid details > summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .45rem;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: .5rem .55rem;
  font-size: .875rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow-wrap: normal;
}
.hsu-glossary-toc .hsu-glossary-toc-grid details > summary::before { content: none; }
.hsu-glossary-toc .hsu-glossary-toc-grid details > summary > span {
  flex: none;
  margin: 0;
  padding: .15rem .35rem;
  border-radius: .4rem;
  background: #dce9ed;
  font-variant-numeric: tabular-nums;
}
.hsu-glossary-toc .hsu-glossary-toc-grid details > summary::after { flex: none; margin-inline-start: auto; }

.hsu-glossary-toc .hsu-glossary-toc-grid details > summary {
  padding: .5rem .55rem !important;
  font-size: .875rem !important;
}

body.postid-1002 .hsu-inner-image img { object-fit: cover !important; object-position: center; }

main figure > figcaption.hsu-caption-aligned {
  box-sizing: border-box;
  width: var(--hsu-picture-width);
  max-width: 100%;
  margin-left: var(--hsu-picture-left) !important;
  margin-right: 0;
  padding-inline: 0;
  text-align: left;
  overflow-wrap: anywhere;
}


/* Shared content presentation, based on the electrical glossary. */
body:not(.home) .hsu-main > .wp-block-post-content {
  box-sizing: border-box;
  padding: clamp(16px, 2.6vw, 32px);
  border: 1px solid #e2e7e7;
  border-radius: 16px;
  background: #fff;
}
.hsu-main > .wp-block-post-content > .hsu-parent-section:first-child {
  margin-block-start: 0;
}
.hsu-inner-masthead .hsu-inner-image img:is([src*=".jpeg-"], [src*=".jpg-"], [src$=".jpeg"], [src$=".jpg"]) {
  object-fit: cover !important;
}
.hsu-page-outline {
  margin-block-start: 0;
}
.hsu-page-outline .hsu-glossary-toc-grid {
  padding-inline-start: 0;
}
.hsu-page-outline .hsu-glossary-toc-section:only-child {
  min-block-size: 0;
}
.hsu-outline-target {
  scroll-margin-block-start: 1.25rem;
}
main .wp-block-post-content figure.hsu-content-figure {
  max-width: min(100%, 760px);
  margin-inline: auto;
}
main .wp-block-post-content figure.hsu-content-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  margin-inline: auto;
}
main .wp-block-post-content .wp-block-gallery:has(.hsu-content-figure) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(.8rem, 2vw, 1.5rem);
}
main .wp-block-post-content .wp-block-gallery > figure.hsu-content-figure {
  width: 100% !important;
  max-width: 100%;
  margin: 0 !important;
}
main .wp-block-post-content .wp-block-gallery > figure.wp-block-image > figcaption {
  position: static;
  color: var(--hsu-muted);
  background: none;
  text-align: left;
}
@media (max-width: 600px) {
  main .wp-block-post-content figure.hsu-content-figure img { max-height: 340px; }
  main .wp-block-post-content .wp-block-gallery:has(.hsu-content-figure) { grid-template-columns: minmax(0, 1fr); }
}
