/* Kuidas see toimib (views/uus/kuidas.php) */
.hw-hacts{display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px;margin-top:34px;animation-delay:.22s}
.hw-lnk{color:#FFFFFF;font-weight:600;text-decoration:none;border-bottom:1.5px solid rgba(207,242,90,.6);padding-bottom:2px}
.hw-lnk:hover{color:#CFF25A;border-color:#CFF25A}
.hw-sub{margin-top:14px;max-width:720px}

/* kalkulaator */
.hw-calc{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(22px,3vw,40px);padding:clamp(22px,3vw,36px);margin-top:30px}
.hw-in{display:flex;flex-direction:column;gap:22px}
.hw-r{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center}
.hw-rl{font-weight:600;font-size:16px}
.hw-r output{font-family:'IBM Plex Mono',monospace;font-weight:600;font-size:16px;padding:4px 10px;border-radius:8px;background:#E5F0E8;min-width:72px;text-align:center}
.hw-r input[type=range]{grid-column:1/-1;width:100%;height:28px;margin:0;accent-color:#12795A;cursor:pointer}
.hw-out{display:flex;flex-direction:column;gap:12px}
.hw-o{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border-radius:14px;background:#F1F3EF;border:1px solid #D2DBD5}
.hw-o strong{font-weight:700;font-stretch:85%;font-size:clamp(30px,3vw,42px);line-height:1.05;letter-spacing:-0.035em;font-variant-numeric:tabular-nums}
.hw-o span:last-child{font-size:14px;color:#33443D}
.hw-o.hot{background:#0F2E24;border-color:#0F2E24;color:#FFFFFF}
.hw-o.hot .eb{color:#B9CBC2}
.hw-o.hot strong{color:#CFF25A}
.hw-o.hot span:last-child{color:#D5E2DB}
.hw-note{margin-top:12px;font-size:12px;color:#56675F}

/* sammud */
.hw-steps{list-style:none;margin:44px 0 0;padding:0;display:flex;flex-direction:column;gap:clamp(48px,7vw,96px);counter-reset:none}
.hw-st{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(24px,4vw,56px);align-items:center}
.hw-st:nth-child(even){grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.hw-st:nth-child(even) .hw-tx{order:2}
.hw-zoom{display:block;cursor:zoom-in}
.hw-tx{position:relative}
.hw-n{display:inline-flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:#CFF25A;border:1.5px solid #0F1D18;box-shadow:3px 3px 0 #0F1D18;font-weight:700;font-stretch:85%;font-size:34px;margin-bottom:18px}
.hw-tx .eb{display:block}
.hw-tx h3{margin:8px 0 0;font-weight:700;font-stretch:88%;font-size:clamp(28px,3vw,40px);line-height:1.05;letter-spacing:-0.03em}
.hw-tx p{margin:14px 0 0;font-size:17px;line-height:1.6;color:#33443D;max-width:52ch}
.hw-tx .hw-res{padding:14px 16px;border-radius:12px;background:#E5F0E8;border-left:4px solid #12795A;color:#0F1D18}
.hw-tx .hw-res b{display:block;font-size:13px;letter-spacing:.02em;margin-bottom:2px}
.hw-shot{margin:0;position:relative;min-width:0}
.hw-bw{position:relative;border-radius:14px;border:1.5px solid #0F1D18;background:#FFFFFF;overflow:hidden;box-shadow:8px 8px 0 rgba(15,29,24,.9)}
.hw-bw::before{content:"";display:block;height:22px;border-bottom:1.5px solid #0F1D18;background:#F1F3EF radial-gradient(circle at 14px 11px,#0F1D18 3px,transparent 3.5px) no-repeat,radial-gradient(circle at 28px 11px,#9DB0A6 3px,transparent 3.5px) no-repeat,radial-gradient(circle at 42px 11px,#9DB0A6 3px,transparent 3.5px) no-repeat}
.hw-bw img,.hw-ph img{display:block;width:100%;height:auto}
.hw-ph{width:min(34%,210px);border-radius:24px;border:5px solid #0F1D18;background:#0F1D18;overflow:hidden;box-shadow:6px 6px 0 rgba(15,29,24,.25)}
.hw-ph img{border-radius:18px}
.hw-duo{padding:0 0 18% 0}
.hw-duo .hw-ph{position:absolute;right:-3%;bottom:0;width:min(25%,170px);transform:rotate(3deg)}
.hw-mob{display:flex;justify-content:center;padding:10px 0}
.hw-ph.big{width:min(56%,250px);transform:rotate(2deg)}

/* video */
.hw-video{position:relative;aspect-ratio:16/9;margin-top:28px;border-radius:18px;overflow:hidden;border:1.5px solid #0F1D18;background:#0F2E24}
.hw-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

@media (max-width:900px){
  .hw-calc,.hw-st,.hw-st:nth-child(even),.hw-setup,.hw-next{grid-template-columns:minmax(0,1fr)}
  .hw-st:nth-child(even) .hw-tx{order:0}
  .hw-duo .hw-ph{right:-1%;width:min(30%,150px)}
  .hw-bw{box-shadow:5px 5px 0 rgba(15,29,24,.9)}
}
@media (max-width:520px){
  .hw-list li{font-size:15px}
  .hw-n{width:52px;height:52px;font-size:28px}
  .hw-ph{border-width:4px;border-radius:18px}
}
@media (prefers-reduced-motion:reduce){.hw-duo .hw-ph,.hw-ph.big{transform:none}}

/* päise sammuriba */
.hw-strip{list-style:none;margin:44px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;animation-delay:.28s}
.hw-strip a{position:relative;display:flex;flex-direction:column;gap:4px;height:100%;padding:14px 16px;border-radius:14px;border:1.5px solid rgba(207,242,90,.35);color:#FFFFFF;text-decoration:none;background:rgba(255,255,255,.04)}
.hw-strip a:hover{border-color:#CFF25A;background:rgba(207,242,90,.08);color:#FFFFFF}
.hw-strip b{font-family:'IBM Plex Mono',monospace;font-size:12px;color:#CFF25A;font-weight:600}
.hw-strip span{font-weight:700;font-size:16px;line-height:1.25}
.hw-strip small{font-size:13px;color:#B9CBC2}
.hw-strip li:not(:last-child) a::after{content:"→";position:absolute;right:-9px;top:50%;transform:translate(50%,-50%);color:#CFF25A;font-size:14px;z-index:1}
@media (max-width:900px){.hw-strip{grid-template-columns:minmax(0,1fr);gap:8px}.hw-strip a{flex-direction:row;align-items:baseline;gap:10px;padding:12px 14px}.hw-strip small{margin-left:auto;white-space:nowrap}.hw-strip li:not(:last-child) a::after{display:none}}
.hw-st{scroll-margin-top:24px}

/* päis */
.hw-nocard{font-size:13px;color:#B9CBC2}

/* alustamine */
.hw-setup{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(24px,4vw,56px);align-items:start;margin-top:34px}
.hw-sc{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.hw-c{display:grid;grid-template-columns:40px minmax(0,1fr);gap:14px;padding:18px 20px;border-radius:16px;background:#FFFFFF;border:1.5px solid #0F1D18}
.hw-cn{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#CFF25A;border:1.5px solid #0F1D18;font-weight:700;font-size:17px}
.hw-c h3{margin:4px 0 0;font-size:19px;line-height:1.25;letter-spacing:-0.01em}
.hw-c p{margin:6px 0 0;font-size:15.5px;line-height:1.55;color:#33443D}
.hw-cap{display:block;margin-top:16px;font-size:12px;color:#56675F}
.hw-helpline{margin:28px 0 0;padding:16px 20px;border-radius:14px;background:#E5F0E8;border-left:4px solid #12795A;font-size:16px;line-height:1.55;max-width:880px}
.hw-helpline a{color:#12795A;font-weight:600;white-space:nowrap}

/* töövoo lõpp */
.hw-merit{margin:clamp(40px,6vw,72px) 0 0;padding:18px 22px;border-radius:14px;border:1.5px dashed #9DB0A6;font-size:17px;line-height:1.55;max-width:880px}
.hw-next{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(24px,4vw,56px);align-items:center;margin-top:clamp(40px,6vw,72px)}

/* võrdlus */
.hw-cmp{margin-top:30px;border-radius:18px;overflow:hidden;border:1.5px solid #0F1D18;background:#FFFFFF;max-width:980px}
.hw-cr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.hw-cr>span{padding:14px 20px;font-size:16px;line-height:1.45;border-top:1px dashed #C3CEC8}
.hw-cr>span:first-child{color:#56675F;background:#F1F3EF;border-right:1px solid #D2DBD5}
.hw-cr>span:last-child{color:#0F1D18;font-weight:500}
.hw-ch2>span{border-top:0;font-family:'IBM Plex Mono',monospace;font-size:12px;letter-spacing:.06em;text-transform:uppercase;font-weight:600}
.hw-ch2>span:last-child{background:#0F2E24;color:#CFF25A}

/* kalkulaatori numbriväljad */
.hw-num{display:inline-flex;align-items:center;gap:6px;padding:0 10px;height:38px;border-radius:10px;background:#E5F0E8;border:1.5px solid transparent}
.hw-num:focus-within{border-color:#12795A;background:#FFFFFF}
.hw-num input{width:64px;border:0;background:transparent;font:600 16px/1 'IBM Plex Mono',monospace;text-align:right;color:#0F1D18;-moz-appearance:textfield}
.hw-num input:focus{outline:none}
.hw-num input::-webkit-outer-spin-button,.hw-num input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.hw-num i{font-style:normal;font-family:'IBM Plex Mono',monospace;font-size:14px;color:#56675F}
.hw-o.hot strong{font-size:clamp(26px,2.6vw,36px)}

/* alustamisabi */
.hw-help{display:flex;justify-content:space-between;align-items:flex-end;gap:24px 40px;flex-wrap:wrap;padding:clamp(24px,3.4vw,40px);border-radius:20px;background:#0F2E24;color:#FFFFFF}
.hw-help .h2{color:#FFFFFF;margin:0}
.hw-help .it{color:#CFF25A}
.hw-help p{margin:14px 0 0;max-width:640px;font-size:17px;line-height:1.6;color:#D5E2DB}
@media (max-width:900px){.hw-cr{grid-template-columns:minmax(0,1fr)}.hw-cr>span:first-child{border-right:0;padding-bottom:6px}.hw-cr>span:last-child{border-top:0;padding-top:0}.hw-cr>span:first-child::before{content:"Käsitsi: ";font-weight:600}.hw-cr>span:last-child::before{content:"Meil: ";font-weight:600;color:#12795A}.hw-ch2{display:none}.hw-cr:nth-child(2)>span:first-child{border-top:0}}
@media (max-width:900px){.hw-setup,.hw-next{grid-template-columns:minmax(0,1fr)}.hw-next .hw-tx{order:0}.hw-help .btn{white-space:normal;height:auto;min-height:54px;padding:12px 24px}}

/* uus keel (nagu avalehel ja võimaluste lehel): nööril märkmed, teibitud pildid nihkevarjuga, numbrid siltidena, ilma siserõngasteta */
.hw2 .btn::after,.hw2 .paper.dash::after{display:none}
.hw2 .pbody .btn{box-shadow:3px 3px 0 #0F1D18}
.hw2 .hw-help .btn{box-shadow:3px 3px 0 #CFF25A;background:#CFF25A}

/* päise sammud nööril */
.hw2 .hw-strip{position:relative;gap:clamp(16px,3vw,44px);margin-top:40px;padding-top:30px}
.hw2 .hw-strip::before{content:"";position:absolute;left:-2%;right:-2%;top:0;height:38px;border-bottom:2.5px solid #CFF25A;border-radius:0 0 50% 50%/0 0 100% 100%;pointer-events:none}
.hw2 .hw-strip li{position:relative;z-index:1}
.hw2 .hw-strip li:nth-child(1){transform:rotate(-1.4deg);margin-top:4px}
.hw2 .hw-strip li:nth-child(2){transform:rotate(1deg);margin-top:16px}
.hw2 .hw-strip li:nth-child(3){transform:rotate(-.6deg);margin-top:4px}
.hw2 .hw-strip a{gap:2px;padding:22px 18px 16px;border:0;border-radius:2px;background:#FFFFFF;color:#0F1D18;box-shadow:0 14px 24px rgba(0,0,0,.3);transition:transform .2s}
.hw2 .hw-strip li:nth-child(2) a{background:#CFF25A}
.hw2 .hw-strip a::before{content:"";position:absolute;top:-10px;left:50%;width:56px;height:18px;transform:translateX(-50%) rotate(-4deg);background:rgba(207,242,90,.9)}
.hw2 .hw-strip li:nth-child(2) a::before{background:rgba(255,255,255,.75)}
.hw2 .hw-strip a:hover{background:#FFFFFF;color:#0F1D18;transform:translateY(-3px)}
.hw2 .hw-strip li:nth-child(2) a:hover{background:#CFF25A}
.hw2 .hw-strip li:not(:last-child) a::after{display:none}
.hw2 .hw-strip b{font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-weight:400;font-size:40px;line-height:.9;color:#12795A}
.hw2 .hw-strip li:nth-child(2) b{color:#0F2E24}
.hw2 .hw-strip span{font-size:18px;letter-spacing:-.01em}
.hw2 .hw-strip small{font-size:13.5px;color:#3D4E46}
.hw2 .hw-strip li:nth-child(2) small{color:#0F2E24}

/* alustamise märkmed */
.hw2 .hw-setup{margin-top:38px}
.hw2 .hw-sc{gap:18px}
.hw2 .hw-c{position:relative;grid-template-columns:44px minmax(0,1fr);border-radius:4px 10px 10px 4px;box-shadow:4px 4px 0 #0F2E24}
.hw2 .hw-c:nth-child(odd){transform:rotate(-.5deg)}
.hw2 .hw-c:nth-child(even){transform:rotate(.5deg)}
.hw2 .hw-cn{width:auto;height:auto;border:0;border-radius:0;background:none;font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-weight:400;font-size:40px;line-height:.9;color:#12795A}
.hw2 .hw-c h3{margin-top:2px}
.hw2 .hw-c p{margin-top:4px}
.hw2 .hw-helpline{display:inline-block;margin-top:30px;padding:12px 18px;border:1.5px dashed #9DB0A6;border-left:1.5px dashed #9DB0A6;border-radius:8px;background:none;font-size:15.5px}

/* pildid teibitud paberina */
.hw2 .hw-bw{overflow:visible;border-radius:10px;box-shadow:8px 8px 0 #0F2E24}
.hw2 .hw-bw::before{display:none}
.hw2 .hw-bw::after{content:"";position:absolute;top:-12px;left:44%;width:76px;height:22px;transform:rotate(-4deg);background:rgba(207,242,90,.9);pointer-events:none}
.hw2 .hw-bw img{border-radius:9px}
.hw2 .hw-ph{box-shadow:6px 6px 0 #CFF25A}

/* töövoo numbrid siltidena */
.hw2 .hw-n{position:relative;width:auto;height:46px;min-width:88px;padding:0 18px 0 32px;border:0;border-radius:0;box-shadow:none;margin-bottom:20px;background-color:#CFF25A;font-family:'IBM Plex Mono',monospace;font-stretch:100%;font-weight:600;font-size:20px;letter-spacing:.02em;transform:rotate(-2deg);
  clip-path:polygon(16px 0,100% 0,100% 100%,16px 100%,0 50%);outline:1.5px solid #0F1D18;outline-offset:-1.5px;
  background-image:linear-gradient(to bottom right,transparent 50%,#0F1D18 50%,#0F1D18 calc(50% + 1.7px),transparent calc(50% + 1.7px)),linear-gradient(to top right,transparent 50%,#0F1D18 50%,#0F1D18 calc(50% + 1.7px),transparent calc(50% + 1.7px));background-size:16px 50%;background-position:0 0,0 100%;background-repeat:no-repeat}
.hw2 .hw-n::before{content:"";position:absolute;left:14px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;border:1.5px solid #0F1D18;background:#FFFFFF}
.hw2 .hw-st:nth-child(even) .hw-n{transform:rotate(1.6deg)}
.hw2 .hw-tx p{font-size:17.5px;max-width:44ch}
.hw2 .hw-tx .hw-res{position:relative;margin-top:20px;padding:12px 16px 12px 42px;border:1.5px solid #0F1D18;border-left:1.5px solid #0F1D18;border-radius:4px 10px 10px 4px;background:#FFFFFF;box-shadow:4px 4px 0 #0F2E24;font-size:15.5px;font-weight:500}
.hw2 .hw-tx .hw-res::before{content:"";position:absolute;left:14px;top:50%;width:16px;height:12px;margin-top:-6px;background:#12795A;clip-path:polygon(5px 0,100% 0,100% 100%,5px 100%,0 50%)}
.hw2 .hw-merit{margin:18px 0 0;padding:10px 14px;border:1.5px dashed #9DB0A6;border-radius:8px;font-size:15px;max-width:none}
.hw2 .hw-next .hw-tx p.hw-merit{font-size:15px}

/* võrdlus */
.hw2 .hw-cmp{border-radius:10px;overflow:hidden;box-shadow:8px 8px 0 #0F2E24;max-width:900px}
.hw2 .hw-cr>span{position:relative;padding:14px 20px 14px 44px}
.hw2 .hw-cr>span:first-child{text-decoration:line-through;text-decoration-color:rgba(86,103,95,.45);text-decoration-thickness:1.5px}
.hw2 .hw-cr>span:first-child::after{content:"×";position:absolute;left:18px;top:13px;font-weight:700;color:#9DB0A6;text-decoration:none}
.hw2 .hw-cr>span:last-child::after{content:"";position:absolute;left:18px;top:19px;width:14px;height:11px;background:#12795A;clip-path:polygon(4px 0,100% 0,100% 100%,4px 100%,0 50%)}
.hw2 .hw-ch2>span{padding:12px 20px;text-decoration:none !important}
.hw2 .hw-ch2>span::after{display:none}

/* kalkulaator */
.hw2 .hw-calc{border-radius:10px;box-shadow:8px 8px 0 #0F2E24;margin-top:44px}
.hw2 .hw-calc::before{content:"";position:absolute;top:-12px;left:22%;width:84px;height:22px;transform:rotate(-3deg);background:rgba(207,242,90,.9);pointer-events:none}
.hw2 .hw-o{border-radius:8px}
.hw2 .hw-o.hot{box-shadow:5px 5px 0 #CFF25A}

/* abi ja kohandamine */
.hw2 .hw-help{align-items:center;border-radius:10px;box-shadow:8px 8px 0 #CFF25A}
.hw2 .hw-help > div:first-child{max-width:720px}
.hw-tk{display:inline-block;margin-bottom:12px;padding:4px 10px;background:#CFF25A;color:#0F1D18;font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.hw-hb{display:flex;flex-direction:column;align-items:flex-start;gap:16px}

@media (max-width:900px){
  .hw2 .hw-strip{padding-top:6px;gap:18px}
  .hw2 .hw-strip::before{display:none}
  .hw2 .hw-strip li{margin-top:0 !important}
  .hw2 .hw-strip a{padding:16px 16px 14px;align-items:center}
  .hw2 .hw-strip b{font-size:30px;min-width:24px}
  .hw2 .hw-strip span{font-size:16px}
  .hw2 .hw-strip small{display:none}
  .hw2 .hw-bw{box-shadow:5px 5px 0 #0F2E24}
  .hw2 .hw-cmp,.hw2 .hw-calc{box-shadow:5px 5px 0 #0F2E24}
  .hw2 .hw-cr>span:first-child::before,.hw2 .hw-cr>span:last-child::before{content:none}
  .hw2 .hw-cr>span:first-child{padding-bottom:4px}
  .hw2 .hw-cr>span:last-child{padding-top:4px;padding-bottom:14px}
  .hw2 .hw-cr>span:last-child::after{top:9px}
  .hw2 .hw-ch2{display:none}
  .hw2 .hw-help{box-shadow:5px 5px 0 #CFF25A}
}
@media (prefers-reduced-motion:reduce){.hw2 .hw-strip li,.hw2 .hw-c,.hw2 .hw-n{transform:none}}

/* sildid (variant A): SVG ots puhta joonega, ümar saba, nihkevari, auk otsas */
.hw2 .hw-n{margin-left:16px;border:1.5px solid #0F1D18;border-left:0;border-radius:0 8px 8px 0;clip-path:none;outline:0;background-image:none;box-shadow:none;filter:drop-shadow(3px 3px 0 #0F2E24);}
.hw2 .hw-n::before{content:"";position:absolute;left:-16px;top:-1.5px;bottom:-1.5px;width:16px;height:auto;margin:0;border:0;border-radius:0;background:var(--tip-w) 0 0/100% 100% no-repeat}
.hw2 .hw-n::after{content:"";position:absolute;left:-5px;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;border:1.5px solid #0F1D18;background:#F1F3EF;box-sizing:border-box;pointer-events:none}
.hw2 .hw-n{min-width:0;padding:0 18px 0 14px}
.hw2 .hw-n::before{background-image:var(--tip-l)}

/* tumedad sildid (variant C): numbrid laimirohelise täidetud sildina */
.hw2 .hw-n{background-color:#0F2E24;border-color:#0F2E24;color:#FFFFFF;filter:none}
.hw2 .hw-n::before{background-image:var(--tip-d)}
.hw2 .hw-n::after{border:0;background:#CFF25A}
.hw2 .hw-n{background-color:#CFF25A;border-color:#CFF25A;color:#0F1D18}
.hw2 .hw-n::before{background-image:var(--tip-ll)}
.hw2 .hw-n::after{background:#0F2E24}
