/* Форма заявки: плавающие подписи, линия фокуса растёт, чипы, площадь ползунком, фото, успех с галочкой. */
.lead { display: grid; gap: 18px; }
.lf { position: relative; padding-top: 18px; }
.lf input { width: 100%; border: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit;
  font: 500 20px/1.3 var(--body); padding: 8px 0 10px; outline: none; border-radius: 0; }
.lf label { position: absolute; left: 0; top: 26px; font-size: 18px; opacity: .6; pointer-events: none; transform-origin: 0 0; transition: transform .35s var(--ease), opacity .35s; }
.lf input:focus + label, .lf input:not(:placeholder-shown) + label { transform: translateY(-24px) scale(.72); opacity: .85; }
.lf-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.lf input:focus ~ .lf-line { transform: scaleX(1); }
.lf.bad .lf-line { transform: scaleX(1); background: #e0533d; }
.lf-err { display: block; min-height: 0; color: #f08a7e; font-size: 14px; padding-top: 6px; }
.lf-err:empty { display: none; }
.lchips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lchips legend { padding: 0 0 8px; font-size: 14px; opacity: .7; }
.lchips label { cursor: pointer; }
.lchips input { position: absolute; opacity: 0; pointer-events: none; }
.lchips span { display: inline-block; padding: 10px 16px; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); border-radius: 999px; font-size: 15px;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.lchips label:hover span { border-color: currentColor; }
.lchips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lchips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.lrange { display: grid; gap: 10px; }
.lrange label { display: flex; justify-content: space-between; font-size: 14px; opacity: .8; }
.lrange output { font-family: var(--mono); }
.lrange input { width: 100%; accent-color: var(--accent); }
.ldrop { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px dashed color-mix(in srgb, currentColor 35%, transparent); border-radius: 14px; cursor: pointer; transition: border-color .3s, background-color .3s; }
.ldrop:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ldrop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ldrop i { font-size: 26px; color: var(--accent); }
.lsubmit { min-height: 58px; font-size: 17px; }
.lsubmit .ls-spin { display: none; width: 20px; height: 20px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: lspin .7s linear infinite; }
.lsubmit.busy .ls-spin { display: inline-block; }
.lsubmit.busy .ls-txt { opacity: .6; }
@keyframes lspin { to { transform: rotate(360deg); } }
.lnote { font-size: 14px; opacity: .65; }
.lead-ok { display: grid; gap: 12px; justify-items: start; }
.lead-ok svg { width: 64px; height: 64px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lead-ok circle { stroke-dasharray: 151; }
.lead-ok path { stroke-dasharray: 40; }
.lead-ok h3 { font-size: 30px; }
.lrow { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: -8px; padding-bottom: 2px; }
.lrow::-webkit-scrollbar { display: none; }
.lrow button { flex: none; border: 1px solid color-mix(in srgb, currentColor 45%, transparent); background: color-mix(in srgb, currentColor 6%, transparent); color: inherit; border-radius: 999px; padding: 8px 14px; font-size: 14px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.lrow button:hover { border-color: currentColor; }
.lrow button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.lrow-f { flex-wrap: wrap; } /* без прокрутки вбок: иначе края вариантов срезаются */
.lrow-f::-webkit-scrollbar { display: none; }
.lrow-f label { flex: none; }
.lead > *, .lchips { min-width: 0; }
[data-form], .form-box { min-width: 0; }
.lchips label, .ldrop { position: relative; } /* скрытые input держим внутри, иначе на телефоне страница становится шире экрана */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-ok .ok-sent { display: none; }
.lead-ok.sent .ok-sent { display: block; }
.lead-ok.sent .ok-tg { display: none; }
/* v2: места кнопками для выбранного материала, подсказка к телефону */
.lplaces .lrow { margin-top: 0; flex-wrap: wrap; overflow: visible; }
.lplaces .lrow button { padding: 10px 16px; font-size: 15px; background: none; border-color: color-mix(in srgb, currentColor 28%, transparent); }
.lf-hint { display: block; padding-top: 6px; font-size: 13px; opacity: .55; }
.lf.bad .lf-hint { display: none; }
.lnote { line-height: 1.5; }
.lf-own { margin-top: -6px; }
.lplaces .lrow button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); opacity: 1; }
