/* «До и после» на главной — ползунок сравнения */
.lav316-doposle{max-width:1200px;margin:0 auto;padding:40px 0 8px}
.lav316-doposle-head{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;margin:0 0 20px}
.lav316-doposle-head h2{margin:0;font-size:32px;line-height:40px;color:#172B36}
.lav316-doposle-head p{margin:0;font-size:16px;line-height:24px;color:#52646E}
.lav316-doposle-body{display:grid;grid-template-columns:480px minmax(0,1fr);gap:32px;align-items:start}
.lav316-cmp{position:relative;aspect-ratio:4/5;border-radius:24px;overflow:hidden;background:#EAF6FD;user-select:none;touch-action:pan-y;--pos:50%;box-shadow:0 12px 40px rgba(23,43,54,.12)}
.lav316-cmp img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.lav316-cmp-before{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--pos)) 0 0)}
.lav316-cmp-after{position:absolute;inset:0}
.lav316-cmp-tag{position:absolute;top:16px;padding:6px 12px;border-radius:999px;font-size:13px;font-weight:700;line-height:18px;letter-spacing:.02em;text-transform:uppercase;backdrop-filter:blur(6px)}
.lav316-cmp-tag-before{left:16px;background:rgba(23,43,54,.72);color:#fff}
.lav316-cmp-tag-after{right:16px;background:#1FB4FD;color:#fff}
.lav316-cmp-line{position:absolute;top:0;bottom:0;left:var(--pos);width:2px;margin-left:-1px;background:#fff;box-shadow:0 0 0 1px rgba(23,43,54,.15)}
.lav316-cmp-knob{position:absolute;top:50%;left:50%;width:48px;height:48px;margin:-24px 0 0 -24px;border-radius:50%;background:#fff;color:#049DEA;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(23,43,54,.25);transition:transform .15s}
.lav316-cmp:active .lav316-cmp-knob{transform:scale(1.06)}
.lav316-cmp-range{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;-webkit-appearance:none;appearance:none;background:transparent}
.lav316-cmp-range:focus-visible~.lav316-cmp-line .lav316-cmp-knob{outline:3px solid #049DEA;outline-offset:2px}
.lav316-doposle-list{display:grid;gap:10px;margin:0}
.lav316-doposle-item{display:flex!important;align-items:center;justify-content:flex-start!important;gap:14px;min-height:0;width:100%;padding:10px 14px 10px 10px;border:1px solid #DCE8F0;border-radius:16px;background:#fff;text-align:left;cursor:pointer;font:inherit;color:#172B36;transition:border-color .2s,background .2s,transform .2s}
.lav316-doposle-item:hover{border-color:#A9D9F7;transform:translateY(-1px)}
.lav316-doposle-item.is-active{border-color:#1FB4FD;background:#EAF6FD}
.lav316-doposle-item img{width:64px!important;height:80px!important;border-radius:10px;object-fit:cover;flex:0 0 64px}
.lav316-doposle-item span{display:flex;flex-direction:column;gap:2px;min-width:0}
.lav316-doposle-item b{font-size:16px;line-height:22px}
.lav316-doposle-item small{font-size:14px;line-height:20px;color:#52646E}
.lav316-doposle-cta{margin:12px 0 0}
.lav316-doposle-cta .btn{min-height:52px;padding:0 28px}
@media(max-width:1023px){.lav316-doposle-body{grid-template-columns:minmax(0,1fr)}.lav316-cmp{max-width:480px}}
@media(max-width:767px){.lav316-doposle{padding:28px 16px 0}.lav316-doposle-head h2{font-size:26px;line-height:32px}.lav316-doposle-body{gap:16px}.lav316-cmp{max-width:none;border-radius:18px}.lav316-doposle-list{grid-template-columns:1fr}.lav316-doposle-item img{width:56px;height:70px;flex-basis:56px}.lav316-doposle-cta .btn{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.lav316-doposle-item,.lav316-cmp-knob{transition:none}}
/* тёмная тема */
html[data-theme="dark"] .lav316-doposle-head h2{color:#E9EFF4}
html[data-theme="dark"] .lav316-doposle-item{background:#16212B;border-color:#27384A;color:#E9EFF4}
html[data-theme="dark"] .lav316-doposle-item.is-active{background:#15293A;border-color:#1FB4FD}
html[data-theme="dark"] .lav316-cmp-knob{background:#16212B;color:#4EC3FF}
