/* Формы заявок kwas.ru (плагин st-leads). Вид — как форма в утверждённой главной: ржаной фон, мёд, Unbounded / Golos Text.
   Токены берутся из темы (--rye, --honey, --foam, --cream, --ink), запасные значения — свои. */
.stl { --stl-bg: var(--rye, #160c06); --stl-fg: var(--foam, #f6ead2); --stl-accent: var(--honey, #f0a93a); --stl-card: var(--cream, #fbf3e4); --stl-ink: var(--ink, #2a1a0e); --stl-muted: rgba(246,234,210,.72); --stl-line: rgba(246,234,210,.16); --stl-err: #ff9b85; --stl-ok: #39b26b; --stl-disp: var(--f-disp, "Unbounded", sans-serif); --stl-body: var(--f-body, "Golos Text", system-ui, sans-serif); container-type: inline-size; position: relative; box-sizing: border-box; width: 100%; padding: clamp(22px, 3vw, 38px); border-radius: 30px; background: var(--stl-bg); color: var(--stl-fg); font: 400 16px/1.5 var(--stl-body); }
.stl *, .stl *::before, .stl *::after { box-sizing: border-box; }
.stl [hidden] { display: none !important; }
.stl--light { --stl-bg: var(--cream, #fbf3e4); --stl-fg: var(--ink, #2a1a0e); --stl-card: #fff; --stl-muted: rgba(42,26,14,.7); --stl-line: rgba(42,26,14,.18); --stl-err: #c9291c; box-shadow: inset 0 0 0 1px rgba(42,26,14,.1); }
.stl__title { margin: 0 0 18px; font: 800 22px/1.15 var(--stl-disp); text-transform: uppercase; }
.stl__fields { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
.stl__f { min-width: 0; margin-bottom: 12px; }
@container (min-width: 520px) { .stl__fields { grid-template-columns: 1fr 1fr; } .stl__f--wide { grid-column: 1 / -1; } }
.stl__label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.stl__label em { font-style: normal; font-weight: 400; color: var(--stl-muted); }
.stl__req { margin-left: 3px; color: var(--stl-accent); }
.stl__input { display: block; width: 100%; min-height: 56px; padding: 0 18px; border: 1px solid var(--stl-line); border-radius: 14px; background: rgba(246,234,210,.06); color: inherit; font: inherit; outline: none; transition: border-color .3s, background .3s; }
.stl--light .stl__input { background: #fff; }
.stl__input:focus { border-color: var(--stl-accent); background: rgba(246,234,210,.1); }
.stl--light .stl__input:focus { background: #fff; }
.stl__input::placeholder { color: rgba(246,234,210,.5); }
.stl--light .stl__input::placeholder { color: rgba(42,26,14,.4); }
.stl__input--area { min-height: 96px; padding: 14px 18px; resize: vertical; }
.stl__input[aria-invalid="true"] { border-color: var(--stl-err); }
.stl__input:focus-visible, .stl__submit:focus-visible, .stl-agree input:focus-visible, .stl__again:focus-visible { outline: 3px solid var(--stl-accent); outline-offset: 3px; }
.stl input[type="date"] { color-scheme: dark; }
.stl--light input[type="date"] { color-scheme: light; }
.stl__select { position: relative; }
.stl__select select { appearance: none; padding-right: 44px; }
.stl__select select option { background: var(--stl-bg); color: var(--stl-fg); }
.stl__select::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--stl-accent); border-bottom: 2px solid var(--stl-accent); transform: rotate(45deg); pointer-events: none; }
.stl__tip { margin: 6px 0 0; font-size: 13px; color: var(--stl-err); }
.stl__tip--wide { grid-column: 1 / -1; margin: -4px 0 12px; }
.stl__hint { margin: 6px 0 0; font-size: 13px; color: var(--stl-muted); }
.stl__error { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: rgba(255,155,133,.12); border: 1px solid var(--stl-err); color: var(--stl-err); font-size: 14px; font-weight: 600; }
.stl__product { margin: -6px 0 6px; padding: 10px 14px; border-radius: 12px; background: rgba(240,169,58,.14); color: var(--stl-accent); font-weight: 600; font-size: 15px; }
.stl--light .stl__product { color: #8a5a10; }
.stl__product b { font-weight: 600; }

/* Способ ответа: плитки с иконками (MAX и Telegram — фирменные файлы) */
.stl-ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 4px; }
.stl-ways__item { cursor: pointer; }
.stl-ways__item input { position: absolute; opacity: 0; pointer-events: none; }
.stl-ways__item span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 2px solid transparent; border-radius: 14px; background: var(--stl-card); color: var(--stl-ink); font-size: 12px; font-weight: 600; transition: border-color .3s, transform .3s cubic-bezier(.22,.8,.24,1); }
.stl-ways__item img, .stl-ways__item svg { width: 28px; height: 28px; }
.stl-ways__item input:checked + span { border-color: var(--stl-accent); transform: translateY(-3px); }
.stl-ways__item input:focus-visible + span { outline: 3px solid var(--stl-accent); outline-offset: 2px; }
@container (max-width: 420px) { .stl-ways { grid-template-columns: repeat(2, 1fr); } }

/* Согласие: своя галочка, не отмечена заранее */
.stl-agree { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 4px; font-size: 14px; color: var(--stl-muted); cursor: pointer; }
.stl-agree input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--stl-accent); }
.stl-agree a { color: var(--stl-fg); text-decoration: underline; text-underline-offset: 3px; }
.stl-agree--soft { margin-top: 4px; }

/* Кнопка */
.stl__submit { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; margin-top: 14px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--stl-accent); color: var(--stl-bg); font: 700 15px/1.1 var(--stl-disp); letter-spacing: .02em; cursor: pointer; transition: box-shadow .4s, transform .3s; }
.stl--light .stl__submit { color: var(--stl-ink); }
.stl__submit:hover { box-shadow: 0 14px 40px rgba(240,169,58,.3); transform: translateY(-1px); }
.stl__submit:disabled { opacity: .7; cursor: progress; transform: none; }
.stl__spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: stl-spin .7s linear infinite; }
.stl.is-sending .stl__spinner { display: inline-block; }
@keyframes stl-spin { to { transform: rotate(360deg); } }

/* Окно успеха */
.stl__done:focus { outline: none; }
.stl__done { padding: 30px 6px; text-align: center; color: var(--stl-muted); animation: stl-in .5s cubic-bezier(.22,.8,.24,1); }
.stl__done-title { display: block; margin-bottom: 10px; font: 800 24px/1.2 var(--stl-disp); color: var(--stl-accent); }
.stl__done-title span { white-space: nowrap; }
.stl__done-text { margin: 0 0 8px; font-size: 17px; color: var(--stl-fg); }
.stl__done-hint { margin: 0 0 16px; font-size: 14px; }
.stl__done-links a { display: inline-flex; align-items: center; min-height: 48px; margin: 0 6px 8px; padding: 0 22px; border-radius: 999px; background: var(--stl-accent); color: var(--stl-bg); font-weight: 600; text-decoration: none; }
.stl__again { margin-top: 6px; padding: 10px 20px; border: 1px solid var(--stl-line); border-radius: 999px; background: transparent; color: var(--stl-fg); font: inherit; font-size: 14px; cursor: pointer; }
.stl__again:hover { border-color: var(--stl-accent); }
@keyframes stl-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stl *, .stl *::before, .stl *::after { animation: none !important; transition: none !important; } }
