/* Дополнительные экраны Leadflow в точной визуальной системе архива */
/* Выразительная ткань только на фоне, без изменения букв и плиток. */
body::before{content:"";display:block!important;position:fixed;inset:0;z-index:0;pointer-events:none;background-image:url('/assets/fabric-grain.webp'),radial-gradient(ellipse at 20% 35%,#c6b39a55,transparent 65%),radial-gradient(ellipse at 80% 75%,#77756e33,transparent 60%);background-size:256px 256px,100% 100%,100% 100%;mix-blend-mode:soft-light;opacity:.48}
.brand-caption[hidden],body:not([data-screen="home"]) .brand-caption{display:none!important}
.brand-caption{color:#cb777d!important;text-shadow:none!important}
.screen[hidden]{display:none!important}
#home{width:100%;max-width:none;padding:0;background:transparent;box-shadow:none}
#home form{width:100%}
#home .message{color:#7e8178}
.location-error{min-height:18px;margin-top:8px;color:#845f57;font-size:11px}
body:has(#home[hidden]) .lead-brand{display:none}
body:has(#home[hidden]) .brand-caption{display:none}
body:has(#home[hidden]) main{position:absolute;top:96px;bottom:28px;left:50%;transform:translateX(-50%);width:min(720px,calc(100% - 48px));height:auto;min-height:0;max-height:none;margin:0;padding:0;display:flex;align-items:center;justify-content:center}
body:has(#home[hidden]) .screen:not(#home){max-height:100%;min-height:0;box-sizing:border-box}
body:has(#home[hidden]) #audience{height:100%;min-height:0;max-height:100%;overflow:hidden}
#audience > .back,#audience > .step,#audience > h1,#audience > p,#audience > .subtle{flex-shrink:0}
#audience #selectAudience{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#audience .choices-list{flex:1;min-height:0;max-height:none}
#audience .go{position:static;flex:none;min-height:48px;width:220px;max-width:100%;min-width:0;margin:12px auto 14px}
#audience .subtle{margin-top:12px}
@media(max-width:600px){body:has(#home[hidden]) main{top:78px;bottom:20px;width:calc(100% - 32px)}}
@media(max-height:650px){#audience > .back{margin-bottom:8px}#audience > p{margin:6px 0}#audience .subtle{font-size:11px;line-height:1.3}#audience .go{min-height:40px;margin-top:8px}}
body:has(#home[hidden]) .language-switch{opacity:1}
.screen:not(#home){width:100%;max-width:none;padding:28px;border-radius:25px;background:linear-gradient(125deg,#d6d6ce 0%,#cfcec6 55%,#c7c7bf 100%);box-shadow:inset 4px 4px 6px #ffffff9e,inset -5px -5px 6px #64665c80,5px 6px 5px -2px #59584e73,10px 12px 15px -4px #77645259,-4px -4px 12px -3px #fff9e566}
.screen:not(#home) h1{margin:0 0 10px;color:#41463f;font-size:34px;font-weight:600;letter-spacing:-1px}
.screen:not(#home) p{color:#70766d}
.back,.textbtn,.btn-secondary{border:0;border-radius:14px;color:#41453c;background:linear-gradient(125deg,#dadbd3,#c6c7be);box-shadow:inset 2px 2px 3px #ffffffa6,inset -2px -3px 3px #74766b66,3px 5px 6px #62625559}
.back{display:inline-flex;width:max-content;max-width:100%;align-self:flex-start;flex:0 0 auto;padding:9px 12px;margin-bottom:18px}.textbtn{padding:10px 16px}.btn-secondary{padding:10px 14px}
.step,.subtle,.metric-label{color:#596159}
.choice-card,.custom-add-box,.slider-card,.pricing-mode-btn,.client-cta,.tablebox{border:0;border-radius:20px;background:linear-gradient(135deg,#e1e0d8,#cacac2);box-shadow:inset 3px 3px 5px #ffffffa6,inset -3px -4px 5px #70726955,4px 6px 9px #68675c55}
.choice-card{padding:14px}.choice-card:hover,.choice-card.selected,.pricing-mode-btn.selected{background:linear-gradient(135deg,#e6e5dd,#c8d7ca)}
.choice-card strong,.pricing-mode-btn strong,.metric-value{color:#41483f}.choice-card small,.pricing-mode-btn small{color:#777e73}
.custom-input{border:0;border-radius:13px;background:#d8d8ce;box-shadow:inset 0 0 3px 1px #77796b80;color:#353e36}
.pricing-mode-btn{color:#41483f}.slider-custom{accent-color:#729f86}
.go,.client-cta-main,.sheets-btn{border:0;color:#41453c;background:linear-gradient(125deg,#dadbd3,#c6c7be);box-shadow:inset 2px 2px 3px #ffffffa6,inset -2px -3px 3px #74766b66,3px 5px 6px #62625559}
.go{width:fit-content;margin:20px auto 0;border-radius:14px}.client-cta-main,.sheets-btn{border-radius:14px}
.tablebox{overflow:auto}table{color:#41483f}th{color:#60675e}td{border-color:#aaa99f}tr.band td{background:#bdcbbf;color:#374b3b}
.result-status-row{display:flex;align-items:center;gap:12px;margin:0 0 16px;flex-shrink:0}
#result .result-status-row .success{margin:0;flex:none;width:38px;height:38px;font-size:20px}
#result .result-status-row .credits-badge{align-self:center;display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;margin:0;padding:6px 10px;font-size:12px;border-radius:10px;line-height:1.3}
#result .result-status-row .credits-badge strong{font-size:13px}
.success{background:#b7d6c1;color:#355744}.spinner{border-color:#738d7c;border-top-color:transparent}
/* Различимые и удобные действия на экране результатов. */
#result #googleSheetsLink,#result #clientCta,#result #download,#result #again{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:13px 20px;border-radius:15px;font-size:16px;line-height:1.4;font-weight:600;text-align:center;text-decoration:none;border:1px solid #ffffff60;box-shadow:0 4px 8px #59584e25,inset 0 1px 1px #ffffff70;transition:filter .15s,transform .15s;cursor:pointer;width:100%;min-width:0;max-width:100%}
#result #googleSheetsLink[hidden]{display:none}
#result #googleSheetsLink{background:linear-gradient(135deg,#c4e4cb,#a9d2b5);color:#28563a;margin:18px 0 0}
#result .client-cta{background:none;box-shadow:none;border:0;padding:0;margin:12px 0}
#result #clientCta{background:linear-gradient(135deg,#f0d6b4,#e4bb8e);color:#6b4828}
#result #download{background:linear-gradient(135deg,#cadcf0,#adc6e3);color:#2e506e;margin:12px 0 0}
#result #download .arrow{font-size:20px}
#result #again{background:linear-gradient(135deg,#e2d5e8,#cdbbd8);color:#60496c;width:fit-content;min-width:150px;margin:16px auto 0;font-size:14px}
#result #googleSheetsLink:hover,#result #clientCta:hover,#result #download:hover,#result #again:hover{filter:brightness(1.04);transform:translateY(-1px)}
#result #googleSheetsLink:focus-visible,#result #clientCta:focus-visible,#result #download:focus-visible,#result #again:focus-visible{outline:3px solid #526e7a;outline-offset:3px}
#result .client-contact-actions a{min-height:48px}
@media(max-width:520px){#result #googleSheetsLink,#result #clientCta,#result #download{font-size:14px;padding:12px 14px}}
@media(max-width:600px){.screen:not(#home){padding:20px}.screen:not(#home) h1{font-size:29px}}

/* Фиксированный экран без прокрутки и без тёмной полосы сверху */
html,body{width:100%;height:100%;margin:0;overflow:hidden!important;background:#adada7!important;overscroll-behavior:none}
body{position:relative;min-height:100svh!important}
body:has(#home:not([hidden])) .lead-brand{margin-top:clamp(42px,7vh,74px)}
body:has(#home:not([hidden])) main{max-height:calc(100svh - 330px);padding-bottom:20px}

.screen:not(#home){max-height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
.screen:not(#home)::-webkit-scrollbar{display:none}
@media(max-height:820px){body:has(#home:not([hidden])) .lead-brand{width:min(420px,86vw);margin-top:24px;margin-bottom:-26px}body:has(#home:not([hidden])) main{transform:scale(.9);transform-origin:top center}}
/* Мобильная подпись привязана к видимому верхнему краю букв, а не к отрицательным отступам. */
@media(max-width:700px){
 body{--mobile-brand-width:min(560px,94vw)}
 body:has(#home:not([hidden])) .lead-brand{margin-top:56px}
 .brand-caption{position:absolute;top:calc(56px + var(--mobile-brand-width) * .191 - 40px);left:0;width:100%;margin:0;font-size:26px;line-height:1.1;white-space:nowrap}
}
@media(max-width:700px) and (max-height:820px){body{--mobile-brand-width:min(420px,86vw)}}
.lead-brand .lead-base{position:relative;z-index:1}.lead-brand .lead-face{position:absolute;inset:0;z-index:2;width:100%;height:100%;object-fit:contain;filter:none!important;opacity:1!important;mix-blend-mode:normal!important;mask-image:none!important;-webkit-mask-image:none!important;pointer-events:none}
