/* Interaction and accessibility fixes only: source content/container widths stay intact. */
:focus-visible{outline:3px solid #e33b2f!important;outline-offset:4px}
[role=button],[role=checkbox],[role=tab]{cursor:pointer}
.download-popup-trigger{display:none!important}
.popup{overscroll-behavior:contain}
.popup.open{overflow-y:auto;max-height:100dvh}
.popup__close{touch-action:manipulation}
.demo-form-status{font:inherit;line-height:1.5;margin:16px 0 0;padding:12px;border-left:3px solid #d82c22;background:rgba(128,128,128,.12);color:inherit}
.demo-form-error{border-color:#d82c22}
input[aria-invalid=true],textarea[aria-invalid=true]{outline:2px solid #d82c22;outline-offset:1px}
.demo-gallery{position:fixed;inset:0;z-index:2147483000;background:rgba(10,10,10,.95);display:flex;align-items:center;justify-content:center;padding:48px 60px;color:white;overscroll-behavior:contain}
.demo-gallery figure{margin:0;display:flex;flex-direction:column;align-items:center;max-width:100%;max-height:100%}
.demo-gallery img{display:block;max-width:100%;max-height:calc(100dvh - 130px);width:auto;height:auto;object-fit:contain}
.demo-gallery button{position:absolute;background:#242424;border:1px solid #666;color:white;font:36px/1 Arial,sans-serif;width:44px;height:44px;border-radius:4px;cursor:pointer}
.demo-gallery-close{right:12px;top:12px}.demo-gallery-prev{left:8px;top:calc(50% - 22px)}.demo-gallery-next{right:8px;top:calc(50% - 22px)}
.demo-gallery-count{font:14px/1.4 Arial,sans-serif;text-align:center;padding-top:12px;color:#ddd}
@media(max-width:768px){.demo-gallery{padding:60px 48px}.popup.open .popup__container{min-height:100%;height:auto}.popup__close{min-width:32px;min-height:32px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;animation-iteration-count:1!important}}
/* The source first-item reset assumed a home icon. This menu starts with text. */
@media(min-width:769px){.header__nav .nav-wrap .nav > .nav-item:first-child{padding-top:1.3541666667vw;padding-bottom:1.3541666667vw}}
/* Finishing the source glint animation leaves its white stripe over the caption. */
@media(prefers-reduced-motion:reduce){.md-main-color-btn::after{content:none!important;display:none!important;animation:none!important}}

@media(max-width:768px){.header__nav .nav-wrap .nav > .nav-item:first-child{display:block}}

/* Reduced motion must not leave scroll-reveal content at its hidden start state. */
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation-delay:0s!important;transition-delay:0s!important}
 [onscrolldisplay_js],[onscrolldisplay_js].visible{opacity:1!important;transform:none!important;-webkit-transform:none!important;transition:none!important}
 .first__title,.first__title b{opacity:1!important;visibility:visible!important;animation:none!important;transition:none!important}
}
/* Article copy uses fixed inline font sizes; source vw line heights were too small. */
.portfolio-typical__editor h2{line-height:1.2!important}
.portfolio-typical__editor p,.portfolio-typical__editor li,.portfolio-typical__editor ul,.portfolio-typical__editor ol{line-height:1.5!important}
.portfolio-typical__description,.portfolio-typical__description p,.portfolio-typical__description .portfolio-typical__text{color:#222!important}
@media(max-width:768px){.portfolio-typical__editor h2{font-size:28px!important}.portfolio-typical__editor p,.portfolio-typical__editor li{font-size:16px!important}}
/* The dark skin inherits white text, but the original sticky navigation is light. */
@media(min-width:769px){.header .header__nav.fixed .nav-wrap .nav .nav-item>a{color:#222!important}.header .header__nav.fixed .nav-wrap .nav .nav-item>a:hover{color:var(--main-color)!important}}
/* Internal pages keep the dark skin; the homepage SEO block stays unchanged. */
.tp-inner .simple-text,.tp-inner .simple-text h1,.tp-inner .simple-text h2,.tp-inner .simple-text h3,.tp-inner .simple-text p,.tp-inner .simple-text li,.tp-inner .simple-text b,.tp-inner .simple-text strong{color:#f5f5f5!important}

@media(max-width:768px){.tp-inner .header__top{background:#222}}

.portfolio-typical__editor img{aspect-ratio:1570/750;object-fit:cover;width:100%;height:auto}
.download-price__container{background-size:cover;background-position:center}

.get-consultation.md-style-2{background-image:linear-gradient(rgba(20,20,20,.58),rgba(20,20,20,.58)),url(media/workshop-lift.jpg);background-size:cover;background-position:center}

@media(min-width:769px){.download-price__img-large img{object-fit:contain;object-position:right bottom}}

.get-consultation__person .person-img{object-fit:contain;object-position:center bottom}

@media(min-width:769px){.get-consultation.md-style-2 .get-consultation__person{height:100%}.get-consultation.md-style-2 .get-consultation__person .person-info{left:0;top:20%}}

@media(max-width:768px){.work-steps .md-main-color-btn,.work-steps .md-main-color-btn span{line-height:1.2!important}}

/* Multiline promotion links keep readable leading. */
.promotions .content-btn,.promotions .content-btn span{line-height:1.2!important}
