html {
  scroll-behavior: smooth;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.payment-notice {
  width: min(620px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
}

.payment-notice::backdrop { background: rgb(23 21 18 / 72%); }
.payment-notice__body { position: relative; display: grid; gap: 24px; padding: clamp(28px, 5vw, 54px); }
.payment-notice__body h2 { max-width: 14ch; margin: 0; font-family: "Geologica", Arial, sans-serif; font-size: clamp(30px, 5vw, 48px); line-height: 1; }
.payment-notice__body p { max-width: 48ch; margin: 0; font-size: 18px; font-weight: 600; line-height: 1.45; }
.payment-notice__close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; color: currentColor; font: inherit; font-size: 34px; line-height: 1; cursor: pointer; }

:is(.lead-form, .poster-consultation__form, .offline__form) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 22px 18px;
}

:is(.lead-form-head, .poster-consultation__form-head, .offline__form-head) {
  gap: 12px;
}

:is(.lead-form-head, .poster-consultation__form-head, .offline__form-head) h3 {
  margin: 0;
  font-family: "Geologica", Arial, sans-serif;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  line-height: 1;
  text-wrap: pretty;
}

:is(.lead-form-head, .poster-consultation__form-head, .offline__form-head) p {
  max-width: 42ch;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
}

:is(.field, .poster-form-field, .offline__field) {
  display: grid;
  min-width: 0;
  gap: 8px;
}

:is(.field, .poster-form-field, .offline__field) label {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

:is(.field, .poster-form-field, .offline__field) :is(input, textarea, select) {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 72%, transparent);
  border-radius: 0;
  outline: 0;
  background-color: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
}

:is(.field, .poster-form-field, .offline__field) select {
  appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='m4 7 6 6 6-6' stroke='%23171512' stroke-width='1.6' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
}

:is(.field, .poster-form-field, .offline__field) textarea {
  min-height: 112px;
  resize: vertical;
}

:is(.field, .poster-form-field, .offline__field) :is(input, textarea)::placeholder {
  color: color-mix(in srgb, var(--ink) 62%, transparent);
  opacity: 1;
}

:is(.field, .poster-form-field, .offline__field) :is(input, textarea, select):hover {
  border-color: var(--ink);
}

:is(.field, .poster-form-field, .offline__field) :is(input, textarea, select):focus {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

:is(.field--wide, .poster-form-field--wide, .offline__field--wide),
:is(.form-consent, .poster-form-consent, .offline__consent),
:is(.form-actions, .poster-form-submit, .offline__submit),
:is(.form-status, .poster-form-status, .offline__status) {
  grid-column: 1 / -1;
}

:is(.form-consent label, .poster-form-consent, .offline__consent) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}

:is(.form-consent input, .poster-form-consent input, .offline__consent input) {
  width: 18px;
  height: 18px;
  flex: none;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

:is(.form-submit, .poster-form-submit, .offline__submit) {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  font-family: "Geologica", Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

:is(.form-submit, .poster-form-submit, .offline__submit) svg {
  width: 38px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

@media (max-width: 820px) {
  :is(.lead-form, .poster-consultation__form, .offline__form) {
    grid-template-columns: minmax(0, 1fr);
  }

  :is(.field, .poster-form-field, .offline__field) {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
