/* =========================================================
   All in Wood — Core 0.2.1: финальный блок с формой заявки
   Токены — из базового CSS сайта (fallback на случай отсутствия).
   Элементы формы — через section.aiw-lead .aiw-lead__form …, чтобы перебить
   стили темы Hello (reset.css) и глобальные стили Elementor Kit для input/button.
   ========================================================= */
.aiw-lead{
  padding:0 16px clamp(16px, 2vw, 32px); box-sizing:border-box; scroll-margin-top:96px;
  font-family:var(--aiw-font-text,"Golos Text",system-ui,sans-serif); color:#fff;
}
.aiw-lead *, .aiw-lead *::before, .aiw-lead *::after{ box-sizing:border-box; }
.aiw-lead [hidden]{ display:none !important; }

.aiw-lead__panel{
  position:relative; overflow:hidden; isolation:isolate;
  border-radius:var(--aiw-r-lg,22px); background:var(--aiw-ink,#161616);
  padding:clamp(48px, 6.4vw, 112px) clamp(24px, 4.4vw, 72px);
}
.aiw-lead__rings{
  position:absolute; z-index:-1; right:clamp(-220px, -10vw, -120px); top:clamp(-200px, -9vw, -110px);
  width:clamp(420px, 40vw, 620px); height:auto; color:rgba(255,255,255,.07); pointer-events:none;
}
.aiw-lead__rings path{ fill:none; stroke:currentColor; stroke-width:1.2; vector-effect:non-scaling-stroke; }

.aiw-lead__inner{
  max-width:var(--aiw-container,1320px); margin:0 auto;
  display:grid; grid-template-columns:minmax(0,6fr) minmax(0,5fr); gap:clamp(40px, 6vw, 112px); align-items:start;
}

/* Левая колонка */
.aiw-lead__eyebrow{ display:block; margin-bottom:22px; font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:rgba(255,255,255,.5); }
.aiw-lead__title{
  margin:0; font-family:var(--aiw-font-head,"Geologica",system-ui,sans-serif); font-weight:300; color:#fff;
  font-size:clamp(44px, 5.2vw + 4px, 96px); line-height:1.02; letter-spacing:-.05em;
}
.aiw-lead__text{ margin:28px 0 0; max-width:420px; font-size:16px; line-height:1.6; color:rgba(255,255,255,.7); }
.aiw-lead__alt{ margin:28px 0 0; font-size:15px; color:rgba(255,255,255,.55); }
.aiw-lead__alt a{ color:#fff !important; text-decoration:none; border-bottom:1px solid rgba(255,255,255,.3); transition:border-color .25s ease; }
.aiw-lead__alt a:hover{ border-color:#fff; }

/* Форма: поля-линии без «коробок» */
.aiw-lead__form{ display:flex; flex-direction:column; gap:26px; }
section.aiw-lead .aiw-lead__trap{ position:absolute !important; left:-9999px !important; width:1px; height:1px; overflow:hidden; }
.aiw-lead__field{ display:flex; flex-direction:column; gap:8px; }
section.aiw-lead .aiw-lead__form .aiw-lead__field label{ font-size:13px; color:rgba(255,255,255,.55); }
.aiw-lead__opt{ margin-left:6px; color:rgba(255,255,255,.35); }
section.aiw-lead .aiw-lead__form .aiw-lead__field input,
section.aiw-lead .aiw-lead__form .aiw-lead__field textarea{
  width:100%; margin:0; padding:8px 0 12px; border:0; border-bottom:1px solid rgba(255,255,255,.22); border-radius:0;
  background:transparent; box-shadow:none; outline:none; color:#fff;
  font-family:var(--aiw-font-text,"Golos Text",system-ui,sans-serif); font-size:20px; line-height:1.35;
  transition:border-color .25s ease;
  -webkit-appearance:none; appearance:none;
}
section.aiw-lead .aiw-lead__form .aiw-lead__field textarea{ resize:none; min-height:44px; overflow:hidden; }
section.aiw-lead .aiw-lead__form .aiw-lead__field input::placeholder{ color:rgba(255,255,255,.28); }
section.aiw-lead .aiw-lead__form .aiw-lead__field input:focus,
section.aiw-lead .aiw-lead__form .aiw-lead__field textarea:focus{ border-bottom-color:#fff; }
section.aiw-lead .aiw-lead__form .aiw-lead__field input:-webkit-autofill{ -webkit-text-fill-color:#fff; transition:background-color 9999s ease 0s; }
section.aiw-lead .aiw-lead__form .aiw-lead__field.is-invalid input{ border-bottom-color:#E3A08A; }

.aiw-lead__err{ min-height:0; font-size:13px; color:#E9B4A3; }
.aiw-lead__err:empty{ display:none; }

/* Согласие */
.aiw-lead__consent{ display:grid; grid-template-columns:22px 1fr; column-gap:12px; align-items:start; margin-top:2px; }
section.aiw-lead .aiw-lead__form .aiw-lead__consent input{
  -webkit-appearance:none; appearance:none; margin:1px 0 0; width:22px; height:22px; flex:none; cursor:pointer;
  border:1px solid rgba(255,255,255,.4); border-radius:6px; background:transparent;
  display:grid; place-content:center; transition:background .2s ease, border-color .2s ease;
}
section.aiw-lead .aiw-lead__form .aiw-lead__consent input::after{
  content:""; width:11px; height:6px; border:2px solid var(--aiw-ink,#161616); border-top:0; border-right:0;
  transform:rotate(-45deg) translate(1px,-1px) scale(0); transition:transform .2s ease;
}
section.aiw-lead .aiw-lead__form .aiw-lead__consent input:checked{ background:#fff; border-color:#fff; }
section.aiw-lead .aiw-lead__form .aiw-lead__consent input:checked::after{ transform:rotate(-45deg) translate(1px,-1px) scale(1); }
section.aiw-lead .aiw-lead__form .aiw-lead__consent input:focus-visible{ outline:2px solid #fff; outline-offset:3px; }
section.aiw-lead .aiw-lead__form .aiw-lead__consent label{ font-size:13px; line-height:1.5; color:rgba(255,255,255,.55); cursor:pointer; }
section.aiw-lead .aiw-lead__form .aiw-lead__consent label a{ color:rgba(255,255,255,.85) !important; text-decoration:underline; text-underline-offset:2px; }
.aiw-lead__consent .aiw-lead__err{ grid-column:2; margin-top:6px; }
section.aiw-lead .aiw-lead__form .aiw-lead__consent.is-invalid input{ border-color:#E3A08A; }

/* Кнопка */
section.aiw-lead .aiw-lead__form .aiw-lead__btn{
  margin-top:6px; width:100%; height:60px; padding:0 26px; border:0; border-radius:var(--aiw-r-pill,999px); cursor:pointer;
  display:flex; align-items:center; justify-content:space-between;
  background:#fff; color:var(--aiw-ink,#161616);
  font-family:var(--aiw-font-text,"Golos Text",system-ui,sans-serif); font-size:16px; font-weight:500;
  transition:background .25s ease, opacity .25s ease;
}
section.aiw-lead .aiw-lead__form .aiw-lead__btn:hover{ background:#ECEAE6; }
section.aiw-lead .aiw-lead__form .aiw-lead__btn:focus-visible{ outline:2px solid #fff; outline-offset:3px; }
section.aiw-lead .aiw-lead__form .aiw-lead__btn-arrow{ font-size:18px; transition:transform .3s var(--aiw-ease,ease); }
section.aiw-lead .aiw-lead__form .aiw-lead__btn:hover .aiw-lead__btn-arrow{ transform:translateX(4px); }
section.aiw-lead .aiw-lead__form .aiw-lead__btn[disabled]{ opacity:.6; cursor:default; }

/* Сообщения */
.aiw-lead__msg{ margin:0; padding:12px 16px; border-radius:var(--aiw-r-sm,12px); font-size:14px; line-height:1.5; background:rgba(255,255,255,.08); color:rgba(255,255,255,.85); }
.aiw-lead__msg.is-error{ background:rgba(227,160,138,.14); color:#F0C6B8; }
.aiw-lead__done{ padding:8px 0; }
.aiw-lead__done-mark{
  width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:#fff; color:var(--aiw-ink,#161616); font-size:22px;
}
.aiw-lead__done-title{ margin:24px 0 8px; font-family:var(--aiw-font-head,"Geologica",system-ui,sans-serif); font-size:28px; letter-spacing:-.02em; color:#fff; }
.aiw-lead__done-text{ margin:0; max-width:360px; font-size:16px; line-height:1.55; color:rgba(255,255,255,.7); }

/* ---------- Tablet ---------- */
@media (max-width:1099px){
  .aiw-lead__inner{ grid-template-columns:1fr; gap:48px; }
  .aiw-lead__box{ max-width:560px; }
}
/* ---------- Mobile ---------- */
@media (max-width:767px){
  .aiw-lead{ padding-left:10px; padding-right:10px; }
  .aiw-lead__panel{ border-radius:var(--aiw-r-md,18px); padding:44px 20px 28px; }
  .aiw-lead__inner{ gap:36px; }
  .aiw-lead__title{ font-size:clamp(40px, 12vw, 52px); }
  .aiw-lead__text{ margin-top:18px; font-size:15px; }
  .aiw-lead__alt{ margin-top:18px; }
  .aiw-lead__form{ gap:22px; }
  section.aiw-lead .aiw-lead__form .aiw-lead__field input, section.aiw-lead .aiw-lead__form .aiw-lead__field textarea{ font-size:18px; }
  section.aiw-lead .aiw-lead__form .aiw-lead__btn{ height:56px; }
  .aiw-lead__rings{ right:-200px; top:-160px; width:400px; }
}
@media (prefers-reduced-motion:reduce){
  .aiw-lead *{ transition:none !important; }
}
