/* Targeted source fixes only. Original Jost, widths and dark/gold theme retained. */
.portfolio-typical__description,.portfolio-typical__description p,.portfolio-typical__description h2{color:#292724}
.breadcrumbs__container{flex-wrap:wrap;overflow:visible;white-space:normal;gap:.5rem}
.breadcrumbs__item{white-space:normal;overflow-wrap:anywhere}
.demo-form-note{font-size:11px;line-height:1.45;opacity:.72;margin:12px 0 0;flex-basis:100%}
.demo-dialog{width:min(560px,calc(100vw - 32px));border:1px solid #b9a17c;border-radius:16px;background:#292929;color:#fff;padding:32px;font:18px/1.5 Jost,sans-serif;box-shadow:0 24px 90px #0008}
.demo-dialog::backdrop{background:#000b}.demo-dialog h2{font-size:26px;margin:0 30px 18px 0}.demo-message{white-space:pre-line}
.demo-close{position:absolute;right:14px;top:8px;font-size:28px;background:none;color:white;border:0;cursor:pointer}
.demo-ok,.demo-download,.demo-restart{display:inline-block;padding:10px 18px;margin-top:18px;background:#d3b282;color:#242424;border:0;border-radius:7px;font:inherit;cursor:pointer}.demo-download[hidden]{display:none}.demo-download{margin-right:12px}
.quiz-summary{font-size:16px;line-height:1.5;margin:18px 0;white-space:pre-line}.demo-restart{font-size:14px}.form-btn{cursor:pointer}
.politika-popup{color:#292724}.politika-popup p{margin:18px 0;line-height:1.6}
.team__slide .slide-img{object-fit:contain;object-position:bottom}.portfolio__item .item-gallery img{object-fit:cover}
.portfolio__item .item-text{line-height:1.5}.portfolio-typical__editor img{height:auto;object-fit:cover}
.demo-review-caption{padding:12px;font-size:16px;line-height:1.5}.demo-label{font-size:13px;opacity:.75;margin-top:10px}
@media(max-width:768px){.demo-dialog{padding:24px;font-size:16px}.quiz-summary{font-size:14px}.portfolio-typical__description{overflow-wrap:anywhere}.breadcrumbs__container{font-size:12px}.demo-form-note{font-size:10px}}

/* QA round 1: centred dialog, clear CTA labels, explicit contact mode. */
.demo-dialog{position:fixed;inset:0;margin:auto;height:fit-content;max-height:calc(100dvh - 32px);overflow-y:auto}
.md-main-color-btn::after{display:none!important;animation:none!important}
.md-main-color-btn{color:#242424}
.md-main-color-btn svg,.md-main-color-btn svg path{fill:currentColor}
.calc-price__quiz input[hidden]{display:none!important}
button:focus-visible,a:focus-visible,[role="button"]:focus-visible,input:focus-visible{outline:2px solid #d3b282;outline-offset:4px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(max-width:768px){.header.demo-scrolled{background:rgba(25,25,25,.97)}.header__logo{width:29vw;max-width:112px;flex:0 0 29vw}.header .header__top .header__logo img{width:100%;height:auto}.header__contacts{margin-right:0}.header__contacts>a{white-space:nowrap}}
section[id]{scroll-margin-top:85px}
@media(max-width:768px){section[id]{scroll-margin-top:80px}.header__phone.mobile .zphone{color:#242424!important}.header__phone.mobile img{filter:brightness(0)}}
.demo-image-credit{font-size:11px;line-height:1.5;color:#d5cec2;margin:12px 0}.demo-image-credit a{color:#ddbe91;text-decoration:underline}.quiz-question img.quiz-consultant-photo{object-fit:cover;object-position:center top}
.filters-item[href]{color:#292724;border-color:#b49a72}.filters-item[href].active,.filters-item[href]:hover{color:#242424}
.map-container{overflow:hidden;background:#f4efe6}.map-container>img{display:block;width:100%;height:100%;object-fit:contain;border-radius:inherit}
/* Footer contrast correction; browser retest pending after user-requested pause. */
.footer__bottom .md-line-dotted{color:#765d3b}

/* Ivan review 16.11: bounded media; no changes to content or form controls. */
#getconsultation .get-consultation__person .person-img,
#consultation .get-consultation__person .person-img{
 position:absolute;inset:0;width:100%;height:100%;max-width:100%;
 object-fit:contain;object-position:center bottom;transform:none;
}
#getconsultation .get-consultation__person,
#consultation .get-consultation__person{max-height:calc(100% - 24px)}
#warranty .warranty__img{top:auto;bottom:2vw;height:27vw;overflow:visible}
#warranty .warranty__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center center}
#clientsc .clients-choose__title{padding-top:3vw;padding-bottom:67.3125vw}
#clientsc .clients-choose__bg{height:100%}
#clear .clear-talk__img{top:24px;bottom:24px;height:auto;overflow:visible}
#clear .clear-talk__img img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center center}
#reviews .reviews__img-slider .img-slider__slide{display:block;width:100%;height:100%}
#reviews .reviews__img-slider .img-slider__slide img{object-fit:contain;object-position:center center;background:transparent}
#consultation{margin-top:clamp(56px,6vw,112px);background:#292c29;background-image:none;position:relative;isolation:isolate}
#consultation .get-consultation__container{background:#292c29!important;background-image:none!important}
#consultation .get-consultation__person .person-info{z-index:2}
@media(max-width:768px){
 #getconsultation .get-consultation__container{padding-bottom:96vw}
 #getconsultation .get-consultation__person{left:0;right:0;bottom:0;width:100%;height:86vw;max-height:none}
 #consultation .get-consultation__person{left:0;right:0;bottom:0;width:100%;height:86vw;max-height:none}
 #getconsultation .get-consultation__person .person-img,
 #consultation .get-consultation__person .person-img{inset:0;width:100%;height:100%;transform:none;object-fit:contain}
 #warranty .warranty__img{top:auto;left:14vw;right:14vw;bottom:20px;width:auto;height:52vw}
 #clear .clear-talk__img{top:auto;left:18vw;right:18vw;bottom:20px;width:auto;height:74vw}
 #clientsc .clients-choose__title{padding-top:8vw;padding-bottom:66.375vw}
 #consultation{margin-top:56px}
}

/* Ivan: keep the engineer right of the copy; only #consultation. */
@media(min-width:769px){
 #consultation .get-consultation__content{position:relative;width:54%;z-index:2}
 #consultation .get-consultation__person{left:auto;right:0;bottom:0;width:40%;height:calc(100% - 24px);max-height:none}
 #consultation .get-consultation__person .person-img{object-position:right bottom}
 #consultation .get-consultation__person .person-info{left:auto;right:0;top:auto;bottom:18px;width:auto;background:#292c29e8;padding:8px 12px;border-radius:6px}
 #consultation .get-consultation__form .form-container{flex-wrap:wrap;gap:12px}
 #consultation .get-consultation__title{max-width:100%}
}
@media(max-width:768px){
 #consultation .get-consultation__container{padding-bottom:94vw}
 #consultation .get-consultation__person{left:auto;right:0;width:85%;height:86vw}
 #consultation .get-consultation__person .person-img{object-position:right bottom}
}

/* Text-only quiz result: bounded centred content, keep meaningful progress. */
.project-quiz--centered-final .quiz-final{justify-content:center;width:100%}
.project-quiz--centered-final .quiz-final__content{width:100%;max-width:720px;margin:0 auto;text-align:center;box-sizing:border-box;padding:0 16px 24px}
.project-quiz--centered-final .quiz-final__title{width:100%;font-size:clamp(24px,2.4vw,38px);line-height:1.2;padding:0;margin:0 0 20px}
.project-quiz--centered-final .quiz-final__text{font-size:14px;line-height:1.5;padding:8px 18px;margin-bottom:16px}
.project-quiz--centered-final .quiz-summary{width:100%;max-width:640px;margin:0 auto 24px;text-align:center;line-height:1.6}
.project-quiz--centered-final .quiz-final__form{width:100%;max-width:520px;margin:0 auto}
.project-quiz--centered-final .quiz-final__form .form-container{width:100%;max-width:480px;margin:0 auto 16px}
.project-quiz--centered-final .quiz-final__form .form-top{width:100%;justify-content:center;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.project-quiz--centered-final .quiz-final__form .form-top__item{width:calc(25% - 8px);max-width:112px;box-sizing:border-box;margin:0;padding:8px 4px}
.project-quiz--centered-final .quiz-final__form .form-top__item p{font-size:13px;line-height:1.4}
.project-quiz--centered-final .quiz-final__form .form-checkbox{width:100%;max-width:480px;justify-content:center;margin:0 auto 16px}
.project-quiz--centered-final .quiz-final__form .form-checkbox p{width:auto;max-width:360px;text-align:left}
.project-quiz--centered-final.md-final-step .quiz-progress{max-width:720px;margin:0 auto 28px;height:30px;box-sizing:border-box;padding:4px}
.project-quiz--centered-final.md-final-step .quiz-progress .progress-bar::after{display:none;animation:none}
.project-quiz--centered-final.md-final-step .quiz-progress .progress-text{font-size:13px;line-height:1.3;white-space:nowrap;color:#242424}
@media(max-width:768px){
 .project-quiz--centered-final .quiz-final__content{padding:0 0 24px}
 .project-quiz--centered-final .quiz-summary{font-size:14px}
 .project-quiz--centered-final .quiz-final__form .form-top__item{min-width:0}
 .project-quiz--centered-final .quiz-final__form .form-top__item p{font-size:11px}
 .project-quiz--centered-final .quiz-final__form .form-container .form-input{min-width:0;box-sizing:border-box}
}
