/* The first question uses the approved concept's composition and colour palette. */
#calc.choice-section{display:grid;grid-template-columns:minmax(300px,.95fr) minmax(0,1.75fr);gap:48px;padding-top:48px;padding-bottom:48px;align-items:start}
#calc .choice-intro{min-width:0;display:flex;flex-direction:column;gap:20px;padding-top:8px}
#calc .choice-kicker{font-size:13px;font-weight:600;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
#calc .choice-intro h2{font:600 72px/1 var(--display);letter-spacing:-.03em;max-width:450px}
#calc .choice-intro>p{max-width:440px;font-size:19px;line-height:1.5;color:#3B4047}
#calc .choice-checks{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
#calc .choice-checks li{display:flex;align-items:center;gap:10px;font-size:16px;line-height:1.35;font-weight:500}
#calc .choice-checks li>span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--yellow);flex:none}
#calc .choice-checks .icon{width:16px;height:16px;stroke-width:3}
#calc .choice-workspace{min-width:0}
#calc .choice-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#calc .choice-tile{min-width:0;min-height:236px;padding:20px;border-radius:22px;border:2px solid #E3E5E9;background:#fff;color:var(--ink);text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:8px;transition:border-color .15s ease,transform .15s ease}
#calc .choice-tile:hover{border-color:var(--ink);transform:translateY(-2px)}
#calc .choice-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:var(--yellow);flex:none}
#calc .choice-icon .icon{width:30px;height:30px}
#calc .choice-tile-title{font:600 24px/1.1 var(--display);margin-top:6px}
#calc .choice-example{font-size:15px;line-height:1.4;color:var(--muted)}
#calc .choice-tile-bottom{margin-top:auto;padding-top:8px;display:flex;justify-content:space-between;align-items:center;width:100%;gap:8px;font:600 19px/1.15 var(--display)}
#calc .choice-tile-bottom>span{white-space:nowrap}
#calc .choice-task{gap:7px;overflow:hidden}
#calc .choice-visual{display:flex;align-items:center;justify-content:center;width:100%;height:154px;margin-bottom:4px}
#calc .choice-visual img{display:block;width:100%;height:100%;object-fit:contain}
#calc .choice-price{display:block;margin-top:auto;padding-top:9px;font:600 22px/1.2 var(--display);white-space:nowrap}
#calc .choice-action{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:42px;margin-top:7px;padding:10px 12px;border-radius:10px;background:var(--yellow);font:600 15px/1.25 var(--body)}
#calc .choice-action .icon{width:20px;height:20px;flex:none}
#calc .choice-task[data-start-mode="know"] .choice-action{margin-top:auto}
#calc .choice-task[data-start-mode="know"] .choice-example{margin-bottom:16px}
#calc .choice-tile-opt{background:var(--ink);border-color:var(--ink);color:#fff}
#calc .choice-tile-opt:hover{border-color:#6E737A}
#calc .choice-tile-opt .choice-icon{color:var(--ink)}
#calc .choice-tile-opt .choice-example{color:#C9CED6}
#calc .choice-tile-photo{background:var(--surface);border-color:var(--surface)}
#calc .choice-tile-photo .choice-icon{background:#fff}
#calc .choice-tile-photo .choice-example{color:#3B4047}
#calc .choice-tile[data-support]{min-height:0;display:grid;grid-template-columns:40px minmax(0,1fr);column-gap:12px;row-gap:6px;padding:18px}
#calc .choice-tile[data-support] .choice-icon{width:40px;height:40px;grid-row:1/3;border-radius:11px}
#calc .choice-tile[data-support] .choice-icon .icon{width:24px;height:24px}
#calc .choice-tile[data-support] .choice-tile-title{font:600 18px/1.2 var(--body);margin:0}
#calc .choice-tile[data-support] .choice-example{grid-column:2;font-size:14px}
#calc .choice-tile[data-support] .choice-tile-bottom{grid-column:2;padding-top:4px;font:600 14px/1.2 var(--body)}
#calc .choice-mobile-help{display:none}
#calc .choice-price-note{margin-top:14px;font-size:12px;line-height:1.45;color:var(--muted)}
#calc .choice-saved{display:flex;flex-direction:column;align-items:flex-start;gap:5px;margin-top:4px;font-size:14px;line-height:1.4;color:var(--muted)}
#calc .choice-saved button{font-weight:600;color:var(--ink)}
#calc .choice-stage-head{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:20px}
#calc .choice-stage-head h2{font:600 30px/1.15 var(--display);letter-spacing:-.02em;outline-offset:6px}
#calc .choice-stage-head p{width:100%;font-size:15px;color:#3B4047}
#calc .choice-back{height:44px;display:flex;align-items:center;gap:8px;padding:0 12px;border:0;border-radius:12px;background:var(--surface);font-size:15px;font-weight:600}
#calc .choice-back .icon{width:18px;height:18px}
#calc .mode-tabs{display:none}
#calc.choice-section[data-stage="calculator"]{grid-template-columns:minmax(0,1fr)}
#calc[data-stage="calculator"] .choice-intro{display:none}
#calc .calculator-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:16px}
#calc .calculator-controls,#calc .estimate{padding:22px;gap:22px}
#calc .calculator-controls .field-row{align-items:flex-start}
#calc .calculator-controls .fence-length-row{flex-direction:column}
#calc .calculator-controls .coat-options{grid-template-columns:1fr}
#calc .calculator-controls .coat-option{flex-direction:row;align-items:center;justify-content:space-between;min-height:56px}
#calc .calculator-controls .roof-diagram{flex:1 1 100%;display:flex;align-items:center;gap:12px}
#calc .calculator-controls .roof-diagram svg{max-width:150px}
#calc .calculator-controls .roof-diagram figcaption{margin:0}
#calc .calculator-controls .heights{gap:6px}
#calc .calculator-controls .heights .chip{min-width:64px;padding-inline:10px}
#calc .estimate-total strong{font-size:clamp(28px,2.7vw,40px)}
#calc .choice-form{display:flex;flex-direction:column;gap:18px;padding:28px;border-radius:22px;background:var(--surface)}
#calc .choice-form p{font-size:16px;line-height:1.5;color:#3B4047}
#calc .choice-form form{display:flex;flex-direction:column;gap:16px}
#calc .choice-form label:not(.consent){display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600}
#calc .choice-form input:not([type=checkbox]),#calc .choice-form textarea,#calc .choice-form select{width:100%;min-width:0;min-height:52px;border:2px solid var(--line);border-radius:12px;padding:12px;background:#fff;color:var(--ink);font-size:16px}
#calc .choice-form textarea{min-height:120px;resize:vertical}
#calc .choice-form input[type=file]{font-size:14px;padding:14px}
#calc .choice-form input[type=file]::file-selector-button{font:600 14px var(--body);border:0;border-radius:7px;background:var(--ink);color:#fff;padding:8px 10px;margin-right:12px;cursor:pointer}
#calc .choice-form [data-volume]{min-height:48px;border:2px solid var(--line);border-radius:12px;padding:10px 14px;background:#fff;color:var(--ink);font-size:15px;font-weight:600}
#calc .choice-form [data-volume][aria-pressed="true"]{border-color:var(--ink);background:var(--ink);color:#fff}
#calc .choice-form .consent{color:var(--muted)}
#calc .choice-form .form-status{background:#fff;color:#3B4047}
#calc .choice-form .form-status.error{color:#a92f11}
#calc .choice-form .demo-note{font-size:13px;color:var(--muted)}
#calc .choice-form .button{align-self:flex-start}
.mobile-bar>.mobile-total.is-empty{background:var(--surface);border-color:var(--surface);color:#3B4047}
@media(min-width:761px){
 #calc .choice-stage-head{display:grid;grid-template-columns:minmax(0,1fr) auto}
 #calc .choice-stage-head h2{grid-column:1;grid-row:1}
 #calc .choice-stage-head .choice-back{grid-column:2;grid-row:1;justify-self:end}
 #calc .choice-stage-head p{grid-column:1/-1}
}
@media(min-width:761px) and (max-width:1250px){
 #calc.choice-section{grid-template-columns:minmax(280px,.8fr) minmax(0,1.8fr);gap:30px}
 #calc .choice-intro h2{font-size:60px}
 #calc .choice-tile{padding:16px}
 #calc .choice-tile-title{font-size:21px}
 #calc .choice-tile-bottom{font-size:16px;gap:5px}
 #calc .choice-arrow{width:18px}
 #calc .choice-visual{height:138px}
 #calc .choice-action{font-size:14px}
}
@media(min-width:761px) and (max-width:1000px){
 #calc.choice-section{grid-template-columns:1fr;gap:28px}
 #calc .choice-intro h2{max-width:none;font-size:56px}
 #calc .choice-intro>p{max-width:620px}
 #calc .choice-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:760px}
 #calc .choice-tile-title{font-size:24px}
 #calc .choice-tile-bottom{font-size:20px}
 #calc .choice-visual{height:166px}
}
@media(max-width:760px){
 #calc.choice-section,#calc[data-stage="calculator"]{display:flex;flex-direction:column;gap:14px;padding:18px 16px 28px}
 #calc .choice-intro{padding:0;gap:14px}
 #calc .choice-kicker{font-size:12px}
 #calc .choice-intro h2{font-size:34px;line-height:1.05;letter-spacing:-.02em}
 #calc .choice-intro>p{max-width:none;font-size:15px;line-height:1.45}
 #calc .choice-checks{display:none}
 #calc .choice-workspace{width:100%}
 #calc .choice-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #calc .choice-tile{min-height:150px;padding:12px;border-radius:18px;gap:6px}
 #calc .choice-tile:hover{transform:none}
 #calc .choice-icon{width:40px;height:40px;border-radius:11px}
 #calc .choice-icon .icon{width:24px;height:24px}
 #calc .choice-tile-title{font:600 18px/1.1 var(--body);margin-top:2px}
 #calc .choice-example{font-size:13px;line-height:1.3}
 #calc .choice-detail{display:none}
 #calc .choice-task{gap:6px}
 #calc .choice-visual{height:104px;margin-bottom:2px}
 #calc .choice-task .choice-example{min-height:34px}
 #calc .choice-price{padding-top:4px;font-size:16px}
 #calc .choice-action{min-height:42px;padding:8px;font-size:12px;gap:5px;border-radius:9px}
 #calc .choice-action .icon{width:16px;height:16px}
 #calc .choice-task[data-start-mode="know"] .choice-example{margin-bottom:6px}
 #calc .choice-tile-bottom{padding-top:4px;font-size:15px;line-height:1.15}
 #calc .choice-arrow{display:none}
 #calc .choice-tile-opt[data-support]{grid-column:1/-1;min-height:70px;grid-template-columns:40px minmax(0,1fr) 20px;column-gap:12px;row-gap:3px;padding:10px 12px;background:#fff;border-color:#E3E5E9;color:var(--ink);margin-top:6px}
 #calc .choice-tile-opt .choice-icon{grid-row:1/3;background:var(--ink);color:var(--yellow)}
 #calc .choice-tile-opt .choice-tile-title{font-size:17px;margin:0}
 #calc .choice-tile-opt .choice-example{grid-column:2;color:var(--muted)}
 #calc .choice-tile-opt[data-support] .choice-tile-bottom{grid-row:1/3;grid-column:3;padding:0;align-self:center}
 #calc .choice-tile-opt .choice-tile-bottom>span{display:none}
 #calc .choice-tile-opt .choice-arrow{display:block;width:20px;height:20px}
 #calc .choice-tile-photo[data-support]{display:none}
 #calc .choice-mobile-help{display:flex;flex-direction:column;gap:10px;margin-top:14px;padding:12px;border-radius:18px;background:var(--surface)}
 #calc .choice-mobile-help>strong{font-size:15px;line-height:1.3;font-weight:600}
 #calc .choice-mobile-help>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #calc .choice-mobile-help button{min-height:48px;border:0;border-radius:12px;background:#fff;display:flex;justify-content:center;align-items:center;gap:8px;font-size:14px;line-height:1.15;font-weight:600;padding:8px}
 #calc .choice-mobile-help .icon{width:20px;height:20px}
 #calc .choice-price-note{font-size:11px;margin-top:12px}
 #calc[data-stage="support"] .choice-intro{display:none}
 #calc .choice-stage-head{gap:14px;margin-bottom:16px;align-items:flex-start}
 #calc .choice-back{height:40px;border-radius:10px;font-size:14px;padding:0 12px}
 #calc .choice-stage-head h2{flex-basis:100%;font-size:28px}
 #calc .choice-stage-head p{margin-top:-4px;font-size:15px;line-height:1.45}
 #calc .calculator-grid{display:flex;flex-direction:column;gap:12px;padding:0}
 #calc .calculator-controls{padding:16px;gap:24px}
 #calc .calculator-controls .heights{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
 #calc .calculator-controls .heights .chip{min-width:0;padding:0}
 #calc .estimate{padding:20px 16px;gap:16px}
 #calc .estimate-total strong{font-size:30px}
 #calc .choice-form{padding:20px 16px;gap:16px}
 #calc .choice-form .button{width:100%;align-self:stretch}
 #calc .choice-saved{margin-top:0;font-size:13px;gap:2px}
}
@media(max-width:360px){
 #calc .choice-intro h2{font-size:30px}
 #calc .choice-tile{padding:10px}
 #calc .choice-tile-bottom{font-size:13px}
 #calc .choice-visual{height:90px}
 #calc .choice-price{font-size:14px}
 #calc .choice-mobile-help button{font-size:12px;gap:5px}
 #calc .choice-mobile-help .icon{width:17px;height:17px}
 #calc .choice-tile-opt .choice-tile-title{font-size:15px}
}
@media print{
 #calc .choice-intro,#choice-start,#choice-support,#calc .choice-stage-head{display:none!important}
 #calc.choice-section{display:block;padding:0}
 #calc .calculator-grid{display:block}
}

/* Одна основная величина с рулеткой в каждом расчёте. */
#calc .tape-control>.field-row{flex-direction:column}
#calc .tape-scale{position:relative;height:14px;margin-inline:15px}
#calc .tape-scale>span{position:absolute;transform:translateX(-50%);white-space:nowrap}
#calc .tape-scale>span:first-child{transform:none}
#calc .tape-scale>span:last-child{transform:translateX(-100%)}
#calc .tape-rail{position:relative;height:56px;border-radius:10px;background:var(--yellow)}
#calc .tape-rail .tape{position:relative;z-index:1;display:block}
#calc .tape-rail .tape::-webkit-slider-runnable-track{background:none}
#calc .tape-rail .tape::-moz-range-track{background:none}
#calc .tape-ticks{position:absolute;top:0;left:15px;width:calc(100% - 30px);height:26px;pointer-events:none}
@media(max-width:760px){
  #calc .tape-rail{height:60px}
  #calc .tape-ticks{left:17px;width:calc(100% - 34px)}
  #calc .tape-scale{margin-inline:17px}
}
