/* Экран 12 — Контакти. Десктоп: композиция 1024 (q = 1/1024 ширины блока, блок до 1440px).
   Мобайл (≤850): встроенная форма по контракту формы (префикс id contact). */
.s12 { position: relative; z-index: 1; background: var(--c-white); color: var(--c-black); font-family: var(--font-body); overflow: hidden; }
.s12 .s12-dot { color: var(--c-pink); }
.s12 .s12-mobile { display: none; }

.s12 .s12-desktop {
  --q: .09766cqw;
  position: relative; container-type: inline-size; isolation: isolate;
  width: min(100%, var(--content-max)); margin-inline: auto; aspect-ratio: 1024 / 486; overflow: hidden;
}
.s12 .s12-art { position: absolute; z-index: -1; top: calc(30 * var(--q)); right: 0; width: calc(606 * var(--q)); height: auto; pointer-events: none; }
.s12 .s12-title {
  position: absolute; z-index: 2; left: var(--page-gutter); top: calc(60 * var(--q)); margin: 0;
  font-family: var(--font-display); font-synthesis: none; font-size: calc(85 * var(--q)); font-weight: 900; letter-spacing: -.06em; line-height: .94; color: var(--c-text);
}
.s12 .s12-title > span { display: block; white-space: nowrap; }
.s12 .s12-title .s12-dot { display: inline; }
.s12 .s12-primary { position: absolute; z-index: 2; left: var(--page-gutter); top: calc(234 * var(--q)); margin: 0; font-size: calc(21 * var(--q)); line-height: 1.19; font-weight: 450; letter-spacing: -.025em; }
.s12 .s12-secondary { position: absolute; z-index: 2; left: var(--page-gutter); top: calc(293 * var(--q)); margin: 0; font-size: calc(16 * var(--q)); line-height: 1.2; font-weight: 400; color: var(--c-text-subtle); }
.s12 .s12-cta {
  position: absolute; z-index: 4; left: var(--page-gutter); top: calc(368 * var(--q)); width: calc(212 * var(--q)); height: calc(53 * var(--q));
  display: flex; align-items: center; justify-content: space-between; gap: calc(7 * var(--q)); padding: 0 calc(7 * var(--q)) 0 calc(27 * var(--q));
  border: 0; border-radius: 999px; background: var(--c-black); color: var(--c-white); cursor: pointer;
  font-family: var(--font-body); font-size: calc(16 * var(--q)); font-weight: 600; white-space: nowrap; box-shadow: 0 calc(16 * var(--q)) calc(28 * var(--q)) rgba(255, 45, 168, .15);
}
.s12 .s12-cta-arrow { flex: none; display: flex; align-items: center; justify-content: center; width: calc(41 * var(--q)); height: calc(41 * var(--q)); border-radius: 50%; background: var(--c-pink); font-size: calc(28 * var(--q)); font-weight: 400; line-height: 1; }
.s12 .s12-cta:hover, .s12 .lead-form__submit:hover { filter: brightness(1.07); }
.s12 .s12-cta:focus-visible, .s12 .lead-form__submit:focus-visible { outline: 3px solid var(--c-pink); outline-offset: 3px; }
.s12 .s12-reply { position: absolute; z-index: 2; left: calc(var(--page-gutter) + 236 * var(--q)); top: calc(374 * var(--q)); margin: 0; font-size: calc(11 * var(--q)); line-height: 1.19; color: var(--c-text-subtle); }

/* ---- Встроенная форма: свой слой поверх form.css ---- */
.s12 .lead-form { position: relative; z-index: 1; }
.s12 .lead-form__submit {
  display: flex; align-items: center; justify-content: center; gap: 20px; width: 100%; min-height: 68px; margin-top: 8px; border: 0; border-radius: 999px;
  background: var(--c-pink); color: var(--c-white); cursor: pointer; font-family: var(--font-body); font-size: 19px; font-weight: 600; box-shadow: 0 8px 20px rgba(255, 45, 168, .1);
}
@media (max-width: 850px) {
  .s12 { clip-path: inset(0 0 1px 0); } /* лаймовое пятно у низа не должно просачиваться на шов с подвалом */
  .s12 .s12-desktop { display: none; }
  .s12 .s12-mobile { display: block; position: relative; isolation: isolate; padding: 44px var(--page-gutter) 72px; }
  .s12 .s12-mobile > * { max-width: 520px; }
  .s12 .s12-title.s12-mobile-title { position: static; margin: 0 0 29px; font-size: clamp(38px, 11.8vw, 50px); line-height: 1.075; letter-spacing: -.045em; }
  .s12 .s12-mobile-contact { margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--c-line); display: grid; gap: 24px; position: relative; z-index: 1; }
  .s12 .s12-contact-line { display: flex; align-items: center; gap: 20px; }
  .s12 .s12-contact-line svg { width: 28px; height: 28px; flex: none; }
  .s12 .s12-contact-line strong { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 700; }
  .s12 .s12-contact-line span, .s12 .s12-contact-line a { color: var(--c-text); font-size: 16px; text-decoration: none; word-break: break-word; }
  .s12 .s12-lime-deco { position: absolute; z-index: -1; right: -62px; bottom: -70px; width: 150px; height: 165px; background: var(--c-lime); border-radius: 80% 8% 25% 25%; transform: rotate(34deg); pointer-events: none; }
}
@media (max-width: 365px) {
  .s12 .lead-form input[type="text"], .s12 .lead-form input[type="email"], .s12 .lead-form textarea { font-size: 15px; }
  .s12 .s12-title.s12-mobile-title { font-size: 38px; }
}
