/* Синтаксис селектора */ #control1:focus + svg #target-path { opacity: 0.3; stroke: #ff4444; stroke-width: 5px; } /* Або через класи */ input.control:focus + svg .highlightable { fill: #ef4444; opacity: 0.6; }

Hello, World!