.popup.popup_type_form_quarter {
  --price-form-duration: 560ms;
  align-items: stretch;
  justify-content: flex-end;
  width: 100vw;
  right: auto;
  opacity: 1;
  visibility: hidden;
  pointer-events: auto;
  outline: 0;
  background: transparent;
  transition: background-color 420ms ease;
}

.popup.popup_type_form_quarter:is(.popup_is-opened, .popup_is-closing) { visibility: visible; }
.popup.popup_type_form_quarter.popup_is-opened { background: rgba(0, 0, 0, 0.6); }
body:has(.popup_type_house.popup_is-opened) .popup.popup_type_form_quarter { background: transparent; }

.popup_type_form_quarter .popup__content_form_quarter {
  display: block;
  width: min(770px, calc(100% - 80px));
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  margin: 0;
  overflow: visible;
  background: #161d2d;
  color: #fafafa;
  font-family: "Manrope-Variable", var(--ff-main);
  transform: translateX(100%);
  transition: transform var(--price-form-duration) cubic-bezier(0.22, 0.78, 0.24, 1);
}

.popup_type_form_quarter.popup_is-opened .popup__content_form_quarter { transform: translateX(0); }

.popup_type_form_quarter .form__block {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  width: 100%;
  max-width: none;
  height: 100%;
  padding: 80px;
  margin: 0;
  gap: 56px;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior: contain;
  background: #161d2d;
  text-align: center;
}

.popup_type_form_quarter .form__block::-webkit-scrollbar { display: none; }

.popup_type_form_quarter .form__block > .title-gap { flex: 0 0 auto; width: 100%; gap: 24px; }
.popup_type_form_quarter .form__block .title { width: 100%; max-width: 610px; font-size: clamp(40px, 6vw, 60px); line-height: 1; font-weight: 400; font-variation-settings: "wght" 400; letter-spacing: -0.05em; color: #fafafa; }
.popup_type_form_quarter .subtitle { font-size: clamp(16px, 2vw, 20px); line-height: 1.4; color: #d1d4d8; }
.popup_type_form_quarter .form__block > .block-form { gap: 16px; }

.popup_type_form_quarter .popup__content_form_quarter .quarter__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  max-width: none;
  gap: 24px;
}

.popup_type_form_quarter .quarter__form > * { width: 100%; max-width: none; min-width: 0; }
.popup_type_form_quarter .quarter__form > :nth-child(n + 3) { grid-column: 1 / -1; }
.popup_type_form_quarter .input-style { flex: 0 0 56px; height: 56px; padding: 16px 24px; border-color: #fafafa; color: #fafafa; font: inherit; font-size: 16px; line-height: 24px; }
.popup_type_form_quarter .input-placeholder { top: 16px; left: 24px; font-size: 16px; line-height: 24px; color: #fafafa; }
.popup_type_form_quarter .input-placeholder .text-dark,
.popup_type_form_quarter .important-span { color: inherit; }
.popup_type_form_quarter .input-style:focus-visible { outline: 2px solid #42b0f9; outline-offset: 3px; }
.popup_type_form_quarter .quarter__form > label > span:empty { display: none; }
.popup_type_form_quarter .quarter__form > label > span:not(.input-placeholder):not(:empty) { margin-top: 4px; font-size: 12px; line-height: 16px; text-align: left; }
.popup_type_form_quarter .form__button { display: flex; justify-content: center; align-items: center; height: 56px; padding: 0 24px; border: 1px solid #42b0f9; color: #42b0f9; background: transparent; font: inherit; font-size: 16px; line-height: 24px; letter-spacing: 0; }
.popup_type_form_quarter .form__button:is(:hover:where(html[data-hover-enabled="true"] *), :focus-visible) { color: #fff; border-color: #0474dc; background: #0474dc; }
.popup_type_form_quarter .form__warn { display: block; width: 100%; text-align: center; font-size: 14px; line-height: 20px; color: #d1d4d8; }
.popup_type_form_quarter .form__warn a { color: inherit; }

.popup_type_form_quarter .popup__close {
  z-index: 0;
  top: 0;
  right: 100%;
  width: 80px;
  height: 80px;
  padding: 0;
  border: 0;
  background: #30343a;
  opacity: 1;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.22, 0.78, 0.24, 1), visibility 0s linear 280ms;
}

.popup_type_form_quarter.popup_is-opened .popup__close {
  visibility: visible;
  transform: translateX(0);
  transition-delay: calc(var(--price-form-duration) + 80ms), calc(var(--price-form-duration) + 80ms);
}

.popup_type_form_quarter .popup__close:hover:where(html[data-hover-enabled="true"] *) { opacity: 1; }
.popup_type_form_quarter .popup__close:focus-visible { outline: 2px solid #42b0f9; outline-offset: -4px; }
.popup_type_form_quarter .popup__close svg { width: 40px; height: 40px; transition: transform 280ms ease; }
.popup_type_form_quarter .popup__close svg rect { fill: #fff; }
.popup_type_form_quarter .popup__close:hover:where(html[data-hover-enabled="true"] *) svg { transform: rotate(90deg); }

@media (min-width: 601px) and (max-width: 1100px) {
  .popup_type_form_quarter .form__block { padding: 48px 40px; gap: 40px; }
}

@media (max-width: 600px) {
  .popup.popup_type_form_quarter { align-items: flex-end; }
  .popup_type_form_quarter .popup__content_form_quarter { width: 100%; height: min(603px, 100dvh); transform: translateY(100%); }
  .popup_type_form_quarter.popup_is-opened .popup__content_form_quarter { transform: translateY(0); }
  .popup_type_form_quarter .form__block { padding: 80px 20px 56px; gap: 32px; }
  .popup_type_form_quarter .form__block > .title-gap { gap: 20px; }
  .popup_type_form_quarter .form__block .title { max-width: 100%; font-size: clamp(32px, 10vw, 40px); }
  .popup_type_form_quarter .form__block > .block-form { gap: 16px; }
  .popup_type_form_quarter .popup__content_form_quarter .quarter__form { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .popup_type_form_quarter .quarter__form > :nth-child(n + 3) { grid-column: 1; }
  .popup_type_form_quarter .form__warn { line-height: 21px; }
  .popup_type_form_quarter .popup__close,
  .popup_type_form_quarter.popup_is-opened .popup__close { z-index: 2; right: 0; transform: none; transition: none; transition-delay: 0s; }
  .popup_type_form_quarter:is(.popup_is-opened, .popup_is-closing) .popup__close { visibility: visible; }
  .popup_type_form_quarter .popup__close svg,
  .popup_type_form_quarter .popup__close:hover:where(html[data-hover-enabled="true"] *) svg { transform: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .popup.popup_type_form_quarter { --price-form-duration: 0.01ms; }
  .popup.popup_type_form_quarter,
  .popup_type_form_quarter .popup__content_form_quarter,
  .popup_type_form_quarter .popup__close,
  .popup_type_form_quarter .popup__close svg { transition-duration: 0.01ms; }
  .popup_type_form_quarter.popup_is-opened .popup__close { transition-delay: 0s; }
}
